|
@@ -730,7 +730,7 @@ $(document).ready(() => {
|
|
|
postData('/tender/' + window.location.pathname.split('/')[2] + '/change/' + window.location.pathname.split('/')[4] + '/information/save', {type: 'add-change-list', postData: [data]}, function (result) {
|
|
|
changeList = result.changeList;
|
|
|
select.is_change = 1;
|
|
|
- select.is_valuation = data.is_valuation;
|
|
|
+ select.is_valuation = data.is_valuation !== undefined ? data.is_valuation : 1;
|
|
|
if (oldCInfo) {
|
|
|
select.camount = data.camount;
|
|
|
const refreshNode = billsTree.loadPostData({ update: [select] });
|
|
@@ -759,9 +759,16 @@ $(document).ready(() => {
|
|
|
postData('/tender/' + window.location.pathname.split('/')[2] + '/change/' + window.location.pathname.split('/')[4] + '/information/save', {type: 'del-change-list', ids: [cInfo.id] }, function (result) {
|
|
|
changeList = result.changeList;
|
|
|
select.is_change = 0;
|
|
|
+ select.is_valuation = 0;
|
|
|
+ select.camount = null;
|
|
|
+ const billsNode = select;
|
|
|
+ billsTreeSpreadObj.reCalcCamount(billsNode);
|
|
|
+ const loadResult = { update: [billsNode] };
|
|
|
+ const refreshNode = billsTree.loadPostData(loadResult);
|
|
|
+ billsTreeSpreadObj.refreshTree(billsSheet, refreshNode);
|
|
|
// 重算申请数量金额
|
|
|
- const refreshNode = billsTree.loadPostData(result);
|
|
|
- billsTreeSpreadObj.refreshTree(info.sheet, refreshNode);
|
|
|
+ // const refreshNode = billsTree.loadPostData(result);
|
|
|
+ // billsTreeSpreadObj.refreshTree(info.sheet, refreshNode);
|
|
|
SpreadJsObj.reLoadRowData(info.sheet, info.row);
|
|
|
}, function () {
|
|
|
info.sheet.setValue(info.row, info.col, 1);
|