From 19898cef897865195312bc21acf2e7f4693c8be6 Mon Sep 17 00:00:00 2001 From: memorylkf <312904636@qq.com> Date: Mon, 19 Jan 2026 16:22:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86]?= =?UTF-8?q?=20=E6=A8=A1=E6=9D=BF=E8=A1=A8=E6=A0=BC=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../template/comps/sp/SWYPFXFFXYPZBB/ZQDYJMD.vue | 32 ++++++++++++++++------ .../formConfig/SWYPFXFFXYPZBBTableConfig.js | 4 +-- 2 files changed, 26 insertions(+), 10 deletions(-) diff --git a/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/ZQDYJMD.vue b/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/ZQDYJMD.vue index e64b4b6..9505e44 100644 --- a/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/ZQDYJMD.vue +++ b/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/ZQDYJMD.vue @@ -253,8 +253,8 @@ export default { formData: { immediate: true, handler(v) { - if(!v.targetCodeSn && this.fillType === "actFill"){ - this.getCode(); + if(this.fillType === "actFill"){ + this.getCode(v); } } } @@ -291,12 +291,28 @@ export default { } }, //获取目标溶液编号 - async getCode(){ - const result = await getLatestSn({ - count: 1, - }) - if(result.code == 200){ - this.$refs.stepFormPackageRef.updateFormData("targetCodeSn",result.data) + async getCode(v){ + debugger + const {stepTableFormData = []} = v; + if(stepTableFormData && stepTableFormData.length>0 && !stepTableFormData[0].bhCode){ + const result = await getLatestSn({ + count: stepTableFormData.length, + }) + if(result.code == 200){ + debugger + if(stepTableFormData.length===0){ + this.$refs.tableRef.updateDataSourceByRowIndex(0,{ + [bhCode]: result.data, + }) + }else{ + for(let i=0;i { prop: 'bh', bodyType: 'select', bodyOptions: $this.getDictOptions('business_jmdyzqdyp'), - subType: 'span', - subKey: 'bhCode', + bodySubType: 'span', + bodySubKey: 'bhCode', bodyFillType: 'preFill', width: 280 },