|
@@ -6352,15 +6352,15 @@ function checkAndChange(changeListData, showTips = false) {
|
|
|
}, function () {
|
|
|
});
|
|
|
}
|
|
|
- if(removeList.length > 0) {
|
|
|
+ if(removeList.length > 0 && (!readOnly || shenpiPower)) {
|
|
|
console.log(removeList);
|
|
|
_.pullAll(changeList, removeList);
|
|
|
postData(window.location.pathname + '/save', { type:'remove_list', updateData: removeList }, function (result) {
|
|
|
}, function () {
|
|
|
});
|
|
|
}
|
|
|
- if (showTips && (removeList.length > 0 || updateList.length > 0)) {
|
|
|
- if (removeList.length > 0) {
|
|
|
+ if (showTips && ((removeList.length > 0 && (!readOnly || shenpiPower)) || updateList.length > 0)) {
|
|
|
+ if ((removeList.length > 0 && (!readOnly || shenpiPower))) {
|
|
|
toastr.error('已移除'+ removeList.length +'条变更清单数据');
|
|
|
}
|
|
|
if (updateList.length > 0) {
|