From c75cfe0c4fe33dfa703426a702d8d2f42e81510b Mon Sep 17 00:00:00 2001 From: HanLong <404402223@qq.com> Date: Wed, 21 Jan 2026 17:02:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86][?= =?UTF-8?q?=E7=94=9F=E7=89=A9=E6=A0=B7=E5=93=81=E5=88=86=E6=9E=90=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E5=AD=A6=E6=A0=B7=E5=93=81=E5=88=B6=E5=A4=87=E8=A1=A8?= =?UTF-8?q?=EF=BC=88Recovery=EF=BC=89]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../template/comps/sp/SWYPFXFFXYPZBB/Recovery.vue | 76 +++++++++++++++------- .../formConfig/SWYPFXFFXYPZBBTableConfig.js | 8 +-- 2 files changed, 57 insertions(+), 27 deletions(-) diff --git a/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/Recovery.vue b/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/Recovery.vue index f154247..cadbcdd 100644 --- a/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/Recovery.vue +++ b/src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/Recovery.vue @@ -292,8 +292,8 @@ export default { formData: { immediate: true, handler(v) { - if (!v.targetCodeSn && this.fillType === "actFill") { - this.getCode(); + if (this.fillType === "actFill") { + this.getCode(v); } } } @@ -350,7 +350,7 @@ export default { } }, //获取目标溶液编号 - async getCode() { + async getCode(v) { // 基质表格 const {stepTableFormData = []} = v; if(stepTableFormData && stepTableFormData.length>0 && !stepTableFormData[0].bhCode){ @@ -419,29 +419,59 @@ export default { async getFormData() { let content = await this.validFormFields(["baseInfoRef", "storageConditionRef", "stepFormPackageRef", "tableRef", "stepRef", "rongyeTableRef", "rongyeStepFormPackageRef", "remarkRef"]); - console.log(content) + console.log(content) //生成resource let tmpResource = [] - //配置的试剂 - tmpResource.push({ - mc: content.targetName, - bh: content.targetCode + content.targetCodeSn, - ph: '', - nd: content.targetActConcentration + content.targetActConcentrationUnit, - source: 'ELN配制', - sxrq: content.expireDate, - ndz: content.targetActConcentration, - nddw: content.targetActConcentrationUnit, - kc: content.targetActVolume, - kcdw: content.targetActVolumeUnit, - syl: null, - syldw: content.targetActVolumeUnit, - yxzq: content.effectivePeriod, - yxzqdw: content.effectivePeriodUnit, - }) - //使用的试剂 - this.resource = tmpResource + let tableList = content.stepTableFormData + if(tableList && tableList.length>0){ + for(let i=0;i0){ + for(let i=0;i { bodyType: 'inputNumber', bodyFillType: 'actFill', bodyMaxlength: 10, - bodyCompareTo: 'yjjzxql', - copyFrom: 'yjjzxql' + bodyCompareTo: 'yjgzyxql', + copyFrom: 'yjgzyxql' }, { label: 'template.sp.sp009.yjxsyxql', @@ -202,8 +202,8 @@ export const getSWYPFXFFXYPZBBTQHSLTableConfig = ($this, selectKey) => { bodyType: 'inputNumber', bodyFillType: 'actFill', bodyMaxlength: 10, - bodyCompareTo: 'yjjzxql', - copyFrom: 'yjjzxql' + bodyCompareTo: 'yjxsyxql', + copyFrom: 'yjxsyxql' }, { label: 'template.sp.sp008.hhwznd',