diff --git a/src/lang/en/template/pcr.js b/src/lang/en/template/pcr.js index e5ae109..ff5c6ca 100644 --- a/src/lang/en/template/pcr.js +++ b/src/lang/en/template/pcr.js @@ -49,6 +49,11 @@ export default { }, pcr007: { dztpbh: '电子天平编号', + ypmc: '样品名称', + cyqypgsjyjtjtj: '采样前样品管试剂预计添加体积', + cyqypgsjsjtjtj: '采样前样品管试剂实际添加体积', + cygzl: '采集管重量', + czsj: '称重时间', clpbh: 'Analysis Batch Number', ypmc: '样品名称', ypcsnd: '样品初始浓度', diff --git a/src/lang/zh/template/pcr.js b/src/lang/zh/template/pcr.js index 80f8fe1..919028d 100644 --- a/src/lang/zh/template/pcr.js +++ b/src/lang/zh/template/pcr.js @@ -48,6 +48,11 @@ export default { }, pcr007: { dztpbh: '电子天平编号', + ypmc: '样品名称', + cyqypgsjyjtjtj: '采样前样品管试剂预计添加体积', + cyqypgsjsjtjtj: '采样前样品管试剂实际添加体积', + cygzl: '采集管重量', + czsj: '称重时间', clpbh: 'Analysis Batch Number', ypmc: '样品名称', ypcsnd: '样品初始浓度', diff --git a/src/utils/index.js b/src/utils/index.js index 0212fd7..b80851c 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -441,7 +441,7 @@ export function isValueEmpty(value) { if (Array.isArray(value) && value.length === 0) { return true } - if (Object.keys(value).length === 0) { + if (Object.keys(value).length === 0 && typeof value=='object') { return true; } return false diff --git a/src/views/business/comps/template/comps/pcr/PCR005.vue b/src/views/business/comps/template/comps/pcr/PCR005.vue index 6a23326..dc9e66c 100644 --- a/src/views/business/comps/template/comps/pcr/PCR005.vue +++ b/src/views/business/comps/template/comps/pcr/PCR005.vue @@ -26,10 +26,11 @@ @@ -43,8 +44,6 @@ - - @@ -177,11 +176,11 @@ export default { type: "cellItem", label: 'template.pcr.pcr005.clpbh', config: { - act: { + clpbh: { label: '', type: "input", fillType: "actFill", - otherCode: "preOther", + otherCode: "clpbh", } } }, @@ -237,7 +236,7 @@ export default { }, methods: { downloadExcelTemplate() { - this.exportExcel(['样品名称', '样品初始浓度', '稀释倍数', '预设样品吸样体积']) + this.exportExcel(['样品名称', '样品初始浓度', '稀释倍数', '预设样品吸样体积'], 'PCR分析样品处理表导入模板') }, //选择试剂提交事件 onSelectReagentSubmit(code, row) { @@ -310,15 +309,15 @@ export default { }, //获取已填写的表单数据 getFilledFormData() { - return this.getFilledFormDataByRefs(["baseInfoRef", "stepFormPackageRef", "stepTableRef", "stepRef", "remarkRef"]) + return this.getFilledFormDataByRefs(["baseInfoRef", "stepFormPackageRef", "stepTableRef", "stepRef", "fjRef", "remarkRef"]) }, async getFormData() { - let content = await this.validFormFields(["baseInfoRef", "stepFormPackageRef", "stepTableRef", "stepRef", "remarkRef"]); + let content = await this.validFormFields(["baseInfoRef", "stepFormPackageRef", "stepTableRef", "stepRef", "fjRef", "remarkRef"]); return content; }, getResource() { let content = this.getFilledFormData(); - + console.log(content) //生成resource let tmpResource = [] if (this.fillType === "actFill") { @@ -333,7 +332,7 @@ export default { tmpResource.push({ mc: null, - bh: item.startSolutionCode, + bh: content.subSolution, ph: null, ndz: null, nd: null, @@ -342,10 +341,10 @@ export default { sxrq: null, kc: null, kcdw: null, - syl: item.actStartSolutionVolume, + syl: item.ysxsyxytj, type: 1, elnType: this.product, - syldw: content.headerSelectFields.actStartSolutionVolumeUnit, + syldw: content.headerSelectFields.sjxsyxytjUnit, yxzq: null, yxzqdw: null, }) diff --git a/src/views/business/comps/template/comps/pcr/PCR007.vue b/src/views/business/comps/template/comps/pcr/PCR007.vue index 8d8a7f5..dcfbadb 100644 --- a/src/views/business/comps/template/comps/pcr/PCR007.vue +++ b/src/views/business/comps/template/comps/pcr/PCR007.vue @@ -26,6 +26,7 @@