|
@@ -40,6 +40,7 @@ $(document).ready(() => {
|
|
|
const data = [];
|
|
|
colSet.forEach(x => {
|
|
|
const baseCol = BaseSetCol.find(b => { return x.key === b.key });
|
|
|
+ if (!baseCol) return;
|
|
|
const colData = { ...x, ...baseCol };
|
|
|
if (colData.bills && colData.bills_valid === undefined) colData.bills_valid = colData.valid;
|
|
|
if (colData.pos && colData.pos_valid === undefined) colData.pos_valid = colData.valid;
|
|
@@ -172,6 +173,8 @@ $(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 (node.fixed.indexOf('valid') >= 0) return;
|
|
@@ -207,7 +210,6 @@ $(document).ready(() => {
|
|
|
const baseCol = BaseSetCol.find(x => { return x.key === keyName; });
|
|
|
if (!baseCol) continue;
|
|
|
|
|
|
- console.log(baseCol);
|
|
|
const valid = colSheet.getText(iRow, cols.valid);
|
|
|
const colSet = { key: keyName, valid: valid === '1' || valid === 'TRUE' ? 1 : 0 };
|
|
|
if (baseCol.bills) {
|