account-audit.vue
4.21 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
<style scoped>
.statistics span{
display: inline-block;
margin-right: 10px;
}
.statistics em{
display: inline-block;
}
</style>
<template>
<div class="container resource close-left-menu contaNEW" style="min-height: 809px;">
<div class="pop-banner clearfix">
<div class="operate-btns">
<a href="javascript:history.go(-1)" class="fbtn fb-return">返回</a>
<a href="javascript:void(0)" class="fbtn fb-to-examine" v-if='accountList.billstate=="01"' @click='audit'>审核</a>
</div>
<h3 class="current-module">对账单审核</h3>
</div>
<!--order-orderlist-view start-->
<div class="order-orderlist-view clearfix">
<div class="statistics mb-0">
<span> <em class="b">{{accountList.medname}}</em> 账单详情 </span>
<em style='font-size:14px;'>{{accountList.zdyfdate}}</em>
</div>
<div class="statistics">
<span>对账单日期范围 <em class="f-size14">{{accountList.dzbegindate| getYMD}} ~ {{accountList.dzenddate| getYMD}}</em></span>
<span>摘要 <em class="f-size14" v-if='accountList.memo'>{{accountList.memo}}</em>
<em class="f-size14" v-else>无</em>
</span>
<span>合计 <em class="b">{{accountList.detailsum | numDigit 2}}元</em></span>
</div>
<table class="itable itable-td-long-text">
<thead id='t_header'>
<tr>
<th class="w50">序号</th>
<th class="w120">入库单号</th>
<th class="w150">商品信息</th>
<th class="w120">批号</th>
<th class="w120">入库数量</th>
<th class="w130">单价(元)</th>
<th class="w100">金额(元)</th>
<th class="w80">发票号</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.medwvbillno}}
</td>
<td class="t-left pr10">
{{item.goodscode}} <br>
<span class="product-tit p-tit-green">{{item.goodsname}} </span><br>
{{item.goodsspec}} <br>
{{item.manufacturer}} <br>
{{item.registkey}}
</td>
<td>
{{item.lot}} <br>
{{item.productiondate | getYMD}} <br>
{{item.expiredate | getYMD}}
</td>
<td>
{{item.wvqty}} {{item.unit}}
</td>
<td>
{{item.price | numDigit 2}}
</td>
<td>
{{item.amount | numDigit 2}}
</td>
<td class='t-left'>
{{item.invoiceno}}
</td>
</tr>
</tbody>
</table>
<div class="pagination m-20-0">
<pagination @page-change="getData" :class="['m-20-0']" :page-no.sync="search.page" :total-pages.sync="search.totalPages">
</pagination>
</div>
</div>
<!--order-orderlist-view end-->
</div>
</template>
<script>
module.exports = {
data: function() {
return {
state:1,
list: {},
billstate: '',
accountList:'',
search: {
pageSize: 50,
page: 1,
totalPages: 0,
guid:''
},
};
},
methods: {
getData: function() {
var self = this;
Ajax.post('/supplierReport/getTrmedstatementdetails',self.search)
.then(function(response) {
var data = response.data.data;
if(response.data.errorCode == 0) {
self.$set('list', data.list);
self.search.totalPages = data.totalPages;
self.search.pageNo = data.pageNo;
} else {
layer.msg(response.data.message);
}
});
},
audit:function(){
var self = this;
Ajax.post('/supplierReport/checktrmedstatement',self.search)
.then(function(response) {
var data = response.data.data;
if(response.data.errorCode == 0) {
self.MessageBox({
title: '提示',
message: '审核成功',
type: 'alert'
}, function(action) {
self.$router.go({ 'path': '/accountList' });
});
} else {
layer.msg(response.data.message);
}
});
}
},
route: {
data: function() {
this.$set('accountList',JSON.parse(localStorage.getItem('accountList')));
this.search.guid=this.accountList.guid;
this.getData(true);
},
}
};
</script>