From e6be2dda3301bcb94e85dab9cc8127622490a746 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Tue, 1 Sep 2026 16:50:16 +0800 Subject: [PATCH] =?UTF-8?q?2026-09-01=20=E5=88=80=E5=85=B7=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E8=AE=B0=E5=BD=95=E5=88=97=E8=A1=A8=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E2=80=9C=E5=AE=A2=E6=88=B7=E5=90=8D=E7=A7=B0=E2=80=9D=E5=92=8C?= =?UTF-8?q?=E2=80=9C=E9=A1=B9=E7=9B=AE=E5=90=8D=E7=A7=B0=E5=88=97=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/tooling/searchToolApply.vue | 44 ++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) 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', '') }) })) },