diff --git a/src/lang/en/template/pcr.js b/src/lang/en/template/pcr.js index ff5c6ca..e951a64 100644 --- a/src/lang/en/template/pcr.js +++ b/src/lang/en/template/pcr.js @@ -65,6 +65,16 @@ export default { ypznd: '样品终浓度', fj: 'Attachment', }, + pcr009: { + clsj: 'Work Time', + yjry: '匀浆溶液', + bs: '倍数', + yjyjry: '已加匀浆溶液', + ypmc: '样品名称', + zzz: '组织重', + ysyjrybjrl: '预设匀浆溶液补加入量', + sjyjrybjrl: '实际匀浆溶液补加入量', + }, // 生物样品分析方法学样品制备表-准确度与精密度 sp008: { title: diff --git a/src/lang/zh/template/pcr.js b/src/lang/zh/template/pcr.js index 919028d..df2d3a7 100644 --- a/src/lang/zh/template/pcr.js +++ b/src/lang/zh/template/pcr.js @@ -64,6 +64,16 @@ export default { ypznd: '样品终浓度', fj: 'Attachment', }, + pcr009: { + clsj: '处理时间', + yjry: '匀浆溶液', + bs: '倍数', + yjyjry: '已加匀浆溶液', + ypmc: '样品名称', + zzz: '组织重', + ysyjrybjrl: '预设匀浆溶液补加入量', + sjyjrybjrl: '实际匀浆溶液补加入量', + }, // 生物样品分析方法学样品制备表-Recovery sp009: { title: '生物样品分析方法学样品制备表(Recovery)', diff --git a/src/views/business/comps/template/TemplateTable.vue b/src/views/business/comps/template/TemplateTable.vue index dad03e8..813a95b 100644 --- a/src/views/business/comps/template/TemplateTable.vue +++ b/src/views/business/comps/template/TemplateTable.vue @@ -53,6 +53,7 @@ import PCR003 from "./comps/pcr/PCR003.vue"; import PCR004 from "./comps/pcr/PCR004.vue"; import PCR005 from "./comps/pcr/PCR005.vue"; import PCR007 from "./comps/pcr/PCR007.vue"; +import PCR009 from "./comps/pcr/PCR009.vue"; //LBA // LBA001-使用SP001 @@ -115,7 +116,7 @@ export default { //色谱 SP001, SP003, SP00456,SP007, SP008, SP009,SP0019,SP0020, // PCR - PCR002, PCR003, PCR004, PCR005,PCR007, + PCR002, PCR003, PCR004, PCR005,PCR007,PCR009, //LBA LBA002, LBA003, @@ -234,6 +235,7 @@ export default { 'PCR004': 'PCR004', 'PCR005': 'PCR005', 'PCR007': 'PCR007', + 'PCR009': 'PCR009', //LBA 'LBA001': 'SP001', 'LBA002': 'LBA002', diff --git a/src/views/business/comps/template/comps/pcr/PCR005.vue b/src/views/business/comps/template/comps/pcr/PCR005.vue index dc9e66c..a06f2d5 100644 --- a/src/views/business/comps/template/comps/pcr/PCR005.vue +++ b/src/views/business/comps/template/comps/pcr/PCR005.vue @@ -260,6 +260,9 @@ export default { }) this.$refs.stepTableRef.addRows(list) this.$refs.ImportExcelDialog.cancel() + setTimeout(() => { + this.justUpdateFilledFormData(); + }, 100); this.onHandleTableBlur() }, // 失去焦点,计算 diff --git a/src/views/business/comps/template/comps/pcr/PCR007.vue b/src/views/business/comps/template/comps/pcr/PCR007.vue index dcfbadb..19bb5ab 100644 --- a/src/views/business/comps/template/comps/pcr/PCR007.vue +++ b/src/views/business/comps/template/comps/pcr/PCR007.vue @@ -209,11 +209,14 @@ export default { excelData.forEach(item => { list.push({ ypmc: item[0], - ypcsnd: item[1], + cyqypgsjyjtjtj: item[1], }) }) this.$refs.stepTableRef.addRows(list) this.$refs.ImportExcelDialog.cancel() + setTimeout(() => { + this.justUpdateFilledFormData(); + }, 100); this.onHandleTableBlur() }, // 失去焦点,计算 diff --git a/src/views/business/comps/template/comps/pcr/PCR009.vue b/src/views/business/comps/template/comps/pcr/PCR009.vue new file mode 100644 index 0000000..bafd71e --- /dev/null +++ b/src/views/business/comps/template/comps/pcr/PCR009.vue @@ -0,0 +1,371 @@ + + + + + {{ formData.bdmc }} + + + + + + + + + + + + {{ + $t('template.common.downloadTemplate') }} + {{ + $t('template.common.importTemplate') + }} + + + + + deleteRow(rowIndex)"> + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/business/comps/template/dialog/ImportExcelDialog.vue b/src/views/business/comps/template/dialog/ImportExcelDialog.vue index e1029fa..64cc34b 100644 --- a/src/views/business/comps/template/dialog/ImportExcelDialog.vue +++ b/src/views/business/comps/template/dialog/ImportExcelDialog.vue @@ -93,7 +93,7 @@ export default { const jsonData = XLSX.utils.sheet_to_json(worksheet, { header: 1 }) this.excelData = jsonData this.$emit('onLoadData', this.excelData) - this.$refs.fileUpload.handleRemove(file) + this.$refs.upload.handleRemove(file) } catch (error) { console.error('解析失败:', error) this.$modal.msgError('文件解析失败,请检查格式', error) diff --git a/src/views/business/comps/template/formConfig/PCRTableConfig.js b/src/views/business/comps/template/formConfig/PCRTableConfig.js index cbaacc9..496f153 100644 --- a/src/views/business/comps/template/formConfig/PCRTableConfig.js +++ b/src/views/business/comps/template/formConfig/PCRTableConfig.js @@ -756,4 +756,65 @@ export const getPCR007Config = ($this) => { bodySubPlaceholder: 'template.common.xswsPlaceholder', } ] +} + +// PCR009 +export const getPCR009Config = ($this) => { + return [ + { + label: 'template.pcr.pcr009.ypmc', + prop: 'ypmc', + width: 280, + bodyType: 'input', + fillType: 'preFill', + otherCode: 'bhOther', + bodyFillType: 'preFill', + }, + { + label: 'template.pcr.pcr009.zzz', + prop: 'zzz', + width: 280, + showWidth: 180, + fillType: 'preFill', + headerSelectKey: 'zzzUnit', + headerOptions: $this.getDictOptions('business_tjdw'), + bodyType: 'inputNumber', + bodyFillType: 'preFill', + bodyMaxlength: 10, + }, + { + label: 'template.pcr.pcr009.ysyjrybjrl', + prop: 'ysyjrybjrl', + width: 280, + showWidth: 180, + fillType: 'preFill', + headerSelectKey: 'ysyjrybjrlUnit', + headerOptions: $this.getDictOptions('business_tjdw'), + bodyType: 'inputNumber', + bodyFillType: 'actFill', + bodyMaxlength: 10, + bodySubType: 'inputNumber', + bodySubKey: 'targetStartSolutionVolumePrecision', + bodySubFillType: 'preFill', + showBodySub: $this.fillType === 'preFill', + bodyPrecisionKey: 'targetStartSolutionVolumePrecision', + bodyMaxlength: 10, + bodyDisabled: $this.fillType === 'preFill', + bodySubPlaceholder: 'template.common.xswsPlaceholder', + headerSelectTo:"actStartSolutionVolumeUnit", + }, + { + label: 'template.pcr.pcr009.sjyjrybjrl', + prop: 'sjyjrybjrl', + width: 280, + showWidth: 180, + fillType: 'preFill', + headerSelectKey: 'sjyjrybjrlUnit', + headerOptions: $this.getDictOptions('business_tjdw'), + bodyType: 'inputNumber', + bodyFillType: 'actFill', + copyFrom: 'ysyjrybjrl', //复制哪个字段 + bodyMaxlength: 10, + } + ] } \ No newline at end of file diff --git a/src/views/business/comps/template/mixins/templateMixin.js b/src/views/business/comps/template/mixins/templateMixin.js index 52f8d54..1e286b9 100644 --- a/src/views/business/comps/template/mixins/templateMixin.js +++ b/src/views/business/comps/template/mixins/templateMixin.js @@ -14,6 +14,7 @@ export default { 'business_cctj', 'business_nddw', 'business_tjdw', + 'business_zldw', 'business_yxqdw', 'business_rqcz',