|
|
@ -1,4 +1,4 @@ |
|
|
<!-- PCR分析组织匀浆表-知组织重 --> |
|
|
|
|
|
|
|
|
<!-- PCR分析组织匀浆表-常规 --> |
|
|
<template> |
|
|
<template> |
|
|
<div> |
|
|
<div> |
|
|
<div class="detail-container"> |
|
|
<div class="detail-container"> |
|
|
@ -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 { getPCR009Config } from "../../formConfig/PCRTableConfig.js"; |
|
|
|
|
|
|
|
|
import { getPCR010Config } 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,22 +74,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
|
tableStepColumns() { |
|
|
tableStepColumns() { |
|
|
return getPCR009Config(this); |
|
|
|
|
|
}, |
|
|
|
|
|
// 附件表单配置 |
|
|
|
|
|
getFjFormConfig() { |
|
|
|
|
|
return [ |
|
|
|
|
|
{ |
|
|
|
|
|
type: "attachment", |
|
|
|
|
|
config: { |
|
|
|
|
|
attTitle: { |
|
|
|
|
|
label: 'template.pcr.pcr005.fj', |
|
|
|
|
|
type: "attachment", |
|
|
|
|
|
fillType: "actFill", |
|
|
|
|
|
}, |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
return getPCR010Config(this); |
|
|
}, |
|
|
}, |
|
|
// 配置条件 |
|
|
// 配置条件 |
|
|
storageFormConfig() { |
|
|
storageFormConfig() { |
|
|
@ -170,7 +155,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
type: "cellItem", |
|
|
type: "cellItem", |
|
|
label: 'template.pcr.pcr009.clsj', |
|
|
|
|
|
|
|
|
label: 'template.pcr.pcr010.clsj', |
|
|
config: { |
|
|
config: { |
|
|
startDate: { |
|
|
startDate: { |
|
|
label: 'template.common.startTime', |
|
|
label: 'template.common.startTime', |
|
|
@ -191,7 +176,7 @@ export default { |
|
|
type: 'step', |
|
|
type: 'step', |
|
|
config: { |
|
|
config: { |
|
|
yjry: { |
|
|
yjry: { |
|
|
label: 'template.pcr.pcr009.yjry', |
|
|
|
|
|
|
|
|
label: 'template.pcr.pcr010.yjry', |
|
|
type: 'input', |
|
|
type: 'input', |
|
|
fillType: 'preFill', |
|
|
fillType: 'preFill', |
|
|
subType: 'sj', |
|
|
subType: 'sj', |
|
|
@ -200,20 +185,15 @@ export default { |
|
|
maxlength: 20 |
|
|
maxlength: 20 |
|
|
}, |
|
|
}, |
|
|
bs: { |
|
|
bs: { |
|
|
label: 'template.pcr.pcr009.bs', |
|
|
|
|
|
|
|
|
label: 'template.pcr.pcr010.bs', |
|
|
type: 'inputNumber', |
|
|
type: 'inputNumber', |
|
|
fillType: 'actFill', |
|
|
fillType: 'actFill', |
|
|
maxlength: 20 |
|
|
maxlength: 20 |
|
|
}, |
|
|
}, |
|
|
yjyjry: { |
|
|
|
|
|
label: 'template.pcr.pcr009.yjyjry', |
|
|
|
|
|
type: 'inputNumber', |
|
|
|
|
|
fillType: 'preFill', |
|
|
|
|
|
subType: 'select', |
|
|
|
|
|
subKey: 'yjyjryUnit', |
|
|
|
|
|
subOptions: this.getDictOptions('business_tjdw'), |
|
|
|
|
|
subFillType: 'preFill', |
|
|
|
|
|
maxlength: 20 |
|
|
|
|
|
|
|
|
dztpbh: { |
|
|
|
|
|
label: 'template.pcr.pcr010.dztpbh', |
|
|
|
|
|
type: 'yq', |
|
|
|
|
|
fillType: 'actFill', |
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -235,11 +215,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
downloadExcelTemplate() { |
|
|
downloadExcelTemplate() { |
|
|
this.exportExcel(['样品名称', '组织重'], 'PCR分析组织匀浆表-知组织重导入模板') |
|
|
|
|
|
}, |
|
|
|
|
|
//选择试剂提交事件 |
|
|
|
|
|
onSelectReagentSubmit(code, row) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.exportExcel(['样品名称'], 'PCR分析组织匀浆表-常规导入模板') |
|
|
}, |
|
|
}, |
|
|
showImportExcelDialog() { |
|
|
showImportExcelDialog() { |
|
|
this.$refs.ImportExcelDialog.show() |
|
|
this.$refs.ImportExcelDialog.show() |
|
|
@ -250,7 +226,6 @@ export default { |
|
|
excelData.forEach(item => { |
|
|
excelData.forEach(item => { |
|
|
list.push({ |
|
|
list.push({ |
|
|
ypmc: item[0], |
|
|
ypmc: item[0], |
|
|
zzz: item[1], |
|
|
|
|
|
targetStartSolutionVolumePrecision: 3 |
|
|
targetStartSolutionVolumePrecision: 3 |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
@ -279,10 +254,10 @@ export default { |
|
|
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 zzz = item.zzz * bs |
|
|
|
|
|
|
|
|
let cqzl = item.cqzl * bs |
|
|
// 组织重量 乘以 倍数 )减去 已加匀浆溶液 |
|
|
// 组织重量 乘以 倍数 )减去 已加匀浆溶液 |
|
|
const { total, unit } = subTj([zzz, content.yjyjry], [content.headerSelectFields.zzzUnit, content.yjyjryUnit]) |
|
|
|
|
|
let ysyjrybjrl = volumeConverter.convert(total + unit, content.headerSelectFields.ysyjrybjrlUnit) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let ysyjrybjrl = volumeConverter.convert(cqzl + content.headerSelectFields.cqzlUnit, content.headerSelectFields.ysyjrybjrlUnit) |
|
|
tableList[i].ysyjrybjrl = ysyjrybjrl |
|
|
tableList[i].ysyjrybjrl = ysyjrybjrl |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|