zhongzewei 6 năm trước cách đây
mục cha
commit
843e5a8e51

+ 1 - 1
public/web/tree_sheet/tree_sheet_helper.js

@@ -470,7 +470,7 @@ var TREE_SHEET_HELPER = {
             let centerX = hitinfo.cellRect.x + offset + node.depth() * indent + node.depth() * levelIndent + indent / 2;
             let centerX = hitinfo.cellRect.x + offset + node.depth() * indent + node.depth() * levelIndent + indent / 2;
             let centerY = (hitinfo.cellRect.y + offset + (hitinfo.cellRect.y + offset + hitinfo.cellRect.height)) / 2;
             let centerY = (hitinfo.cellRect.y + offset + (hitinfo.cellRect.y + offset + hitinfo.cellRect.height)) / 2;
             //方框外1像素内都有效
             //方框外1像素内都有效
-            if (hitinfo.x >= centerX - halfBoxLength - 2 && hitinfo.x <= centerX + halfBoxLength + 2 &&
+            if (hitinfo.x >= centerX - halfBoxLength - 3 && hitinfo.x <= centerX + halfBoxLength + 2 &&
                 hitinfo.y >= centerY - halfBoxLength - 2 && hitinfo.y <= centerY + halfBoxLength + 2) {
                 hitinfo.y >= centerY - halfBoxLength - 2 && hitinfo.y <= centerY + halfBoxLength + 2) {
                 node.setExpanded(!node.expanded);
                 node.setExpanded(!node.expanded);
                 let sheetName = hitinfo.sheet.name();
                 let sheetName = hitinfo.sheet.name();

+ 0 - 4
web/building_saas/main/js/models/calc_base.js

@@ -1080,10 +1080,6 @@ let cbCalctor = {
                     node.data.feesIndex.common.totalFee : 0;
                     node.data.feesIndex.common.totalFee : 0;
         }
         }
         return 0;
         return 0;
-    },
-    //计算
-    exec: function () {
-
     }
     }
 };
 };
 
 

+ 6 - 0
web/building_saas/main/js/models/calc_program.js

@@ -220,6 +220,12 @@ let calcTools = {
             let arr = fieldName.split('.');
             let arr = fieldName.split('.');
             this.initFeeField(treeNode, arr[1]);
             this.initFeeField(treeNode, arr[1]);
             treeNode.data.feesIndex[arr[1]][arr[2]] = value;
             treeNode.data.feesIndex[arr[1]][arr[2]] = value;
+            /*if (!treeNode.updateData.feesIndex) {
+                treeNode.updateData.feesIndex = {};
+            }
+            if (!treeNode.updateData.feesIndex[arr[1]]) {
+                treeNode.updateData.feesIndex[arr[1]] = {};
+            }*/
             treeNode.updateData.feesIndex[arr[1]][arr[2]] = value;
             treeNode.updateData.feesIndex[arr[1]][arr[2]] = value;
         }
         }
         else{
         else{

+ 0 - 3
web/building_saas/main/js/models/ration.js

@@ -336,7 +336,6 @@ var Ration = {
             } else {
             } else {
                 data[field] = newValue;
                 data[field] = newValue;
             }
             }
-            updateBillsOprRation();
             updateData.push({'updateType': 'ut_update', 'updateData': data});
             updateData.push({'updateType': 'ut_update', 'updateData': data});
             this.project.pushNow('updateBills', this.getSourceType(), updateData);
             this.project.pushNow('updateBills', this.getSourceType(), updateData);
         };
         };
