Browse Source

feat:[模板管理][update]

lkf
luojie 2 months ago
parent
commit
36e08ff599
3 changed files with 41 additions and 8 deletions
  1. +8
    -3
      src/views/business/comps/template/TemplateTable.vue
  2. +4
    -2
      src/views/business/comps/template/comps/sp/SWYPBQGZYZBB.vue
  3. +29
    -3
      src/views/business/comps/template/dialog/TagPrintDialog.vue

+ 8
- 3
src/views/business/comps/template/TemplateTable.vue View File

@ -3,6 +3,7 @@
<component ref="templateComponent" :is="getTemplateComponent()" :templateData="templateData" :fillType="fillType"> <component ref="templateComponent" :is="getTemplateComponent()" :templateData="templateData" :fillType="fillType">
</component> </component>
<SubPackageDialog ref = "subPackageDialogRef"></SubPackageDialog> <SubPackageDialog ref = "subPackageDialogRef"></SubPackageDialog>
<TagPrintDialog ref = "tagPrintDialogRef"></TagPrintDialog>
</div> </div>
</template> </template>
@ -29,12 +30,13 @@ import Demo from "./comps/sp/Demo.vue";
// //
import SYWZPZJHB from "./comps/gsp/SYWZPZJHB.vue"; import SYWZPZJHB from "./comps/gsp/SYWZPZJHB.vue";
import MJYLQSQD from "./comps/gsp/MJYLQSQD.vue"; import MJYLQSQD from "./comps/gsp/MJYLQSQD.vue";
import SubPackageDialog from "./dialog/SubPackageDialog.vue"
import SubPackageDialog from "./dialog/SubPackageDialog.vue";//
import TagPrintDialog from "./dialog/TagPrintDialog.vue";//
export default { export default {
name: "TemplateTable", name: "TemplateTable",
components: { components: {
SubPackageDialog,
SubPackageDialog,TagPrintDialog,
// //
MJYLQSQD, SYWZPZJHB, MJYLQSQD, SYWZPZJHB,
// //
@ -107,7 +109,6 @@ export default {
} }
if (v.zdgxjl) { if (v.zdgxjl) {
this.fieldCheckObj = JSON.parse(v.zdgxjl) || {}; this.fieldCheckObj = JSON.parse(v.zdgxjl) || {};
console.log(this.fieldCheckObj,v.zdgxjl,"v.zdgxjl")
} }
} }
} }
@ -154,11 +155,15 @@ export default {
EventBus.$on("showSubPackageDialog",(data)=>{ EventBus.$on("showSubPackageDialog",(data)=>{
this.$refs.subPackageDialogRef.show(data) this.$refs.subPackageDialogRef.show(data)
}) })
EventBus.$on("showTagPrintDialog",(data)=>{
this.$refs.tagPrintDialogRef.show(data)
})
}, },
beforeDestroy() { beforeDestroy() {
// //
EventBus.$off('onModifyRecord'); EventBus.$off('onModifyRecord');
EventBus.$off("showSubPackageDialog"); EventBus.$off("showSubPackageDialog");
EventBus.$off("showTagPrintDialog");
}, },
methods: { methods: {
async getFormData() { async getFormData() {

+ 4
- 2
src/views/business/comps/template/comps/sp/SWYPBQGZYZBB.vue View File

@ -270,8 +270,10 @@ export default {
bodyFillType: "preFill", bodyFillType: "preFill",
width: 280, width: 280,
myCodeFields: ["targetSolutionCode", "subTargetSolutionCode"],// myCodeFields: ["targetSolutionCode", "subTargetSolutionCode"],//
maxVolumeField: "actSolutionVolume",//
maxVolumeFieldUnit: "actSolutionVolumeUnit",//
// maxVolumeField: "actSolutionVolume",//
// maxVolumeFieldUnit: "actSolutionVolumeUnit",//
maxVolumeField: "targetSolutionVolume,targetDiluentVolume",//
maxVolumeFieldUnit: "targetSolutionVolumeUnit,targetDiluentVolumeUnit",//
}, },
{ {
label: "起始溶液编号", label: "起始溶液编号",

+ 29
- 3
src/views/business/comps/template/dialog/TagPrintDialog.vue View File

@ -1,12 +1,38 @@
<template> <template>
<el-dialog>
<el-dialog
title="标签打印"
:visible.sync="visible"
width="30%"
@close = "close"
>
<template slot="footer" class="dialog-footer">
<el-button type="primary" @click="close">{{ $t('form.cancel') }}</el-button>
<el-button type="primary" @click="printTag">打印标签</el-button>
</template>
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
export default { export default {
data() {
return {
visible: false,
formData: {}
}
},
methods: {
show(data) {
this.formData = data
this.visible = true
},
close() {
this.visible = false
},
printTag() {
//
console.log("打印标签", this.formData)
}
}
} }
</script> </script>

Loading…
Cancel
Save