lilei %!s(int64=2) %!d(string=hai) anos
pai
achega
c263301fb1

+ 3 - 2
src/views/salesReturnManagement/salesReturn/detail.vue

@@ -230,7 +230,6 @@ export default {
     handlePrint (type) {
       const _this = this
       const a = ['WAIT_CUSTOMER_SERVICE_CONFIRM', 'WAIT_FINANCIAL_AUDIT', 'FINANCIAL_REJECT', 'FINISH'].find(item => item == this.detailData.billStatus)
-      console.log(a, '-------')
       const status = a ? 'SALES_RETURN_AMOUNT' : 'SALES_RETURN_REASON'
       const params = { sn: this.$route.params.sn, status: status }
       _this.spinning = true
@@ -241,7 +240,9 @@ export default {
         })
       } else {
         // 打印或预览
-        printFun(salesReturnPrint, params, type, '销售退货', () => { _this.spinning = false })
+        printFun(salesReturnPrint, params, type, '销售退货', () => {
+          _this.spinning = false
+        })
       }
     }
   },

+ 6 - 2
src/views/salesReturnManagement/salesReturn/salesReturnEdit.vue

@@ -403,7 +403,9 @@ export default {
     // 打印预览/快捷打印
     handlePrint (type) {
       const _this = this
-      const params = { sn: this.$route.params.sn }
+      const a = ['WAIT_CUSTOMER_SERVICE_CONFIRM', 'WAIT_FINANCIAL_AUDIT', 'FINANCIAL_REJECT', 'FINISH'].find(item => item == this.detailData.billStatus)
+      const status = a ? 'SALES_RETURN_AMOUNT' : 'SALES_RETURN_REASON'
+      const params = { sn: this.$route.params.sn, status: status }
       _this.spinning = true
       // 导出
       if (type == 'export') {
@@ -412,7 +414,9 @@ export default {
         })
       } else {
         // 打印或预览
-        printFun(salesReturnPrint, params, type, '销售退货', () => { _this.spinning = false })
+        printFun(salesReturnPrint, params, type, '销售退货', () => {
+          _this.spinning = false
+        })
       }
     },
     pageInit () {