|
@@ -113,6 +113,12 @@ $(document).ready(() => {
|
|
|
return;
|
|
|
}
|
|
|
switch (col.field) {
|
|
|
+ case 'bills_valid':
|
|
|
+ info.cancel = !node.bills;
|
|
|
+ break;
|
|
|
+ case 'pos_valid':
|
|
|
+ info.cancel = !node.pos;
|
|
|
+ break;
|
|
|
case 'alias':
|
|
|
info.cancel = node.fixed.indexOf('alias') >= 0;
|
|
|
break;
|
|
@@ -173,10 +179,10 @@ $(document).ready(() => {
|
|
|
|
|
|
const col = info.sheet.zh_setting.cols[info.col];
|
|
|
if (col.field.indexOf('valid') < 0) return;
|
|
|
- if (col.field === 'pos_valid' && !col.pos) return;
|
|
|
- if (col.field === 'bills_valid' && !col.bills) return;
|
|
|
|
|
|
const node = SpreadJsObj.getSelectObject(info.sheet);
|
|
|
+ if (col.field === 'pos_valid' && !node.pos) return;
|
|
|
+ if (col.field === 'bills_valid' && !node.bills) return;
|
|
|
if (node.fixed.indexOf('valid') >= 0) return;
|
|
|
if (col.field === 'valid') {
|
|
|
node.valid = !node.valid;
|