style:善证信息
Showing
2 changed files
with
16 additions
and
4 deletions
| 1 | <!-- | 1 | <!-- | 
| 2 | * @Description: | 2 | * @Description: | 
| 3 | * @Autor: renchao | 3 | * @Autor: renchao | 
| 4 | * @LastEditTime: 2023-09-05 15:14:08 | 4 | * @LastEditTime: 2023-09-05 15:36:51 | 
| 5 | --> | 5 | --> | 
| 6 | <template> | 6 | <template> | 
| 7 | <div> | 7 | <div> | 
| ... | @@ -41,7 +41,7 @@ | ... | @@ -41,7 +41,7 @@ | 
| 41 | </object> | 41 | </object> | 
| 42 | <div class="text-center pt-10"> | 42 | <div class="text-center pt-10"> | 
| 43 | <el-button @click="$popupCacel">取消</el-button> | 43 | <el-button @click="$popupCacel">取消</el-button> | 
| 44 | <el-button type="primary" @click="handlePrint" v-if="this.formData.ysxlh">打印</el-button> | 44 | <el-button type="primary" @click="handlePrint" v-if="disabled">打印</el-button> | 
| 45 | <el-button type="primary" @click="handleSubmit" v-else>确定</el-button> | 45 | <el-button type="primary" @click="handleSubmit" v-else>确定</el-button> | 
| 46 | </div> | 46 | </div> | 
| 47 | 47 | ||
| ... | @@ -179,6 +179,7 @@ | ... | @@ -179,6 +179,7 @@ | 
| 179 | this.zfyy = '' | 179 | this.zfyy = '' | 
| 180 | this.ruleForm.ysxlh = '' | 180 | this.ruleForm.ysxlh = '' | 
| 181 | this.bdcqz.ysxlh = '' | 181 | this.bdcqz.ysxlh = '' | 
| 182 | store.dispatch('user/reWorkFresh', false) | ||
| 182 | if (this.bdcqz.bdcqzlx == 1) { | 183 | if (this.bdcqz.bdcqzlx == 1) { | 
| 183 | this.drawTextOnImage() | 184 | this.drawTextOnImage() | 
| 184 | } else { | 185 | } else { | 
| ... | @@ -582,6 +583,11 @@ | ... | @@ -582,6 +583,11 @@ | 
| 582 | }, | 583 | }, | 
| 583 | // 打印 | 584 | // 打印 | 
| 584 | handlePrint () { | 585 | handlePrint () { | 
| 586 | if (this.ruleForm.ysxlh == '') { | ||
| 587 | this.$message.error('请选择印刷序列号'); | ||
| 588 | return; | ||
| 589 | } | ||
| 590 | let that = this | ||
| 585 | if (this.bdcqz.bdcqzlx == 1) { | 591 | if (this.bdcqz.bdcqzlx == 1) { | 
| 586 | getPrintTemplateByCode({ tmpno: 'zsdy' }).then(resInfo => { | 592 | getPrintTemplateByCode({ tmpno: 'zsdy' }).then(resInfo => { | 
| 587 | if (resInfo.code == 200) { | 593 | if (resInfo.code == 200) { | 
| ... | @@ -599,6 +605,9 @@ | ... | @@ -599,6 +605,9 @@ | 
| 599 | } else { | 605 | } else { | 
| 600 | this.$message.error(resInfo.message) | 606 | this.$message.error(resInfo.message) | 
| 601 | } | 607 | } | 
| 608 | that.$popupCacel() | ||
| 609 | //刷新列表 | ||
| 610 | store.dispatch('user/reWorkFresh', true) | ||
| 602 | }) | 611 | }) | 
| 603 | } else { | 612 | } else { | 
| 604 | getPrintTemplateByCode({ tmpno: 'zmdy' }).then(resInfo => { | 613 | getPrintTemplateByCode({ tmpno: 'zmdy' }).then(resInfo => { | 
| ... | @@ -621,10 +630,11 @@ | ... | @@ -621,10 +630,11 @@ | 
| 621 | } else { | 630 | } else { | 
| 622 | this.$message.error(resInfo.message) | 631 | this.$message.error(resInfo.message) | 
| 623 | } | 632 | } | 
| 633 | that.$popupCacel() | ||
| 634 | //刷新列表 | ||
| 635 | store.dispatch('user/reWorkFresh', true) | ||
| 624 | }) | 636 | }) | 
| 625 | } | 637 | } | 
| 626 | //刷新列表 | ||
| 627 | store.dispatch('user/reWorkFresh', true) | ||
| 628 | }, | 638 | }, | 
| 629 | /** | 639 | /** | 
| 630 | * @description: 保存打印记录 | 640 | * @description: 保存打印记录 | 
| ... | @@ -647,6 +657,7 @@ | ... | @@ -647,6 +657,7 @@ | 
| 647 | } else { | 657 | } else { | 
| 648 | this.$message.error(res.message) | 658 | this.$message.error(res.message) | 
| 649 | } | 659 | } | 
| 660 | store.dispatch('user/reWorkFresh', true) | ||
| 650 | }) | 661 | }) | 
| 651 | } | 662 | } | 
| 652 | } | 663 | } | ... | ... | 
- 
Please register or sign in to post a comment