|
|
@@ -34,6 +34,8 @@ mixins: [mixins],
|
|
|
orderService: app.globalData['orderService'],
|
|
|
otherPayableService: app.globalData['otherPayableService'],
|
|
|
saleOutBoundReturnService: app.globalData['saleOutBoundReturnService'],
|
|
|
+ outboundService: app.globalData['outboundService'],
|
|
|
+
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
@@ -619,7 +621,9 @@ mixins: [mixins],
|
|
|
return this.excute(this.data.saleOutBoundReturnService, this.data.saleOutBoundReturnService.outboundInsertRefund, this.data.params);
|
|
|
|
|
|
}else if (this.data.formType == 11) { //销售出库 >>> 客户收款
|
|
|
- return this.excute(this.data.saleOutBoundReturnService, this.data.saleOutBoundReturnService.outboundInsertRefund, this.data.params);
|
|
|
+
|
|
|
+ return this.excute(this.data.outboundService, this.data.outboundService.outboundInsertRefund, this.data.params);
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
/**
|
|
|
@@ -628,16 +632,16 @@ mixins: [mixins],
|
|
|
* @author : 姜永辉
|
|
|
*/
|
|
|
handleData() {
|
|
|
- if (this.data.formType == 3 || this.data.formType == 4) { //客户收款/退款
|
|
|
-
|
|
|
+ if (this.data.formType == 3 || this.data.formType == 4) { //客户收款/退款
|
|
|
let pages = getCurrentPages();
|
|
|
- let prevPage = pages[pages.length - 2]; //上二页
|
|
|
+ let prevPage = pages[pages.length - 3]; //上二页
|
|
|
prevPage.setData({
|
|
|
refreshByAdd: true
|
|
|
})
|
|
|
wx.navigateBack({
|
|
|
delta: 1
|
|
|
})
|
|
|
+
|
|
|
} else if (this.data.formType == 8) { //订单收款
|
|
|
let pages = getCurrentPages();
|
|
|
let prevPage = pages[pages.length - 2]; //上1页
|