|
|
|
@ -16,44 +16,16 @@ |
|
|
|
:formData="formData" |
|
|
|
/> |
|
|
|
|
|
|
|
<LineLabel label="template.dl.dl010.sysj" /> |
|
|
|
<CustomTable |
|
|
|
<TableList |
|
|
|
label="template.common.reagentInfo" |
|
|
|
:columns="sysjColumns" |
|
|
|
:ref="refConf.sysj" |
|
|
|
:showOperation="fillType === 'actFill'" |
|
|
|
:showAddRow="fillType === 'actFill'" |
|
|
|
:formData="formData" |
|
|
|
:prefixKey="`sysjTable`" |
|
|
|
> |
|
|
|
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> |
|
|
|
<TableOpertaionDelete |
|
|
|
:row="row" |
|
|
|
:rowIndex="rowIndex" |
|
|
|
:columns="columns" |
|
|
|
@deleteRow="() => deleteTableRow(rowIndex, 'sysjTableRef')" |
|
|
|
></TableOpertaionDelete> |
|
|
|
</template> |
|
|
|
</CustomTable> |
|
|
|
|
|
|
|
<LineLabel label="template.dl.dl007.yqsyxx" /> |
|
|
|
<CustomTable |
|
|
|
:columns="yqsyColumns" |
|
|
|
:ref="refConf.yqsy" |
|
|
|
@onRegentSubmit="(e) => onRegentSubmit(e)" |
|
|
|
:showOperation="fillType === 'actFill'" |
|
|
|
:showAddRow="fillType === 'actFill'" |
|
|
|
:formData="formData" |
|
|
|
:prefixKey="`yqsyTable`" |
|
|
|
> |
|
|
|
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> |
|
|
|
<TableOpertaionDelete |
|
|
|
:row="row" |
|
|
|
:rowIndex="rowIndex" |
|
|
|
:columns="columns" |
|
|
|
@deleteRow="() => deleteTableRow(rowIndex, 'yqsyTableRef')" |
|
|
|
></TableOpertaionDelete> |
|
|
|
</template> |
|
|
|
</CustomTable> |
|
|
|
:dataSource="resource" |
|
|
|
/> |
|
|
|
<TableList |
|
|
|
label="template.common.instrumentInfo" |
|
|
|
:columns="yqColumns" |
|
|
|
:dataSource="yqResource" |
|
|
|
/> |
|
|
|
|
|
|
|
<LineLabel label="template.dl.dl010.sjxx" /> |
|
|
|
<div class="template-form-item"> |
|
|
|
@ -130,8 +102,6 @@ import ImportExcelDialog from '../../dialog/ImportExcelDialog' |
|
|
|
|
|
|
|
const refConf = { |
|
|
|
base: 'baseInfoRef', |
|
|
|
sysj: 'sysjTableRef', |
|
|
|
yqsy: 'yqsyTableRef', |
|
|
|
sjxxStep: 'sjxxStepRef', |
|
|
|
sjxx: 'sjxxTableRef', |
|
|
|
remark: 'remarkRef' |
|
|
|
@ -195,11 +165,10 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
type: 'conditionItem', |
|
|
|
type: 'cellItem', |
|
|
|
label: 'template.dl.dl010.dwzs', |
|
|
|
config: { |
|
|
|
dwzs: { |
|
|
|
span: 1, |
|
|
|
label: 'template.dl.dl010.dwzs', |
|
|
|
type: 'select', |
|
|
|
options: this.getDictOptions('business_dwzs'), |
|
|
|
@ -214,9 +183,9 @@ export default { |
|
|
|
config: { |
|
|
|
cjdd: { |
|
|
|
label: 'template.dl.dl010.cjdd', |
|
|
|
type: 'input', |
|
|
|
fillType: 'actFill', |
|
|
|
maxlength: 200 |
|
|
|
type: 'select', |
|
|
|
options: this.getDictOptions('business_cjdd'), |
|
|
|
fillType: 'actFill' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
@ -226,18 +195,17 @@ export default { |
|
|
|
config: { |
|
|
|
zpdd: { |
|
|
|
label: 'template.dl.dl010.zpdd', |
|
|
|
type: 'input', |
|
|
|
fillType: 'actFill', |
|
|
|
maxlength: 200 |
|
|
|
type: 'select', |
|
|
|
options: this.getDictOptions('business_zpdd'), |
|
|
|
fillType: 'actFill' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
type: 'conditionItem', |
|
|
|
type: 'cellItem', |
|
|
|
label: 'template.dl.dl010.cjbw', |
|
|
|
config: { |
|
|
|
cjbw: { |
|
|
|
span: 1, |
|
|
|
label: 'template.dl.dl010.cjbw', |
|
|
|
type: 'select', |
|
|
|
options: this.getDictOptions('business_cjbw'), |
|
|
|
@ -250,97 +218,20 @@ export default { |
|
|
|
type: 'cellItem', |
|
|
|
label: 'template.dl.dl010.jprq', |
|
|
|
config: { |
|
|
|
jprqKssj: { |
|
|
|
startDate: { |
|
|
|
label: 'template.dl.dl010.jprqKssj', |
|
|
|
type: 'input', |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
jprqJssj: { |
|
|
|
endDate: { |
|
|
|
label: 'template.dl.dl010.jprqJssj', |
|
|
|
type: 'input', |
|
|
|
fillType: 'actFill', |
|
|
|
maxlength: 200 |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
}, |
|
|
|
// 试验试剂信息 |
|
|
|
sysjColumns() { |
|
|
|
return [ |
|
|
|
{ |
|
|
|
label: 'template.dl.dl010.sjmc', |
|
|
|
prop: 'sjmc', |
|
|
|
bodyType: 'input', |
|
|
|
bodyFillType: 'actFill' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: 'template.dl.dl010.bh', |
|
|
|
prop: 'bh', |
|
|
|
bodyType: 'input', |
|
|
|
bodyFillType: 'actFill' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: 'template.dl.dl010.ph', |
|
|
|
prop: 'ph', |
|
|
|
bodyType: 'input', |
|
|
|
bodyFillType: 'actFill' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: 'template.dl.dl010.ndhlcd', |
|
|
|
prop: 'ndhlcd', |
|
|
|
bodyType: 'input', |
|
|
|
bodyFillType: 'actFill' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: 'template.dl.dl010.ly', |
|
|
|
prop: 'ly', |
|
|
|
bodyType: 'input', |
|
|
|
bodyFillType: 'actFill' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: 'template.dl.dl010.sxr', |
|
|
|
prop: 'sxr', |
|
|
|
bodyType: 'input', |
|
|
|
bodyFillType: 'actFill' |
|
|
|
} |
|
|
|
] |
|
|
|
}, |
|
|
|
// 仪器使用信息 |
|
|
|
yqsyColumns() { |
|
|
|
return [ |
|
|
|
{ |
|
|
|
label: 'template.dl.dl010.yqmc', |
|
|
|
prop: 'yqmc', |
|
|
|
bodyType: 'input', |
|
|
|
bodyDisabled: true, |
|
|
|
bodyFillType: 'actFill', |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: 'template.dl.dl010.yqxh', |
|
|
|
prop: 'yqxh', |
|
|
|
bodyType: 'input', |
|
|
|
bodyDisabled: true, |
|
|
|
bodyFillType: 'actFill', |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: 'template.dl.dl010.yqbh', |
|
|
|
prop: 'yqbh', |
|
|
|
bodyType: 'yq', |
|
|
|
bodyFillType: 'actFill' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: 'template.dl.dl010.xccsjzjdrq', |
|
|
|
prop: 'jzrq', |
|
|
|
bodyType: 'input', |
|
|
|
bodyDisabled: true, |
|
|
|
bodyFillType: 'actFill', |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
] |
|
|
|
}, |
|
|
|
// 采集信息列表 |
|
|
|
sjxxColumns() { |
|
|
|
return [ |
|
|
|
@ -354,6 +245,7 @@ export default { |
|
|
|
{ |
|
|
|
label: 'template.dl.dl010.yslhnzsjyjrl', |
|
|
|
headerSelectKey: 'yslhnUnit', |
|
|
|
headerSelectTo: 'sjlhnUnit', |
|
|
|
headerOptions: this.getDictOptions('business_tjdw'), |
|
|
|
prop: 'yslhnzsjyjrl', |
|
|
|
bodyType: 'inputNumber', |
|
|
|
@ -363,10 +255,12 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: 'template.dl.dl010.sjlhnzsjyjrl', |
|
|
|
headerSelectKey: 'yslhnUnit', |
|
|
|
headerSelectKey: 'sjlhnUnit', |
|
|
|
headerOptions: this.getDictOptions('business_tjdw'), |
|
|
|
prop: 'sjlhnzsjyjrl', |
|
|
|
bodyMaxlength: 10, |
|
|
|
compareTo: 'yslhnzsjyjrl', |
|
|
|
copyFrom: 'yslhnzsjyjrl', |
|
|
|
bodyType: 'inputNumber', |
|
|
|
bodyFillType: 'actFill', |
|
|
|
fillType: 'preFill' |
|
|
|
@ -378,9 +272,14 @@ export default { |
|
|
|
checkboxLabel: '', |
|
|
|
bodyFillType: 'actFill', |
|
|
|
headerColumns: [ |
|
|
|
{ type: 'span', label: '收集' }, |
|
|
|
{ type: 'inputNumber', fillType: 'actFill', key: 'gs' }, |
|
|
|
{ type: 'span', label: '骨髓' } |
|
|
|
{ type: 'span', label: 'template.dl.dl010.sj' }, |
|
|
|
{ |
|
|
|
type: 'inputNumber', |
|
|
|
fillType: 'actFill', |
|
|
|
maxLength: 10, |
|
|
|
key: 'gs' |
|
|
|
}, |
|
|
|
{ type: 'span', label: 'template.dl.dl010.gusui' } |
|
|
|
], |
|
|
|
span: 3 |
|
|
|
}, |
|
|
|
@ -398,7 +297,8 @@ export default { |
|
|
|
bodyFillType: 'preFill', |
|
|
|
bodyMaxlength: 10, |
|
|
|
fillType: 'preFill', |
|
|
|
headerSelectKey: 'yslhnUnit', |
|
|
|
headerSelectKey: 'ysjrxqUnit', |
|
|
|
headerSelectTo: 'sjjrxqUnit', |
|
|
|
headerOptions: this.getDictOptions('business_tjdw') |
|
|
|
}, |
|
|
|
{ |
|
|
|
@ -408,7 +308,9 @@ export default { |
|
|
|
bodyMaxlength: 10, |
|
|
|
bodyFillType: 'actFill', |
|
|
|
fillType: 'preFill', |
|
|
|
headerSelectKey: 'yslhnUnit', |
|
|
|
compareTo: 'ysjrxq', |
|
|
|
copyFrom: 'ysjrxq', |
|
|
|
headerSelectKey: 'sjjrxqUnit', |
|
|
|
headerOptions: this.getDictOptions('business_tjdw') |
|
|
|
} |
|
|
|
] |
|
|
|
@ -543,16 +445,12 @@ export default { |
|
|
|
// 获取已填写的表单数据 |
|
|
|
getFilledFormData() { |
|
|
|
const baseData = this.$refs.baseInfoRef.getFilledFormData() |
|
|
|
const sysjData = this.$refs.sysjTableRef.getFilledFormData() |
|
|
|
const yqsyData = this.$refs.yqsyTableRef.getFilledFormData() |
|
|
|
const sjxxStepData = this.$refs.sjxxStepRef.getFilledFormData() |
|
|
|
const sjxxData = this.$refs.sjxxTableRef.getFilledFormData() |
|
|
|
const remarkData = this.$refs.remarkRef.getFilledFormData() |
|
|
|
|
|
|
|
return { |
|
|
|
...baseData, |
|
|
|
...sysjData, |
|
|
|
...yqsyData, |
|
|
|
...sjxxStepData, |
|
|
|
...sjxxData, |
|
|
|
...remarkData |
|
|
|
@ -571,8 +469,6 @@ export default { |
|
|
|
async validFields() { |
|
|
|
const refsToValidate = [ |
|
|
|
'baseInfoRef', |
|
|
|
'sysjTableRef', |
|
|
|
'yqsyTableRef', |
|
|
|
'sjxxStepRef', |
|
|
|
'sjxxTableRef', |
|
|
|
'remarkRef' |
|
|
|
@ -580,28 +476,14 @@ export default { |
|
|
|
return await this.validFormFields(refsToValidate) |
|
|
|
}, |
|
|
|
getResource() { |
|
|
|
const sysjStepResource = this.$refs.sysjTableRef.getStepResource() |
|
|
|
const yqsyStepResource = this.$refs.yqsyTableRef.getStepResource() |
|
|
|
const sjxxStepResource = this.$refs.sjxxStepRef.getStepResource() |
|
|
|
// 使用的试剂、仪器 |
|
|
|
this.resourceTmp = [ |
|
|
|
...(sysjStepResource.sjResource || []), |
|
|
|
...(yqsyStepResource.sjResource || []) |
|
|
|
] |
|
|
|
this.yqResourceTmp = yqsyStepResource.yqResource || [] |
|
|
|
this.resourceTmp = sjxxStepResource.sjResource || [] |
|
|
|
this.yqResourceTmp = sjxxStepResource.yqResource || [] |
|
|
|
return this.resourceTmp |
|
|
|
}, |
|
|
|
onRegentSubmit(e) { |
|
|
|
const { selectInfo, key, rowIndex } = e |
|
|
|
const { row } = selectInfo |
|
|
|
|
|
|
|
if (key === 'yqbh') { |
|
|
|
const params = { |
|
|
|
yqmc: row.mc, |
|
|
|
yqxh: row.xh, |
|
|
|
jzrq: row.jzrq |
|
|
|
} |
|
|
|
this.$refs.yqsyTableRef.updateDataSourceByRowIndex(rowIndex, params) |
|
|
|
} |
|
|
|
// 预留方法,如果需要处理试剂提交事件可以在这里添加 |
|
|
|
}, |
|
|
|
// 保存 |
|
|
|
async onSave() { |
|
|
|
|