Browse Source

fix:[模板管理]标签打印

master
15881625488@163.com 5 hours ago
parent
commit
11ed828e2e
3 changed files with 24 additions and 0 deletions
  1. +3
    -0
      src/views/business/comps/template/TemplateTable.vue
  2. +4
    -0
      src/views/business/comps/template/mixins/templateMixin.js
  3. +17
    -0
      src/views/business/study/comp/tbbd/Bj.vue

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

@ -524,6 +524,9 @@ export default {
getResource() { getResource() {
return this.$refs.templateComponent.getResource(); return this.$refs.templateComponent.getResource();
}, },
getPrintResource() {
return this.$refs.templateComponent.getPrintResource();
},
getYqResource() { getYqResource() {
return this.$refs.templateComponent.getYqResource(); return this.$refs.templateComponent.getYqResource();
}, },

+ 4
- 0
src/views/business/comps/template/mixins/templateMixin.js View File

@ -215,6 +215,7 @@ export default {
jcbList: [], //检测板信息 jcbList: [], //检测板信息
xbxj: [], //细胞细菌信息 xbxj: [], //细胞细菌信息
printResourceTmp:[],//标签打印list信息
resourceTmp: [], //试验试剂信息提交用 resourceTmp: [], //试验试剂信息提交用
yqResourceTmp: [], //仪器信息提交用 yqResourceTmp: [], //仪器信息提交用
jcbListTmp: [], //检测板信息提交用 jcbListTmp: [], //检测板信息提交用
@ -386,6 +387,9 @@ export default {
getResource() { getResource() {
return this.resourceTmp return this.resourceTmp
}, },
getPrintResource() {
return this.printResourceTmp
},
getYqResource() { getYqResource() {
return this.yqResourceTmp return this.yqResourceTmp
}, },

+ 17
- 0
src/views/business/study/comp/tbbd/Bj.vue View File

@ -28,6 +28,9 @@
<el-button type="primary" @click="next">{{ $t('page.business.study.studyFormFill.next') }}</el-button> <el-button type="primary" @click="next">{{ $t('page.business.study.studyFormFill.next') }}</el-button>
</template> </template>
<template v-else> <template v-else>
<el-button @click="showDy" v-if="form.templateShowDy == 10">{{
$t('template.common.bqdy')
}}</el-button>
<el-button @click="showYjcc" v-if="form.templateShowYjcc == 10">{{ <el-button @click="showYjcc" v-if="form.templateShowYjcc == 10">{{
$t('page.business.study.studyFormFill.yjcc') $t('page.business.study.studyFormFill.yjcc')
}}</el-button> }}</el-button>
@ -813,6 +816,20 @@ export default {
that.$modal.msgError("没有可存储的药剂") that.$modal.msgError("没有可存储的药剂")
} }
}, },
async showDy() {
let that = this
that.resetYjcc()
that.formYjcc.id = that.form.id
that.cclistYj = []
that.addCcYj()
that.$refs.templateTable.getFilledFormData()
let resource = that.$refs.templateTable.getPrintResource()
if (resource.length > 0) {
} else {
that.$modal.msgError("没有可打印的标签")
}
},
async showTjsh(qmyy) { async showTjsh(qmyy) {
let that = this let that = this
let content = await this.$refs.templateTable.getFormData() let content = await this.$refs.templateTable.getFormData()

Loading…
Cancel
Save