|
|
@ -0,0 +1,327 @@ |
|
|
|
|
|
<!-- 增菌结果记录表 --> |
|
|
|
|
|
<template> |
|
|
|
|
|
<div> |
|
|
|
|
|
<div class="detail-container"> |
|
|
|
|
|
<div class="detail-title"> |
|
|
|
|
|
<img src="@/assets/images/detail-title.png" />{{ formData.bdmc |
|
|
|
|
|
}}<img src="@/assets/images/detail-title.png" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="detail-content"> |
|
|
|
|
|
<div class="content"> |
|
|
|
|
|
<BaseInfoFormPackage |
|
|
|
|
|
fieldItemLabel="template.common.baseInfo" |
|
|
|
|
|
label="template.common.baseInfo" |
|
|
|
|
|
:ref="refConf.base" |
|
|
|
|
|
:formConfig="baseInfoFormConfig" |
|
|
|
|
|
:formData="formData" |
|
|
|
|
|
/> |
|
|
|
|
|
<TableList label="template.common.instrumentInfo" :columns="yqColumns" :dataSource="yqResource" /> |
|
|
|
|
|
|
|
|
|
|
|
<LineLabel label="template.common.operationSteps" /> |
|
|
|
|
|
<div class="template-form-item"> |
|
|
|
|
|
<BaseInfoFormPackage |
|
|
|
|
|
fieldItemLabel="template.common.operationSteps" |
|
|
|
|
|
:ref="refConf.czInfo" |
|
|
|
|
|
:formConfig="czInfoFormConfig" |
|
|
|
|
|
:formData="formData" |
|
|
|
|
|
@clickButton="handleClickButton" |
|
|
|
|
|
@beforeReagentSubmit="onBeforeReagentSubmit" |
|
|
|
|
|
/> |
|
|
|
|
|
<CustomTable |
|
|
|
|
|
fieldItemLabel="template.common.operationSteps" |
|
|
|
|
|
:columns="jzjzColumns" |
|
|
|
|
|
:ref="'jzjzTableRef'" |
|
|
|
|
|
@onRegentSubmit="(e) => onRegentSubmit(e)" |
|
|
|
|
|
:showOperation="fillType === 'actFill'" |
|
|
|
|
|
:showAddRow="false" |
|
|
|
|
|
:formData="formData" |
|
|
|
|
|
:showHeaderSelect="fillType === 'actFill'" |
|
|
|
|
|
:prefixKey="`jzjzTable`" |
|
|
|
|
|
> |
|
|
|
|
|
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> |
|
|
|
|
|
<TableOpertaionDelete |
|
|
|
|
|
:row="row" |
|
|
|
|
|
:rowIndex="rowIndex" |
|
|
|
|
|
:columns="columns" |
|
|
|
|
|
@deleteRow="() => deleteTableRow(rowIndex, 'jzjzTableRef')" |
|
|
|
|
|
></TableOpertaionDelete> |
|
|
|
|
|
</template> |
|
|
|
|
|
</CustomTable> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<BaseInfoFormPackage |
|
|
|
|
|
fieldItemLabel="template.dl.dl007.bz" |
|
|
|
|
|
label="template.dl.dl007.bz" |
|
|
|
|
|
:ref="refConf.remark" |
|
|
|
|
|
:formConfig="remarkConig" |
|
|
|
|
|
:formData="formData" |
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
|
import BaseInfoFormPackage from '@/components/Template/BaseInfoFormPackage' |
|
|
|
|
|
import TableOpertaionDelete from '@/components/Template/operation/TableOpertaionDelete.vue' |
|
|
|
|
|
import CustomTable from '@/components/Template/CustomTable.vue' |
|
|
|
|
|
import LineLabel from '@/components/Template/LineLabel' |
|
|
|
|
|
import TableList from '@/components/Template/Table' |
|
|
|
|
|
import Step from '@/components/Template/Step' |
|
|
|
|
|
import templateMixin from '../../mixins/templateMixin' |
|
|
|
|
|
import moment from 'moment' |
|
|
|
|
|
|
|
|
|
|
|
const refConf = { |
|
|
|
|
|
base: 'baseInfoRef', |
|
|
|
|
|
czInfo: 'czInfoRef', |
|
|
|
|
|
remark: 'remarkRef', |
|
|
|
|
|
jzjz: 'jzjzTableRef' |
|
|
|
|
|
} |
|
|
|
|
|
const refNames = Object.values(refConf) |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
|
name: 'DL004', |
|
|
|
|
|
components: { |
|
|
|
|
|
BaseInfoFormPackage, |
|
|
|
|
|
LineLabel, |
|
|
|
|
|
TableList, |
|
|
|
|
|
Step, |
|
|
|
|
|
CustomTable, |
|
|
|
|
|
TableOpertaionDelete |
|
|
|
|
|
}, |
|
|
|
|
|
mixins: [templateMixin], |
|
|
|
|
|
props: { |
|
|
|
|
|
fillType: { |
|
|
|
|
|
type: String, |
|
|
|
|
|
default: 'preFill' |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
computed: { |
|
|
|
|
|
// 备注表单配置 |
|
|
|
|
|
remarkConig() { |
|
|
|
|
|
return [ |
|
|
|
|
|
{ |
|
|
|
|
|
type: 'cellItem', |
|
|
|
|
|
config: { |
|
|
|
|
|
remark: { |
|
|
|
|
|
label: '', |
|
|
|
|
|
type: 'textarea', |
|
|
|
|
|
fillType: 'actFill', |
|
|
|
|
|
span: 1, |
|
|
|
|
|
placeholder: 'template.common.remarkPlaceholder', |
|
|
|
|
|
maxlength: 1000, |
|
|
|
|
|
rows: 5 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
] |
|
|
|
|
|
}, |
|
|
|
|
|
mounted() { |
|
|
|
|
|
|
|
|
|
|
|
// if (this.fillType === "actFill") { |
|
|
|
|
|
// this.handleUpdateCode(formData); |
|
|
|
|
|
// } |
|
|
|
|
|
// const re = convertConcentration.convert('100mg/mL',"ng/mL") |
|
|
|
|
|
}, |
|
|
|
|
|
// 试验基本信息表单配置 |
|
|
|
|
|
baseInfoFormConfig() { |
|
|
|
|
|
return [ |
|
|
|
|
|
{ |
|
|
|
|
|
type: 'cardItem', |
|
|
|
|
|
config: { |
|
|
|
|
|
studyMc: { |
|
|
|
|
|
label: 'template.common.testName', |
|
|
|
|
|
type: 'input', |
|
|
|
|
|
disabled: true |
|
|
|
|
|
}, |
|
|
|
|
|
studySn: { |
|
|
|
|
|
label: 'template.common.testNumber', |
|
|
|
|
|
type: 'input', |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
type: 'conditionItem', |
|
|
|
|
|
label: 'template.dl.dl007.sydd', |
|
|
|
|
|
config: { |
|
|
|
|
|
sydd: { |
|
|
|
|
|
span: 1, |
|
|
|
|
|
label: 'template.dl.dl007.sydd', |
|
|
|
|
|
type: 'select', |
|
|
|
|
|
options: this.getDictOptions('business_sydd'), |
|
|
|
|
|
fillType: 'actFill', |
|
|
|
|
|
otherCode: 'syddOther' |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
type: 'cellItem', |
|
|
|
|
|
label: 'template.dl.dl003.czsj', |
|
|
|
|
|
config: { |
|
|
|
|
|
startDate: { |
|
|
|
|
|
label: 'template.common.startTime', |
|
|
|
|
|
type: 'input', |
|
|
|
|
|
disabled: true |
|
|
|
|
|
}, |
|
|
|
|
|
endDate: { |
|
|
|
|
|
label: 'template.common.endTime', |
|
|
|
|
|
type: 'input', |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
] |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 操作信息表信息 |
|
|
|
|
|
czInfoFormConfig() { |
|
|
|
|
|
return [ |
|
|
|
|
|
{ |
|
|
|
|
|
type: 'cellItem', |
|
|
|
|
|
config: { |
|
|
|
|
|
qxbd: { |
|
|
|
|
|
label: 'template.dl.dl007.qxbd', |
|
|
|
|
|
type: 'qxbd', |
|
|
|
|
|
fillType: 'actFill', |
|
|
|
|
|
qxbdType:'DL003', |
|
|
|
|
|
filledCodes: ['bdmc', 'bdbh'] |
|
|
|
|
|
}, |
|
|
|
|
|
pykssj: { |
|
|
|
|
|
label: 'template.dl.dl007.pykssj', |
|
|
|
|
|
type: 'input', |
|
|
|
|
|
fillType: 'actFill', |
|
|
|
|
|
maxlength: 200, |
|
|
|
|
|
subType: 'button', |
|
|
|
|
|
subKey: 'pykssj', |
|
|
|
|
|
buttonName: 'template.dl.dl003.ksButton', |
|
|
|
|
|
}, |
|
|
|
|
|
pyjssj: { |
|
|
|
|
|
label: 'template.dl.dl007.pyjssj', |
|
|
|
|
|
type: 'input', |
|
|
|
|
|
fillType: 'actFill', |
|
|
|
|
|
maxlength: 200, |
|
|
|
|
|
subType: 'button', |
|
|
|
|
|
subKey: 'pyjssj', |
|
|
|
|
|
buttonName: 'template.dl.dl003.jsButton', |
|
|
|
|
|
}, |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
] |
|
|
|
|
|
}, |
|
|
|
|
|
// 操作信息表菌种列表 |
|
|
|
|
|
jzjzColumns() { |
|
|
|
|
|
return [ |
|
|
|
|
|
{ |
|
|
|
|
|
label: 'template.dl.dl003.jzjzhbh', |
|
|
|
|
|
prop: "targetSolutionCode", |
|
|
|
|
|
bodyType: 'span', |
|
|
|
|
|
bodySubType: "span", |
|
|
|
|
|
bodySubKey: "subTargetSolutionCode", |
|
|
|
|
|
myCodeFields: ["targetSolutionCode", "subTargetSolutionCode"],//分装的母液编号字段 |
|
|
|
|
|
bodyFillType: 'actFill' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: 'template.dl.dl004.zjjgqr', |
|
|
|
|
|
prop: 'zjjgqr', |
|
|
|
|
|
bodyType: 'select', |
|
|
|
|
|
bodyOptions: [ |
|
|
|
|
|
{value:1,label:'符合'}, |
|
|
|
|
|
{value:0,label:'不符合'}, |
|
|
|
|
|
], |
|
|
|
|
|
bodyFillType: 'actFill', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: 'template.dl.dl004.ccwz', |
|
|
|
|
|
prop: 'ccwz', |
|
|
|
|
|
bodyType: 'select', |
|
|
|
|
|
bodyOptions: this.getDictOptions('business_sydd'), |
|
|
|
|
|
otherCode: 'ccwzOther', |
|
|
|
|
|
bodyFillType: 'actFill', |
|
|
|
|
|
}, |
|
|
|
|
|
] |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
data() { |
|
|
|
|
|
return { |
|
|
|
|
|
formData: {}, |
|
|
|
|
|
refConf |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
methods: { |
|
|
|
|
|
// 删除表格行 |
|
|
|
|
|
async deleteTableRow(rowIndex, refName) { |
|
|
|
|
|
this.$refs[refName].deleteRow(rowIndex) |
|
|
|
|
|
}, |
|
|
|
|
|
// 点击按钮 |
|
|
|
|
|
handleClickButton(_item, signData) { |
|
|
|
|
|
this.$refs.czInfoRef.updateFormData( |
|
|
|
|
|
_item.subKey, |
|
|
|
|
|
moment().format('YYYY/MM/DD HH:mm'), |
|
|
|
|
|
{ isUpdateRecord: true, signData } |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
// 获取已填写的表单数据 |
|
|
|
|
|
getFilledFormData() { |
|
|
|
|
|
return this.getFilledFormDataByRefs(refNames) |
|
|
|
|
|
}, |
|
|
|
|
|
// 获取填写完成的表单数据 |
|
|
|
|
|
async getFormData() { |
|
|
|
|
|
return await this.validFormFields(refNames) |
|
|
|
|
|
}, |
|
|
|
|
|
// 只做校验 |
|
|
|
|
|
async validFields() { |
|
|
|
|
|
return await this.validFormFields(refNames) |
|
|
|
|
|
}, |
|
|
|
|
|
getResource() { |
|
|
|
|
|
// const stepResource = this.$refs.yqsyTableRef.getStepResource() |
|
|
|
|
|
// 使用的试剂、仪器 |
|
|
|
|
|
// this.resourceTmp = stepResource.sjResource || [] |
|
|
|
|
|
// this.yqResourceTmp = stepResource.yqResource || [] |
|
|
|
|
|
// return this.resourceTmp |
|
|
|
|
|
}, |
|
|
|
|
|
onRegentSubmit(e) { |
|
|
|
|
|
const { selectInfo, key, rowIndex } = e |
|
|
|
|
|
const { row } = selectInfo |
|
|
|
|
|
if (key === 'qxbd') { |
|
|
|
|
|
this.$refs.czInfoRef.updateFormData('pykssj', row.startDate) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
// 保存 |
|
|
|
|
|
async onSave() { |
|
|
|
|
|
const formData = this.getStepResource() |
|
|
|
|
|
console.log(formData, 'formData') |
|
|
|
|
|
}, |
|
|
|
|
|
//操作步骤前序表单确认 |
|
|
|
|
|
onBeforeReagentSubmit(e) { |
|
|
|
|
|
let { selectData = {} } = e |
|
|
|
|
|
let { stepTableFormData_1 = [] } = JSON.parse(selectData?.row?.bdnr) |
|
|
|
|
|
stepTableFormData_1?.map((item,index)=>{ |
|
|
|
|
|
this.$refs.jzjzTableRef.updateDataSourceByRowIndex(index, item); |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
</script> |
|
|
|
|
|
<style rel="stylesheet/scss" lang="scss"> |
|
|
|
|
|
.mt-20 { |
|
|
|
|
|
margin-top: 20px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.print-btn { |
|
|
|
|
|
margin-bottom: 20px; |
|
|
|
|
|
} |
|
|
|
|
|
.config-header-end { |
|
|
|
|
|
display: flex; |
|
|
|
|
|
justify-content: flex-end; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
margin-bottom: 15px; |
|
|
|
|
|
font-weight: bold; |
|
|
|
|
|
font-size: 16px; |
|
|
|
|
|
color: #303133; |
|
|
|
|
|
} |
|
|
|
|
|
</style> |