瀏覽代碼

bug 修复

lilei 2 年之前
父節點
當前提交
baabdbd5e6
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      src/views/salesManagement/pushOrderManagement/detail.vue

+ 7 - 1
src/views/salesManagement/pushOrderManagement/detail.vue

@@ -225,9 +225,15 @@ export default {
     },
     // 打印预览/快捷打印
     handlePrint (type) {
+      const _this = this
       this.nowPrintType = type
       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') { // 发货分类打印
         this.openModal = true
         this.$refs.typePrint.setData(this.detailData, this.outBizSubSn || this.bizSn || this.$route.params.sn)