|
|
@@ -169,8 +169,11 @@ Component({
|
|
|
res.data = res.data.map(v => {
|
|
|
v.defaultamount = CNY(v.defaultamount);
|
|
|
v.amount = CNY(v.amount);
|
|
|
+ v.showunoutamount = CNY(v.unoutamount);
|
|
|
+ v.showuninvoiceamount = CNY(v.uninvoiceamount);
|
|
|
return v
|
|
|
})
|
|
|
+
|
|
|
if (sonum) {
|
|
|
let index = this.data.list.findIndex(v => v.sonum == sonum);
|
|
|
if (index != -1) this.setData({
|
|
|
@@ -197,13 +200,15 @@ Component({
|
|
|
if (item[name] == value) return;
|
|
|
item[name] = Number((value - 0).toFixed(2))
|
|
|
_Http.basic({
|
|
|
- "id": 20230705145204,
|
|
|
+ "id": 20230705145104,
|
|
|
"content": {
|
|
|
"sa_salesforecastbillid": this.data.sa_salesforecastbillid,
|
|
|
- "sa_salesforecastprojectid": item.sa_salesforecastprojectid,
|
|
|
- "salesforecast": [{
|
|
|
- "sa_salesforecastid": item.sa_salesforecastid,
|
|
|
+ "ownertable": "sa_order", // sa_order 订单 sa_project 项目 sa_customers 客户
|
|
|
+ "salesforecastproject": [{
|
|
|
+ "sa_salesforecastprojectid": item.sa_salesforecastprojectid || 0,
|
|
|
+ "sa_salesforecastid": item.sa_salesforecastid || 0,
|
|
|
"outamount": item.outamount,
|
|
|
+ "ownerid": item.sa_orderid,
|
|
|
"invoiceamount": item.invoiceamount
|
|
|
}]
|
|
|
}
|