From 3a5a226804587bbb6d9f48f0d786ad754b12b32a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ZHANGTENG=5C=E5=BC=A0=E8=85=BE?= <894697943@qq.com> Date: Wed, 4 Mar 2026 20:04:12 +0800 Subject: [PATCH 1/7] =?UTF-8?q?fix:[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86]D?= =?UTF-8?q?L001=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/business/comps/template/comps/dl/DL003.vue | 9 ++++----- src/views/business/comps/template/mixins/templateMixin.js | 2 ++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/views/business/comps/template/comps/dl/DL003.vue b/src/views/business/comps/template/comps/dl/DL003.vue index 92c18fc..ba0c5e3 100644 --- a/src/views/business/comps/template/comps/dl/DL003.vue +++ b/src/views/business/comps/template/comps/dl/DL003.vue @@ -374,7 +374,6 @@ export default { }, // 点击按钮 handleClickButton(_item, signData) { - console.log(this.refConf,888) this.$refs.czInfoRef.updateFormData( _item.subKey, moment().format('YYYY/MM/DD HH:mm'), @@ -395,11 +394,11 @@ export default { return await this.validFormFields(refNames) }, getResource() { - const stepResource = this.$refs.yqsyTableRef.getStepResource() + // const stepResource = this.$refs.yqsyTableRef.getStepResource() // 使用的试剂、仪器 - this.resourceTmp = stepResource.sjResource || [] - this.yqResourceTmp = stepResource.yqResource || [] - return this.resourceTmp + // this.resourceTmp = stepResource.sjResource || [] + // this.yqResourceTmp = stepResource.yqResource || [] + // return this.resourceTmp }, onRegentSubmit(e) { const { selectInfo, key, rowIndex } = e diff --git a/src/views/business/comps/template/mixins/templateMixin.js b/src/views/business/comps/template/mixins/templateMixin.js index 39e6d69..755fe10 100644 --- a/src/views/business/comps/template/mixins/templateMixin.js +++ b/src/views/business/comps/template/mixins/templateMixin.js @@ -359,8 +359,10 @@ export default { }, //统一校验form表单是否填写 async validFormFields(refArr = []) { + console.log(refArr,2121) let result = {} const refs = refArr.map((ref) => { + console.log(ref,312312321) let refData = {} if (this.$refs[ref][0]) { refData = this.$refs[ref][0]?.getFormData() || {} From 1b01114ffb96127171313268cb4e7d9ba724b1d0 Mon Sep 17 00:00:00 2001 From: HanLong <404402223@qq.com> Date: Thu, 5 Mar 2026 10:46:44 +0800 Subject: [PATCH 2/7] =?UTF-8?q?fix:[=E8=B5=84=E6=BA=90=E5=BA=93=E7=AE=A1?= =?UTF-8?q?=E7=90=86][=E4=BE=9B=E8=AF=95=E5=93=81=E5=85=A5=E5=BA=93?= =?UTF-8?q?=E8=AE=B0=E5=BD=95]=E8=A7=84=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/comps/template/comps/pcr/PCR010.vue | 371 +++++++++++++++++++++ src/views/business/resource/gsp/comps/rkjl/Bj.vue | 23 +- src/views/business/resource/gsp/comps/rkjl/Xq.vue | 5 +- src/views/business/resource/gsp/comps/rkjl/Xz.vue | 6 +- src/views/business/resource/gsp/comps/rkjlList.vue | 5 +- 5 files changed, 385 insertions(+), 25 deletions(-) create mode 100644 src/views/business/comps/template/comps/pcr/PCR010.vue diff --git a/src/views/business/comps/template/comps/pcr/PCR010.vue b/src/views/business/comps/template/comps/pcr/PCR010.vue new file mode 100644 index 0000000..bafd71e --- /dev/null +++ b/src/views/business/comps/template/comps/pcr/PCR010.vue @@ -0,0 +1,371 @@ + + + + + \ No newline at end of file diff --git a/src/views/business/resource/gsp/comps/rkjl/Bj.vue b/src/views/business/resource/gsp/comps/rkjl/Bj.vue index aecdb21..9a9f254 100644 --- a/src/views/business/resource/gsp/comps/rkjl/Bj.vue +++ b/src/views/business/resource/gsp/comps/rkjl/Bj.vue @@ -3,7 +3,6 @@ -
@@ -20,16 +19,16 @@ - + - + @@ -204,20 +203,10 @@ export default { show(row) { this.reset() info({id: row.id}).then(response => { - this.form.id = response.data.id - this.form.mc = response.data.mc - this.form.ph = response.data.ph - this.form.gg = response.data.gg - this.form.ggdw = response.data.ggdw - this.form.rkl = response.data.rkl - this.form.rkdw = response.data.rkdw - this.form.rksj = response.data.rksj - this.form.cctj = response.data.cctj - this.form.zysx = response.data.zysx - this.form.qmyy = '编辑供试品入库记录' - console.log(this.form) - this.open = true + this.form = response.data + this.form.qmyy = this.$t('page.business.resource.gsp.bjgsprkjl'), + this.open = true }) }, save() { diff --git a/src/views/business/resource/gsp/comps/rkjl/Xq.vue b/src/views/business/resource/gsp/comps/rkjl/Xq.vue index a4b1568..c9f0c9b 100644 --- a/src/views/business/resource/gsp/comps/rkjl/Xq.vue +++ b/src/views/business/resource/gsp/comps/rkjl/Xq.vue @@ -25,15 +25,14 @@
-
{{ $t('page.business.resource.gsp.ph') }}
+
{{ $t('page.business.resource.gsp.ph') }}
-
{{ $t('page.business.resource.gsp.gg') }}
+
{{ $t('page.business.resource.gsp.gg') }}
-
diff --git a/src/views/business/resource/gsp/comps/rkjl/Xz.vue b/src/views/business/resource/gsp/comps/rkjl/Xz.vue index 0f4eb5c..fbca554 100644 --- a/src/views/business/resource/gsp/comps/rkjl/Xz.vue +++ b/src/views/business/resource/gsp/comps/rkjl/Xz.vue @@ -20,16 +20,16 @@ - + - + diff --git a/src/views/business/resource/gsp/comps/rkjlList.vue b/src/views/business/resource/gsp/comps/rkjlList.vue index 6044664..7d7e69f 100644 --- a/src/views/business/resource/gsp/comps/rkjlList.vue +++ b/src/views/business/resource/gsp/comps/rkjlList.vue @@ -92,7 +92,8 @@ :show-overflow-tooltip="true" /> ' + ' ' + - value.gg + value.ggdw + + value.gg + '' + ' ' + value.rksj + From 438d5395765d8b5053435175320afc6c1d09c450 Mon Sep 17 00:00:00 2001 From: "15881625488@163.com" <15881625488@163.com> Date: Thu, 5 Mar 2026 11:12:16 +0800 Subject: [PATCH 3/7] =?UTF-8?q?fix:[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86]G?= =?UTF-8?q?PS002?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/business/comps/template/comps/gsp/GSP002.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/views/business/comps/template/comps/gsp/GSP002.vue b/src/views/business/comps/template/comps/gsp/GSP002.vue index 6ce5379..925098f 100644 --- a/src/views/business/comps/template/comps/gsp/GSP002.vue +++ b/src/views/business/comps/template/comps/gsp/GSP002.vue @@ -269,7 +269,7 @@ export default { headerSelectKey: 'actSolutionConcentrationUnit', fillType: 'preFill', headerOptions: this.getDictOptions('business_nddw'), - bodyDisabled: true, + bodyDisabled: this.fillType !== 'actFill', bodyType: 'inputNumber', bodySubType: 'inputNumber', bodySubKey: 'actSolutionConcentrationPrecision', @@ -302,7 +302,7 @@ export default { headerSelectKey: 'actSolutionVolumeUnit', fillType: 'preFill', headerOptions: this.getDictOptions('business_tjdw'), - bodyDisabled: true, + bodyDisabled: this.fillType !== 'actFill', bodyType: 'inputNumber', bodySubType: 'inputNumber', bodySubKey: 'actSolutionVolumePrecision', @@ -374,7 +374,7 @@ export default { showWidth: 120, bodyType: 'inputNumber', bodyFillType: 'actFill', - bodyDisabled: true, + bodyDisabled: this.fillType !== 'actFill', compareTo: 'targetStartSolutionConcentration', //比较哪个字段 }, { @@ -383,7 +383,7 @@ export default { headerSelectKey: 'targetStartSolutionVolumeUnit', fillType: 'preFill', headerOptions: this.getDictOptions('business_tjdw'), - width: 280, + width: 360, showWidth: 120, bodyType: 'inputNumber', bodyFillType: 'preFill', @@ -394,8 +394,7 @@ export default { bodyPrecisionKey: 'targetStartSolutionVolumePrecision', bodyMaxlength: 10, bodySubPlaceholder: 'template.common.xswsPlaceholder', - bodyDisabled: true, - showBodySub: true, + bodyDisabled: this.fillType !== 'preFill', showBodySub: this.fillType === 'preFill', headerSelectTo: "actStartSolutionVolumeUnit", }, @@ -421,7 +420,7 @@ export default { headerSelectKey: 'preDiluentVolumeUnit', fillType: 'preFill', headerOptions: this.getDictOptions('business_tjdw'), - width: 280, + width: 340, showWidth: 120, bodyType: 'inputNumber', bodyFillType: 'preFill', @@ -431,7 +430,7 @@ export default { bodyMaxlength: 10, bodyPrecisionKey: 'targetDiluentVolumePrecision', bodySubPlaceholder: 'template.common.xswsPlaceholder', - bodyDisabled: true, + bodyDisabled: this.fillType !== 'preFill', showBodySub: this.fillType === 'preFill', headerSelectTo: "actDiluentVolumeUnit", }, @@ -725,6 +724,7 @@ export default { const { selectInfo, key } = data; const { row } = selectInfo; if (key) { + debugger const packageRef = this.$refs[`paralleStepFormPackageRef_${rowIndex}`][0]; if (key === "subStartSolution") { packageRef.updateFormData("targetAcSolution", row.nd); From c9910a1990af77a86bb294e4a00ca794eb26e402 Mon Sep 17 00:00:00 2001 From: "15881625488@163.com" <15881625488@163.com> Date: Thu, 5 Mar 2026 13:43:31 +0800 Subject: [PATCH 4/7] =?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=81002?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/comps/template/comps/gsp/GSP002.vue | 112 ++++++--------------- 1 file changed, 29 insertions(+), 83 deletions(-) diff --git a/src/views/business/comps/template/comps/gsp/GSP002.vue b/src/views/business/comps/template/comps/gsp/GSP002.vue index 925098f..3f79e3d 100644 --- a/src/views/business/comps/template/comps/gsp/GSP002.vue +++ b/src/views/business/comps/template/comps/gsp/GSP002.vue @@ -8,18 +8,18 @@
- - + + - - - - - - - + + + + + +
@@ -624,25 +624,7 @@ export default { showParalleConfig: true }); }, - //新增阶梯配制 - handleAddLadder() { - // 初始化阶梯配制配置列表 - if (!this.formData.ladderConfigs) { - this.$set(this.formData, 'ladderConfigs', []); - } - - // 添加新的阶梯配制配置 - this.formData.ladderConfigs.push({ - ladderStepData: [], - ladderTableFormData: [], - showLadderConfig: true - }); - }, - // 删除阶梯配制配置 - deleteLadderConfig(index) { - this.formData.ladderConfigs.splice(index, 1); - }, - // 删除平行配制配置 + //删除平行配制配置 deleteParalleConfig(index) { this.formData.paralleConfigs.splice(index, 1); }, @@ -661,11 +643,9 @@ export default { tableRef[0].deleteRow(rowIndex); } }, - // 表格失去焦点事件 onHandleTableBlur(type, configIndex, e) { const { colKey = "", item, rowIndex } = e; - debugger if (colKey === "targetStartSolutionConcentration" || colKey === "targetSolutionVolume" || colKey === "targetSolutionConcentration" || colKey === "targetStartSolutionVolumePrecision" || colKey === "targetDiluentVolumePrecision") { if (type === "paralle") { const volumne = item.targetStartSolutionConcentration || 0; @@ -677,7 +657,15 @@ export default { if (type === "paralle") { const targetAcSolution = item.targetAcSolution || 0;//获取实际起始溶液浓度 if (targetAcSolution) { - const volResult = this.updateSjmbrynd(item, targetAcSolution); + const tableRef = this.$refs[`paralleStepTableRef_${configIndex}`][0]; + //实际起始溶液体积和实际目标溶液体积 + const formData = tableRef.getFilledFormData(); + const headerSelectFields = formData.headerSelectFields; + const p = { + targetStartSolutionUnit: rowData.targetStartSolutionConcentrationPrecision, + headerSelectFields + } + const volResult = this.updateSjmbrynd(item, targetAcSolution,p); if (!volResult) { return } @@ -696,14 +684,21 @@ export default { callback.prevent('浓度单位与预制不符,请重新选择或申请废止并重新预制。'); } }, - //平行配置 table选择试剂确定弹窗 + // table选择试剂确定弹窗 onTableRegentSubmit(type, configIndex, data) { const { selectInfo, rowIndex, key, rowData } = data; const { row, selectedId } = selectInfo; if (key === "actStartSolutionCode") {//实际原始溶液编号点击事件 const tableRef = this.$refs[`paralleStepTableRef_${configIndex}`][0]; + //实际起始溶液体积和实际目标溶液体积 + const formData = tableRef.getFilledFormData(); + const headerSelectFields = formData.headerSelectFields; + const p = { + targetStartSolutionUnit: rowData.targetStartSolutionConcentrationPrecision, + headerSelectFields + } if (tableRef) { - const volResult = this.updateSjmbrynd(rowData, row.nd); + const volResult = this.updateSjmbrynd(rowData, row.nd, p); //第一次选择溶液的时候,可能其他值没填入,就需要先把浓度和code一起更新 tableRef.updateDataSourceByRowIndex(rowIndex, { actStartSolutionCode: selectedId, @@ -719,54 +714,6 @@ export default { } } }, - //选择试剂提交事件 - onRegentSubmit(type, rowIndex, data) { - const { selectInfo, key } = data; - const { row } = selectInfo; - if (key) { - debugger - const packageRef = this.$refs[`paralleStepFormPackageRef_${rowIndex}`][0]; - if (key === "subStartSolution") { - packageRef.updateFormData("targetAcSolution", row.nd); - packageRef.onValueChangeCompareTo("targetAcSolution", row.nd, "targetStartSolution"); - this.updateTableNd(row, rowIndex); - } - } - }, - updateRecord() { - this.$nextTick(() => { - EventBus.$emit('onModifyRecord', { - type: "fieldChanged", - newRecord: null, - resourceList: null, - },) - }) - }, - //选择实际的时候更新table的浓度 - updateTableNd(row, rowIndex) { - const { stepTableFormData = [] } = this.$refs[`ladderStepTableRef_${rowIndex}`][0].getFilledFormData(); - const newData = JSON.parse(JSON.stringify(stepTableFormData)); - // 遍历数据,按要求更新起始溶液编号 - newData.forEach((item, index) => { - let initNd = row.nd;//起始浓度是上一条记录的实际目标溶液浓度 - if (index === 0) { - item.startSolutionCode = row.bh; - } else { - item.startSolutionCode = newData[index - 1].targetSolutionCode + newData[index - 1].subTargetSolutionCode; - initNd = newData[i - 1].actSolutionConcentration; - } - const volResult = this.updateSjmbrynd(item, initNd); - if (!volResult) { - return - } - - item.actSolutionVolume = volResult.actVol; - item.actSolutionConcentration = volResult.actNd; - // 更新stepTableRef组件的数据 - }) - this.$refs[`ladderStepTableRef_${rowIndex}`][0].updateDataSource(newData); - - }, //只做校验 async validFields() { // 构建需要验证的引用数组 @@ -792,7 +739,6 @@ export default { const paralleFormData = this.$refs[`paralleStepFormPackageRef_${i}`][0].getFilledFormData(); const paralleTableFormData = this.$refs[`paralleStepTableRef_${i}`][0].getFilledFormData(); const paralleStepData = this.$refs[`paralleStepRef_${i}`][0].getFilledFormData(); - paralleConfigsData.push({ ...paralleFormData, ...paralleTableFormData, @@ -838,7 +784,7 @@ export default { //生成resource let tmpResource = [] if (this.fillType === "actFill") { - //平行配置 + // if (content.paralleConfigs && content.paralleConfigs.length > 0) { for (let i = 0; i < content.paralleConfigs.length; i++) { let paralleConfigs = content.paralleConfigs[i] From 6698971b5532bf446e9e681e5ccc83228af4026f Mon Sep 17 00:00:00 2001 From: "15881625488@163.com" <15881625488@163.com> Date: Thu, 5 Mar 2026 14:38:46 +0800 Subject: [PATCH 5/7] =?UTF-8?q?fix:[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86]G?= =?UTF-8?q?SP002?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/comps/template/comps/gsp/GSP002.vue | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/views/business/comps/template/comps/gsp/GSP002.vue b/src/views/business/comps/template/comps/gsp/GSP002.vue index 3f79e3d..a0f8c10 100644 --- a/src/views/business/comps/template/comps/gsp/GSP002.vue +++ b/src/views/business/comps/template/comps/gsp/GSP002.vue @@ -662,7 +662,7 @@ export default { const formData = tableRef.getFilledFormData(); const headerSelectFields = formData.headerSelectFields; const p = { - targetStartSolutionUnit: rowData.targetStartSolutionConcentrationPrecision, + targetStartSolutionUnit: formData.stepTableFormData[configIndex].targetStartSolutionConcentrationPrecision, headerSelectFields } const volResult = this.updateSjmbrynd(item, targetAcSolution,p); @@ -855,6 +855,24 @@ export default { yxzq: null, yxzqdw: null, }) + //原始溶液 + tmpResource.push({ + mc: null, + bh: stepTableFormData[j].actStartSolutionCode, + ph: null, + nd: null, + nddw: null, + ndz: null, + ly: null, + sxrq: null, + kc: null, + kcdw: null, + type: 1, + syl: stepTableFormData[j].actStartSolutionVolume, + syldw: paralleConfigs.headerSelectFields.actStartSolutionVolumeUnit, + yxzq: null, + yxzqdw: null, + }) } } } From 734e974e22b7f0be45f7fa459ef06dbb766cf333 Mon Sep 17 00:00:00 2001 From: "15881625488@163.com" <15881625488@163.com> Date: Thu, 5 Mar 2026 15:12:20 +0800 Subject: [PATCH 6/7] =?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 --- .../business/comps/template/comps/gsp/GSP003.vue | 1 + .../business/comps/template/comps/gsp/GSP004.vue | 148 ++++++++------------- 2 files changed, 55 insertions(+), 94 deletions(-) diff --git a/src/views/business/comps/template/comps/gsp/GSP003.vue b/src/views/business/comps/template/comps/gsp/GSP003.vue index 2c1e59b..97a4284 100644 --- a/src/views/business/comps/template/comps/gsp/GSP003.vue +++ b/src/views/business/comps/template/comps/gsp/GSP003.vue @@ -12,6 +12,7 @@ + +