From a0997f75f1e054720b447b2419bc1145a5c92ea4 Mon Sep 17 00:00:00 2001 From: memorylkf <312904636@qq.com> Date: Tue, 14 Apr 2026 18:08:42 +0800 Subject: [PATCH 01/19] =?UTF-8?q?fix:=20[=E6=A8=A1=E6=9D=BF=E7=AE=A1?= =?UTF-8?q?=E7=90=86]=20=E8=8E=B7=E5=8F=96=E7=BC=96=E5=8F=B7=E7=9A=84?= =?UTF-8?q?=E5=9C=B0=E6=96=B9=E4=BF=9D=E5=AD=98=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/business/comps/template/comps/dl/DL003.vue | 3 +++ src/views/business/comps/template/comps/dl/DL011.vue | 4 ++++ src/views/business/comps/template/comps/gsp/DMYPPZJLB.vue | 3 +++ src/views/business/comps/template/comps/gsp/GSP001.vue | 3 +++ src/views/business/comps/template/comps/gsp/GSP002.vue | 3 +++ src/views/business/comps/template/comps/gsp/GSP003.vue | 3 +++ src/views/business/comps/template/comps/gsp/GSP004.vue | 3 +++ src/views/business/comps/template/comps/gsp/GSP005.vue | 6 ++++++ src/views/business/comps/template/comps/gsp/GSP010.vue | 3 +++ src/views/business/comps/template/comps/sp/SP001.vue | 3 +++ src/views/business/comps/template/comps/sp/SP00456.vue | 3 +++ 11 files changed, 37 insertions(+) diff --git a/src/views/business/comps/template/comps/dl/DL003.vue b/src/views/business/comps/template/comps/dl/DL003.vue index 85031c6..6ed3a63 100644 --- a/src/views/business/comps/template/comps/dl/DL003.vue +++ b/src/views/business/comps/template/comps/dl/DL003.vue @@ -551,6 +551,9 @@ export default { if (this.$refs.jzjzTableRef) { this.$refs.jzjzTableRef.updateDataSourceByRowIndex(rowIndex, { ...currentItem }); } + setTimeout(() => { + this.justUpdateFilledFormData() + }, 100) } catch (error) { // 8. 异常捕获,给出友好提示 this.$message.error('子码生成失败,请重试'); diff --git a/src/views/business/comps/template/comps/dl/DL011.vue b/src/views/business/comps/template/comps/dl/DL011.vue index 3f34350..7405501 100644 --- a/src/views/business/comps/template/comps/dl/DL011.vue +++ b/src/views/business/comps/template/comps/dl/DL011.vue @@ -318,6 +318,10 @@ export default { const res = await getLatestSn({ pre: fshxbbh, type: 1, count: 1 }) if (res.code !== 200 || !res.data?.length) return this.$refs[refConf.xbxx].batchUpdateFormData({ fshxbbhCodeSn: res.data[0] }) + // 触发数据更新 + setTimeout(() => { + this.justUpdateFilledFormData() + }, 100) } catch (e) { this.$message.error('复苏后细胞编号生成失败,请重试') } diff --git a/src/views/business/comps/template/comps/gsp/DMYPPZJLB.vue b/src/views/business/comps/template/comps/gsp/DMYPPZJLB.vue index 5cd3401..ca061d3 100644 --- a/src/views/business/comps/template/comps/gsp/DMYPPZJLB.vue +++ b/src/views/business/comps/template/comps/gsp/DMYPPZJLB.vue @@ -311,6 +311,9 @@ export default { }) if (result.code == 200) { this.$refs[`formConfigStepFormPackageRef_${i}`][0].updateFormData("targetCodeSn", result.data[0]) + setTimeout(() => { + this.justUpdateFilledFormData() + }, 100) } } } diff --git a/src/views/business/comps/template/comps/gsp/GSP001.vue b/src/views/business/comps/template/comps/gsp/GSP001.vue index eb1f255..4aaaa51 100644 --- a/src/views/business/comps/template/comps/gsp/GSP001.vue +++ b/src/views/business/comps/template/comps/gsp/GSP001.vue @@ -381,6 +381,9 @@ export default { }) if (result.code == 200) { this.$refs[`formConfigStepFormPackageRef_${i}`][0].updateFormData("targetCodeSn", result.data[0]) + setTimeout(() => { + this.justUpdateFilledFormData() + }, 100) } } } diff --git a/src/views/business/comps/template/comps/gsp/GSP002.vue b/src/views/business/comps/template/comps/gsp/GSP002.vue index 994d115..6cc8e34 100644 --- a/src/views/business/comps/template/comps/gsp/GSP002.vue +++ b/src/views/business/comps/template/comps/gsp/GSP002.vue @@ -640,6 +640,9 @@ export default { } this.$refs[ref][0]?.updateDataSourceByRowIndex(idx, { subTargetSolutionCode: snList[idx], ...expDate }); }); + setTimeout(() => { + this.justUpdateFilledFormData() + }, 100) resolve() } else { reject() diff --git a/src/views/business/comps/template/comps/gsp/GSP003.vue b/src/views/business/comps/template/comps/gsp/GSP003.vue index 098ba5b..db53772 100644 --- a/src/views/business/comps/template/comps/gsp/GSP003.vue +++ b/src/views/business/comps/template/comps/gsp/GSP003.vue @@ -357,6 +357,9 @@ export default { }) if (result.code == 200) { this.$refs[`formConfigStepFormPackageRef_${i}`][0].updateFormData("targetCodeSn", result.data[0]) + setTimeout(() => { + this.justUpdateFilledFormData() + }, 100) } } } diff --git a/src/views/business/comps/template/comps/gsp/GSP004.vue b/src/views/business/comps/template/comps/gsp/GSP004.vue index dc96c05..baf3cba 100644 --- a/src/views/business/comps/template/comps/gsp/GSP004.vue +++ b/src/views/business/comps/template/comps/gsp/GSP004.vue @@ -610,6 +610,9 @@ export default { } this.$refs[ref][0]?.updateDataSourceByRowIndex(idx, { subTargetSolutionCode: snList[idx], ...expDate }); }); + setTimeout(() => { + this.justUpdateFilledFormData() + }, 100) resolve() } else { reject() diff --git a/src/views/business/comps/template/comps/gsp/GSP005.vue b/src/views/business/comps/template/comps/gsp/GSP005.vue index 43ef846..1fb40d5 100644 --- a/src/views/business/comps/template/comps/gsp/GSP005.vue +++ b/src/views/business/comps/template/comps/gsp/GSP005.vue @@ -809,6 +809,9 @@ export default { }) if (result.code == 200) { this.$refs[`formZlConfigFormPackageRef_${i}`][0].updateFormData("targetCodeSn", result.data[0]) + setTimeout(() => { + this.justUpdateFilledFormData() + }, 100) } } } @@ -823,6 +826,9 @@ export default { }) if (result.code == 200) { this.$refs[`formRyConfigFormPackageRef_${i}`][0].updateFormData("targetCodeSn", result.data[0]) + setTimeout(() => { + this.justUpdateFilledFormData(); + }, 100); } } } diff --git a/src/views/business/comps/template/comps/gsp/GSP010.vue b/src/views/business/comps/template/comps/gsp/GSP010.vue index 41ac26b..c1ba8bd 100644 --- a/src/views/business/comps/template/comps/gsp/GSP010.vue +++ b/src/views/business/comps/template/comps/gsp/GSP010.vue @@ -310,6 +310,9 @@ export default { }) if (result.code == 200) { this.$refs[`formConfigStepFormPackageRef_${i}`][0].updateFormData("targetCodeSn", result.data[0]) + setTimeout(() => { + this.justUpdateFilledFormData(); + }, 100); } } } diff --git a/src/views/business/comps/template/comps/sp/SP001.vue b/src/views/business/comps/template/comps/sp/SP001.vue index 1a0a798..c1e2673 100644 --- a/src/views/business/comps/template/comps/sp/SP001.vue +++ b/src/views/business/comps/template/comps/sp/SP001.vue @@ -301,6 +301,9 @@ export default { }) if (result.code == 200) { this.$refs.stepFormPackageRef.updateFormData("targetCodeSn", result.data[0]) + setTimeout(() => { + this.justUpdateFilledFormData() + }, 100) } }, 100), //获取已填写的表单数据 diff --git a/src/views/business/comps/template/comps/sp/SP00456.vue b/src/views/business/comps/template/comps/sp/SP00456.vue index b243053..8478ec5 100644 --- a/src/views/business/comps/template/comps/sp/SP00456.vue +++ b/src/views/business/comps/template/comps/sp/SP00456.vue @@ -299,6 +299,9 @@ export default { } this.$refs[currentRef][0]?.updateDataSourceByRowIndex(idx, { subTargetSolutionCode: snList[idx], ...expDate }); }); + setTimeout(() => { + this.justUpdateFilledFormData() + }, 100) resolve() } else { reject() From a3c5a968692efe5eae07cac8fede71f54b9f5577 Mon Sep 17 00:00:00 2001 From: memorylkf <312904636@qq.com> Date: Wed, 15 Apr 2026 08:51:28 +0800 Subject: [PATCH 02/19] =?UTF-8?q?fix:=20[=E6=AD=A5=E9=AA=A4=E7=AE=A1?= =?UTF-8?q?=E7=90=86]=20=E4=BF=AE=E6=94=B9=E6=AD=A5=E9=AA=A4=E5=90=8D?= =?UTF-8?q?=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Template/StepComponents/xbjzpz/fr_xbjzpz.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Template/StepComponents/xbjzpz/fr_xbjzpz.vue b/src/components/Template/StepComponents/xbjzpz/fr_xbjzpz.vue index 35147f8..954de40 100644 --- a/src/components/Template/StepComponents/xbjzpz/fr_xbjzpz.vue +++ b/src/components/Template/StepComponents/xbjzpz/fr_xbjzpz.vue @@ -1,4 +1,4 @@ - + From 14cfc44e04cf3484a6bb71fbef469aa0d93578cd Mon Sep 17 00:00:00 2001 From: "15881625488@163.com" <15881625488@163.com> Date: Wed, 15 Apr 2026 16:09:43 +0800 Subject: [PATCH 03/19] =?UTF-8?q?fix:[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86?= =?UTF-8?q?]=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lang/en/template/commonTemplate.js | 2 +- src/lang/zh/template/commonTemplate.js | 4 ++-- src/views/business/comps/template/comps/gsp/GSP003.vue | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lang/en/template/commonTemplate.js b/src/lang/en/template/commonTemplate.js index 631b9c8..79c9eef 100644 --- a/src/lang/en/template/commonTemplate.js +++ b/src/lang/en/template/commonTemplate.js @@ -23,7 +23,7 @@ export default { sjInfo:'Reagent Info', gyzjInfo:'Formulation Info', gspInfo:'Specimen Info', - gspsywzInfo:'试验物资信息', + gspsywzInfo:'试验物质信息', mjyInfo:'Controlled Drug Info', storageConditionLabel: 'Storage Condition', diff --git a/src/lang/zh/template/commonTemplate.js b/src/lang/zh/template/commonTemplate.js index 5c63563..e810a6f 100644 --- a/src/lang/zh/template/commonTemplate.js +++ b/src/lang/zh/template/commonTemplate.js @@ -7,11 +7,11 @@ export default { sjInfo:'试验试剂信息', gyzjInfo:'给药制剂信息', gspInfo:'供试品信息', - gspsywzInfo:'试验物资信息', + gspsywzInfo:'试验物质信息', mjyInfo:'麻精药信息', reagentInfo: '试验试剂信息', - wzInfo: '试验物资信息', + wzInfo: '试验物质信息', instrumentInfo: '仪器使用信息', storageCondition: '存储条件', operationSteps: '操作步骤', diff --git a/src/views/business/comps/template/comps/gsp/GSP003.vue b/src/views/business/comps/template/comps/gsp/GSP003.vue index db53772..5a31b0f 100644 --- a/src/views/business/comps/template/comps/gsp/GSP003.vue +++ b/src/views/business/comps/template/comps/gsp/GSP003.vue @@ -10,9 +10,9 @@ - + - + Date: Wed, 15 Apr 2026 16:46:01 +0800 Subject: [PATCH 04/19] =?UTF-8?q?fix:[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86?= =?UTF-8?q?]=E4=BE=9B=E8=AF=95=E5=93=81003.002?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/business/comps/template/comps/gsp/GSP002.vue | 2 +- src/views/business/comps/template/comps/gsp/GSP003.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/business/comps/template/comps/gsp/GSP002.vue b/src/views/business/comps/template/comps/gsp/GSP002.vue index 6cc8e34..64e00de 100644 --- a/src/views/business/comps/template/comps/gsp/GSP002.vue +++ b/src/views/business/comps/template/comps/gsp/GSP002.vue @@ -854,7 +854,7 @@ export default { let fzItem = fzsj.fzList[k] tmpResource.push({ mc: null, - bh: fzsj.mybh + fzItem.preCode + fzItem.subCode, + bh: fzItem.preCode , ph: null, ndz: stepTableFormData[j].actSolutionConcentration + paralleConfigs.headerSelectFields.actSolutionConcentrationUnit, nd: stepTableFormData[j].actSolutionConcentration, diff --git a/src/views/business/comps/template/comps/gsp/GSP003.vue b/src/views/business/comps/template/comps/gsp/GSP003.vue index 5a31b0f..058a5c3 100644 --- a/src/views/business/comps/template/comps/gsp/GSP003.vue +++ b/src/views/business/comps/template/comps/gsp/GSP003.vue @@ -10,7 +10,7 @@ - + From a938d2a51a47843c5570096af5638b018203976f Mon Sep 17 00:00:00 2001 From: luojie <125330818@qq.com> Date: Wed, 15 Apr 2026 19:42:59 +0800 Subject: [PATCH 05/19] =?UTF-8?q?feat:[=E6=A8=A1=E6=9D=BF=E7=AE=A1?= =?UTF-8?q?=E7=90=86][update]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Template/mixins/formPackageMixins.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Template/mixins/formPackageMixins.js b/src/components/Template/mixins/formPackageMixins.js index f9590c2..51706d0 100644 --- a/src/components/Template/mixins/formPackageMixins.js +++ b/src/components/Template/mixins/formPackageMixins.js @@ -82,7 +82,9 @@ export default { }, //试剂/仪器等弹窗提交 onRegentSubmit(data, inputValue, key, item) { - this.formFields[`selectInfo_${key}`] = JSON.parse(JSON.stringify(data.selectInfo)); + if(data.selectInfo){ + this.formFields[`selectInfo_${key}`] = JSON.parse(JSON.stringify(data.selectInfo)); + } if (data.type === "yq") { this.formFields[`yqInfo_${key}`] = JSON.parse(JSON.stringify(data.row)); } From e715c34384150a7862d9b5f6464cb1fcd4ccba9a Mon Sep 17 00:00:00 2001 From: "15881625488@163.com" <15881625488@163.com> Date: Wed, 15 Apr 2026 21:01:13 +0800 Subject: [PATCH 06/19] =?UTF-8?q?fix:[=E8=B5=84=E6=BA=90=E5=BA=93]?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/resource/gyzj/comps/ffjlList.vue | 14 +++++-- src/views/business/resource/mjy/comps/ffjlList.vue | 48 +++++++++++++--------- src/views/business/study/comp/enter.vue | 1 + src/views/business/study/comp/tbbd/Bj.vue | 6 +-- src/views/business/study/comp/ytbd/Bj.vue | 2 + 5 files changed, 44 insertions(+), 27 deletions(-) diff --git a/src/views/business/resource/gyzj/comps/ffjlList.vue b/src/views/business/resource/gyzj/comps/ffjlList.vue index ab72bfe..23c93b5 100644 --- a/src/views/business/resource/gyzj/comps/ffjlList.vue +++ b/src/views/business/resource/gyzj/comps/ffjlList.vue @@ -80,7 +80,7 @@ {{ $t('form.export') }} - + {{ $t('page.business.resource.gyzj.ckl') }}:{{ ckldw != '' ? ckl : '--' }}{{ ckldw }} ; {{ $t('page.business.resource.gyzj.rkl') }}:{{ rkldw != '' ? rkl : '--' }}{{ rkldw }} ; {{ $t('page.business.resource.gyzj.syl') }}:{{ syldw != '' ? syl : '--' }}{{ syldw }} ; @@ -236,6 +236,7 @@ export default { daterangeCk: [], daterangeRk: [], loading: true, + showtj: false, showDetail: false, single: true, multiple: true, @@ -328,16 +329,17 @@ export default { this.syl =_.divide( _.sumBy(deepClone(response.data), function (item) { return item.syl }), sylCalc) this.ckl =_.divide( _.sumBy(deepClone(response.data), function (item) { return item.ckl }), cklCalc) this.rkl =_.divide( _.sumBy(deepClone(response.data), function (item) { return item.rkl }), rklCalc) + this.showtj=true }) }, getCalc(toUnit) { let unit = ['pL', 'nL', 'uL', 'mL', 'L'] let result = 1 - for (var i = 1; i < unit.length; i++) { - result = result*1000 + for (var i = 0; i < unit.length; i++) { if (unit[i] == toUnit) { break } + result = result*1000 } return result }, @@ -547,7 +549,11 @@ export default { list(this.queryParams).then(response => { this.list = response.rows this.total = response.total - this.getyltj() + if (this.queryParams.mc && this.queryParams.mc != '') { + this.getyltj() + }else{ + this.showtj=false + } this.loading = false }) }, diff --git a/src/views/business/resource/mjy/comps/ffjlList.vue b/src/views/business/resource/mjy/comps/ffjlList.vue index 68bbfd9..a09dd13 100644 --- a/src/views/business/resource/mjy/comps/ffjlList.vue +++ b/src/views/business/resource/mjy/comps/ffjlList.vue @@ -80,9 +80,9 @@ {{ $t('form.export') }} - - {{$t('page.business.resource.mjy.jsl')}}:{{ jsldw!=''? jsl:'--' }}{{ jsldw }} ; - {{$t('page.business.resource.mjy.syl')}}:{{ syldw!=''? syl:'--' }}{{ syldw }} ; + + {{ $t('page.business.resource.mjy.jsl') }}:{{ jsldw != '' ? jsl : '--' }}{{ jsldw }} ; + {{ $t('page.business.resource.mjy.syl') }}:{{ syldw != '' ? syl : '--' }}{{ syldw }} ; @@ -116,7 +116,7 @@ {{ scope.row.rkmz }} {{ scope.row.rkmzdw }} - - + @@ -315,7 +315,7 @@ export default { '' + this.$t('page.business.resource.gsp.gg') + '' + '' + this.$t('page.business.resource.gsp.kcl') + '' + '' + this.$t('page.business.resource.gsp.ph') + '' + - '' + this.$t('page.business.resource.gsp.jsrq') + '' + + // '' + this.$t('page.business.resource.gsp.jsrq') + '' + '' + this.$t('page.business.resource.gsp.cctj') + '' + '' + this.$t('page.business.resource.gsp.zjzt') + '' + '' + this.$t('page.business.resource.gsp.jyzt') + '' + @@ -370,16 +370,14 @@ export default { ' '+value.bh + '' + ' ' + - value.gg + value.ggdw + + value.gg + '' + ' ' + value.kc + value.kcdw + '' + ' ' + value.ph + - '' + - ' ' + - value.jsrq + + '' + ' ' + value.cctj + @@ -513,8 +511,8 @@ export default { //获取列表 getList() { if (this.daterange != null && this.daterange.length > 0) { - this.queryParams.startDate = this.daterange[0] + ' 00:00:00' - this.queryParams.endDate = this.daterange[1] + ' 23:59:59' + this.queryParams.startDate = this.daterange[0] + this.queryParams.endDate = this.daterange[1] } else { this.queryParams.startDate = '' this.queryParams.endDate = '' diff --git a/src/views/business/resource/gsp/comps/rkjlList.vue b/src/views/business/resource/gsp/comps/rkjlList.vue index 3deaf3d..15e6600 100644 --- a/src/views/business/resource/gsp/comps/rkjlList.vue +++ b/src/views/business/resource/gsp/comps/rkjlList.vue @@ -82,8 +82,8 @@ {{ $t('form.export') }} - -
{{ $t('page.business.resource.gsp.rkl') }}:{{ rkl }}
+ + {{ $t('page.business.resource.gsp.rkl') }}:{{ rkl != '' ? rkl : '--' }} ; @@ -423,15 +423,12 @@ export default { this.loading = false }) - if (this.queryParams.startDate || this.queryParams.endDate || this.queryParams.mc || this.queryParams.ph - || this.queryParams.gg || this.queryParams.jlzt || this.queryParams.jyzt) { - sumRkl(this.queryParams).then(response => { + this.getStatistics() + }, + getStatistics() { + sumRkl(this.queryParams).then(response => { this.rkl = response.data.rkl - }) - } else { - this.rkl = null - } - + }) }, //查询 handleQuery() { From 9749f23a519da2ed72424cd21df758f4664d6408 Mon Sep 17 00:00:00 2001 From: luojie <125330818@qq.com> Date: Thu, 16 Apr 2026 22:50:50 +0800 Subject: [PATCH 14/19] =?UTF-8?q?feat:[=E6=A8=A1=E6=9D=BF=E7=AE=A1?= =?UTF-8?q?=E7=90=86][update]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Template/Step.vue | 5 +- src/components/Template/StepFormPackage.vue | 2 + .../Template/mixins/formPackageMixins.js | 82 +++++++++---------- src/lang/en/template/commonTemplate.js | 1 + src/lang/zh/template/commonTemplate.js | 1 + src/utils/calUnitTools.js | 1 - .../business/comps/template/comps/bl/BL002.vue | 4 +- .../business/comps/template/comps/sp/SP003.vue | 16 ++-- .../comps/template/dialog/SubPackageDialog.vue | 93 ++++++++++++---------- .../comps/template/mixins/templateMixin.js | 1 + 10 files changed, 112 insertions(+), 94 deletions(-) diff --git a/src/components/Template/Step.vue b/src/components/Template/Step.vue index 8931129..32f2cff 100644 --- a/src/components/Template/Step.vue +++ b/src/components/Template/Step.vue @@ -10,7 +10,7 @@ - @@ -1196,4 +1196,7 @@ export default { } } } +.w-0{ + width: 0; +} \ No newline at end of file diff --git a/src/components/Template/StepFormPackage.vue b/src/components/Template/StepFormPackage.vue index bdb487b..321006d 100644 --- a/src/components/Template/StepFormPackage.vue +++ b/src/components/Template/StepFormPackage.vue @@ -250,6 +250,7 @@ export default { o.syldw = formFields[item.dwCode];//单位 } sjResource.push(o); + } }else if(item.type === "yq"){ if(formFields[key]){ @@ -261,6 +262,7 @@ export default { } } } + console.log(sjResource,yqResource,allFieldsConfig,formFields,"sjResource") return { sjResource, yqResource, diff --git a/src/components/Template/mixins/formPackageMixins.js b/src/components/Template/mixins/formPackageMixins.js index 51706d0..a366af5 100644 --- a/src/components/Template/mixins/formPackageMixins.js +++ b/src/components/Template/mixins/formPackageMixins.js @@ -1,5 +1,5 @@ import _ from 'lodash' -import { getuuid, isEqual, isValueEmpty,isRegent } from '@/utils/index.js' +import { getuuid, isEqual, isValueEmpty, isRegent } from '@/utils/index.js' import { isShowOtherByCheckboxTree } from '@/utils/formPackageCommon.js' import moment from 'moment' @@ -63,8 +63,8 @@ export default { this.$set(this.errors, key, false) } }, - getOrangeBg(key,sItem) { - if(sItem.compareText){ + getOrangeBg(key, sItem) { + if (sItem.compareText) { return sItem.compareText == this.formFields[key] } return this.orangeBgFields[key] @@ -82,8 +82,8 @@ export default { }, //试剂/仪器等弹窗提交 onRegentSubmit(data, inputValue, key, item) { - if(data.selectInfo){ - this.formFields[`selectInfo_${key}`] = JSON.parse(JSON.stringify(data.selectInfo)); + if (data.selectInfo) { + this.formFields[`selectInfo_${key}`] = JSON.parse(JSON.stringify(data.selectInfo)); } if (data.type === "yq") { this.formFields[`yqInfo_${key}`] = JSON.parse(JSON.stringify(data.row)); @@ -391,45 +391,46 @@ export default { currentConfig.otherCode ) } - }) - // 处理可能存在的直接otherCode字段 - if (item.config?.otherCode) { - config[item.config?.otherCode] = item.config?.otherCode - } - if (item.config?.thirdOtherCode) { - config[item.config?.thirdOtherCode] = item.config?.thirdOtherCode - } - if (isRegent(item.config) || isRegent(item.config,"subType")) { - // 处理selectInfo_开头的字段,步骤表单需要保留selectInfo_开头的字段 - // 优先使用this.formFields中以selectInfo_开头的字段 - let selectInfoKeys = [], yqInfoKeys = []; - if (this.formFields) { - selectInfoKeys = Object.keys(this.formFields).filter((key) => - key.startsWith('selectInfo_') - ) - yqInfoKeys = Object.keys(this.formFields).filter((key) => - key.startsWith('yqInfo_') - ) + // 处理可能存在的直接otherCode字段 + if (currentConfig.otherCode) { + config[currentConfig.otherCode] = currentConfig.otherCode } - // 如果this.formFields中没有,则使用formData中的 - if (selectInfoKeys.length === 0 && formData) { - selectInfoKeys = Object.keys(formData).filter((key) => - key.startsWith('selectInfo_') - ) + if (currentConfig.thirdOtherCode) { + config[currentConfig.thirdOtherCode] = currentConfig.thirdOtherCode } - if (yqInfoKeys.length === 0 && formData) { - yqInfoKeys = Object.keys(formData).filter((key) => - key.startsWith('yqInfo_') - ) + if (isRegent(currentConfig) || isRegent(currentConfig, "subType")) { + // 处理selectInfo_开头的字段,步骤表单需要保留selectInfo_开头的字段 + // 优先使用this.formFields中以selectInfo_开头的字段 + let selectInfoKeys = [], yqInfoKeys = []; + if (this.formFields) { + selectInfoKeys = Object.keys(this.formFields).filter((key) => + key.startsWith('selectInfo_') + ) + yqInfoKeys = Object.keys(this.formFields).filter((key) => + key.startsWith('yqInfo_') + ) + } + // 如果this.formFields中没有,则使用formData中的 + if (selectInfoKeys.length === 0 && formData) { + selectInfoKeys = Object.keys(formData).filter((key) => + key.startsWith('selectInfo_') + ) + } + if (yqInfoKeys.length === 0 && formData) { + yqInfoKeys = Object.keys(formData).filter((key) => + key.startsWith('yqInfo_') + ) + } + selectInfoKeys.forEach((key) => { + result[key] = this.formFields[key] || formData[key] || '' + }) + yqInfoKeys.forEach((key) => { + result[key] = this.formFields[key] || formData[key] || '' + }) } - selectInfoKeys.forEach((key) => { - result[key] = this.formFields[key] || formData[key] || '' - }) - yqInfoKeys.forEach((key) => { - result[key] = this.formFields[key] || formData[key] || '' - }) - } + }) + } }) @@ -649,7 +650,6 @@ export default { return new Promise((resolve, reject) => { if (validateResult.valid && subComponentValidateResult.valid) { - console.log(this.formFields, 'this.formFields') resolve(this.formFields) } else if (!validateResult.valid) { // this.$message.error("表单内容未填完,请填写后再提交"); diff --git a/src/lang/en/template/commonTemplate.js b/src/lang/en/template/commonTemplate.js index 79c9eef..bb848f9 100644 --- a/src/lang/en/template/commonTemplate.js +++ b/src/lang/en/template/commonTemplate.js @@ -9,6 +9,7 @@ export default { instrumentInfo: 'Instrument Usage', storageCondition: 'Storage Conditions', operationSteps: 'Operation Workflow', + bzgzypz: '标曲工作液配制', remark: 'Comments', step: 'Step', bqdy: 'Label Print', diff --git a/src/lang/zh/template/commonTemplate.js b/src/lang/zh/template/commonTemplate.js index e810a6f..48f7dc5 100644 --- a/src/lang/zh/template/commonTemplate.js +++ b/src/lang/zh/template/commonTemplate.js @@ -15,6 +15,7 @@ export default { instrumentInfo: '仪器使用信息', storageCondition: '存储条件', operationSteps: '操作步骤', + bzgzypz: '标曲工作液配制', step: '步骤', remark: '备注', bqdy: '标签打印', diff --git a/src/utils/calUnitTools.js b/src/utils/calUnitTools.js index 4ad979f..7d9c429 100644 --- a/src/utils/calUnitTools.js +++ b/src/utils/calUnitTools.js @@ -8,7 +8,6 @@ export function addTj(valueArr, unitArr) { let thisIndex = unit.indexOf(unitArr[i]) mixIndex = thisIndex < mixIndex ? thisIndex : mixIndex } - let total = 0 for (let i = 0; i < unitArr.length; i++) { let thisIndex = unit.indexOf(unitArr[i]) diff --git a/src/views/business/comps/template/comps/bl/BL002.vue b/src/views/business/comps/template/comps/bl/BL002.vue index 118a9a4..319c380 100644 --- a/src/views/business/comps/template/comps/bl/BL002.vue +++ b/src/views/business/comps/template/comps/bl/BL002.vue @@ -221,10 +221,10 @@ export default { if( stepTableFormData && stepTableFormData.length >0 ){ stepTableFormData.map((item,index)=>{ if(!item.smryqrxx && item.smryqrxx !== false){ - this.$refs.yqsyTableRef.updateDataSourceByRowIndex(index, {...item,smryqrxx:false}) + this.$refs.dwybTableRef.updateDataSourceByRowIndex(index, {...item,smryqrxx:false}) } if(!item.ztblxjqrxx && item.ztblxjqrxx !== false){ - this.$refs.yqsyTableRef.updateDataSourceByRowIndex(index, {...item,ztblxjqrxx:false}) + this.$refs.dwybTableRef.updateDataSourceByRowIndex(index, {...item,ztblxjqrxx:false}) } }) } diff --git a/src/views/business/comps/template/comps/sp/SP003.vue b/src/views/business/comps/template/comps/sp/SP003.vue index 46b7f6e..402304a 100644 --- a/src/views/business/comps/template/comps/sp/SP003.vue +++ b/src/views/business/comps/template/comps/sp/SP003.vue @@ -12,9 +12,9 @@ - +
- @@ -287,7 +287,7 @@ export default { { label: "template.sp.sp003.qsrybh", prop: "startSolutionCode", - width: 180, + width: 200, bodyType: "input", bodyFillType: "actFill", bodyMaxlength: 10, @@ -296,7 +296,7 @@ export default { { label: "template.sp.sp003.ysqsrytj", prop: "targetStartSolutionVolume", - width: 180, + width: 200, showWidth: 90, headerSelectKey: "targetStartSolutionVolumeUnit", fillType: "preFill", @@ -317,7 +317,7 @@ export default { { label: "template.sp.sp003.sjqsrytj", prop: "actStartSolutionVolume", - width: 180, + width: 200, showWidth: 90, headerSelectKey: "actStartSolutionVolumeUnit", fillType: "preFill", @@ -331,7 +331,7 @@ export default { { label: "template.sp.sp003.ysxsytj", prop: "targetDiluentVolume", - width: 180, + width: 200, showWidth: 90, headerSelectKey: "targetDiluentVolumeUnit", fillType: "preFill", @@ -352,7 +352,7 @@ export default { { label: "template.sp.sp003.sjxsytj", prop: "actDiluentVolume", - width: 180, + width: 200, showWidth: 90, headerSelectKey: "actDiluentVolumeUnit", fillType: "preFill", diff --git a/src/views/business/comps/template/dialog/SubPackageDialog.vue b/src/views/business/comps/template/dialog/SubPackageDialog.vue index 9b2ee4f..8360dfc 100644 --- a/src/views/business/comps/template/dialog/SubPackageDialog.vue +++ b/src/views/business/comps/template/dialog/SubPackageDialog.vue @@ -5,18 +5,18 @@
包装编号
- +
分装数量
- - 确定 + + 确定
@@ -25,13 +25,13 @@ 分装编号 单位:
-
每份包装量:
-
@@ -164,12 +164,12 @@ export default { this.fzListErrors = new Array(this.fzList.length).fill(false); delete cloneData.fzList; } - const { mybhOptions=[] } = cloneData; - if(mybhOptions.length){ + const { mybhOptions = [] } = cloneData; + if (mybhOptions.length) { this.mybhOptions = mybhOptions this.inputItem.options = mybhOptions; this.inputItem.disabled = false; - }else{ + } else { this.inputItem.disabled = true; } this.id = data.id; @@ -376,39 +376,48 @@ export default { // 分装数量失去焦点时,根据数量生成分装列表 async onBlurFzsl(e) { console.log(e, "失去焦点时的数量") - // 清除当前字段的错误状态 - if (e) { - this.formErrors.fzsl = false; - } - // 清空现有列表 - this.fzList = []; - this.fzListErrors = []; - const result = await getLatestSn({ - pre: this.formData.mybh, - count: e, - type: 2, - }) - if (result.code === 200) { - const codes = result.data; - // 根据输入的数量生成新列表 - for (let i = 0; i < e; i++) { - this.fzList.push({ - num: "", - subCode: codes[i], - preCode: `${this.formData.mybh}-set${codes[i]}` - }); - // 同步初始化错误状态数组 - this.fzListErrors.push(false); + this.$modal.confirm("分装数量确认后会永久占用分装流水号,且事后无法修改", '提示', { + confirmButtonText: this.$t('form.saveConfirm'), + cancelButtonText: this.$t('form.cancel'), + type: 'warning' + }).then(async () => { + // 清除当前字段的错误状态 + if (e) { + this.formErrors.fzsl = false; } - } + // 清空现有列表 + this.fzList = []; + this.fzListErrors = []; + const result = await getLatestSn({ + pre: this.formData.mybh, + count: e, + type: 2, + }) + if (result.code === 200) { + const codes = result.data; + // 根据输入的数量生成新列表 + for (let i = 0; i < e; i++) { + this.fzList.push({ + num: "", + subCode: codes[i], + preCode: `${this.formData.mybh}-set${codes[i]}` + }); + // 同步初始化错误状态数组 + this.fzListErrors.push(false); + } + } + }).catch(() => { + // 取消操作,不执行任何操作 + }); + }, // 分装编号改变时,根据编号获取分装数据 - onChangeMybh(e,type) { - if(type === "change" && this.formData.fzsl){ + onChangeMybh(e, type) { + if (type === "change" && this.formData.fzsl) { this.onBlurFzsl(this.formData.fzsl) } - + }, onAverage() { const { mfbzl } = this.formData; @@ -483,10 +492,12 @@ export default { border-radius: 4px; padding: 20px; } -.item-center{ + +.item-center { display: flex; align-items: center; } + .header-title { margin-bottom: 10px; } diff --git a/src/views/business/comps/template/mixins/templateMixin.js b/src/views/business/comps/template/mixins/templateMixin.js index 604560b..650905a 100644 --- a/src/views/business/comps/template/mixins/templateMixin.js +++ b/src/views/business/comps/template/mixins/templateMixin.js @@ -169,6 +169,7 @@ export default { id } } + console.log(this.formData,"templateData") const { effectivePeriod, effectivePeriodUnit, expireDate } = this.formData //实际填报的时候,如果有了开始时间,并且有有效周期,但是没有失效日,就计算失效日为开始时间+有效周期 From 2eaa683a0c74a622cf98404c6220baab8c552d87 Mon Sep 17 00:00:00 2001 From: HanLong <404402223@qq.com> Date: Thu, 16 Apr 2026 23:14:47 +0800 Subject: [PATCH 15/19] =?UTF-8?q?fix:[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86?= =?UTF-8?q?][PCR007]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lang/en/template/commonTemplate.js | 1 + src/lang/zh/template/commonTemplate.js | 1 + .../business/comps/template/comps/pcr/PCR007.vue | 84 +++++++++++++++++----- 3 files changed, 69 insertions(+), 17 deletions(-) diff --git a/src/lang/en/template/commonTemplate.js b/src/lang/en/template/commonTemplate.js index bb848f9..b9c46ee 100644 --- a/src/lang/en/template/commonTemplate.js +++ b/src/lang/en/template/commonTemplate.js @@ -57,6 +57,7 @@ export default { addBtn: 'Add', deleteBtn: 'Delete', downloadTemplate: 'Download Template', + downloadTableData: 'Download Table', importTemplate: 'Import Template', // 错误提示 diff --git a/src/lang/zh/template/commonTemplate.js b/src/lang/zh/template/commonTemplate.js index 48f7dc5..9f52319 100644 --- a/src/lang/zh/template/commonTemplate.js +++ b/src/lang/zh/template/commonTemplate.js @@ -58,6 +58,7 @@ export default { saveBtn: '保存', deleteBtn: '刪除', downloadTemplate: '下载模板', + downloadTableData: '下载表格数据', importTemplate: '导入模板', // 错误提示 diff --git a/src/views/business/comps/template/comps/pcr/PCR007.vue b/src/views/business/comps/template/comps/pcr/PCR007.vue index 40c32a4..951ec90 100644 --- a/src/views/business/comps/template/comps/pcr/PCR007.vue +++ b/src/views/business/comps/template/comps/pcr/PCR007.vue @@ -21,13 +21,16 @@ $t('template.common.downloadTemplate') }} {{ $t('template.common.importTemplate') - }} + }}
+ {{ + $t('template.common.downloadTableData') }} + + :showOperation="fillType === 'preFill'" fieldItemLabel="template.common.operationSteps" + @clickButton="handleClickButton">