|
@@ -522,8 +522,10 @@ $(document).ready(() => {
|
|
|
|
|
|
const orgValue = node[col.field];
|
|
|
let newValue = info.editingText;
|
|
|
-
|
|
|
- if (col.type === 'Number') {
|
|
|
+ if (orgValue == newValue || ((!orgValue || orgValue === '') && (!newValue || newValue === ''))) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (col.type === 'Number' && newValue && newValue !== '') {
|
|
|
const num = _.toNumber(newValue);
|
|
|
if (num) {
|
|
|
newValue = num;
|
|
@@ -537,9 +539,7 @@ $(document).ready(() => {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- if (orgValue == newValue || ((!orgValue || orgValue === '') && (newValue === ''))) {
|
|
|
- return;
|
|
|
- }
|
|
|
+
|
|
|
if (col.field.indexOf('_dgn_') > 0) {
|
|
|
if (node.b_code && node.b_code !== '') {
|
|
|
toastr.error('仅项目节可输入设计数量');
|