Browse Source

feat:[模板管理][生物样品分析溶液配制表1

]
luojie
luojie 1 week ago
parent
commit
fa1812fa32
3 changed files with 11 additions and 24 deletions
  1. +5
    -2
      src/views/business/comps/template/TemplateTable.vue
  2. +5
    -21
      src/views/business/comps/template/comps/sp/SWYPFXRYPZB.vue
  3. +1
    -1
      src/views/business/template/list.vue

+ 5
- 2
src/views/business/comps/template/TemplateTable.vue View File

@ -2,8 +2,8 @@
<div class="template-table">
<!-- <SP001 v-if="sn == 'SP0012'" />
<SWYPFXRYPZB v-if="sn == 'SP001'" /> -->
<component :is="getTemplateComponent()" :fillType="fillType">
</component>
<component ref="templateComponent" :is="getTemplateComponent()" :fillType="fillType">
</component>
</div>
</template>
@ -52,6 +52,9 @@ export default {
mounted() {
},
methods: {
async getFormData() {
return await this.$refs.templateComponent.getFormData();
},
getTemplateComponent() {
return this.templateComponentMap[this.sn]
},

+ 5
- 21
src/views/business/comps/template/comps/sp/SWYPFXRYPZB.vue View File

@ -4,8 +4,6 @@
<div class="detail-container">
<div class="detail-title"><img src="@/assets/images/detail-title.png">生物样品分析溶液配制表<img
src="@/assets/images/detail-title.png" /></div>
<button @click = "onSave">保存</button>
<div class="detail-content">
<div class="content">
<LineLabel label = "试验基本信息"/>
@ -241,20 +239,13 @@ export default {
}
},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();
async getFormData(){
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();
return {
...baseData,
...conditionData,
@ -262,13 +253,6 @@ export default {
...stepFormData,
}
},
async onSave(){
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")
}
}
};
</script>

+ 1
- 1
src/views/business/template/list.vue View File

@ -79,7 +79,7 @@
</el-dialog>
<el-dialog :close-on-click-modal="false" :title="$t('page.system.template.bdpz')" :visible.sync="tableDialog.visible"
width="90%" append-to-body>
<TemplateTable :sn="tableDialog.sn" fillType="detail" />
<TemplateTable :sn="tableDialog.sn" fillType="preFill" />
</el-dialog>
</div>
</template>

Loading…
Cancel
Save