|
@@ -2136,7 +2136,8 @@ $(document).ready(() => {
|
|
|
settle: {type: 'warning', msg: '计量单元已结算,不可修改台账数据,已过滤'},
|
|
|
};
|
|
|
if (sortData.length === 0 || info.cellRange.row + info.cellRange.rowCount > sortData.length) {
|
|
|
- if (info.cellRange.col !== 0) {
|
|
|
+ const nameCol = info.sheet.zh_setting.cols.findIndex(x => { return x.field === 'name'; });
|
|
|
+ if (info.cellRange.col > nameCol || info.cellRange.col + info.cellRange.colCount < nameCol) {
|
|
|
toastr.warning('新增计量单元请先输入名称');
|
|
|
posSpreadObj.loadCurPosData();
|
|
|
return;
|