|
@@ -271,7 +271,7 @@ var projectObj = {
|
|
|
}if(node.sourceType==ModuleNames.ration&&node.data.type==rationType.gljRation){
|
|
|
gljOprObj.updateRationTypeGLJ(value,node,fieldName);
|
|
|
} else if (value !== calcFees.getFee(node.data, fieldName)) {
|
|
|
- if (fieldName === 'code') {
|
|
|
+ if (fieldName === 'code' && !project.calcProgram.isVolumePrice(node)) {
|
|
|
projectObj.updateCode(node, value);
|
|
|
}
|
|
|
else if(fieldName ==='feeRate'){
|
|
@@ -807,20 +807,21 @@ $('#property_ok').click(function () {
|
|
|
};
|
|
|
};
|
|
|
|
|
|
- console.log(mixDatas);
|
|
|
- // return; // for test.
|
|
|
+ // for test.
|
|
|
+/* console.log(mixDatas);
|
|
|
+ return; */
|
|
|
function hasMixData() {
|
|
|
return Object.keys(mixDatas.properties).length > 0 ||
|
|
|
mixDatas.labourCoes.updateData || mixDatas.rations.length > 0 || mixDatas.bills.length > 0;
|
|
|
}
|
|
|
|
|
|
-/* if(hasMixData()){
|
|
|
+ if(hasMixData()){
|
|
|
CommonAjax.post('/pm/api/updateMixDatas', {user_id: userID, mixDataArr: mixDatas}, function (rstData) {
|
|
|
-/!* if (changedNodes.length > 0) {
|
|
|
+/* if (changedNodes.length > 0) {
|
|
|
for (let node of changedNodes){delete node.changed};
|
|
|
};
|
|
|
- if (mixDatas.labourCoes.updateData) labourCoeView.refresh();*!/
|
|
|
+ if (mixDatas.labourCoes.updateData) labourCoeView.refresh();*/
|
|
|
window.location.href = '/main?project=' + projectID;
|
|
|
});
|
|
|
- }*/
|
|
|
+ }
|
|
|
});
|