|
@@ -656,6 +656,11 @@ $(document).ready(() => {
|
|
|
});
|
|
|
console.log(data);
|
|
|
} else {
|
|
|
+ if (changeOrder && _.findIndex(oldChangeList, { gcl_id: select.id }) !== -1) {
|
|
|
+ toastr.warning('插入台账清单功能下无法从这移除已勾选清单');
|
|
|
+ info.sheet.setValue(info.row, info.col, 1);
|
|
|
+ return
|
|
|
+ }
|
|
|
const cInfo = _.find(changeList, { gcl_id: select.id });
|
|
|
if (_.find(changeUsedData, { cbid: cInfo.id })) {
|
|
|
toastr.warning('该清单计量单元已被使用,无法取消勾选');
|
|
@@ -666,7 +671,7 @@ $(document).ready(() => {
|
|
|
info.sheet.setValue(info.row, info.col, 1);
|
|
|
return
|
|
|
} else {
|
|
|
- postData('/tender/' + window.location.pathname.split('/')[2] + '/change/' + window.location.pathname.split('/')[4] + '/information/save', {type: 'del-change-list', ids: [cInfo.id], postData: null }, function (result) {
|
|
|
+ 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;
|
|
|
}, function () {
|
|
@@ -1810,6 +1815,11 @@ $(document).ready(() => {
|
|
|
info.sheet.setValue(info.row, info.col, 0);
|
|
|
});
|
|
|
} else {
|
|
|
+ if (changeOrder && _.findIndex(oldChangeList, { gcl_id: select.lid, mx_id: select.id }) !== -1) {
|
|
|
+ toastr.warning('插入台账清单功能下无法从这移除已勾选清单');
|
|
|
+ info.sheet.setValue(info.row, info.col, 1);
|
|
|
+ return
|
|
|
+ }
|
|
|
const cInfo = _.find(changeList, { gcl_id: select.lid, mx_id: select.id });
|
|
|
if (_.find(changeUsedData, { cbid: cInfo.id })) {
|
|
|
toastr.warning('该计量单元已被使用,无法取消变更');
|
|
@@ -1820,7 +1830,7 @@ $(document).ready(() => {
|
|
|
info.sheet.setValue(info.row, info.col, 1);
|
|
|
return
|
|
|
} else {
|
|
|
- postData('/tender/' + window.location.pathname.split('/')[2] + '/change/' + window.location.pathname.split('/')[4] + '/information/save', {type: 'del-change-list', ids: [cInfo.id], postData: null }, function (result) {
|
|
|
+ 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;
|
|
|
// 判断是否只剩一个,并同步去勾
|