|
|
@@ -104,6 +104,7 @@ Component({
|
|
|
title: res.msg == '成功' ? '添加成功' : res.msg,
|
|
|
icon: "none"
|
|
|
});
|
|
|
+ getCurrentPages()[getCurrentPages().length - 2].getDetail();
|
|
|
if (res.msg == '成功') {
|
|
|
that.getList(that.data.sa_salesforecastbillid, true)
|
|
|
setTimeout(() => {
|
|
|
@@ -172,9 +173,9 @@ Component({
|
|
|
list: res.data
|
|
|
})
|
|
|
}
|
|
|
- if (res.data.length) this.setData({
|
|
|
- allinvoiceamount: CNY(res.data[0].allinvoiceamount),
|
|
|
- alloutamount: CNY(res.data[0].alloutamount),
|
|
|
+ this.setData({
|
|
|
+ allinvoiceamount: res.data.length ? CNY(res.data[0].allinvoiceamount) : "¥0.00",
|
|
|
+ alloutamount: res.data.length ? CNY(res.data[0].alloutamount) : "¥0.00"
|
|
|
})
|
|
|
})
|
|
|
getCurrentPages()[getCurrentPages().length - 1].getDetail();
|