excel-query-supplier.vue 4.64 KB
<template>
  
<div class="container resource close-left-menu contaNEW">

  <div class="pop-banner clearfix">
    <div class="operate-btns">
      <!--<a class="fbtn fb-download">导出</a>-->
    </div>
    <h3 class="current-module">供应商评价</h3>
  </div>
  
  
  <!--supply-productlist start-->
  <div class="supply-productlist clearfix"> 
  
    <div class="pd-form fast-search-form ">
      <div class="group-row">
        <div class="form-group">
          <!-- <label for="cn1" class="label lable-xf pl10">年月</label> -->
          <div class="control select-style">
            <monthpicker :target.sync="month" :readonly="false" title='年月' placeholder='年月'></monthpicker>
          </div>
        </div>
        <div class="form-group">
          <!-- <label for="cn1" class="label lable-xf pl10">得分范围</label> -->
           <div class="control control-date">
            <input type="text" id="cn4" v-model="gtscore" title='得分范围' placeholder='得分范围'>
            <span class="text-and"></span>
            <input type="text" id="cn13" v-model="ltscore" title='得分范围'>
          </div>
        </div>
      </div>
      <div class="group-row">
        <div class="form-group">
          <!-- <label for="cn1" class="label lable-xf pl10">医院</label> -->
          <div class="control">
            <input type="text" v-model="medname" id="cn1" title='医院' placeholder='医院' maxlength="20" v-rule>
          </div>
        </div>
         <div class="form-group">
          <!-- <label for="cn1" class="label lable-xf pl10">排名范围</label> -->
           <div class="control control-date">
            <input type="text" id="cn23" v-model="gtrowno" title='排名范围' placeholder='排名范围'>
            <span class="text-and"></span>
            <input type="text" id="cn3" v-model="ltrowno" title='排名范围'>
          </div>
        </div>
      </div>

      <div class="group-row t-right mt-10">
        <button class="fast-search-form-btn btn-d btn-d-lg btn-d-activate btn-d-circle" @click="getData">查 询</button>
      </div>
    </div>
    
   <table class="itable itable-td-long-text">
      <thead id="t_header">
        <tr>
          <th class="w100">序号</th>
          <th class="w130">医院</th>
          <th class="w150">送货总单数</th>
          <th class="w100">总得分</th>
          <th class="w100">在医院排名</th>
          <th class="w100">操作</th>
<!--           <th class="w80">生产日期</th>
          <th class="w80">有效期</th> -->
          <!-- <th class="w80">操作</th> -->
        </tr>
      </thead>
      <tbody class="txt_v">
        <tr v-if='list.length==0'> 
            <td colspan="10">
            暂无符合条件的记录
            </td> 
        </tr>
        <tr v-for="item in list" v-else>
          <td>{{$index+1}}</td>
          <td class="t-left pr10">{{item.medname}}</td>
          <td class="t-right pr10">{{item.billno}}</td>
          <td class="t-right pr10">{{(item.score*1).toFixed(2)}}</td>
          <td>{{parseInt(item.rowno)}}</td>
          <td class="pr7">
            <a class="btn button-green" v-link="{path:'/excelQuerySupplier2/'+item.medguid}">明细</a>
          </td>
        </tr>
        
      </tbody>
    </table>
    
    <pagination 
      @page-change="getData"
      :page-no.sync="search.page"
      :total-pages.sync="search.totalPages"> 
      <!-- <em class="page">明细条目数【{{ search.totalPages }}</em>  -->
    </pagination>

  </div>
  <!--supply-productlist end-->

</div>

</template>
<script>
module.exports={
  data: function(){
    return {
      list:{},
      medname:null,
      month:'',
      gtscore:null,
      ltscore:null,
      gtrowno:null,
      ltrowno:null,
      search:{
          page: 1,
          totalPages: 1,
          pageSize:50
      },
      read:true
    };
  },
  methods: {
    getData: function(){
      var self = this;
      var search=self.search;
      Ajax.post('/supplierReport/getMedWvlist',{
        'page':search.page,'pageSize':search.pageSize,'medname':self.medname,'month':self.month,
        'gtscore':self.gtscore,'ltscore':self.ltscore,'gtrowno':self.gtrowno,'ltrowno':self.ltrowno}).
          then(function(response){
            var resource=response.data;
            var res=response.data.data;
            self.list=res.list;
            if(!response.pageNo){
              self.search.page=1;
            }else{
              self.search.page=res.pageNo;
            }
            console.log(res.pageSize);
            self.search.totalPages=res.totalPages;
          })    
    }
   },
  route:{
    activate : function(){
      this.getData();
    }
  }
};


</script>