|
|
@@ -584,10 +584,12 @@
|
|
|
handlePrint(ref) {
|
|
|
if (this.selection.length > 1)
|
|
|
return this.$message.warning('请选择一条');
|
|
|
+ const approveList = ['printTemplateJsRef', 'printTemplateJsYpRef', 'printTemplateWlRef']
|
|
|
let flag = this.selection.some((item) =>
|
|
|
[2].includes(item.reviewStatus)
|
|
|
);
|
|
|
- if (!flag)
|
|
|
+ console.log('flag', flag, approveList.includes(ref))
|
|
|
+ if (!flag && approveList.includes(ref))
|
|
|
return this.$message.warning('抱歉需要已审核的发货单才能打印,请检查');
|
|
|
if (ref != 'printTemplateByRef' && ref != 'printTemplateHtRef') {
|
|
|
this.$refs[ref].open(this.selection[0].id);
|