Browse Source

feat:[模板管理][PCR005]

lkf
HanLong 1 month ago
parent
commit
f0bad1d2d2
4 changed files with 131 additions and 3 deletions
  1. +8
    -0
      src/lang/en/template/pcr.js
  2. +8
    -0
      src/lang/zh/template/pcr.js
  3. +3
    -3
      src/views/business/comps/template/comps/pcr/PCR005.vue
  4. +112
    -0
      src/views/business/comps/template/formConfig/PCRTableConfig.js

+ 8
- 0
src/lang/en/template/pcr.js View File

@ -37,6 +37,14 @@ export default {
// PCR分析样品处理表
pcr005: {
clpbh: 'Analysis Batch Number',
ypmc: '样品名称',
ypcsnd: '样品初始浓度',
sxbs: '稀释倍数',
ysypxytj: '预设样品吸样体积',
sjypxytj: '实际样品吸样体积',
ysxsyxytj: '预设稀释液吸样体积',
sjxsyxytj: '实际稀释液吸样体积',
ypznd: '样品终浓度',
},
// 生物样品分析方法学样品制备表-准确度与精密度
sp008: {

+ 8
- 0
src/lang/zh/template/pcr.js View File

@ -36,6 +36,14 @@ export default {
// PCR分析样品处理表
pcr005: {
clpbh: '处理批编号',
ypmc: '样品名称',
ypcsnd: '样品初始浓度',
sxbs: '稀释倍数',
ysypxytj: '预设样品吸样体积',
sjypxytj: '实际样品吸样体积',
ysxsyxytj: '预设稀释液吸样体积',
sjxsyxytj: '实际稀释液吸样体积',
ypznd: '样品终浓度',
},
// 生物样品分析方法学样品制备表-Recovery
sp009: {

+ 3
- 3
src/views/business/comps/template/comps/pcr/PCR005.vue View File

@ -20,7 +20,7 @@
<el-button type="primary" @click="exportExcel(['a', 'b', 'c', 'd'])">{{ $t('template.common.downloadTemplate') }}</el-button>
<el-button type="primary" @click="showImportExcelDialog">{{ $t('template.common.importTemplate') }}</el-button>
<CustomTable @blur="onHandleTableBlur" :ref="`stepTableRef`" :columns="tableStepColumns"
:formData="formData" :prefixKey="`table`" @clickable="handleClickable"
:formData="formData" :prefixKey="`table`"
fieldItemLabel="template.common.operationSteps">
<template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaion :fillType="fillType" :row="row" :rowIndex="rowIndex" :columns="columns"
@ -50,7 +50,7 @@ import CustomTable from '@/components/Template/CustomTable.vue';
import { getLatestSnArr } from '@/api/template';
import { EventBus } from "@/utils/eventBus";
import SelectReagentDialog from '../../dialog/SelectReagentDialog.vue';
import { getLadderColumnsConfig } from "../../formConfig/PCRTableConfig.js";
import { getPCR005Config } from "../../formConfig/PCRTableConfig.js";
import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue"
import { addTj, uniqeResource, uniqeResourceOne, addDecimals } from "@/utils/calUnitTools";
@ -66,7 +66,7 @@ export default {
},
computed: {
tableStepColumns() {
return getLadderColumnsConfig(this, 'business_pcr_fxzkypzbb');
return getPCR005Config(this);
},
//
storageFormConfig() {

+ 112
- 0
src/views/business/comps/template/formConfig/PCRTableConfig.js View File

@ -579,3 +579,115 @@ export const getParalleStepFormConfig = ($this) => {
}
]
}
// PCR005
export const getPCR005Config = ($this) => {
return [
{
label: 'template.pcr.pcr005.ypmc',
prop: 'ypmc',
width: 280,
bodyType: 'input',
fillType: 'preFill',
otherCode: 'bhOther',
bodyFillType: 'preFill',
},
{
label: 'template.pcr.pcr005.ypcsnd',
prop: 'ypcsnd',
width: 280,
showWidth: 180,
fillType: 'preFill',
headerSelectKey: 'ypcsndUnit',
headerOptions: $this.getDictOptions('business_nddw'),
bodyType: 'inputNumber',
bodyFillType: 'preFill',
bodyMaxlength: 10,
},
{
label: 'template.pcr.pcr005.sxbs',
prop: 'sxbs',
width: 280,
showWidth: 180,
fillType: 'preFill',
bodyType: 'inputNumber',
bodyFillType: 'preFill',
bodyMaxlength: 10,
},
{
label: 'template.pcr.pcr005.ysypxytj',
prop: 'ysypxytj',
width: 280,
showWidth: 180,
fillType: 'preFill',
headerSelectKey: 'ysypxytjUnit',
headerOptions: $this.getDictOptions('business_tjdw'),
bodyType: 'inputNumber',
bodyFillType: 'preFill',
bodyMaxlength: 10,
},
{
label: 'template.pcr.pcr005.sjypxytj',
prop: 'sjypxytj',
width: 280,
showWidth: 180,
fillType: 'preFill',
headerSelectKey: 'sjypxytjUnit',
headerOptions: $this.getDictOptions('business_tjdw'),
bodyType: 'inputNumber',
bodyFillType: 'actFill',
bodyMaxlength: 10,
},
{
label: 'template.pcr.pcr005.ysxsyxytj',
prop: 'ysxsyxytj',
width: 280,
showWidth: 180,
fillType: 'preFill',
headerSelectKey: 'ysxsyxytjUnit',
headerOptions: $this.getDictOptions('business_tjdw'),
bodyType: 'inputNumber',
bodyFillType: 'preFill',
bodyMaxlength: 10,
bodySubType: 'inputNumber',
bodySubKey: 'actSolutionVolumePrecision',
bodyFillType: 'preFill',
bodySubFillType: 'preFill',
showBodySub: $this.fillType === 'preFill',
bodyPrecisionKey: 0,
bodyMaxlength: 10,
bodySubPlaceholder: 'template.common.xswsPlaceholder',
},
{
label: 'template.pcr.pcr005.sjxsyxytj',
prop: 'sjxsyxytj',
width: 280,
showWidth: 180,
fillType: 'preFill',
headerSelectKey: 'sjxsyxytjUnit',
headerOptions: $this.getDictOptions('business_tjdw'),
bodyType: 'inputNumber',
bodyFillType: 'actFill',
bodyMaxlength: 10,
},
{
label: 'template.pcr.pcr005.ypznd',
prop: 'ypznd',
width: 280,
showWidth: 180,
fillType: 'preFill',
headerSelectKey: 'ypzndUnit',
headerOptions: $this.getDictOptions('business_nddw'),
bodyType: 'inputNumber',
bodyFillType: 'preFill',
bodyMaxlength: 10,
bodySubType: 'inputNumber',
bodySubKey: 'targetDiluentVolumePrecision',
bodyPrecisionKey: 'targetDiluentVolumePrecision',
bodySubFillType: 'preFill',
showBodySub: $this.fillType === 'preFill',
bodyMaxlength: 10,
bodySubPlaceholder: 'template.common.xswsPlaceholder',
},
]
}

Loading…
Cancel
Save