|
@@ -207,30 +207,38 @@ Page({
|
|
|
version: 1
|
|
|
})
|
|
|
console.log("创建打款凭证", res);
|
|
|
- await _Http.basic({
|
|
|
- "id": 20221227092904,
|
|
|
- "content": {
|
|
|
- "paybilldetails": [{
|
|
|
- "amount": content.amount,
|
|
|
- "sa_accountclassid": content.sa_accountclassid,
|
|
|
- sa_paybilldetailid
|
|
|
- }],
|
|
|
- "sa_paybillid": res.data.sa_paybillid
|
|
|
- }
|
|
|
- }).then(res => {
|
|
|
- console.log("修改明细", res)
|
|
|
- })
|
|
|
-
|
|
|
if (res.msg == '成功') {
|
|
|
- let page = getCurrentPages()[getCurrentPages().length - 2];
|
|
|
- if (page.__route__ == 'packageA/remitVoucher/index') {
|
|
|
- wx.redirectTo({
|
|
|
- url: '/packageA/remitVoucher/detail?id=' + res.data.sa_paybillid,
|
|
|
- })
|
|
|
- } else if (page.__route__ == 'packageA/remitVoucher/detail') {
|
|
|
- wx.navigateBack();
|
|
|
- page.getDetail(true)
|
|
|
- }
|
|
|
+ _Http.basic({
|
|
|
+ "id": 20221227092904,
|
|
|
+ "content": {
|
|
|
+ "paybilldetails": [{
|
|
|
+ "amount": content.amount,
|
|
|
+ "sa_accountclassid": content.sa_accountclassid,
|
|
|
+ sa_paybilldetailid
|
|
|
+ }],
|
|
|
+ "sa_paybillid": res.data.sa_paybillid
|
|
|
+ }
|
|
|
+ }).then(s => {
|
|
|
+ console.log("修改明细", s)
|
|
|
+ if (s.msg == '成功') {
|
|
|
+ let page = getCurrentPages()[getCurrentPages().length - 2];
|
|
|
+ if (page.__route__ == 'packageA/remitVoucher/index') {
|
|
|
+ wx.redirectTo({
|
|
|
+ url: '/packageA/remitVoucher/detail?id=' + res.data.sa_paybillid,
|
|
|
+ })
|
|
|
+ } else if (page.__route__ == 'packageA/remitVoucher/detail') {
|
|
|
+ wx.navigateBack();
|
|
|
+ page.getDetail(true)
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ wx.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: "none",
|
|
|
+ mask: true
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
} else {
|
|
|
wx.showToast({
|
|
|
title: res.msg,
|
|
@@ -238,6 +246,7 @@ Page({
|
|
|
mask: true
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
},
|
|
|
// 是否显示全部
|
|
|
onChange({
|