lilei 3 năm trước cách đây
mục cha
commit
b0a25a68b1
1 tập tin đã thay đổi với 1 bổ sung11 xóa
  1. 1 11
      src/views/salesManagement/salesQuery/detail.vue

+ 1 - 11
src/views/salesManagement/salesQuery/detail.vue

@@ -377,7 +377,7 @@ export default {
           this.$message.success(res.message)
           this.spinningAudit = false
           if (billStatus == 'AUDIT_PASS' && !this.auditText) {
-            this.toDispatch({ salesBillSn: this.$route.params.sn })
+            this.$router.push({ name: 'waitDispatch', params: { salesBillSn: this.$route.params.sn, dispatchBillSn: res.data.dispatchBillSn } })
           } else {
             //  关闭详情跳列表
             this.handleBack()
@@ -388,16 +388,6 @@ export default {
         }
       })
     },
-    // 跳转下推页面
-    toDispatch (row) {
-      this.spinning = true
-      findBySalesBillSn({ salesBillSn: row.salesBillSn }).then(res => {
-        this.spinning = false
-        if (res.status == 200) {
-          this.$router.push({ name: 'waitDispatch', params: { salesBillSn: row.salesBillSn, dispatchBillSn: res.data.dispatchBillSn } })
-        }
-      })
-    },
     // 打印导出
     handlePrint (type) {
       const _this = this