|
@@ -560,6 +560,14 @@ $(document).ready(function() {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ if (col.field === 'node_type') {
|
|
|
+ const sameNodeType = sortData.find(x => { return x.node_type == newValue; });
|
|
|
+ if (sameNodeType) {
|
|
|
+ toastr.error('已存在该费用类别,请勿重复选择');
|
|
|
+ SpreadJsObj.reLoadRowData(info.sheet, info.row);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
// 获取更新数据
|
|
|
if (col.type === 'Number') {
|
|
|
const exprInfo = getExprInfo(col.field);
|
|
@@ -588,6 +596,7 @@ $(document).ready(function() {
|
|
|
} else {
|
|
|
data[col.field] = newValue;
|
|
|
}
|
|
|
+ if(col.field === 'node_type') console.log(data);
|
|
|
// 更新至服务器
|
|
|
postData(window.location.pathname + '/update', {postType: 'update', postData: data}, function (result) {
|
|
|
const refreshNode = ledgerTree.loadPostData(result);
|