|
@@ -767,7 +767,17 @@ $(document).ready(() => {
|
|
|
toastr.warning('全部清单已设置清单'+ (is_valuation ? '' : '不') +'计价');
|
|
|
return;
|
|
|
}
|
|
|
- postData(window.location.pathname + '/save', { type:'set_all_valuation', is_valuation }, function (result) {
|
|
|
+ const realNeedChangeList = [];
|
|
|
+ for (const nc of needChangeList) {
|
|
|
+ if (_.findIndex(changeUsedData, { cbid: nc.id }) === -1) {
|
|
|
+ realNeedChangeList.push(nc.id);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (realNeedChangeList.length === 0) {
|
|
|
+ toastr.warning('全部清单已设置清单'+ (is_valuation ? '' : '不') +'计价');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ postData(window.location.pathname + '/save', { type:'set_all_valuation', ids: realNeedChangeList, is_valuation }, function (result) {
|
|
|
changeList = result;
|
|
|
SpreadJsObj.loadSheetData(changeSpreadSheet, SpreadJsObj.DataType.Data, changeList);
|
|
|
changeSpreadObj.makeSjsFooter();
|