|
@@ -457,7 +457,7 @@ $(document).ready(() => {
|
|
|
if (type === 'del') {
|
|
|
flag = data.order === stage_order;
|
|
|
}
|
|
|
- return flag && !openMaterialChecklist;
|
|
|
+ return flag;
|
|
|
}
|
|
|
};
|
|
|
|
|
@@ -654,8 +654,6 @@ $(document).ready(() => {
|
|
|
type: type,
|
|
|
select: type === 'join' ? findNotJoinLeafXmj(select) : select,
|
|
|
};
|
|
|
- console.log(iGclRow, iRow, nRow, select);
|
|
|
- console.log(materialList);
|
|
|
// 添加到
|
|
|
postData(window.location.pathname + '/save', data, function (result) {
|
|
|
if (type === 'join') {
|
|
@@ -668,7 +666,7 @@ $(document).ready(() => {
|
|
|
calculateJiaCha(gclGatherData, iGclRow);
|
|
|
SpreadJsObj.reLoadRowData(sheet, nRow);
|
|
|
sheet.getRange(nRow, -1, 1, -1).backColor(color);
|
|
|
- loadMaterialData(iGclRow, 0);
|
|
|
+ loadMaterialData(iGclRow);
|
|
|
SpreadJsObj.reLoadRowData(ledgerSpread.getActiveSheet(), iGclRow);
|
|
|
});
|
|
|
},
|
|
@@ -679,8 +677,6 @@ $(document).ready(() => {
|
|
|
type: type,
|
|
|
select: type === 'noself' ? findSelfLeafXmj(select) : select,
|
|
|
};
|
|
|
- console.log(iGclRow, iRow, nRow, select);
|
|
|
- console.log(materialList);
|
|
|
// 添加到
|
|
|
postData(window.location.pathname + '/save', data, function (result) {
|
|
|
if (type === 'noself') {
|
|
@@ -716,10 +712,10 @@ $(document).ready(() => {
|
|
|
const sheet = leafXmjSpread.getActiveSheet();
|
|
|
const select = SpreadJsObj.getSelectObject(sheet);
|
|
|
const sel = sheet.getSelections()[0];
|
|
|
- const notx = findNotJoinLeafXmj(select);
|
|
|
if (!select || sel.rowCount !== 1) {
|
|
|
return false;
|
|
|
}
|
|
|
+ const notx = findNotJoinLeafXmj(select);
|
|
|
if (!readOnly && select && notx === undefined) {
|
|
|
return true;
|
|
|
} else {
|
|
@@ -737,10 +733,10 @@ $(document).ready(() => {
|
|
|
const sheet = leafXmjSpread.getActiveSheet();
|
|
|
const select = SpreadJsObj.getSelectObject(sheet);
|
|
|
const sel = sheet.getSelections()[0];
|
|
|
- const notx = findNotJoinLeafXmj(select);
|
|
|
if (!select || sel.rowCount !== 1) {
|
|
|
return false;
|
|
|
}
|
|
|
+ const notx = findNotJoinLeafXmj(select);
|
|
|
if (!readOnly && select && notx === undefined) {
|
|
|
return false;
|
|
|
} else {
|