|
|
|
@ -0,0 +1,290 @@ |
|
|
|
<!-- 全切片扫描图像复核记录表 --> |
|
|
|
<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" |
|
|
|
/> |
|
|
|
|
|
|
|
<LineLabel label="template.bl.bl002.ybsm" /> |
|
|
|
<div class="template-form-item"> |
|
|
|
<BaseInfoFormPackage |
|
|
|
fieldItemLabel="template.bl.bl002.ybsm" |
|
|
|
:ref="refConf.ybsm" |
|
|
|
:formConfig="ybsmFormConfig" |
|
|
|
:formData="formData" |
|
|
|
/> |
|
|
|
<CustomTable |
|
|
|
fieldItemLabel="template.bl.bl002.ybsm" |
|
|
|
:columns="dwybColumns" |
|
|
|
:ref="'dwybTableRef'" |
|
|
|
:showOperation="fillType === 'preFill'" |
|
|
|
:showAddRow="fillType === 'preFill'" |
|
|
|
:formData="formData" |
|
|
|
:prefixKey="`dwybTable`" |
|
|
|
> |
|
|
|
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> |
|
|
|
<TableOpertaionDelete |
|
|
|
:row="row" |
|
|
|
:rowIndex="rowIndex" |
|
|
|
:columns="columns" |
|
|
|
@deleteRow="() => deleteTableRow(rowIndex, 'dwybTableRef')" |
|
|
|
></TableOpertaionDelete> |
|
|
|
</template> |
|
|
|
</CustomTable> |
|
|
|
</div> |
|
|
|
|
|
|
|
<BaseInfoFormPackage |
|
|
|
fieldItemLabel="template.bl.bl002.smybz" |
|
|
|
label="template.bl.bl002.smybz" |
|
|
|
:ref="refConf.smyRemark" |
|
|
|
:formConfig="smyRemarkConig" |
|
|
|
:formData="formData" |
|
|
|
/> |
|
|
|
|
|
|
|
<BaseInfoFormPackage |
|
|
|
fieldItemLabel="template.bl.bl002.ztblxjbz" |
|
|
|
label="template.bl.bl002.ztblxjbz" |
|
|
|
:ref="refConf.ztblxjRemark" |
|
|
|
:formConfig="ztblxjRemarkConig" |
|
|
|
: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', |
|
|
|
ybsm: 'ybsmRef', |
|
|
|
smyRemark: 'smyRemarkRef', |
|
|
|
ztblxjRemark: 'ztblxjRemarkRef', |
|
|
|
dwyb: 'dwybTableRef' |
|
|
|
} |
|
|
|
const refNames = Object.values(refConf) |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'BL002', |
|
|
|
components: { |
|
|
|
BaseInfoFormPackage, |
|
|
|
LineLabel, |
|
|
|
TableList, |
|
|
|
Step, |
|
|
|
CustomTable, |
|
|
|
TableOpertaionDelete |
|
|
|
}, |
|
|
|
mixins: [templateMixin], |
|
|
|
props: { |
|
|
|
fillType: { |
|
|
|
type: String, |
|
|
|
default: 'preFill' |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
// 扫描员备注表单配置 |
|
|
|
smyRemarkConig() { |
|
|
|
return [ |
|
|
|
{ |
|
|
|
type: 'cellItem', |
|
|
|
config: { |
|
|
|
smyRemark: { |
|
|
|
label: '', |
|
|
|
type: 'textarea', |
|
|
|
fillType: 'actFill', |
|
|
|
span: 1, |
|
|
|
placeholder: 'template.bl.bl002.smybz', |
|
|
|
maxlength: 1000, |
|
|
|
rows: 5 |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
}, |
|
|
|
// 专题病理学家备注表单配置 |
|
|
|
ztblxjRemarkConig() { |
|
|
|
return [ |
|
|
|
{ |
|
|
|
type: 'cellItem', |
|
|
|
config: { |
|
|
|
ztblxjRemark: { |
|
|
|
label: '', |
|
|
|
type: 'textarea', |
|
|
|
fillType: 'actFill', |
|
|
|
span: 1, |
|
|
|
placeholder: 'template.bl.bl002.ztblxjbz', |
|
|
|
maxlength: 1000, |
|
|
|
rows: 5 |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
}, |
|
|
|
// 试验基本信息表单配置 |
|
|
|
baseInfoFormConfig() { |
|
|
|
return [ |
|
|
|
{ |
|
|
|
type: 'cardItem', |
|
|
|
config: { |
|
|
|
studyMc: { |
|
|
|
label: 'template.common.testName', |
|
|
|
type: 'input', |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
studySn: { |
|
|
|
label: 'template.common.testNumber', |
|
|
|
type: 'input', |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
type: 'cellItem', |
|
|
|
label: 'template.bl.bl002.fhsj', |
|
|
|
config: { |
|
|
|
startDate: { |
|
|
|
label: 'template.common.startTime', |
|
|
|
type: 'input', |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
endDate: { |
|
|
|
label: 'template.common.endTime', |
|
|
|
type: 'input', |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
}, |
|
|
|
|
|
|
|
// 样本说明 |
|
|
|
ybsmFormConfig() { |
|
|
|
return [ |
|
|
|
{ |
|
|
|
type: 'step', |
|
|
|
config: { |
|
|
|
smybh: { |
|
|
|
label: 'template.bl.bl002.smybh', |
|
|
|
type: 'yq', |
|
|
|
fillType: 'actFill', |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
}, |
|
|
|
// 操作信息表菌种列表 |
|
|
|
dwybColumns() { |
|
|
|
return [ |
|
|
|
{ |
|
|
|
label: 'template.bl.bl002.dwypbh', |
|
|
|
prop: "dwypbh", |
|
|
|
bodyType: 'input', |
|
|
|
bodyFillType: 'preFill' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: 'template.bl.bl002.qprsbh', |
|
|
|
prop: "qprsbh", |
|
|
|
bodyType: 'input', |
|
|
|
bodyFillType: 'preFill' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: 'template.bl.bl002.smryqrxx', |
|
|
|
prop: "smryqrxx", |
|
|
|
bodyType: "radio", |
|
|
|
bodyFillType: "actFill", |
|
|
|
bodyOptions: [ |
|
|
|
{value:'图像命名准确',label:'图像命名准确'}, |
|
|
|
{value:'图像命名不准确',label:'图像命名不准确'}, |
|
|
|
], |
|
|
|
checkboxLabel: 'template.bl.bl002.txmmzq' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: 'template.bl.bl002.ztblxjqrxx', |
|
|
|
prop: "ztblxjqrxx", |
|
|
|
bodyType: 'radio', |
|
|
|
bodyFillType: 'actFill', |
|
|
|
bodyOptions: [ |
|
|
|
{value:'图像完整清晰',label:'图像完整清晰'}, |
|
|
|
{value:'图像不完整清晰',label:'图像不完整清晰'}, |
|
|
|
], |
|
|
|
// checkboxLabel: 'template.bl.bl002.txwzqx' |
|
|
|
}, |
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
formData: {}, |
|
|
|
refConf |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 删除表格行 |
|
|
|
async deleteTableRow(rowIndex, refName) { |
|
|
|
this.$refs[refName].deleteRow(rowIndex) |
|
|
|
}, |
|
|
|
// 获取已填写的表单数据 |
|
|
|
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 |
|
|
|
}, |
|
|
|
// 保存 |
|
|
|
async onSave() { |
|
|
|
const formData = this.getStepResource() |
|
|
|
console.log(formData, 'formData') |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
</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> |