|
@@ -225,9 +225,15 @@ export default {
|
|
},
|
|
},
|
|
// 打印预览/快捷打印
|
|
// 打印预览/快捷打印
|
|
handlePrint (type) {
|
|
handlePrint (type) {
|
|
|
|
+ const _this = this
|
|
this.nowPrintType = type
|
|
this.nowPrintType = type
|
|
if (type == 'DISPATCH_BILL') { // 发货打印
|
|
if (type == 'DISPATCH_BILL') { // 发货打印
|
|
- this.handlePrintOk(null, '发货', 'preview')
|
|
|
|
|
|
+ _this.spinning = true
|
|
|
|
+ const params = {
|
|
|
|
+ type: this.nowPrintType,
|
|
|
|
+ dispatchBillSn: this.detailData.dispatchBillSn
|
|
|
|
+ }
|
|
|
|
+ printFun(dispatchDetailPrint, params, 'preview', '发货', () => { _this.spinning = false })
|
|
} else if (type == 'DISPATCH_BILL_TYPE') { // 发货分类打印
|
|
} else if (type == 'DISPATCH_BILL_TYPE') { // 发货分类打印
|
|
this.openModal = true
|
|
this.openModal = true
|
|
this.$refs.typePrint.setData(this.detailData, this.outBizSubSn || this.bizSn || this.$route.params.sn)
|
|
this.$refs.typePrint.setData(this.detailData, this.outBizSubSn || this.bizSn || this.$route.params.sn)
|