@@ -433,7 +432,6 @@ var Ration = {
                 if(data.length < nodeInfo.length && nodeInfo[data.length].newCode!=null){//说明有部分定额编号没找到记录
                 if(data.length < nodeInfo.length && nodeInfo[data.length].newCode!=null){//说明有部分定额编号没找到记录
                     alert('当前库中找不到定额"' + nodeInfo[data.length].newCode + '"');
                     alert('当前库中找不到定额"' + nodeInfo[data.length].newCode + '"');
                 }
                 }
-                updateBillsOprRation();
             })
             })
         };
         };
         ration.prototype.addMultiRation = function (items, callback) {
         ration.prototype.addMultiRation = function (items, callback) {
@@ -531,7 +529,6 @@ var Ration = {
                         }else {
                         }else {
                             project.calcProgram.calcNodesAndSave(newNodes);
                             project.calcProgram.calcNodesAndSave(newNodes);
                         }
                         }
-                        updateBillsOprRation();
                         if(callback){
                         if(callback){
                             callback();
                             callback();
                         }
                         }

+ 1 - 1
web/building_saas/main/js/views/project_property_basicInfo.js

@@ -406,7 +406,7 @@ let basicInfoView = {
             if(recode&&recode.hasOwnProperty('items')){
             if(recode&&recode.hasOwnProperty('items')){
                 //方框外1像素内都有效
                 //方框外1像素内都有效
                 const boxLengh = 10;
                 const boxLengh = 10;
-                if (hitinfo.x >= centerX - halfBoxLength - 1 && hitinfo.x <= centerX + halfBoxLength + 1 &&
+                if (hitinfo.x >= centerX - halfBoxLength - 2 && hitinfo.x <= centerX + halfBoxLength + 1 &&
                     hitinfo.y >= centerY - halfBoxLength - 1 && hitinfo.y <= centerY + halfBoxLength + 1) {
                     hitinfo.y >= centerY - halfBoxLength - 1 && hitinfo.y <= centerY + halfBoxLength + 1) {
                     var collapsed = recode.collapsed==undefined?true:recode.collapsed;
                     var collapsed = recode.collapsed==undefined?true:recode.collapsed;
                     collapsed = !collapsed
                     collapsed = !collapsed

+ 2 - 2
web/building_saas/main/js/views/std_billsGuidance_lib.js

@@ -38,7 +38,7 @@ const billsGuidance = (function () {
             headRowHeight: [40],
             headRowHeight: [40],
             defaultRowHeight: 21,
             defaultRowHeight: 21,
             cols: [{
             cols: [{
-                width: 140,
+                width: 105,
                 readOnly: true,
                 readOnly: true,
                 showHint: true,
                 showHint: true,
                 head: {
                 head: {
@@ -94,7 +94,7 @@ const billsGuidance = (function () {
             ]
             ]
         },
         },
         headers: [
         headers: [
-            {name: '项目编码', dataCode: 'code', width: 140, vAlign: 'center', hAlign: 'left', formatter: '@'},
+            {name: '项目编码', dataCode: 'code', width: 105, vAlign: 'center', hAlign: 'left', formatter: '@'},
             {name: '项目名称', dataCode: 'name', width: 190, vAlign: 'center', hAlign: 'left', formatter: '@'},
             {name: '项目名称', dataCode: 'name', width: 190, vAlign: 'center', hAlign: 'left', formatter: '@'},
             {name: '单位', dataCode: 'unit', width: 60, vAlign: 'center', hAlign: 'center', formatter: '@'},
             {name: '单位', dataCode: 'unit', width: 60, vAlign: 'center', hAlign: 'center', formatter: '@'},
         ],
         ],

+ 1 - 1
web/users/html/login.html

@@ -43,7 +43,7 @@
         <div class="modal-dialog modal-lg" role="document">
         <div class="modal-dialog modal-lg" role="document">
             <div class="modal-content">
             <div class="modal-content">
                 <div class="modal-header">
                 <div class="modal-header">
-                    <h5 class="modal-title">选择费用定额</h5>
+                    <h5 class="modal-title">选择编制办法</h5>
                     <p class="m-0 text-warning"><i class="fa fa-exclamation-triangle"></i> <b>登录设置</b> 中可以修改您的登录习惯。</p>
                     <p class="m-0 text-warning"><i class="fa fa-exclamation-triangle"></i> <b>登录设置</b> 中可以修改您的登录习惯。</p>
                 </div>
                 </div>
                 <div class="modal-body">
                 <div class="modal-body">

+ 4 - 4
web/users/html/user-set.html

@@ -44,7 +44,7 @@
                         <legend class="my-3">登录设置</legend>
                         <legend class="my-3">登录设置</legend>
                         <form method="post" action="/user/save-preferences">
                         <form method="post" action="/user/save-preferences">
                             <div class="form-group">
                             <div class="form-group">
-                                <label class="form-control-label">登录时选择费用定额</label>
+                                <label class="form-control-label">登录时选择编制办法</label>
                                 <div class="form-control">
                                 <div class="form-control">
                                     <div class="form-check form-check-inline">
                                     <div class="form-check form-check-inline">
                                       <input name="login_ask" type="radio" class="form-check-input" value="1"
                                       <input name="login_ask" type="radio" class="form-check-input" value="1"
@@ -54,14 +54,14 @@
                                     <div class="form-check form-check-inline">
                                     <div class="form-check form-check-inline">
                                       <input name="login_ask" type="radio" class="form-check-input" value="0"
                                       <input name="login_ask" type="radio" class="form-check-input" value="0"
                                         <% if(preferenceSetting.login_ask === 0) { %>checked="checked" <% } %>>
                                         <% if(preferenceSetting.login_ask === 0) { %>checked="checked" <% } %>>
-                                      <span class="form-check-label">指定费用定额</span>
+                                      <span class="form-check-label">指定编制办法</span>
                                     </div>
                                     </div>
                                 </div>
                                 </div>
                             </div>
                             </div>
                             <div class="form-group">
                             <div class="form-group">
-                                <label class="form-control-label">指定费用定额</label>
+                                <label class="form-control-label">指定编制办法</label>
                                 <select class="form-control" name="select_version">
                                 <select class="form-control" name="select_version">
-                                    <option value="">请选择费用定额</option>
+                                    <option value="">请选择编制办法</option>
                                     <% if (compilationList.length > 0) {%>
                                     <% if (compilationList.length > 0) {%>
                                     <% compilationList.forEach(function(compilation) { %>
                                     <% compilationList.forEach(function(compilation) { %>
                                     <option value="<%= compilation._id %>" <% if(preferenceSetting.select_version === compilation._id.toString()) { %>selected="selected" <% } %>><%= compilation.name %></option>
                                     <option value="<%= compilation._id %>" <% if(preferenceSetting.select_version === compilation._id.toString()) { %>selected="selected" <% } %>><%= compilation.name %></option>