|
@@ -563,7 +563,6 @@ $(document).ready(function() {
|
|
|
}
|
|
|
if (col.field === 'node_type' && newValue && newValue !== '0' && newValue !== '19') {
|
|
|
const sameNodeType = sortData.find(x => { return x.node_type == newValue; });
|
|
|
- console.log(newValue, sameNodeType);
|
|
|
if (sameNodeType) {
|
|
|
toastr.error('已存在该费用类别,请勿重复选择');
|
|
|
SpreadJsObj.reLoadRowData(info.sheet, info.row);
|
|
@@ -598,7 +597,6 @@ $(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);
|
|
@@ -992,11 +990,6 @@ $(document).ready(function() {
|
|
|
case 'dgn_qty2':
|
|
|
info.cancel = !_.isEmpty(node.b_code);
|
|
|
break;
|
|
|
- case 'node_type':
|
|
|
- const parent = tree.getParent(node);
|
|
|
- const topParent = tree.getTopParent(node);
|
|
|
- info.cancel = !parent || !topParent || [1, 5].indexOf(topParent.node_type) < 0;
|
|
|
- break;
|
|
|
}
|
|
|
},
|
|
|
sortCode: function (sheet) {
|
|
@@ -1084,7 +1077,7 @@ $(document).ready(function() {
|
|
|
// {title: 'full_path', colSpan: '1', rowSpan: '2', field: 'full_path', hAlign: 2, width: 60, type: 'Number', readOnly: true},
|
|
|
// {title: 'node_type', colSpan: '1', rowSpan: '2', field: 'node_type', hAlign: 2, width: 60, type: 'Number', readOnly: true}
|
|
|
// );
|
|
|
- sjsSettingObj.setNodeTypeCol(ledgerSpreadSetting.cols, [{field: 'node_type'}]);
|
|
|
+ sjsSettingObj.setNodeTypeCol(ledgerSpreadSetting.cols, [{ field: 'node_type' }]);
|
|
|
SpreadJsObj.initSheet(ledgerSpread.getActiveSheet(), ledgerSpreadSetting);
|
|
|
SpreadJsObj.selChangedRefreshBackColor(ledgerSpread.getActiveSheet());
|
|
|
// 绑定事件
|