-
-
+
添加步骤
-
+
步骤{{ index + 1 }}
@@ -41,6 +30,14 @@
:step-data="step.formData"
@update="onFormUpdate(index, $event)">
+
@@ -77,21 +74,21 @@ export default {
return {
stepTypes: [
{ label: '容器选择', value: 'container' },
- { label: '离心', value: 'centrifuge' },
- { label: '自动称量', value: 'autoWeigh' },
- { label: '手动称量', value: 'manualWeigh' },
- { label: '加入溶液', value: 'addSolution' },
- { label: '混合', value: 'mix' },
- { label: '超声', value: 'ultrasound' },
- { label: '抽滤', value: 'filtration' },
- { label: '分装', value: 'package' },
- { label: '封装2管', value: 'seal2' },
- { label: '封装3管', value: 'seal3' },
- { label: '漩涡混匀', value: 'vortex' },
- { label: '包被', value: 'coat' },
- { label: '静置开始', value: 'staticStart' },
- { label: '静置结束', value: 'staticEnd' },
- { label: '取板', value: 'takePlate' }
+ // { label: '离心', value: 'centrifuge' },
+ // { label: '自动称量', value: 'autoWeigh' },
+ // { label: '手动称量', value: 'manualWeigh' },
+ // { label: '加入溶液', value: 'addSolution' },
+ // { label: '混合', value: 'mix' },
+ // { label: '超声', value: 'ultrasound' },
+ // { label: '抽滤', value: 'filtration' },
+ // { label: '分装', value: 'package' },
+ // { label: '封装2管', value: 'seal2' },
+ // { label: '封装3管', value: 'seal3' },
+ // { label: '漩涡混匀', value: 'vortex' },
+ // { label: '包被', value: 'coat' },
+ // { label: '静置开始', value: 'staticStart' },
+ // { label: '静置结束', value: 'staticEnd' },
+ // { label: '取板', value: 'takePlate' }
],
steps: [],
stepId: 1,
@@ -166,6 +163,10 @@ export default {
}
},
methods: {
+ isShowAddStep() {
+ const {templateStatus} = this.$store.state.template
+ return templateStatus === 'preFill';
+ },
addStep() {
try {
this.steps.push({
@@ -309,6 +310,10 @@ export default {
\ No newline at end of file
diff --git a/src/views/business/comps/template/comps/sp/SWYPFXRYPZB.vue b/src/views/business/comps/template/comps/sp/SWYPFXRYPZB.vue
index 229796f..fa4e049 100644
--- a/src/views/business/comps/template/comps/sp/SWYPFXRYPZB.vue
+++ b/src/views/business/comps/template/comps/sp/SWYPFXRYPZB.vue
@@ -4,6 +4,8 @@

生物样品分析溶液配制表

+
+
@@ -12,6 +14,7 @@
+
@@ -20,7 +23,6 @@
-
@@ -31,15 +33,30 @@ import LineLabel from "@/components/Template/LineLabel";
import TableList from "@/components/Template/Table";
import Step from "@/components/Template/Step";
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 {
name: "SWYPFXRYPZB",
- components: { BaseInfoFormPcakge,LineLabel,TableList,Step },
+ components: { BaseInfoFormPcakge,LineLabel,TableList,Step,CustomTable },
mixins: [templateMixin],
props: {
value: {
type: {},
default: () => { },
- }
+ },
+ fillType: {
+ type: String,
+ default: 'preFill',
+ },
},
watch: {
value: {
@@ -53,18 +70,18 @@ export default {
return {
dataSource:[{name:"名称1"}],
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:[
- {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:[
{
@@ -74,11 +91,7 @@ export default {
label:"存储条件",
type:"select",
fillType:"preFill",
- options:[
- {label:"白光",value:"1"},
- {label:"黄光",value:"3"},
- {label:"其他",value:"-1"},
- ],
+ options:conditionOptions,
otherCode:"other1",
},
@@ -122,11 +135,7 @@ export default {
type:"select",
multiple:true,
fillType:"preFill",
- options:[
- {label:"白光",value:"1"},
- {label:"黄光",value:"3"},
- {label:"其他",value:"-1"},
- ],
+ options:conditionOptions,
otherCode:"other1",
},
act:{
@@ -135,11 +144,7 @@ export default {
fillType:"actFill",
otherCode:"other2",
multiple:true,
- options:[
- {label:"白光",value:"1"},
- {label:"黄光",value:"3"},
- {label:"其他",value:"-1"},
- ]
+ options:conditionOptions
}
}
},
@@ -149,11 +154,11 @@ export default {
config:{
startDate:{
label:"开始时间",
- type:"dateTime",
+ type:"input",
},
endDate:{
label:"结束时间",
- type:"dateTime",
+ type:"input",
},
}
}
@@ -162,31 +167,66 @@ export default {
{
type:"step",
config:{
- startDate:{
+ targetName:{
label:"目标溶液名称",
type:"input",
+ fillType:"preFill",
},
- endDate:{
+ targetCode:{
label:"目标溶液编号",
type:"input",
subType:"span",
+ fillType:"preFill",
subKey:"targetCode1",
},
- target:{
+ targetPreConcentration:{
label:"目标溶液预计浓度",
type:"input",
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:[
- {label:"mg",value:"mg"},
- {label:"ng",value:"ng"},
+ {label:"小时",value:"hour"},
+ {label:"天",value:"day"},
],
},
- target:{
- label:"目标溶液预计浓度",
+ expireDate:{
+ label:"失效日",
type:"input",
- subType:"clickable",
- subKey:"taget1c",
},
}
}
@@ -197,17 +237,37 @@ export default {
mounted() {
setTimeout(()=>{
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)
+ setTimeout(()=>{
+ this.storageFormConfig[0].config.storageCondition1.options = [
+ {label:"白光",value:"1"},
+ {label:"黄光",value:"3"},
+ {label:"其他",value:"-1"},
+ ]
+ },4000)
},
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(){
- // 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")
}
}
};
diff --git a/src/views/business/comps/template/mixins/templateMixin.js b/src/views/business/comps/template/mixins/templateMixin.js
index e1ad914..2f9519e 100644
--- a/src/views/business/comps/template/mixins/templateMixin.js
+++ b/src/views/business/comps/template/mixins/templateMixin.js
@@ -3,9 +3,9 @@ export default {
},
mounted() {
- setTimeout(() => {
- this.setTemplateStatus("actFill")
- }, 4000)
+
+ this.setTemplateStatus(this.fillType)
+
},
methods: {
setTemplateStatus(status) {
diff --git a/src/views/business/template/list.vue b/src/views/business/template/list.vue
index 7f89510..ee331a0 100644
--- a/src/views/business/template/list.vue
+++ b/src/views/business/template/list.vue
@@ -79,7 +79,7 @@
-
+