business-hospital-list.vue
3.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<style>
.bhlist_h1{font-size:24px;color:#4aa8e5;margin-top:0px;}
.bhlist_h1 span{font-size:14px;color: #373737;padding-left:20px;
font-weight: normal;}
</style>
<template>
<div class="container resource" style="min-height: 490px;">
<div class="pop-banner clearfix">
<div class="operate-btns">
<!-- <a class="fbtn fb-add" v-show="!addrow"
v-on:click="addrow=!addrow">添加</a>
<a href="javascript:void(0)" class="fbtn fb-save"
v-show="addrow" v-on:click="add()">保存</a>
<a href="javascript:;" class="fbtn fb-refresh"
v-on:click="getData('refresh')">刷新</a> -->
</div>
<h3 class="current-module">医疗机构采购流向追溯</h3>
</div>
<h1 class="bhlist_h1">
{{list[0].name}}订单<span>{{search.startDate}} 至 {{search.endDate}}</span></h1>
<div class="ctable ct-parent"
style="border-top:1px #e8ebef solid;padding-top:20px;">
<div class="ct-head">
<span class="ct-col w40">序号</span>
<span class="ct-col w160">供应商</span>
<span class="ct-col w120">采购订单</span>
<span class="ct-col w120">配送商</span>
<span class="ct-col w100">订货日期</span>
<span class="ct-col w60">单据类型</span>
<span class="ct-col w60">采购员</span>
<span class="ct-col w60">品规数</span>
<span class="ct-col w80">总数量</span>
<span class="ct-col w80">总金额</span>
<span class="ct-col w100">备注</span>
</div>
<div class="ct-row" v-for="item in list">
<div class="row-line">
<span class="ct-col w40">{{$index+1}}</span>
<span class="ct-col w160">{{item.SupplierName}}</span>
<span class="ct-col w120">{{item.billNo}}</span>
<span class="ct-col w120">{{item.DistrbName}}</span>
<span class="ct-col w100">{{item.BillDate}}</span>
<span class="ct-col w60">{{item.BillType | ftCase "01:普耗;02:高值;04:药品"}}</span>
<span class="ct-col w60">{{item.BuyerName}}</span>
<span class="ct-col w60">{{item.CountSum}}</span>
<span class="ct-col w80">{{item.totalCount}}</span>
<span class="ct-col w80">{{item.DetailSum}}</span>
<span class="ct-col w100"></span>
</div>
</div>
</div>
<pagination
@page-change="getData"
:class="['m-20-0']"
:page-no.sync="search.page"
:total-pages.sync="search.totalPages"></pagination>
</div>
</template>
<script>
module.exports={
data:function(){
return {
list:[{}],search:{
startDate:'',endDate:'', size: 20, page: 1, totalPages: 0,medGuid:''
}
}
},methods:{
getData:function(casetxt){//请求数据
Ajax.get('/api/goverment_report_getMedPlanBetweenMonth',
this.search).then(function(res){
var result=res.data;
if(result.data){
this.$set('list',result.data);
this.search.totalPages=result.data.totalPages;
}
}.bind(this))
}
},route:{
activate:function(){
this.search.startDate=this.$route.query.startDate;
this.search.endDate=this.$route.query.endDate;
this.search.medGuid=this.$route.params.id;
this.getData();
}
}
}
</script>