|
|
@ -4,6 +4,8 @@ |
|
|
<div class="detail-container"> |
|
|
<div class="detail-container"> |
|
|
<div class="detail-title"><img src="@/assets/images/detail-title.png">生物样品分析溶液配制表<img |
|
|
<div class="detail-title"><img src="@/assets/images/detail-title.png">生物样品分析溶液配制表<img |
|
|
src="@/assets/images/detail-title.png" /></div> |
|
|
src="@/assets/images/detail-title.png" /></div> |
|
|
|
|
|
<button @click = "onSave">保存</button> |
|
|
|
|
|
|
|
|
<div class="detail-content"> |
|
|
<div class="detail-content"> |
|
|
<div class="content"> |
|
|
<div class="content"> |
|
|
<LineLabel label = "试验基本信息"/> |
|
|
<LineLabel label = "试验基本信息"/> |
|
|
@ -12,6 +14,7 @@ |
|
|
<TableList class="mt-20" :columns = "sysjColumns" :dataSource = "dataSource"/> |
|
|
<TableList class="mt-20" :columns = "sysjColumns" :dataSource = "dataSource"/> |
|
|
<LineLabel class="mt-20" label = "仪器使用信息"/> |
|
|
<LineLabel class="mt-20" label = "仪器使用信息"/> |
|
|
<TableList class="mt-20" :columns = "yqsColumns" :dataSource = "dataSource"/> |
|
|
<TableList class="mt-20" :columns = "yqsColumns" :dataSource = "dataSource"/> |
|
|
|
|
|
<LineLabel class="mt-20" label = "存储条件"/> |
|
|
<BaseInfoFormPcakge ref = "storageCondition" :formConfig = "storageFormConfig" :formData = "formData"/> |
|
|
<BaseInfoFormPcakge ref = "storageCondition" :formConfig = "storageFormConfig" :formData = "formData"/> |
|
|
<LineLabel class="mt-20" label = "操作步骤"/> |
|
|
<LineLabel class="mt-20" label = "操作步骤"/> |
|
|
<div class="template-form-item"> |
|
|
<div class="template-form-item"> |
|
|
@ -20,7 +23,6 @@ |
|
|
<Step ref = "stepRef"></Step> |
|
|
<Step ref = "stepRef"></Step> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<button @click = "onSave">保存</button> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
@ -31,15 +33,30 @@ import LineLabel from "@/components/Template/LineLabel"; |
|
|
import TableList from "@/components/Template/Table"; |
|
|
import TableList from "@/components/Template/Table"; |
|
|
import Step from "@/components/Template/Step"; |
|
|
import Step from "@/components/Template/Step"; |
|
|
import templateMixin from "../../mixins/templateMixin"; |
|
|
import templateMixin from "../../mixins/templateMixin"; |
|
|
|
|
|
import CustomTable from '@/components/Template/CustomTable.vue'; |
|
|
|
|
|
const mgOptions = [ |
|
|
|
|
|
{label:"mg",value:"mg"}, |
|
|
|
|
|
{label:"ng",value:"ng"}, |
|
|
|
|
|
]; |
|
|
|
|
|
const conditionOptions = [ |
|
|
|
|
|
{label:"条件1",value:"1"}, |
|
|
|
|
|
{label:"条件2",value:"2"}, |
|
|
|
|
|
{label:"条件3",value:"3"}, |
|
|
|
|
|
{label:"其他",value:"-1"}, |
|
|
|
|
|
]; |
|
|
export default { |
|
|
export default { |
|
|
name: "SWYPFXRYPZB", |
|
|
name: "SWYPFXRYPZB", |
|
|
components: { BaseInfoFormPcakge,LineLabel,TableList,Step }, |
|
|
|
|
|
|
|
|
components: { BaseInfoFormPcakge,LineLabel,TableList,Step,CustomTable }, |
|
|
mixins: [templateMixin], |
|
|
mixins: [templateMixin], |
|
|
props: { |
|
|
props: { |
|
|
value: { |
|
|
value: { |
|
|
type: {}, |
|
|
type: {}, |
|
|
default: () => { }, |
|
|
default: () => { }, |
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
fillType: { |
|
|
|
|
|
type: String, |
|
|
|
|
|
default: 'preFill', |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
watch: { |
|
|
watch: { |
|
|
value: { |
|
|
value: { |
|
|
@ -53,18 +70,18 @@ export default { |
|
|
return { |
|
|
return { |
|
|
dataSource:[{name:"名称1"}], |
|
|
dataSource:[{name:"名称1"}], |
|
|
sysjColumns:[ |
|
|
sysjColumns:[ |
|
|
{label:"试剂名称",prop:"name"}, |
|
|
|
|
|
{label:"编号",prop:"name"}, |
|
|
|
|
|
{label:"批号",prop:"name"}, |
|
|
|
|
|
{label:"浓度/含量/纯度",prop:"name"}, |
|
|
|
|
|
{label:"来源",prop:"name"}, |
|
|
|
|
|
{label:"失效日",prop:"name"}, |
|
|
|
|
|
|
|
|
{label:"试剂名称",prop:"reagentName"}, |
|
|
|
|
|
{label:"编号",prop:"reagentCode"}, |
|
|
|
|
|
{label:"批号",prop:"reagentNo"}, |
|
|
|
|
|
{label:"浓度/含量/纯度",prop:"concentration"}, |
|
|
|
|
|
{label:"来源",prop:"source"}, |
|
|
|
|
|
{label:"失效日",prop:"expireDate"}, |
|
|
], |
|
|
], |
|
|
yqsColumns:[ |
|
|
yqsColumns:[ |
|
|
{label:"仪器名称",prop:"name"}, |
|
|
|
|
|
{label:"仪器型号",prop:"name"}, |
|
|
|
|
|
{label:"仪器编号",prop:"name"}, |
|
|
|
|
|
{label:"下次测试/校准/检定日期",prop:"name"}, |
|
|
|
|
|
|
|
|
{label:"仪器名称",prop:"instrumentName"}, |
|
|
|
|
|
{label:"仪器型号",prop:"instrumentModel"}, |
|
|
|
|
|
{label:"仪器编号",prop:"instrumentCode"}, |
|
|
|
|
|
{label:"下次测试/校准/检定日期",prop:"nextTestDate"}, |
|
|
], |
|
|
], |
|
|
storageFormConfig:[ |
|
|
storageFormConfig:[ |
|
|
{ |
|
|
{ |
|
|
@ -74,11 +91,7 @@ export default { |
|
|
label:"存储条件", |
|
|
label:"存储条件", |
|
|
type:"select", |
|
|
type:"select", |
|
|
fillType:"preFill", |
|
|
fillType:"preFill", |
|
|
options:[ |
|
|
|
|
|
{label:"白光",value:"1"}, |
|
|
|
|
|
{label:"黄光",value:"3"}, |
|
|
|
|
|
{label:"其他",value:"-1"}, |
|
|
|
|
|
], |
|
|
|
|
|
|
|
|
options:conditionOptions, |
|
|
otherCode:"other1", |
|
|
otherCode:"other1", |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
@ -122,11 +135,7 @@ export default { |
|
|
type:"select", |
|
|
type:"select", |
|
|
multiple:true, |
|
|
multiple:true, |
|
|
fillType:"preFill", |
|
|
fillType:"preFill", |
|
|
options:[ |
|
|
|
|
|
{label:"白光",value:"1"}, |
|
|
|
|
|
{label:"黄光",value:"3"}, |
|
|
|
|
|
{label:"其他",value:"-1"}, |
|
|
|
|
|
], |
|
|
|
|
|
|
|
|
options:conditionOptions, |
|
|
otherCode:"other1", |
|
|
otherCode:"other1", |
|
|
}, |
|
|
}, |
|
|
act:{ |
|
|
act:{ |
|
|
@ -135,11 +144,7 @@ export default { |
|
|
fillType:"actFill", |
|
|
fillType:"actFill", |
|
|
otherCode:"other2", |
|
|
otherCode:"other2", |
|
|
multiple:true, |
|
|
multiple:true, |
|
|
options:[ |
|
|
|
|
|
{label:"白光",value:"1"}, |
|
|
|
|
|
{label:"黄光",value:"3"}, |
|
|
|
|
|
{label:"其他",value:"-1"}, |
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
options:conditionOptions |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
@ -149,11 +154,11 @@ export default { |
|
|
config:{ |
|
|
config:{ |
|
|
startDate:{ |
|
|
startDate:{ |
|
|
label:"开始时间", |
|
|
label:"开始时间", |
|
|
type:"dateTime", |
|
|
|
|
|
|
|
|
type:"input", |
|
|
}, |
|
|
}, |
|
|
endDate:{ |
|
|
endDate:{ |
|
|
label:"结束时间", |
|
|
label:"结束时间", |
|
|
type:"dateTime", |
|
|
|
|
|
|
|
|
type:"input", |
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -162,31 +167,66 @@ export default { |
|
|
{ |
|
|
{ |
|
|
type:"step", |
|
|
type:"step", |
|
|
config:{ |
|
|
config:{ |
|
|
startDate:{ |
|
|
|
|
|
|
|
|
targetName:{ |
|
|
label:"目标溶液名称", |
|
|
label:"目标溶液名称", |
|
|
type:"input", |
|
|
type:"input", |
|
|
|
|
|
fillType:"preFill", |
|
|
}, |
|
|
}, |
|
|
endDate:{ |
|
|
|
|
|
|
|
|
targetCode:{ |
|
|
label:"目标溶液编号", |
|
|
label:"目标溶液编号", |
|
|
type:"input", |
|
|
type:"input", |
|
|
subType:"span", |
|
|
subType:"span", |
|
|
|
|
|
fillType:"preFill", |
|
|
subKey:"targetCode1", |
|
|
subKey:"targetCode1", |
|
|
}, |
|
|
}, |
|
|
target:{ |
|
|
|
|
|
|
|
|
targetPreConcentration:{ |
|
|
label:"目标溶液预计浓度", |
|
|
label:"目标溶液预计浓度", |
|
|
type:"input", |
|
|
type:"input", |
|
|
subType:"select", |
|
|
subType:"select", |
|
|
subKey:"taget1", |
|
|
|
|
|
|
|
|
subKey:"targetPreConcentrationUnit", |
|
|
|
|
|
fillType:"preFill", |
|
|
|
|
|
subOptions:mgOptions, |
|
|
|
|
|
}, |
|
|
|
|
|
targetActConcentration:{ |
|
|
|
|
|
label:"目标溶液实际浓度", |
|
|
|
|
|
type:"input", |
|
|
|
|
|
subType:"select", |
|
|
|
|
|
subKey:"targetActConcentrationUnit", |
|
|
|
|
|
fillType:"actFill", |
|
|
|
|
|
subFillType:"preFill", |
|
|
|
|
|
subOptions:mgOptions, |
|
|
|
|
|
}, |
|
|
|
|
|
targetPreVolume:{ |
|
|
|
|
|
label:"目标溶液预计体积", |
|
|
|
|
|
type:"input", |
|
|
|
|
|
subType:"select", |
|
|
|
|
|
subKey:"targetPreVolumeUnit", |
|
|
|
|
|
subOptions:mgOptions, |
|
|
|
|
|
fillType:"preFill", |
|
|
|
|
|
}, |
|
|
|
|
|
targetActVolume:{ |
|
|
|
|
|
label:"目标溶液实际体积", |
|
|
|
|
|
type:"input", |
|
|
|
|
|
subType:"select", |
|
|
|
|
|
subKey:"targetActVolumeUnit", |
|
|
|
|
|
fillType:"actFill", |
|
|
|
|
|
subFillType:"preFill", |
|
|
|
|
|
subOptions:mgOptions, |
|
|
|
|
|
}, |
|
|
|
|
|
effectivePeriod:{ |
|
|
|
|
|
label:"有效周期", |
|
|
|
|
|
type:"input", |
|
|
|
|
|
subType:"select", |
|
|
|
|
|
subKey:"effectivePeriodUnit", |
|
|
|
|
|
fillType:"preFill", |
|
|
subOptions:[ |
|
|
subOptions:[ |
|
|
{label:"mg",value:"mg"}, |
|
|
|
|
|
{label:"ng",value:"ng"}, |
|
|
|
|
|
|
|
|
{label:"小时",value:"hour"}, |
|
|
|
|
|
{label:"天",value:"day"}, |
|
|
], |
|
|
], |
|
|
}, |
|
|
}, |
|
|
target:{ |
|
|
|
|
|
label:"目标溶液预计浓度", |
|
|
|
|
|
|
|
|
expireDate:{ |
|
|
|
|
|
label:"失效日", |
|
|
type:"input", |
|
|
type:"input", |
|
|
subType:"clickable", |
|
|
|
|
|
subKey:"taget1c", |
|
|
|
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -197,17 +237,37 @@ export default { |
|
|
mounted() { |
|
|
mounted() { |
|
|
setTimeout(()=>{ |
|
|
setTimeout(()=>{ |
|
|
this.formData = { |
|
|
this.formData = { |
|
|
code:"code1",name:"name1",act:["1","-1"],taget1:"mg",targetCode1:"123456",taget1c:"可点击" |
|
|
|
|
|
|
|
|
// code:"code1",name:"name1",act:["1","-1"],taget1:"mg",targetCode1:"123456",taget1c:"可点击" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
},3000) |
|
|
},3000) |
|
|
|
|
|
setTimeout(()=>{ |
|
|
|
|
|
this.storageFormConfig[0].config.storageCondition1.options = [ |
|
|
|
|
|
{label:"白光",value:"1"}, |
|
|
|
|
|
{label:"黄光",value:"3"}, |
|
|
|
|
|
{label:"其他",value:"-1"}, |
|
|
|
|
|
] |
|
|
|
|
|
},4000) |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
getFormData(){ |
|
|
|
|
|
const baseData = this.$refs.baseInfo.getFormData(); |
|
|
|
|
|
const conditionData = this.$refs.storageCondition.getFormData(); |
|
|
|
|
|
const stepData = this.$refs.stepRef.getFormData(); |
|
|
|
|
|
const stepFormData = this.$refs.stepFormPackage.getFormData(); |
|
|
|
|
|
return { |
|
|
|
|
|
...baseData, |
|
|
|
|
|
...conditionData, |
|
|
|
|
|
...stepData, |
|
|
|
|
|
...stepFormData, |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
async onSave(){ |
|
|
async onSave(){ |
|
|
// const result1 = await this.$refs.baseInfo.getFormData(); |
|
|
|
|
|
// const result2 = await this.$refs.storageCondition.getFormData(); |
|
|
|
|
|
// const result3 = await this.$refs.stepRef.getFormData(); |
|
|
|
|
|
const result = await this.$refs.stepFormPackage.getFormData(); |
|
|
|
|
|
console.log(result,"reee") |
|
|
|
|
|
|
|
|
const baseData = await this.$refs.baseInfo.getFormData(); |
|
|
|
|
|
const conditionData = await this.$refs.storageCondition.getFormData(); |
|
|
|
|
|
const stepData = await this.$refs.stepRef.getFormData(); |
|
|
|
|
|
const stepFormData = await this.$refs.stepFormPackage.getFormData(); |
|
|
|
|
|
console.log(baseData,conditionData,stepData,stepFormData,"reee") |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
|