excel-query-supplier.vue
4.64 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<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>