feat(crm): 新增JSON表格输入组件并优化客户管理页面

refactor(OrderDetail): 允许orderId为undefined并添加空值检查
feat(JSONTableInput): 新增支持JSON与表格双向绑定的通用组件
refactor(customer): 重构客户详情页面,优化表单交互和字段映射
style(KLPList): 简化列表组件样式并修复字段显示逻辑
This commit is contained in:
砂糖
2025-12-16 11:47:53 +08:00
parent 2829e52f5b
commit 5ac2e78a33
4 changed files with 666 additions and 400 deletions

View File

@@ -68,7 +68,7 @@ export default {
name: "OrderItem",
props: {
orderId: {
type: String,
type: [String, undefined],
required: true
}
},
@@ -142,7 +142,12 @@ export default {
},
methods: {
/** 查询正式订单明细列表 */
getList() {
getList() {
if (!this.queryParams.orderId) {
this.orderItemList = [];
this.total = 0;
return;
}
this.loading = true;
listOrderItem(this.queryParams).then(response => {
this.orderItemList = response.rows;