From 51cac2c17ab5fff348f92129439972603188c6a1 Mon Sep 17 00:00:00 2001 From: geht <2947093423@qq.com> Date: Tue, 26 May 2026 10:21:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=B7=B7=E7=82=BC=E7=A4=BA?= =?UTF-8?q?=E6=96=B9=E9=80=89=E6=8B=A9=E5=BC=B9=E7=AA=97=E5=8F=8A=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E5=8A=9F=E8=83=BD=EF=BC=8C=E6=94=AF=E6=8C=81=E8=A7=84?= =?UTF-8?q?=E6=A0=BC=E9=80=89=E6=8B=A9=E4=B8=8E=E5=8F=82=E7=85=A7=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=EF=BC=8C=E4=BC=98=E5=8C=96=E7=94=A8=E6=88=B7=E4=BA=A4?= =?UTF-8?q?=E4=BA=92=E4=BD=93=E9=AA=8C=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mesXslMixingSpec/MesXslMixingSpec.data.ts | 59 +++++ .../components/MesXslMixingSpecModal.vue | 112 +++++++-- .../MesXslMixingSpecSelectModal.vue | 236 ++++++++++++++++++ 3 files changed, 390 insertions(+), 17 deletions(-) create mode 100644 jeecgboot-vue3/src/views/xslmes/mesXslMixingSpec/components/MesXslMixingSpecSelectModal.vue diff --git a/jeecgboot-vue3/src/views/xslmes/mesXslMixingSpec/MesXslMixingSpec.data.ts b/jeecgboot-vue3/src/views/xslmes/mesXslMixingSpec/MesXslMixingSpec.data.ts index 7b7ad457..05dfa7d6 100644 --- a/jeecgboot-vue3/src/views/xslmes/mesXslMixingSpec/MesXslMixingSpec.data.ts +++ b/jeecgboot-vue3/src/views/xslmes/mesXslMixingSpec/MesXslMixingSpec.data.ts @@ -1185,3 +1185,62 @@ export const mixingSpecHistorySelectColumns: BasicColumn[] = [ }, ]; //update-end---author:cursor ---date:20260526 for:【XSLMES-20260526-A58】参照历史混合步骤选择弹窗----------- + +//update-begin---author:cursor ---date:20260526 for:【XSLMES-20260526-A59】规格点击选择混炼示方及参照新增----------- +/** 参照新增时需剔除的主表字段 */ +export const MIXING_SPEC_MAIN_STRIP_FIELDS = [ + 'id', + 'createBy', + 'createTime', + 'updateBy', + 'updateTime', + 'draftBy', + 'draftTime', + 'proofreadBy', + 'proofreadTime', + 'auditBy', + 'auditTime', + 'approveBy', + 'approveTime', + 'changeDate', + 'delFlag', + 'tenantId', + 'sysOrgCode', +] as const; + +/** 参照新增时需剔除的明细字段 */ +export const MIXING_SPEC_CHILD_STRIP_FIELDS = [ + 'id', + 'mixingSpecId', + 'createBy', + 'createTime', + 'updateBy', + 'updateTime', + 'tenantId', +] as const; + +/** 参照选中示方新增:复制除 ID 及审计字段外的全部数据 */ +export function cloneMixingSpecPageForReferenceAdd(source: Recordable = {}): Recordable { + const main: Recordable = { ...source }; + MIXING_SPEC_MAIN_STRIP_FIELDS.forEach((key) => delete main[key]); + main.id = ''; + + const cloneChildList = (rows: Recordable[] = []) => + normalizeMixingDetailRows( + (rows || []).map((row) => { + const next: Recordable = { ...row }; + MIXING_SPEC_CHILD_STRIP_FIELDS.forEach((key) => delete next[key]); + delete next.baseUnitWeight; + return next; + }), + ); + + return { + ...main, + materialList: cloneChildList(source.materialList), + stepList: cloneChildList(source.stepList), + downStepList: cloneChildList(source.downStepList), + tcuList: cloneChildList(source.tcuList), + }; +} +//update-end---author:cursor ---date:20260526 for:【XSLMES-20260526-A59】规格点击选择混炼示方及参照新增----------- diff --git a/jeecgboot-vue3/src/views/xslmes/mesXslMixingSpec/components/MesXslMixingSpecModal.vue b/jeecgboot-vue3/src/views/xslmes/mesXslMixingSpec/components/MesXslMixingSpecModal.vue index 31ca3799..3f61b6a0 100644 --- a/jeecgboot-vue3/src/views/xslmes/mesXslMixingSpec/components/MesXslMixingSpecModal.vue +++ b/jeecgboot-vue3/src/views/xslmes/mesXslMixingSpec/components/MesXslMixingSpecModal.vue @@ -20,7 +20,15 @@ 规格 - + 机台 制作日期 @@ -421,6 +429,7 @@ + + + + +