|
|
@ -10,8 +10,8 @@ |
|
|
:formData="formData" /> |
|
|
:formData="formData" /> |
|
|
<TableList label="试验试剂信息" :columns="sysjColumns" :dataSource="resource" /> |
|
|
<TableList label="试验试剂信息" :columns="sysjColumns" :dataSource="resource" /> |
|
|
<TableList label="仪器使用信息" :columns="yqsColumns" :dataSource="resource" /> |
|
|
<TableList label="仪器使用信息" :columns="yqsColumns" :dataSource="resource" /> |
|
|
<BaseInfoFormPcakge label="存储条件" ref="storageConditionRef" :formConfig="storageFormConfig" |
|
|
|
|
|
:formData="formData" /> |
|
|
|
|
|
|
|
|
<!-- <BaseInfoFormPcakge label="存储条件" ref="storageConditionRef" :formConfig="storageFormConfig" |
|
|
|
|
|
:formData="formData" /> --> |
|
|
<LineLabel label="操作步骤" /> |
|
|
<LineLabel label="操作步骤" /> |
|
|
<div class="template-form-item"> |
|
|
<div class="template-form-item"> |
|
|
<BaseInfoFormPcakge @clickable="handleClickable" ref="stepFormPackageRef" |
|
|
<BaseInfoFormPcakge @clickable="handleClickable" ref="stepFormPackageRef" |
|
|
@ -20,7 +20,7 @@ |
|
|
:showOperation="fillType === 'actFill'" ref="stepTableRef" :columns="stepColumns" |
|
|
:showOperation="fillType === 'actFill'" ref="stepTableRef" :columns="stepColumns" |
|
|
:formData="formData"> |
|
|
:formData="formData"> |
|
|
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> |
|
|
<template slot="operation" slot-scope="{ row, rowIndex, columns }"> |
|
|
<TableOpertaion @subPackageSubmit="subPackageSubmit" :fillType="fillType" :row="row" |
|
|
|
|
|
|
|
|
<TableOpertaion @printTag="printTag" @subPackageSubmit="subPackageSubmit" :fillType="fillType" :row="row" |
|
|
:rowIndex="rowIndex" :columns="columns" @deleteRow="deleteRow"></TableOpertaion> |
|
|
:rowIndex="rowIndex" :columns="columns" @deleteRow="deleteRow"></TableOpertaion> |
|
|
</template> |
|
|
</template> |
|
|
</CustomTable> |
|
|
</CustomTable> |
|
|
@ -47,6 +47,7 @@ import CustomTable from '@/components/Template/CustomTable.vue'; |
|
|
import SelectReagentDialog from '../../dialog/SelectReagentDialog.vue'; |
|
|
import SelectReagentDialog from '../../dialog/SelectReagentDialog.vue'; |
|
|
import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue"; |
|
|
import TableOpertaion from "@/components/Template/operation/TableOpertaion.vue"; |
|
|
import { EventBus } from "@/utils/eventBus"; |
|
|
import { EventBus } from "@/utils/eventBus"; |
|
|
|
|
|
import moment from 'moment'; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: "SWYPBQGZYZBB", |
|
|
name: "SWYPBQGZYZBB", |
|
|
@ -75,12 +76,12 @@ export default { |
|
|
{ |
|
|
{ |
|
|
type: "conditionItem", |
|
|
type: "conditionItem", |
|
|
config: { |
|
|
config: { |
|
|
storageCondition1: { |
|
|
|
|
|
|
|
|
storageCondition: { |
|
|
label: "存储条件", |
|
|
label: "存储条件", |
|
|
type: "select", |
|
|
type: "select", |
|
|
fillType: "preFill", |
|
|
fillType: "preFill", |
|
|
options: this.getDictOptions('business_cctj'), |
|
|
options: this.getDictOptions('business_cctj'), |
|
|
otherCode: "other1", |
|
|
|
|
|
|
|
|
otherCode: "storageConditionOther", |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
@ -416,6 +417,11 @@ export default { |
|
|
mounted() { |
|
|
mounted() { |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
//打印标签回调 |
|
|
|
|
|
printTag(data) { |
|
|
|
|
|
const printConfig = this.getBasePrintConfig(data); |
|
|
|
|
|
EventBus.$emit('showTagPrintDialog', {printConfig}) |
|
|
|
|
|
}, |
|
|
//分装回调 |
|
|
//分装回调 |
|
|
subPackageSubmit(data) { |
|
|
subPackageSubmit(data) { |
|
|
const { fzsj, rowData } = data; |
|
|
const { fzsj, rowData } = data; |
|
|
@ -448,7 +454,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
//获取已填写的表单数据 |
|
|
//获取已填写的表单数据 |
|
|
getFilledFormData() { |
|
|
getFilledFormData() { |
|
|
return this.getFilledFormDataByRefs(["baseInfoRef", "storageConditionRef", "stepFormPackageRef", "stepRef", "remarkRef", "stepTableRef"]) |
|
|
|
|
|
|
|
|
return this.getFilledFormDataByRefs(["baseInfoRef", "stepFormPackageRef", "stepRef", "remarkRef", "stepTableRef"]) |
|
|
}, |
|
|
}, |
|
|
handleClickable(item) { |
|
|
handleClickable(item) { |
|
|
if (this.fillType === "preFill") { |
|
|
if (this.fillType === "preFill") { |
|
|
@ -492,11 +498,11 @@ export default { |
|
|
this.$refs.stepTableRef.updateDataSource(newStepTableData); |
|
|
this.$refs.stepTableRef.updateDataSource(newStepTableData); |
|
|
}, |
|
|
}, |
|
|
async getFormData() { |
|
|
async getFormData() { |
|
|
return await this.validFormFields(["baseInfoRef", "storageConditionRef", "stepFormPackageRef", "stepTableRef", "stepRef", "remarkRef"]); |
|
|
|
|
|
|
|
|
return await this.validFormFields(["baseInfoRef", , "stepFormPackageRef", "stepTableRef", "stepRef", "remarkRef"]); |
|
|
}, |
|
|
}, |
|
|
async onSave() { |
|
|
async onSave() { |
|
|
// const formData = await this.getFormData(); |
|
|
// const formData = await this.getFormData(); |
|
|
const formData = await this.validFormFields(["baseInfoRef", "storageConditionRef", "stepFormPackageRef", "stepTableRef", "stepRef", "remarkRef"]); |
|
|
|
|
|
|
|
|
const formData = await this.validFormFields(["baseInfoRef", , "stepFormPackageRef", "stepTableRef", "stepRef", "remarkRef"]); |
|
|
|
|
|
|
|
|
console.log(formData, "formData") |
|
|
console.log(formData, "formData") |
|
|
} |
|
|
} |
|
|
|