0e4f3211 by renchao@pashanhoo.com

style:善证信息

1 parent 66d24b36
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-05 15:14:08
* @LastEditTime: 2023-09-05 15:36:51
-->
<template>
<div>
......@@ -41,7 +41,7 @@
</object>
<div class="text-center pt-10">
<el-button @click="$popupCacel">取消</el-button>
<el-button type="primary" @click="handlePrint" v-if="this.formData.ysxlh">打印</el-button>
<el-button type="primary" @click="handlePrint" v-if="disabled">打印</el-button>
<el-button type="primary" @click="handleSubmit" v-else>确定</el-button>
</div>
......@@ -179,6 +179,7 @@
this.zfyy = ''
this.ruleForm.ysxlh = ''
this.bdcqz.ysxlh = ''
store.dispatch('user/reWorkFresh', false)
if (this.bdcqz.bdcqzlx == 1) {
this.drawTextOnImage()
} else {
......@@ -582,6 +583,11 @@
},
// 打印
handlePrint () {
if (this.ruleForm.ysxlh == '') {
this.$message.error('请选择印刷序列号');
return;
}
let that = this
if (this.bdcqz.bdcqzlx == 1) {
getPrintTemplateByCode({ tmpno: 'zsdy' }).then(resInfo => {
if (resInfo.code == 200) {
......@@ -599,6 +605,9 @@
} else {
this.$message.error(resInfo.message)
}
that.$popupCacel()
//刷新列表
store.dispatch('user/reWorkFresh', true)
})
} else {
getPrintTemplateByCode({ tmpno: 'zmdy' }).then(resInfo => {
......@@ -621,10 +630,11 @@
} else {
this.$message.error(resInfo.message)
}
that.$popupCacel()
//刷新列表
store.dispatch('user/reWorkFresh', true)
})
}
//刷新列表
store.dispatch('user/reWorkFresh', true)
},
/**
* @description: 保存打印记录
......@@ -647,6 +657,7 @@
} else {
this.$message.error(res.message)
}
store.dispatch('user/reWorkFresh', true)
})
}
}
......
......@@ -81,6 +81,7 @@
watch: {
workFresh: {
handler (newVal, oldVal) {
console.log(newVal, 'newVal');
if (newVal) this.list()
}
}
......