update 更新包装托盘打印
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
" />
|
||||
<Overlay v-if="overlayVisible" />
|
||||
|
||||
<PrintDom ref="print" v-if="printDOMmount" @destroy="printDOMmount = false" />
|
||||
<PrintDom ref="print" v-if="printDOMmount" @destroy="printDOMmount = false" @refresh-list="getList" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -620,12 +620,16 @@ export default {
|
||||
confirmButtonText: "确认",
|
||||
cancelButtonText: "我再想想",
|
||||
type: "warning",
|
||||
}).then(() => {
|
||||
this.printDOMmount = true;
|
||||
this.$nextTick(() => {
|
||||
this.$refs["print"].print(data);
|
||||
})
|
||||
.then(() => {
|
||||
this.printDOMmount = true;
|
||||
this.$nextTick(() => {
|
||||
this.$refs["print"].print(data);
|
||||
});
|
||||
})
|
||||
.catch((err) => {
|
||||
// console.log("cancel ", err);
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user