|
|
@@ -695,23 +695,20 @@ var quantity_detail = {
|
|
|
return value
|
|
|
};
|
|
|
quantity_detail.prototype.editMainTreeNodeQuantity=function (value,node,fieldName,editingText) {
|
|
|
- var me = this;
|
|
|
- if(isNaN(value)){
|
|
|
- alert("当前输入的数据类型不正确,请重新输入。");
|
|
|
- projectObj.mainController.refreshTreeNode([node]);
|
|
|
- }else {
|
|
|
- value=value?value:0;
|
|
|
- if(node.data.hasOwnProperty('isFromDetail')&&node.data.isFromDetail==1){
|
|
|
- hintBox.infoBox('操作确认', '已有工程量明细,是否清空明细表,采用手工输入的表达式?', 2, function () {
|
|
|
- node.data.isFromDetail=0;
|
|
|
- me.updateMainTreeNodeQuantity(value,node,editingText);
|
|
|
- }, function () {
|
|
|
- projectObj.mainController.refreshTreeNode([node]);
|
|
|
- },['确定','取消'],false);
|
|
|
- return;
|
|
|
- }
|
|
|
- me.updateMainTreeNodeQuantity(value,node,editingText);
|
|
|
- }
|
|
|
+ /* var me = this;
|
|
|
+ value=value?value:0;
|
|
|
+ if(node.data.hasOwnProperty('isFromDetail')&&node.data.isFromDetail==1){
|
|
|
+ hintBox.infoBox('操作确认', '已有工程量明细,是否清空明细表,采用手工输入的表达式?', 2, function () {
|
|
|
+ node.data.isFromDetail=0;
|
|
|
+ quantityEditObj.checkingAndUpdate(editingText,node);
|
|
|
+ // me.updateMainTreeNodeQuantity(value,node,editingText);
|
|
|
+ }, function () {
|
|
|
+ projectObj.mainController.refreshTreeNode([node]);
|
|
|
+ },['确定','取消'],false);
|
|
|
+ return;
|
|
|
+ } */
|
|
|
+ quantityEditObj.checkingAndUpdate(editingText,node);
|
|
|
+
|
|
|
};
|
|
|
quantity_detail.prototype.updateMainTreeNodeQuantity = function(value,node,editingText){
|
|
|
let me = this;
|