diff --git a/src/views/modules/tooling/searchToolApply.vue b/src/views/modules/tooling/searchToolApply.vue index 447fb8f..30dabb6 100644 --- a/src/views/modules/tooling/searchToolApply.vue +++ b/src/views/modules/tooling/searchToolApply.vue @@ -1571,6 +1571,42 @@ export default { fixed: '', columnWidth: 150 }, + { + userId: this.$store.state.user.name, + functionId: 106002, + serialNumber: '106002Table1CustomerName', + tableId: "106002Table1", + tableName: "刀具申请主表", + columnProp: "customerName", + headerAlign: "center", + align: "left", + columnLabel: "客户名称", + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 120 + }, + { + userId: this.$store.state.user.name, + functionId: 106002, + serialNumber: '106002Table1ProjectName', + tableId: "106002Table1", + tableName: "刀具申请主表", + columnProp: "projectName", + headerAlign: "center", + align: "left", + columnLabel: "项目名称", + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 140 + }, { userId: this.$store.state.user.name, functionId: 106002, @@ -2617,15 +2653,21 @@ export default { // 使用$set确保响应式更新 this.$set(item, 'firstToolId', firstDetail.toolId) this.$set(item, 'firstToolDesc', firstDetail.toolDesc) + this.$set(item, 'customerName', firstDetail.customerName) + this.$set(item, 'projectName', firstDetail.projectName) } else { - // 如果没有明细数据,清空这两个字段 + // 如果没有明细数据,清空首条明细映射字段 this.$set(item, 'firstToolId', '') this.$set(item, 'firstToolDesc', '') + this.$set(item, 'customerName', '') + this.$set(item, 'projectName', '') } }).catch(() => { // 忽略错误,只是显示为空 this.$set(item, 'firstToolId', '') this.$set(item, 'firstToolDesc', '') + this.$set(item, 'customerName', '') + this.$set(item, 'projectName', '') }) })) },