wenmenghao321 2 жил өмнө
parent
commit
2cad009245

+ 2 - 2
src/web/staticres/js/superSearch.js

@@ -1107,9 +1107,9 @@ function beforeSubmit(from){
     // $("#zbSeatchT [name='buyerclass']").val(buyerTypeArr)
     // $("#buyerInput").val(buyerTypeArr);
 	//采购单位联系方式有无
-    $("#zbSeatchT [name='buyertel']").val($(".custom-input[name='buyertel']").attr('data-value'));
+    // $("#zbSeatchT [name='buyertel']").val($(".custom-input[name='buyertel']").attr('data-value'));
     //中标单位联系方式有无
-    $("#zbSeatchT [name='winnertel']").val($(".custom-input[name='winnertel']").attr('data-value'));
+    // $("#zbSeatchT [name='winnertel']").val($(".custom-input[name='winnertel']").attr('data-value'));
     //排除词
 	$("#zbSeatchT [name='notkey']").val($("#zbSeatchT [name='notkey']").val());
 		if(!$("#zbSeatchT [name='keywords']").val()&&!$("#zbSeatchT [name='industry']").val()&&from!="F" && !$("#zbSeatchT [name='additionalWords']").val()){

+ 70 - 5
src/web/templates/pc/supsearch.html

@@ -602,6 +602,8 @@
       //   searchInnerVue.attachVal = fileExistsTemp
       // }
       searchInnerVue.attachVal = fileExistsTemp
+      searchInnerVue.attachVal_cg = buyerTelVal?buyerTelVal:''
+      searchInnerVue.attachVal_zb = winnerTelVal?winnerTelVal:''
       $("#zbSeatchT [name='fileExists']").val(fileExistsTemp)
       searchInnerVue.searchTab = loginStatusTem ? searchGroup : 1
       searchInnerVue.keywordSearchType = searchModel
@@ -1365,7 +1367,7 @@
                     </select-areachoose>
                   </div>
                   {{end}}
-                  <div class="buy-select others">
+                  <!-- <div class="buy-select others">
                     <div style="float: left;position: relative;">
                       <div class="custom-select others">
                         <input class="custom-input select-input" name="buyertel" data-value="" type="text" readonly placeholder="采购单位联系方式" />
@@ -1376,9 +1378,9 @@
                         <li data-value="y" class="item_option">有采购单位联系方式</li>
                       </ol>
                     </div>
-                  </div>
-                  <div class="bid-select others">
-                    <!-- <span style="float: left;line-height: 30px;margin-right: 12px;color: #686868;">中标企业联系方式</span> -->
+                  </div> -->
+                  <!-- <div class="bid-select others">
+                    <span style="float: left;line-height: 30px;margin-right: 12px;color: #686868;">中标企业联系方式</span>
                     <div style="float: left;position: relative;">
                       <div class="custom-select others">
                         <input class="custom-input select-input" name="winnertel" data-value="" type="text" readonly placeholder="中标企业联系方式"/>
@@ -1389,7 +1391,35 @@
                         <li data-value="y" class="item_option">有中标企业联系方式</li>
                       </ol>
                     </div>
-                  </div>
+                  </div> -->
+                  <div class="selector-card file mr-16">
+                    <div class="selector-card-content flex mini-select">
+                      <el-select :value = "attachVal_cg | filters_cg" @change="onAttachClick_cg" placeholder="采购单位联系方式"  class="selefile" popper-class="select_common_data">
+                        <el-option
+                            label="不限"
+                            value="">
+                        </el-option>
+                        <el-option
+                            label="有采购单位联系方式"
+                            value="y">
+                        </el-option>
+                      </el-select>
+                     </div>
+                   </div>
+                   <div class="selector-card file mr-16">
+                    <div class="selector-card-content flex mini-select">
+                      <el-select :value = "attachVal_zb | filters_zb" @change="onAttachClick_zb" placeholder="中标企业联系方式"  class="selefile" popper-class="select_common_data">
+                        <el-option
+                        label="不限"
+                        value="">
+                    </el-option>
+                    <el-option
+                        label="有中标企业联系方式"
+                        value="y">
+                    </el-option>
+                      </el-select>
+                     </div>
+                   </div>
                   <div class="selector-notkey">
                     <div class="selectNotkey" id="selectArea_">
                       <div class="valueBox">
@@ -2949,6 +2979,8 @@ function checkTagDisabled () {
         showFilter: true, // 筛选条件是否展开
         filterCounts: 0, // 已存筛选项数
         attachVal: '0', // 附件默认选中
+        attachVal_cg:"",
+        attachVal_zb:"",
         fixedTop: false, // 筛选是否吸顶
         tableFixedTop: false, // 搜索结果是否吸顶
         saveFilterDialog: false,
@@ -3123,6 +3155,22 @@ function checkTagDisabled () {
           return val
         }
 
+      },
+      filters_cg: function(val){
+        if(val == ''){
+          return '采购单位联系方式'
+        }else{
+          return val
+        }
+
+      },
+      filters_zb: function(val){
+        if(val == ''){
+          return '中标企业联系方式'
+        }else{
+          return val
+        }
+
       }
     },
     methods: {
@@ -4230,6 +4278,8 @@ function checkTagDisabled () {
         this.notkeyTags = []
         // 重置附件
         this.attachVal = '0'
+        this.attachVal_cg = ''
+        this.attachVal_zb = ''
       },
       // 回显页面选中条件、表单隐藏域val值
       getEchoData: function(item) {
@@ -4495,6 +4545,8 @@ function checkTagDisabled () {
         $("#zbSeatchT [name='notkey']").val(item.notkey)
         // 回显附件
         this.attachVal = item.fileExists
+        this.attachVal_zb = item.winnertel //中标
+        this.attachVal_cg = item.buyertel // 采购
         this.hasFilterDialog = false
         this.notkeyTags = item.notkey ? item.notkey.split(',') : []
         beforeSubmit('page-init-recovery');
@@ -4540,6 +4592,19 @@ function checkTagDisabled () {
         $("#zbSeatchT [name='fileExists']").val(item)
         beforeSubmit('filter-file')
       },
+      onAttachClick_cg: function (item) {
+        console.log(item)
+        this.attachVal_cg = item
+        $("#zbSeatchT [name='buyertel']").val(item)
+        beforeSubmit('filter-custom') 
+      },
+      onAttachClick_zb: function (item) {
+        console.log(item)
+        this.attachVal_zb = item
+        //中标单位联系方式有无
+       $("#zbSeatchT [name='winnertel']").val(item)
+        beforeSubmit('filter-custom') 
+      },
       handleExpand (val) {
         // this.selectorlist = [{label:'全部',value:'0'},{label:'有附件',value:'1'},{label:'无附件',value:'-1'}]
       },