supplier-detail-message.vue 2.7 KB
<template>
<div class="container resource close-left-menu" style="min-height: 490px;">

  <div class="pop-banner clearfix">
    <form class="search-bar" active="###">
      <div class="search-btn">
        <input type="button" value="搜索">
      </div>
      <input type="text" placeholder="输入关键字" class="text-color-gray">
    </form>
    <div class="operate-btns"> 
        <a  class="fbtn fb-return"  v-on:click="go">返回</a>
    </div>
    <h3 class="current-module">供应企业商品信息</h3>
     
  </div>
  
  <!--purchase-plan start-->
  <div class="purchase-plan">


 <table class="itable itable-bordertop itable-thead-13px">
      <thead>
        <tr>
          <th class="w50">序号</th>
          <th class="w100">商品编号</th>
          <th class="w180">商品名称</th>
          <th class="w150">生产厂商</th>
          <th class="w200">注册证号/批准文号</th>
          <th class="w90">生产来源</th>
          <th class="w90">产地</th>
          <th class="w90">业务状态</th>
          <th class="w90">操作</th>
        </tr>
      </thead>
      <tbody>
        <tr v-for="item in list">
          <td>{{$index+1}}</td>
          <td>YY0001</td>
          <td class="t-left">{{item.goodsname}}<br>
          {{item.minunitqty}} <br>
          {{item.unitstyle}}</td>
          <td>{{item.producer}}</td>
          <td>{{item.registkey}}</td>
          <td>{{item.importedflag==1?"国产":"进口"}}</td>
          <td>{{item.productionaddress}}</td>
          <td class="text-color-yellow">
          {{item.bizstate=="Y"?"启用":"停用"}}</td>
          <td>
            <a class="btn-d btn-d-activate" v-link="{path:'/supplierDetailMessageDetails/'+item.guid}">明细</a>
          </td>
        </tr>
      </tbody>
    </table>




    <!-- <pagination
      @page-change="getData"
      :class="['m-20-0']"
      :page-no.sync="search.page"
      :total-pages.sync="search.totalPages">
      <em class="page">明细条目数【3】</em>
    </pagination> -->
  </div>
  <!--purchase-plan end-->






</div>


</template>
<script>
module.exports={
  data:function(){
    return {
      list:[
        
      ],search:{
          size: 20, page: 1, totalPages: 0,searchWord:''
      }
    }
  },methods:{
    go:function(){
        history.go(-1);
    },
    getData:function(casetxt){//请求数据     
      Ajax.get('/api/goverment_supplier_findMedEXCGoodsList',{
        'medGuid':this.$route.params.id,'supplierGuid':this.$route.params.guid
      }).then(function(res){
          var result=res.data;

          if(result.data){
              this.$set('list',result.data);
          }
      }.bind(this))
    }
  },route:{
    activate:function(){
      this.getData();
    }
  }
}
</script>