|  | @@ -13,6 +13,8 @@
 | 
	
		
			
				|  |  |      <link rel="stylesheet" href="web/css/ztree/zTreeStyle.css" type="text/css">
 | 
	
		
			
				|  |  |      <!--SpreadJs-->
 | 
	
		
			
				|  |  |      <link rel="stylesheet" href="web/css/spreadjs/gc.spread.sheets.excel2013lightGray.10.0.1.css" type="text/css">
 | 
	
		
			
				|  |  | +    <script src="lib/jquery/jquery.min.js"></script>
 | 
	
		
			
				|  |  | +    <script src="lib/global.js"></script>
 | 
	
		
			
				|  |  |      <script>
 | 
	
		
			
				|  |  |          // 这里的变量供页面调用
 | 
	
		
			
				|  |  |          var userAccount = '<%- userAccount %>';
 | 
	
	
		
			
				|  | @@ -111,7 +113,7 @@
 | 
	
		
			
				|  |  |                                <a class="nav-link active px-3" data-toggle="tab" href="#qd" role="tab">清单规则</a>
 | 
	
		
			
				|  |  |                            </li>
 | 
	
		
			
				|  |  |                            <li class="nav-item">
 | 
	
		
			
				|  |  | -                              <a class="nav-link px-3" data-toggle="tab" href="#de" role="tab">定额库</a>
 | 
	
		
			
				|  |  | +                              <a class="nav-link px-3" data-toggle="tab" href="#de" role="tab" id="stdRationTab">定额库</a>
 | 
	
		
			
				|  |  |                            </li>
 | 
	
		
			
				|  |  |                        </ul>
 | 
	
		
			
				|  |  |                    </div>
 | 
	
	
		
			
				|  | @@ -119,75 +121,8 @@
 | 
	
		
			
				|  |  |                <div class="container-fluid">
 | 
	
		
			
				|  |  |                    <div class="row">
 | 
	
		
			
				|  |  |                        <div class="main-content col-lg-9 p-0">
 | 
	
		
			
				|  |  | -                          <div class="top-content" id="billsSpread">
 | 
	
		
			
				|  |  | -                              <!--<div class="warp-p2">-->
 | 
	
		
			
				|  |  | -                                  <!--<!–<table class="table table-sm table-bordered m-0">-->
 | 
	
		
			
				|  |  | -                                      <!--<thead>-->
 | 
	
		
			
				|  |  | -                                          <!--<th>序号</th>-->
 | 
	
		
			
				|  |  | -                                          <!--<th>项目编码</th>-->
 | 
	
		
			
				|  |  | -                                          <!--<th>类别</th>-->
 | 
	
		
			
				|  |  | -                                          <!--<th>项目名称</th>-->
 | 
	
		
			
				|  |  | -                                          <!--<th>计量单位</th>-->
 | 
	
		
			
				|  |  | -                                          <!--<th>项目特征</th>-->
 | 
	
		
			
				|  |  | -                                          <!--<th>工作内容</th>-->
 | 
	
		
			
				|  |  | -                                          <!--<th>工程专业</th>-->
 | 
	
		
			
				|  |  | -                                          <!--<th>取费专业</th>-->
 | 
	
		
			
				|  |  | -                                          <!--<th>工程量计算规则</th>-->
 | 
	
		
			
				|  |  | -                                          <!--<th>工程量</th>-->
 | 
	
		
			
				|  |  | -                                          <!--<th>单价</th>-->
 | 
	
		
			
				|  |  | -                                          <!--<th>合价</th>-->
 | 
	
		
			
				|  |  | -                                          <!--<th>综合单价</th>-->
 | 
	
		
			
				|  |  | -                                          <!--<th>综合合价的公式</th>-->
 | 
	
		
			
				|  |  | -                                          <!--<th>综合合价</th>-->
 | 
	
		
			
				|  |  | -                                          <!--<th>人工费单价</th>-->
 | 
	
		
			
				|  |  | -                                          <!--<th>机械费单价</th>-->
 | 
	
		
			
				|  |  | -                                          <!--<th>主材费单价</th>-->
 | 
	
		
			
				|  |  | -                                          <!--<th>设备费单价</th>-->
 | 
	
		
			
				|  |  | -                                          <!--<th>企业管理费单价</th>-->
 | 
	
		
			
				|  |  | -                                          <!--<th>利润单价</th>-->
 | 
	
		
			
				|  |  | -                                          <!--<th>风险费单价</th>-->
 | 
	
		
			
				|  |  | -                                          <!--<th>人工价差单价</th>-->
 | 
	
		
			
				|  |  | -                                          <!--<th>材料价差单价</th>-->
 | 
	
		
			
				|  |  | -                                          <!--<th>机械价差单价</th>-->
 | 
	
		
			
				|  |  | -                                          <!--<th>是否暂估</th>-->
 | 
	
		
			
				|  |  | -                                          <!--<th>备注</th>-->
 | 
	
		
			
				|  |  | -                                          <!--<th>局部汇总</th>-->
 | 
	
		
			
				|  |  | -                                      <!--</thead>-->
 | 
	
		
			
				|  |  | -                                      <!--<tbody>-->
 | 
	
		
			
				|  |  | -                                          <!--<tr>-->
 | 
	
		
			
				|  |  | -                                              <!--<td>1</td>-->
 | 
	
		
			
				|  |  | -                                              <!--<td></td>-->
 | 
	
		
			
				|  |  | -                                              <!--<td></td>-->
 | 
	
		
			
				|  |  | -                                              <!--<td></td>-->
 | 
	
		
			
				|  |  | -                                              <!--<td></td>-->
 | 
	
		
			
				|  |  | -                                              <!--<td></td>-->
 | 
	
		
			
				|  |  | -                                              <!--<td></td>-->
 | 
	
		
			
				|  |  | -                                              <!--<td></td>-->
 | 
	
		
			
				|  |  | -                                              <!--<td></td>-->
 | 
	
		
			
				|  |  | -                                              <!--<td></td>-->
 | 
	
		
			
				|  |  | -                                              <!--<td></td>-->
 | 
	
		
			
				|  |  | -                                              <!--<td></td>-->
 | 
	
		
			
				|  |  | -                                              <!--<td></td>-->
 | 
	
		
			
				|  |  | -                                              <!--<td></td>-->
 | 
	
		
			
				|  |  | -                                              <!--<td></td>-->
 | 
	
		
			
				|  |  | -                                              <!--<td></td>-->
 | 
	
		
			
				|  |  | -                                              <!--<td></td>-->
 | 
	
		
			
				|  |  | -                                              <!--<td></td>-->
 | 
	
		
			
				|  |  | -                                              <!--<td></td>-->
 | 
	
		
			
				|  |  | -                                              <!--<td></td>-->
 | 
	
		
			
				|  |  | -                                              <!--<td></td>-->
 | 
	
		
			
				|  |  | -                                              <!--<td></td>-->
 | 
	
		
			
				|  |  | -                                              <!--<td></td>-->
 | 
	
		
			
				|  |  | -                                              <!--<td></td>-->
 | 
	
		
			
				|  |  | -                                              <!--<td></td>-->
 | 
	
		
			
				|  |  | -                                              <!--<td></td>-->
 | 
	
		
			
				|  |  | -                                              <!--<td></td>-->
 | 
	
		
			
				|  |  | -                                              <!--<td></td>-->
 | 
	
		
			
				|  |  | -                                              <!--<td></td>-->
 | 
	
		
			
				|  |  | -                                          <!--</tr>-->
 | 
	
		
			
				|  |  | -                                      <!--</tbody>-->
 | 
	
		
			
				|  |  | -                                  <!--</table>–>-->
 | 
	
		
			
				|  |  | -                              <!--</div>-->
 | 
	
		
			
				|  |  | +                          <div class="top-content">
 | 
	
		
			
				|  |  | +                              <div class="main-data-top" id="billsSpread"></div>
 | 
	
		
			
				|  |  |                            </div>
 | 
	
		
			
				|  |  |                            <div class="bottom-content">
 | 
	
		
			
				|  |  |                                <ul class="nav nav-tabs" role="tablist">
 | 
	
	
		
			
				|  | @@ -216,7 +151,7 @@
 | 
	
		
			
				|  |  |                                <!-- Tab panes -->
 | 
	
		
			
				|  |  |                                <div class="tab-content">
 | 
	
		
			
				|  |  |                                    <div class="tab-pane active" id="gl" role="tabpanel">
 | 
	
		
			
				|  |  | -                                      <div class="warp-p2" id="gljSpread">
 | 
	
		
			
				|  |  | +                                      <div class="main-data-bottom ovf-hidden" id="gljSpread">
 | 
	
		
			
				|  |  |                                        </div>
 | 
	
		
			
				|  |  |                                    </div>
 | 
	
		
			
				|  |  |                                    <div class="tab-pane" id="fzt" role="tabpanel">
 | 
	
	
		
			
				|  | @@ -256,22 +191,48 @@
 | 
	
		
			
				|  |  |                            <div class="tab-content">
 | 
	
		
			
				|  |  |                                <!--清单规则-->
 | 
	
		
			
				|  |  |                                <div class="tab-pane active" id="qd" role="tabpanel">
 | 
	
		
			
				|  |  | -                                  <div class="warp-p2">
 | 
	
		
			
				|  |  | -                                      <div>
 | 
	
		
			
				|  |  | -                                          <select class="form-control form-control-sm" id="exampleSelect1">
 | 
	
		
			
				|  |  | -                                            <option>重庆市房屋建筑与装饰工程工程量计算规则(2013)</option>
 | 
	
		
			
				|  |  | -                                            <option>2</option>
 | 
	
		
			
				|  |  | -                                            <option>3</option>
 | 
	
		
			
				|  |  | -                                            <option>4</option>
 | 
	
		
			
				|  |  | -                                            <option>5</option>
 | 
	
		
			
				|  |  | +                                  <div class="sidebar-tools-bar container-fluid">
 | 
	
		
			
				|  |  | +                                      <div class="p-1 row">
 | 
	
		
			
				|  |  | +                                          <select class="form-control form-control-sm col-6" id="stdBillsLibSelect">
 | 
	
		
			
				|  |  |                                            </select>
 | 
	
		
			
				|  |  | +                                          <div class="input-group col-6">
 | 
	
		
			
				|  |  | +                                              <div class="input-group-addon form-control-sm"><i class="fa fa-search" aria-hidden="true"></i></div>
 | 
	
		
			
				|  |  | +                                              <input type="text" class="form-control form-control-sm" placeholder="搜索清单">
 | 
	
		
			
				|  |  | +                                          </div>
 | 
	
		
			
				|  |  | +                                      </div>
 | 
	
		
			
				|  |  | +                                  </div>
 | 
	
		
			
				|  |  | +                                  <div class="main-data-side-s" id="stdBillsSpread">
 | 
	
		
			
				|  |  | +                                  </div>
 | 
	
		
			
				|  |  | +                                  <div class="sidebar-bottom container-fluid">
 | 
	
		
			
				|  |  | +                                      <div class="row" id="stdBillsJobTab">
 | 
	
		
			
				|  |  | +                                          <div class="col-lg-6 p-0" id="stdBillsJobs"></div>
 | 
	
		
			
				|  |  | +                                          <div class="col-lg-6 p-0" id="stdBillsFeatures"></div>
 | 
	
		
			
				|  |  | +                                      </div>
 | 
	
		
			
				|  |  | +                                      <div class="row" id="stdBillsRemarkTab">
 | 
	
		
			
				|  |  | +                                          <div class="col-lg-12 p-0">
 | 
	
		
			
				|  |  | +                                              <textarea class="form-control" id="stdBillsRemark" rows="8" readonly="true"></textarea>
 | 
	
		
			
				|  |  | +                                          </div>
 | 
	
		
			
				|  |  |                                        </div>
 | 
	
		
			
				|  |  |                                    </div>
 | 
	
		
			
				|  |  |                                </div>
 | 
	
		
			
				|  |  |                                <!--定额库-->
 | 
	
		
			
				|  |  |                                <div class="tab-pane" id="de" role="tabpanel">
 | 
	
		
			
				|  |  | -                                  <div class="warp-p2">
 | 
	
		
			
				|  |  | -                                      定额内容
 | 
	
		
			
				|  |  | +                                  <div class="sidebar-tools-bar container-fluid">
 | 
	
		
			
				|  |  | +                                      <div class="p-1 row">
 | 
	
		
			
				|  |  | +                                          <select class="form-control form-control-sm col-6" id="stdRationLibSelect">
 | 
	
		
			
				|  |  | +                                          </select>
 | 
	
		
			
				|  |  | +                                          <div class="input-group col-6">
 | 
	
		
			
				|  |  | +                                              <div class="input-group-addon form-control-sm"><i class="fa fa-search" aria-hidden="true"></i></div>
 | 
	
		
			
				|  |  | +                                              <input type="text" class="form-control form-control-sm" placeholder="搜索定额">
 | 
	
		
			
				|  |  | +                                          </div>
 | 
	
		
			
				|  |  | +                                      </div>
 | 
	
		
			
				|  |  | +                                  </div>
 | 
	
		
			
				|  |  | +                                  <div class="main-data-side-s" id="stdRationChapter">
 | 
	
		
			
				|  |  | +                                  </div>
 | 
	
		
			
				|  |  | +                                  <div class="sidebar-bottom container-fluid">
 | 
	
		
			
				|  |  | +                                      <div class="row">
 | 
	
		
			
				|  |  | +                                          <div class="col-lg-12 p-0" id="stdSectionRations"></div>
 | 
	
		
			
				|  |  | +                                      </div>
 | 
	
		
			
				|  |  |                                    </div>
 | 
	
		
			
				|  |  |                                </div>
 | 
	
		
			
				|  |  |                            </div>
 | 
	
	
		
			
				|  | @@ -506,10 +467,15 @@
 | 
	
		
			
				|  |  |          </div>
 | 
	
		
			
				|  |  |      </div>
 | 
	
		
			
				|  |  |      <!-- JS. -->
 | 
	
		
			
				|  |  | -    <script src="lib/jquery/jquery.min.js"></script>
 | 
	
		
			
				|  |  | +    <script type="text/javascript">
 | 
	
		
			
				|  |  | +        autoFlashHeight();
 | 
	
		
			
				|  |  | +    </script>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      <script src="lib/tether/tether.min.js"></script>
 | 
	
		
			
				|  |  |      <script src="lib/bootstrap/bootstrap.min.js"></script>
 | 
	
		
			
				|  |  | -    <script src="lib/global.js"></script>
 | 
	
		
			
				|  |  | +    <script type="text/javascript" src="/lib/bootstrap/bootstrap-select.min.js"></script>
 | 
	
		
			
				|  |  | +    <!-- Common -->
 | 
	
		
			
				|  |  | +    <script type="text/javascript" src="/public/web/common_ajax.js"></script>
 | 
	
		
			
				|  |  |      <!--报表 zTree -->
 | 
	
		
			
				|  |  |      <script type="text/javascript" src="lib/ztree/jquery.ztree.core.js"></script>
 | 
	
		
			
				|  |  |      <script type="text/javascript" src="lib/ztree/jquery.ztree.excheck.js"></script>
 | 
	
	
		
			
				|  | @@ -529,12 +495,14 @@
 | 
	
		
			
				|  |  |      <!-- Controller -->
 | 
	
		
			
				|  |  |      <script type="text/javascript" src="public/web/tree_sheet_controller.js"></script>
 | 
	
		
			
				|  |  |      <script type="text/javascript" src="public/web/tree_sheet_helper.js"></script>
 | 
	
		
			
				|  |  | +    <script type="text/javascript" src="/web/scripts/sheetDataHelper.js"></script>
 | 
	
		
			
				|  |  |      <!-- Test Data -->
 | 
	
		
			
				|  |  |      <script type="text/javascript" src="test/tmp_data/bills_grid_setting.js"></script>
 | 
	
		
			
				|  |  |      <!-- view -->
 | 
	
		
			
				|  |  |      <script type="text/javascript" src="web/main/js/main_ajax.js"></script>
 | 
	
		
			
				|  |  |      <script type="text/javascript" src="web/main/js/main.js"></script>
 | 
	
		
			
				|  |  | -    <script type="text/javascript" src="/public/web/common_ajax.js"></script>
 | 
	
		
			
				|  |  | +    <script type="text/javascript" src="/web/main/js/views/std_bills_lib.js"></script>
 | 
	
		
			
				|  |  | +    <script type="text/javascript" src="/web/main/js/views/std_ration_lib.js"></script>
 | 
	
		
			
				|  |  |      <script type="text/javascript" src="/public/web/urlUtil.js"></script>
 | 
	
		
			
				|  |  |      <SCRIPT type="text/javascript">
 | 
	
		
			
				|  |  |    		<!--
 | 
	
	
		
			
				|  | @@ -635,22 +603,21 @@
 | 
	
		
			
				|  |  |          project.loadDatas(function (err) {
 | 
	
		
			
				|  |  |              if (!err) {
 | 
	
		
			
				|  |  |                  controller = TREE_SHEET_CONTROLLER.createNew(project.mainTree, billsSpread.getActiveSheet(), BillsGridSetting);
 | 
	
		
			
				|  |  | -                //controller = TREE_SHEET_CONTROLLER.createNew(project.Bills.tree, billsSpread.getActiveSheet(), BillsGridSetting);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |                  controller.showTreeData();
 | 
	
		
			
				|  |  |                  controller.bind('refreshBaseActn', function (tree) {
 | 
	
		
			
				|  |  | -                    var showButton = function (show, btn) {
 | 
	
		
			
				|  |  | -                        if (show) {
 | 
	
		
			
				|  |  | -                            btn.show();
 | 
	
		
			
				|  |  | +                    var setButtonValid = function (valid, btn) {
 | 
	
		
			
				|  |  | +                        if (valid) {
 | 
	
		
			
				|  |  | +                            btn.removeClass('disabled');
 | 
	
		
			
				|  |  |                          } else {
 | 
	
		
			
				|  |  | -                            btn.hide();
 | 
	
		
			
				|  |  | +                            btn.addClass('disabled');
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  |                      };
 | 
	
		
			
				|  |  | -                    showButton(tree.selected && tree.selected.canUpLevel(), $('#upLevel'));
 | 
	
		
			
				|  |  | -                    showButton(tree.selected && tree.selected.canDownLevel(), $('#downLevel'));
 | 
	
		
			
				|  |  | -                    showButton(tree.selected && tree.selected.canUpMove(), $('#upMove'));
 | 
	
		
			
				|  |  | -                    showButton(tree.selected && tree.selected.canDownMove(), $('#downMove'));
 | 
	
		
			
				|  |  | -                    showButton(tree.selected ? true : false, $('#delete'));
 | 
	
		
			
				|  |  | +                    setButtonValid(tree.selected && tree.selected.canUpLevel(), $('#upLevel'));
 | 
	
		
			
				|  |  | +                    setButtonValid(tree.selected && tree.selected.canDownLevel(), $('#downLevel'));
 | 
	
		
			
				|  |  | +                    setButtonValid(tree.selected && tree.selected.canUpMove(), $('#upMove'));
 | 
	
		
			
				|  |  | +                    setButtonValid(tree.selected && tree.selected.canDownMove(), $('#downMove'));
 | 
	
		
			
				|  |  | +                    setButtonValid(tree.selected ? true : false, $('#delete'));
 | 
	
		
			
				|  |  |                  });
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |                  gljView.showDatas(project.GLJ.datas);
 | 
	
	
		
			
				|  | @@ -770,8 +737,4 @@
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  |      });
 | 
	
		
			
				|  |  |  </script>
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -<script type="text/javascript">
 | 
	
		
			
				|  |  | -    autoFlashHeight();
 | 
	
		
			
				|  |  | -</script>
 | 
	
		
			
				|  |  |  </html>
 |