invoice-track.vue
6.56 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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<template>
<div class="container resource close-left-menu contaNEW">
<div class="pop-banner clearfix">
<!-- <div class="operate-btns">
</div> -->
<h3 class="current-module">发票跟踪</h3>
</div>
<!--order-orderlist-view start-->
<div class="order-orderlist-view clearfix">
<div class="pd-form form-label4em mb-20 fast-search-form">
<div class="group-row">
<div class="form-group">
<!-- <label class="label">入库单号</label> -->
<div class="control">
<input type="text" maxlength="17" v-rule v-model="search.search_LIKE_mvbillno" placeholder="入库单号" title='入库单号'>
</div>
</div>
<div class="form-group">
<!-- <label for="cn1" class="label">商品</label> -->
<div class="control control-date" style="height:34px;overflow: inherit;">
<div style="width: 42%;float: left">
<datepicker :target.sync='search.search_GTE_startDate' :readonly="readonlyFlag" placeholder='入库开始日期' title='入库开始日期'styleobj="width:100% !important;border-radius:8px 0px 0px 8px !important;"></datepicker>
</div>
<span class="text-and" style="width: 45.7px">—</span>
<div style="width: 48%;float: right;">
<datepicker :target.sync="search.search_LTE_endDate" :readonly="readonlyFlag" placeholder='入库结束日期' title='入库结束日期'styleobj="width:100% !important;border-radius:0px 8px 8px 0px !important;"></datepicker>
</div>
</div>
</div>
</div>
<div class="group-row">
<div class="form-group">
<!-- <label class="label">供应商</label> -->
<div class="control">
<input type="text" maxlength="20" v-rule v-model='search.search_EQ_suppliername' placeholder='供应商' title='供应商'>
</div>
</div>
<div class="form-group">
<!-- <label for="cn1" class="label">业务员</label> -->
<div class="control">
<input type="text" v-model='search.search_EQ_invoiceno' placeholder='发票号' title='发票号'>
</div>
</div>
</div>
<div class="group-row">
<div class="form-group">
<!-- <label class="label">配送商</label> -->
<div class="control">
<input type="text" maxlength="50" v-rule v-model="search.search_LIKE_goodsinfo" placeholder='商品' title='商品'>
</div>
</div>
</div>
<div class="group-row t-right">
<button class="fast-search-form-btn btn-d btn-d-lg btn-d-activate btn-d-circle" @click="getData(true)">查 询</button>
</div>
</div>
<table class="itable itable-td-long-text">
<thead id='t_header'>
<tr>
<th class="w70">序号</th>
<th class="w150">入库信息</th>
<th class="w100">供应商</th>
<th class="w100">发票号</th>
<th class="w100">发票图片</th>
<th class="w100">商品</th>
<th class="w100">上游进货时间</th>
<th class="w100">生产厂商</th>
<th class="w100">厂商发票</th>
<th class="w100">发票图片</th>
</tr>
</thead>
<tbody >
<tr v-if="list==null || list.length==0" >
<td colspan="10">暂无符合条件的记录</td>
</tr>
<tr v-for="item in list">
<td>{{$index+1}}</td>
<td class="t-left pr10">{{item.billno}}
<br>
{{item.mvdate | getYMD}}
<br>
{{item.mvdate | getHMS}}
</td>
<td class="t-left pr10">
{{item.suppliername}}
</td>
<td>{{item.invoiceno}}</td>
<td>
<div style="display:inline-block;" class="toggle-image">
<imagebox v-bind:imgarr="item.pictcontent | original">
<img class="pro-pic pro-pic-lg" :src="item.pictcontent|thumbnail">
</imagebox>
</div>
</td>
<td class="t-left pr10">{{item.goodsname}} <br> {{item.goodsspec}} <br>{{item.mvqty}}{{item.unit}}*{{item.price}}元 <br>{{item.amount}}元</td>
<td>
{{item.invoicedate | getYMD}}
<!-- <br> -->
<!-- {{item.invoicedate | getHMS}} -->
</td>
<td class="t-left pr10">{{item.manufacturer}}</td>
<td class="t-left pr10">{{item.producerinvoiceno}}</td>
<td>
<div style="display:inline-block;" class="toggle-image">
<imagebox v-bind:imgarr="item.invoicepic | original">
<img class="pro-pic pro-pic-lg" :src="item.invoicepic|thumbnail">
</imagebox>
</div>
</td>
</tr>
</tbody>
</table>
<pagination
@page-change="getData"
:class="['m-20-0']"
:page-no.sync="search.page"
:total-pages.sync="search.totalPages">
</pagination>
</div>
<!--order-orderlist-view end-->
</div>
</template>
<script>
module.exports={
data: function(){
return {
search:{
page: 1,
totalPages:1,
pageSize:50,
search_EQ_suppliername:'',
search_EQ_invoiceno:'',
search_LIKE_goodsinfo:'',
search_LIKE_mvbillno:'',
search_GTE_startDate:'',
search_LTE_endDate:'',
},
list:[]
};
},
methods:{
getData: function(flag){
var self = this;
if(flag){
self.search.page=1;
}
Ajax.post('/hospitalReport/findMirTraceability',self.search)
.then(function(response){
var res=response.data.data;
if(response.data.errorCode==0){
self.list=res.list;
self.search.totalPages=res.pageNo;
self.search.totalPages=res.totalPages;
}
// self.type=res;
})
// Ajax.post('/hospitalReport/getMedWvList',{'page':self.search.page,'pageSize':'50',
// 'billtype':self.billtype,'billno':self.billno,'goodsname':self.goodsname,'gtinputdate':self.gtinputdate,
// 'ltinputdate':self.ltinputdate,'suppliername':self.suppliername,'mkstaffname':self.mkstaffname,
// 'distrbname':self.distrbname,'medplanbillno':self.medplanbillno}).
// then(function(response){
// var res=response.data.data;
// self.list=res.list;
// self.search.totalPages=res.pageNo;
// self.search.totalPages=res.totalPages;
// })
},
},
route:{
activate : function(){
this.getData(true);
}
}
};
</script>