|
|
@ -58,7 +58,7 @@ import { EventBus } from "@/utils/eventBus"; |
|
|
import { volumeConverter } from "@/utils/volConverter";//体积单位转换 |
|
|
import { volumeConverter } from "@/utils/volConverter";//体积单位转换 |
|
|
import { convertConcentration } from "@/utils/conConverter";//浓度单位转换 |
|
|
import { convertConcentration } from "@/utils/conConverter";//浓度单位转换 |
|
|
import SelectReagentDialog from '../../dialog/SelectReagentDialog.vue'; |
|
|
import SelectReagentDialog from '../../dialog/SelectReagentDialog.vue'; |
|
|
import { getPCR010Config } from "../../formConfig/PCRTableConfig.js"; |
|
|
|
|
|
|
|
|
import { getPCR011Config } from "../../formConfig/PCRTableConfig.js"; |
|
|
import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue" |
|
|
import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue" |
|
|
import { addTj, subTj, uniqeResource, uniqeResourceOne, addDecimals } from "@/utils/calUnitTools"; |
|
|
import { addTj, subTj, uniqeResource, uniqeResourceOne, addDecimals } from "@/utils/calUnitTools"; |
|
|
import ImportExcelDialog from '../../dialog/ImportExcelDialog' |
|
|
import ImportExcelDialog from '../../dialog/ImportExcelDialog' |
|
|
@ -74,7 +74,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
|
tableStepColumns() { |
|
|
tableStepColumns() { |
|
|
return getPCR010Config(this); |
|
|
|
|
|
|
|
|
return getPCR011Config(this); |
|
|
}, |
|
|
}, |
|
|
// 配制条件 |
|
|
// 配制条件 |
|
|
storageFormConfig() { |
|
|
storageFormConfig() { |
|
|
@ -129,6 +129,19 @@ export default { |
|
|
type: "input", |
|
|
type: "input", |
|
|
disabled: true, |
|
|
disabled: true, |
|
|
}, |
|
|
}, |
|
|
|
|
|
methodCode: { |
|
|
|
|
|
label: 'template.common.methodCode', |
|
|
|
|
|
type: "input", |
|
|
|
|
|
fillType: "preFill", |
|
|
|
|
|
maxlength: 50 |
|
|
|
|
|
}, |
|
|
|
|
|
versionNum: { |
|
|
|
|
|
label: 'template.common.versionNumber', |
|
|
|
|
|
type: "inputNumber", |
|
|
|
|
|
fillType: "preFill", |
|
|
|
|
|
prepend: "V", |
|
|
|
|
|
maxlength: 50 |
|
|
|
|
|
}, |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
@ -177,7 +190,7 @@ export default { |
|
|
type: 'step', |
|
|
type: 'step', |
|
|
config: { |
|
|
config: { |
|
|
yjry: { |
|
|
yjry: { |
|
|
label: 'template.pcr.pcr010.yjry', |
|
|
|
|
|
|
|
|
label: 'template.pcr.pcr011.sj', |
|
|
type: 'input', |
|
|
type: 'input', |
|
|
fillType: 'preFill', |
|
|
fillType: 'preFill', |
|
|
subType: 'sj', |
|
|
subType: 'sj', |
|
|
@ -185,17 +198,7 @@ export default { |
|
|
subFillType: 'actFill', |
|
|
subFillType: 'actFill', |
|
|
maxlength: 20 |
|
|
maxlength: 20 |
|
|
}, |
|
|
}, |
|
|
bs: { |
|
|
|
|
|
label: 'template.pcr.pcr010.bs', |
|
|
|
|
|
type: 'inputNumber', |
|
|
|
|
|
fillType: 'actFill', |
|
|
|
|
|
maxlength: 20 |
|
|
|
|
|
}, |
|
|
|
|
|
dztpbh: { |
|
|
|
|
|
label: 'template.pcr.pcr010.dztpbh', |
|
|
|
|
|
type: 'yq', |
|
|
|
|
|
fillType: 'actFill', |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
] |
|
|
] |
|
|
@ -216,7 +219,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
downloadExcelTemplate() { |
|
|
downloadExcelTemplate() { |
|
|
this.exportExcel(['样品名称'], 'PCR分析组织匀浆表-常规导入模板') |
|
|
|
|
|
|
|
|
this.exportExcel(['样品名称'], 'PCR分析核酸提取样品处理表导入模板') |
|
|
}, |
|
|
}, |
|
|
showImportExcelDialog() { |
|
|
showImportExcelDialog() { |
|
|
this.$refs.ImportExcelDialog.show() |
|
|
this.$refs.ImportExcelDialog.show() |
|
|
@ -249,18 +252,19 @@ export default { |
|
|
updateTable() { |
|
|
updateTable() { |
|
|
let content = this.getFilledFormData(); |
|
|
let content = this.getFilledFormData(); |
|
|
|
|
|
|
|
|
let bs = content.bs |
|
|
|
|
|
content |
|
|
content |
|
|
if (this.fillType === "actFill") { |
|
|
if (this.fillType === "actFill") { |
|
|
let tableList = content.stepTableFormData |
|
|
let tableList = content.stepTableFormData |
|
|
if (tableList && tableList.length > 0) { |
|
|
if (tableList && tableList.length > 0) { |
|
|
for (let i = 0; i < tableList.length; i++) { |
|
|
for (let i = 0; i < tableList.length; i++) { |
|
|
let item = tableList[i] |
|
|
let item = tableList[i] |
|
|
let cqzl = item.cqzl * bs |
|
|
|
|
|
// 组织重量 乘以 倍数 )减去 已加匀浆溶液 |
|
|
|
|
|
|
|
|
let temp = subTj([item.ysjyztj, item.sjypjytj], [content.headerSelectFields.ysjyztjUnit, content.headerSelectFields.sjypjytjUnit]) |
|
|
|
|
|
|
|
|
|
|
|
let yssjjrtj = temp.total |
|
|
|
|
|
let yssjjrtjUnit = temp.unit |
|
|
|
|
|
yssjjrtj = volumeConverter.convert(yssjjrtj + yssjjrtjUnit, content.headerSelectFields.yssjjrtjUnit) |
|
|
|
|
|
tableList[i].yssjjrtj = yssjjrtj |
|
|
|
|
|
|
|
|
let ysyjrybjrl = volumeConverter.convert(cqzl + content.headerSelectFields.cqzlUnit, content.headerSelectFields.ysyjrybjrlUnit) |
|
|
|
|
|
tableList[i].ysyjrybjrl = ysyjrybjrl |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
this.$refs.stepTableRef.updateDataSource(tableList); |
|
|
this.$refs.stepTableRef.updateDataSource(tableList); |
|
|
|