zhongzewei před 6 roky
rodič
revize
aef710eb2a

+ 1 - 1
web/building_saas/complementary_ration_lib/html/dinge.html

@@ -498,8 +498,8 @@
                 </div>
             </div>
             <div class="modal-footer">
-                <button type="button"  class="btn btn-secondary" data-dismiss="modal">取消</button>
                 <a href="javascript:void(0);" id="gljSelY" class="btn btn-primary">确定</a>
+                <button type="button"  class="btn btn-secondary" data-dismiss="modal">取消</button>
             </div>
         </div>
     </div>

+ 11 - 0
web/building_saas/css/custom.css

@@ -134,4 +134,15 @@ legend.legend{
 
 .menu ul :hover ul :hover ul {
     visibility: visible;
+}
+
+.ui-datepicker-next, .ui-datepicker-next:hover{
+    background-image: url("/lib/jquery-ui/images/ui-icons_444444_256x240.png");
+    background-repeat: no-repeat;
+    background-position: -28px -12px;
+}
+.ui-datepicker-prev, .ui-datepicker-prev:hover{
+    background-image: url("/lib/jquery-ui/images/ui-icons_444444_256x240.png");
+    background-repeat: no-repeat;
+    background-position: -90px -12px;
 }

+ 1 - 1
web/building_saas/main/html/main.html

@@ -967,7 +967,7 @@
                     </ul>
                     <div class="tab-content">
                         <div class="tab-pane active" id="m-js" role="tabpanel">
-                            <div class="form-group">
+                            <div class="form-group" id="expArea">
                                 <input class="form-control" id="calcBaseExp" value="">
                                 <p class="form-text">
                                     <button class="btn btn-secondary btn-sm" id="addOpr">+</button>

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

@@ -175,6 +175,7 @@ let calcBaseView = {
     initCalctor: function (type) {//type = bills、ration
         let me = calcBaseView;
         let showDatas;
+        me.inputExpr = $('#calcBaseExp');
         me.curType = type;
         if (type === me.type.bills) {
             //锁定的清单不显示
@@ -202,7 +203,6 @@ let calcBaseView = {
             //$('#qd-jsjs .modal-content').css('width', '');
             $('#cbRowDiv').removeClass('row');
             $('#billsBaseSpread').removeClass('col-9');
-            console.log(calcProgramManage.getSelectionInfo());
             let calcItem = calcProgramManage.getSelectionInfo().calcItem;
             if (calcItem.dispExprUser) {
                 me.inputExpr.val(calcItem.dispExpr);

+ 26 - 2
web/building_saas/main/js/views/project_view.js

@@ -582,15 +582,33 @@ var projectObj = {
         }
         if(node.sourceType == ModuleNames.ration){ //在定额编码中双击,如果右侧定额库没有展开,则自动展开。
             if(!rationLibObj.tree){
+                sessionStorage.setItem('stdRationLib', node.data.libID);
                 rationLibObj.doAfterGetRationTree = function () {
-                    this.locateAtRation(code);
+                    this.locateAtRation(node.data.libID, code);
                     this.doAfterGetRationTree = null;
                 };
             }
             else {
-                rationLibObj.locateAtRation(code);
+                if($('#stdRationLibSelect').select().val() != node.data.libID){
+                    let libOpts = $('#stdRationLibSelect').find('option');
+                    for(let libOpt of libOpts){
+                        if($(libOpt).val() == node.data.libID){
+                            $(libOpt).prop('selected', 'selected');
+                            break;
+                        }
+                    }
+                    $('#stdRationLibSelect').change();
+                    rationLibObj.doAfterGetRationTree = function () {
+                        this.locateAtRation(node.data.libID, code);
+                        this.doAfterGetRationTree = null;
+                    };
+                }
+                else {
+                    rationLibObj.locateAtRation(node.data.libID, code);
+                }
             }
             if(!$("#de").is(":visible"))  $('#stdRationTab').click();
+            console.log($('#stdRationLibSelect').select().val());
         }
 
     },
@@ -2827,6 +2845,9 @@ function changeCalcBaseFeeRate(toggle) {
         $('#calcBaseFeeRate').find('.modal-title').text('计算基数选择').show();
         $('#calcBaseFeeRate').find('.modal-body').find('button:first').hide();
         $('#calcBaseFeeRate').find('.modal-body').find('ul:first').hide();
+        $('#calcBaseExp').remove();
+        let $input = $('<input>').attr('id', 'calcBaseExp').addClass('form-control');
+        $('#expArea').prepend($input);
     }
     else if(toggle === 'feeRate'){
         $('#calcBaseFeeRate').find('.modal-header').show();
@@ -2838,6 +2859,9 @@ function changeCalcBaseFeeRate(toggle) {
         $('#calcBaseFeeRate').find('.modal-header').hide();
         $('#calcBaseFeeRate').find('.modal-body').find('button:first').show();
         $('#calcBaseFeeRate').find('.modal-body').find('ul:first').show();
+        $('#calcBaseExp').remove();
+        let $textarea = $('<textarea>').attr('id', 'calcBaseExp').prop('rows', 3).addClass('form-control').css('resize', 'none');
+        $('#expArea').prepend($textarea);
     }
 }
 //综合合价弹出计算基数费率确认

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

@@ -233,14 +233,14 @@ var rationLibObj = {
         let sectionNode = me.tree.items[row] || null;
         me.loadSectionRations(sectionNode && sectionNode.children.length === 0 ? sectionNode.data.ID : null);
     },
-    locateAtRation: function(code){
+    locateAtRation: function(libID, code){
         let me = rationLibObj;
         //查找定额,以确定定额所在章节节点
         let firstLibID = projectInfoObj.projectInfo.engineeringInfo.ration_lib.length > 0 ?
                         projectInfoObj.projectInfo.engineeringInfo.ration_lib[0].id : null;
         let locateRow = 0,
             locateSubRow = 0;
-        CommonAjax.post('/complementaryRation/api/getRationItem', {rationRepIds: [firstLibID], code: code}, function (ration) {
+        CommonAjax.post('/complementaryRation/api/getRationItem', {rationRepIds: [libID], code: code}, function (ration) {
             if(ration && ration.sectionId){
                 let sectionNode = me.tree.findNode(ration.sectionId);
                 if(sectionNode){

+ 7 - 7
web/building_saas/pm/html/project-management.html

@@ -406,7 +406,7 @@
                     <div class="form-group row">
                         <label for="staticEmail" class="col-auto col-form-label col-form-label-sm">单价文件</label>
                         <div class="col">
-                            <select class="custom-select  custom-select-sm" id="unit-price">
+                            <select class="form-control  form-control-sm" id="unit-price">
                                 <option value="">新建单价文件</option>
                             </select>
                         </div>
@@ -414,7 +414,7 @@
                     <div class="form-group row">
                         <label for="staticEmail" class="col-auto col-form-label col-form-label-sm">费率文件</label>
                         <div class="col">
-                            <select class="custom-select  custom-select-sm" id="tender-fee-rate">
+                            <select class="form-control  form-control-sm" id="tender-fee-rate">
                                 <option value="">新建费率文件</option>
                             </select>
                         </div>
@@ -435,7 +435,7 @@
                     <div class="form-group row">
                         <label for="staticEmail" class="col-auto col-form-label col-form-label-sm">计价规则</label>
                         <div class="col">
-                            <select class="custom-select custom-select-sm" id="valuation">
+                            <select class="form-control  form-control-sm" id="valuation">
                             </select>
                         </div>
                     </div>
@@ -443,7 +443,7 @@
                     <div class="form-group row">
                         <label for="staticEmail" class="col-auto col-form-label col-form-label-sm">工程专业</label>
                         <div class="col">
-                            <select class="custom-select custom-select-sm" id="tender-engineering">
+                            <select class="form-control  form-control-sm" id="tender-engineering">
                             </select>
                         </div>
                     </div>
@@ -451,14 +451,14 @@
                     <div class="form-group row">
                         <label for="staticEmail" class="col-auto col-form-label col-form-label-sm">费用标准</label>
                         <div class="col">
-                            <select class="custom-select custom-sm" id="tender-feeStandard"></select>
+                            <select class="form-control  form-control-sm" id="tender-feeStandard"></select>
                         </div>
                     </div>
                     <span class="form-text text-danger" id="feeStandard-info" style="display: none;">请选择费用标准</span>
                     <div class="form-group row" id="taxType_div">
                         <label for="staticEmail" class="col-auto col-form-label col-form-label-sm">计税方式</label>
                         <div class="col">
-                            <select class="custom-select  custom-select-sm" id="taxType">
+                            <select class="form-control  form-control-sm" id="taxType">
                                 &lt;!&ndash;<option value="1">一般计税</option>
                                 <option value="2">简易计税</option>&ndash;&gt;
                             </select>
@@ -467,7 +467,7 @@
                     <div class="form-group row">
                         <label for="staticEmail" class="col-auto col-form-label col-form-label-sm">计算程序</label>
                         <div class="col">
-                            <select class="custom-select  custom-select-sm" id="tender-calcProgram">
+                            <select class="form-control  form-control-sm" id="tender-calcProgram">
                             </select>
                         </div>
                     </div>