|
@@ -220,7 +220,7 @@ $(document).ready(() => {
|
|
|
const sheet = materialSpread.getActiveSheet();
|
|
|
const select = SpreadJsObj.getSelectObject(sheet);
|
|
|
// 还需判断是否已被调差清单调用
|
|
|
- setObjEnable($('#del'), !readOnly && select && materialBase.isEdit(select));
|
|
|
+ setObjEnable($('#del'), !readOnly && select && materialBase.isUsed(select));
|
|
|
},
|
|
|
add: function () {
|
|
|
const sheet = materialSpread.getActiveSheet();
|
|
@@ -521,7 +521,7 @@ $(document).ready(() => {
|
|
|
const sheet = materialSpread.getActiveSheet();
|
|
|
const select = SpreadJsObj.getSelectObject(sheet);
|
|
|
materialSpreadObj.refreshActn();
|
|
|
- if (!readOnly && select && materialBase.isEdit(select)) {
|
|
|
+ if (!readOnly && select && materialBase.isUsed(select)) {
|
|
|
return false;
|
|
|
} else {
|
|
|
return true;
|