|
@@ -987,11 +987,15 @@ const billsGuidance = (function () {
|
|
|
}
|
|
|
}
|
|
|
//更新清单备注
|
|
|
- function updateBillsComment(updateData, callback) {
|
|
|
+ function updateBillsComment(updateData, callback, errCB) {
|
|
|
CommonAjax.post('/stdBillsEditor/updateBills', updateData, function () {
|
|
|
if (callback) {
|
|
|
callback();
|
|
|
}
|
|
|
+ }, function () {
|
|
|
+ if(errCB) {
|
|
|
+ errCB();
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
//更新项目指引
|
|
@@ -1774,6 +1778,8 @@ const billsGuidance = (function () {
|
|
|
let updateData = {lastOperator: userAccount, billsLibId: billsLibId, updateId: node.getID(), field: 'comment', data: comment};
|
|
|
updateBillsComment(updateData, function () {
|
|
|
node.data.comment = comment;
|
|
|
+ }, function() {
|
|
|
+ $(me).val(node.data.comment || '');
|
|
|
})
|
|
|
}
|
|
|
});
|
|
@@ -1788,6 +1794,8 @@ const billsGuidance = (function () {
|
|
|
let updateDatas = [{updateType: updateType.update, findData: {ID: node.getID()}, updateData: {comment: comment}}];
|
|
|
updateGuideItems(updateDatas, function (rstData) {
|
|
|
node.data.comment = comment;
|
|
|
+ }, function() {
|
|
|
+ $(me).val(node.data.comment || '');
|
|
|
});
|
|
|
}
|
|
|
});
|