|
|
@@ -292,7 +292,7 @@ var rationGLJOprObj = {
|
|
|
"add": {
|
|
|
name: "添加人材机",
|
|
|
disabled: function () {
|
|
|
- const inValidCell = !_commonUtil.isDef(target.row) || !_commonUtil.isDef(target.col);
|
|
|
+ const inValidCell = !commonUtil.isDef(target.row) || !commonUtil.isDef(target.col);
|
|
|
if (locked || inValidCell || !me.currentRationItem) {
|
|
|
return true;
|
|
|
}
|
|
|
@@ -314,7 +314,7 @@ var rationGLJOprObj = {
|
|
|
"delete": {
|
|
|
name: "删除人材机",
|
|
|
disabled: function () {
|
|
|
- const inValidCell = !_commonUtil.isDef(target.row) || !_commonUtil.isDef(target.col);
|
|
|
+ const inValidCell = !commonUtil.isDef(target.row) || !commonUtil.isDef(target.col);
|
|
|
const rationGlj = me.cache['_GLJ_' + me.currentRationItem.ID];
|
|
|
const inValidData = !rationGlj || target.row >= rationGlj.length;
|
|
|
if (locked || inValidCell || !me.currentRationItem || inValidData) {
|
|
|
@@ -345,7 +345,7 @@ var rationGLJOprObj = {
|
|
|
"upMove": {
|
|
|
name: "上移",
|
|
|
disabled: function () {
|
|
|
- const inValidCell = !_commonUtil.isDef(target.row) || !_commonUtil.isDef(target.col);
|
|
|
+ const inValidCell = !commonUtil.isDef(target.row) || !commonUtil.isDef(target.col);
|
|
|
const inValidData = target.row >= currentCache.length || !raCoe.isDef(currentCache[target.row - 1]);
|
|
|
return locked || inValidCell || inValidData
|
|
|
},
|
|
|
@@ -357,7 +357,7 @@ var rationGLJOprObj = {
|
|
|
"downMove": {
|
|
|
name: "下移",
|
|
|
disabled: function () {
|
|
|
- const inValidCell = !_commonUtil.isDef(target.row) || !_commonUtil.isDef(target.col);
|
|
|
+ const inValidCell = !commonUtil.isDef(target.row) || !commonUtil.isDef(target.col);
|
|
|
const inValidData = target.row >= currentCache.length || !raCoe.isDef(currentCache[target.row + 1]);
|
|
|
return locked || inValidCell || inValidData;
|
|
|
},
|
|
|
@@ -369,7 +369,7 @@ var rationGLJOprObj = {
|
|
|
"ref": {
|
|
|
name: "添加到本节其他定额",
|
|
|
disabled: function () {
|
|
|
- const inValidCell = !_commonUtil.isDef(target.row) || !_commonUtil.isDef(target.col);
|
|
|
+ const inValidCell = !commonUtil.isDef(target.row) || !commonUtil.isDef(target.col);
|
|
|
const inValidData = target.row >= currentCache.length;
|
|
|
return locked || inValidCell || inValidData;
|
|
|
},
|