|
@@ -404,6 +404,7 @@ $(document).ready(() => {
|
|
|
}
|
|
|
}
|
|
|
// 获取更新数据
|
|
|
+ const exprInfo = getExprInfo(col.field);
|
|
|
if (info.editingText) {
|
|
|
const text = newValue;
|
|
|
if (node.used && (col.field === 'code' || col.field ==='b_code') && orgValue !== '' && text === '') {
|
|
@@ -413,7 +414,6 @@ $(document).ready(() => {
|
|
|
}
|
|
|
if (col.type === 'Number') {
|
|
|
const num = _.toNumber(text);
|
|
|
- const exprInfo = getExprInfo(col.field);
|
|
|
if (_.isFinite(num)) {
|
|
|
data[col.field] = num;
|
|
|
if (exprInfo) {
|
|
@@ -441,6 +441,9 @@ $(document).ready(() => {
|
|
|
return;
|
|
|
}
|
|
|
data[col.field] = null;
|
|
|
+ if (exprInfo) {
|
|
|
+ data[exprInfo.expr] = '';
|
|
|
+ }
|
|
|
}
|
|
|
// 更新至服务器
|
|
|
postData(window.location.pathname + '/update', {postType: 'update', postData: data}, function (result) {
|