settlement.vm
23.3 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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
$page.setTitle("结算中心")
<div class="xn-breadcrumb xn-width auto clearfix ">
<ul class="breadcrumb">
<li><a class="icon icon-home_page" href="$customizationLink.setTarget("index")"></a> </li>
<li><a href="$customizationContent.setTarget("report")">报表中心</a> </li>
<li class="active">结算中心</li>
</ul>
</div>
<div class="xn-main auto xn-width clearfix" ng-controller="SettleMentIndexController">
<!--搜索部分-->
<div class="xn_search_box auto">
<form class="form-horizontal clearfix xn-form" name="searchForm" xn-form-validate novalidate role="form">
<div class="xn-input-line clearfix">
<div class="xn-input-line clearfix">
<label class="xn-label" style="margin-right: 15px">交易类型:</label>
<div class="xn-input-lg">
<div xn-checkbox-list ng-model="checkbox" data-checkbox-list="checkboxlist"></div>
</div>
</div>
</div>
<div class="xn-input-line clearfix" style="margin-top: auto">
<label class="xn-label" >发生开始时间:</label>
<div class="xn-col-sm-10" style="margin-top: auto">
<div class="input-group openData">
<input type="text" class="form-control" id="adjustmentStartTime" placeholder="请选择开始时间" ng-model="vm.startDate" name="regularDate"
datepicker-popup="yyyy-MM-dd" is-open="startDate" min-date="minDate" datepicker-options="dateOptions"
date-disabled="disabled(date, mode)" close-text="关闭" current-text="今天" clear-text="清除">
<span class="input-group-btn">
<button class="btn btn-default" type="button" ng-click="openStart($event)"><i class="glyphicon glyphicon-calendar"></i></button>
</span>
</div>
</div>
<label class="xn-label">发生结束时间:</label>
<div class="xn-col-sm-10">
<div class="input-group openData">
<input type="text" class="form-control" id="adjustmentEndTime" placeholder="请选择结束时间" ng-model="vm.endDate" name="regularDate"
datepicker-popup="yyyy-MM-dd" is-open="endDate" min-date="minDate" datepicker-options="dateOptions"
date-disabled="disabled(date, mode)" close-text="关闭" current-text="今天" clear-text="清除">
<span class="input-group-btn">
<button class="btn btn-default" type="button" ng-click="openEnd($event)"><i class="glyphicon glyphicon-calendar"></i></button>
</span>
</div>
</div>
</div>
<div class="xn-input-line clearfix" style="margin-top: auto" ng-show="checkboxlist[0].state==true && checkboxlist[1].state==false">
<label class="xn-label" >结算开始时间:</label>
<div class="xn-col-sm-10">
<div class="input-group openData">
<input type="text" class="form-control" id="settleStartDate" placeholder="请选择开始时间" ng-model="vm.settleStartDate" name="regularDate"
datepicker-popup="yyyy-MM-dd" is-open="settleStartDate" min-date="minDate" datepicker-options="dateOptions"
date-disabled="disabled(date, mode)" close-text="关闭" current-text="今天" clear-text="清除">
<span class="input-group-btn">
<button class="btn btn-default" type="button" ng-click="openSettleStart($event)"><i class="glyphicon glyphicon-calendar"></i></button>
</span>
</div>
</div>
<label class="xn-label">结算结束时间:</label>
<div class="xn-col-sm-10">
<div class="input-group openData">
<input type="text" class="form-control" id="settleEndDate" placeholder="请选择结束时间" ng-model="vm.settleEndDate" name="regularDate"
datepicker-popup="yyyy-MM-dd" is-open="settleEndDate" min-date="minDate" datepicker-options="dateOptions"
date-disabled="disabled(date, mode)" close-text="关闭" current-text="今天" clear-text="清除">
<span class="input-group-btn">
<button class="btn btn-default" type="button" ng-click="openSettleEnd($event)"><i class="glyphicon glyphicon-calendar"></i></button>
</span>
</div>
</div>
</div>
</form>
</div>
<div class="xn-table-wrap">
<tabset class="f-left" vertical="false" type="pills">
<tab heading="预付款" ng-click="changeTab('PRE_PAYMENT')"></tab>
<tab heading="标准付款" ng-click="changeTab('STANDARD_PAYMENT')"></tab>
<tab heading="采购收货" ng-click="changeTab('PUR_RECEIVE')"></tab>
<tab heading="采购退货" ng-click="changeTab('PUR_RETURN')"></tab>
<tab heading="库存调整" ng-click="changeTab('INV_ADJUSTMENT')"></tab>
<tab heading="销售发货" ng-click="changeTab('SM_SHIPMENT')"></tab>
</tabset>
<div class=" mb_10 pr_10 f-right">
<a class="btn btn-success btn-sm w_80 f-right" ng-click="doSettleBatch()">结算</a>
<a class="btn btn-success btn-sm w_80 f-right" style="margin-right: 15px" ng-click="doSearch()">查询</a>
</div>
</div>
<div class="xn-table-wrap" ng-show = "showTag == 'PRE_PAYMENT'">
<table class="table table-bordered table-striped ">
<thead>
<tr>
<th class="xn-col-sm-1 xn-text-center">
<input type="checkbox" ng-model="allChecked" ng-click="checkAll()" />
</th>
<th class="xn-col-sm-3 xn-center" >单号</th>
<th class="xn-col-sm-3 xn-center">事业部</th>
<th class="xn-col-sm-3 xn-center">供应商</th>
<th class="xn-col-sm-4 xn-center">付款时间 </th>
<th class="xn-col-sm-3 xn-center">付款人</th>
<th class="xn-col-sm-3 xn-center">订单号</th>
<th class="xn-col-sm-2 xn-center">结算金额</th>
<th class="xn-col-sm-2 xn-center">结算状态</th>
<th class="xn-col-sm-2 xn-center">操作</th>
</tr>
</thead>
<tbody id="tbody" >
<tr ng-repeat="settle in settleMentList">
<td class="xn-col-sm-2 xn-text-center">
<input type="checkbox" ng-model="settle.isChecked" ng-chk="chk(settle)"></input>
</td>
<td class="xn-col-sm-1 xn-center" ><a ng-href="$config.getDistributionUrl("")purchasing/payment/open/open.htm?id={{settle.sourceId}}&flowId=0">{{settle.sourceNumber}}</td>
<td class="xn-col-sm-2 xn-center">{{settle.operatingUnitName}}</td>
<td class="xn-col-sm-3 xn-center">{{settle.supplierName}}</td>
<td class="xn-col-sm-4 xn-center">{{settle.time | timeToDateFormat}} </td>
<td class="xn-col-sm-3 xn-center">{{settle.persion}}</td>
<td class="xn-col-sm-3 xn-center"><a ng-href="$config.getDistributionUrl("")purchasing/order/open.htm?id={{settle.orderHeadId}}&flowId=0">{{settle.orderNumber}}</a></td>
<td class="xn-col-sm-2 xn-center">{{settle.settleAmount}}</td>
<td class="xn-col-sm-2 xn-center">{{settle.isSettled| settled}}</td>
<td class="xn-col-sm-2 xn-center"><a class="btn btn-myprimary xn-center" ng-click="doSettle(settle)">结算</a></td>
</tr>
<tr ng-if="!vm.totalCount || vm.totalCount == 0"><td colspan="12" class="center">无法找到相应的记录</td></tr>
</tbody>
</table>
<!--分页-->
<div class="xn-table-wrap xn-text-center clearfix" ng-if="vm.totalCount ">
<div class="f-left mt_20 mb_10">共{{vm.totalCount}}条</div>
<pagination ng-show="vm.totalCount>vm.pageSize" ng-change="getList()" max-size="maxPageSize" total-items="vm.totalCount"
ng-model="vm.pageNumber" items-per-page="vm.pageSize" class="pagination-sm" boundary-links="true"
previous-text="‹" next-text="›" first-text="«" last-text="»"></pagination>
</div>
<!--分页-->
</div>
<div class="xn-table-wrap" ng-show = "showTag == 'STANDARD_PAYMENT'">
<table class="table table-bordered table-striped ">
<thead>
<tr>
<th class="xn-col-sm-2 xn-text-center">
<input type="checkbox" ng-model="allChecked" ng-click="checkAll()" />
</th>
<th class="xn-col-sm-3 xn-center" >单号</th>
<th class="xn-col-sm-3 xn-center">事业部</th>
<th class="xn-col-sm-3 xn-center">供应商</th>
<th class="xn-col-sm-4 xn-center">付款时间 </th>
<th class="xn-col-sm-3 xn-center">付款人</th>
<th class="xn-col-sm-4 xn-center">订单号</th>
<th class="xn-col-sm-3 xn-center">收货单号</th>
<th class="xn-col-sm-3 xn-center">结算金额</th>
<th class="xn-col-sm-2 xn-center">结算状态</th>
<th class="xn-col-sm-3 xn-center">操作</th>
</tr>
</thead>
<tbody id="tbody" >
<tr ng-repeat="settle in settleMentList">
<td class="xn-col-sm-2 xn-text-center">
<input type="checkbox" ng-model="settle.isChecked" ng-chk="chk(settle)"></input>
</td>
<td class="xn-col-sm-3 xn-center"><a ng-href="$config.getDistributionUrl("")purchasing/payment/open/open.htm?id={{settle.sourceId}}&flowId=0">{{settle.sourceNumber}}</td>
<td class="xn-col-sm-3 xn-center">{{settle.operatingUnitName}}</td>
<td class="xn-col-sm-3 xn-center">{{settle.supplierName}}</td>
<td class="xn-col-sm-4 xn-center">{{settle.time | timeToDateFormat}}</td>
<td class="xn-col-sm-3 xn-center">{{settle.persion}}</td>
<td class="xn-col-sm-4 xn-center"><a ng-href="$config.getDistributionUrl("")purchasing/order/open.htm?id={{settle.orderHeadId}}&flowId=0">{{settle.orderNumber}}</a></td>
<td class="xn-col-sm-3 xn-center"><a ng-href="$config.getDistributionUrl("")purchasing/receipt/view.htm?id={{settle.receiptHeardId}}&flowId=0">{{settle.receiptNumber}}</a></td>
<td class="xn-col-sm-3 xn-center">{{settle.settleAmount}}</td>
<td class="xn-col-sm-2 xn-center">{{settle.isSettled| settled}}</td>
<td class="xn-col-sm-2 xn-center"><a class="btn btn-myprimary xn-center" ng-click="doSettle(settle)">结算</a></td>
</tr>
<tr ng-if="!vm.totalCount || vm.totalCount == 0"><td colspan="12" class="center">无法找到相应的记录</td></tr>
</tbody>
</table>
<!--分页-->
<div class="xn-table-wrap xn-text-center clearfix" ng-if="vm.totalCount ">
<div class="f-left mt_20 mb_10">共{{vm.totalCount}}条</div>
<pagination ng-show="vm.totalCount>vm.pageSize" ng-change="getList()" max-size="maxPageSize" total-items="vm.totalCount"
ng-model="vm.pageNumber" items-per-page="vm.pageSize" class="pagination-sm" boundary-links="true"
previous-text="‹" next-text="›" first-text="«" last-text="»"></pagination>
</div>
</div>
<div class="xn-table-wrap" ng-show = "showTag == 'PUR_RECEIVE'">
<table class="table table-bordered table-striped ">
<thead>
<tr>
<th class="xn-col-sm-1 xn-text-center">
<input type="checkbox" ng-model="allChecked" ng-click="checkAll()" />
</th>
<th class="xn-col-sm-4 xn-center">单号</th>
<th class="xn-col-sm-3 xn-center">事业部</th>
<th class="xn-col-sm-3 xn-center">供应商</th>
<th class="xn-col-sm-2 xn-center">库房</th>
<th class="xn-col-sm-4 xn-center">订单号</th>
<th class="xn-col-sm-4 xn-center">收货时间</th>
<th class="xn-col-sm-2 xn-center">收货人</th>
<th class="xn-col-sm-2 xn-center">收货商品金额</th>
<th class="xn-col-sm-2 xn-center">结算状态</th>
<th class="xn-col-sm-2 xn-center">操作</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="settle in settleMentList">
<td class="xn-col-sm-1 xn-text-center">
<input type="checkbox" ng-model="settle.isChecked" ng-chk="chk(settle)"></input>
</td>
<td class="xn-col-sm-4 xn-center" ><a ng-href="$config.getDistributionUrl("")purchasing/receipt/open.htm?id={{settle.sourceId}}&flowId=">{{settle.sourceNumber}}</td>
<td class="xn-col-sm-3 xn-center">{{settle.operatingUnitName}}</td>
<td class="xn-col-sm-3 xn-center">{{settle.supplierName}}</td>
<td class="xn-col-sm-2 xn-center">{{settle.storeroomName}}</td>
<td class="xn-col-sm-4 xn-center"><a ng-href="$config.getDistributionUrl("")purchasing/order/open.htm?id={{settle.orderHeadId}}&flowId=0">{{settle.orderNumber}}</a></td>
<td class="xn-col-sm-4 xn-center">{{settle.time | timeToDateFormat}}</td>
<td class="xn-col-sm-2 xn-center">{{settle.persion}}</td>
<td class="xn-col-sm-2 xn-center">{{settle.settleAmount}}</td>
<td class="xn-col-sm-2 xn-center">{{settle.isSettled | settled}}</td></td>
<td class="xn-col-sm-2 xn-center"><a class="btn btn-myprimary xn-center" ng-click="doSettle(settle)">结算</a></td>
</tr>
<tr ng-if="!vm.totalCount || vm.totalCount == 0"><td colspan="12" class="center">无法找到相应的记录</td></tr>
</tbody>
</table>
<!--分页-->
<div class="xn-table-wrap xn-text-center clearfix" ng-if="vm.totalCount ">
<div class="f-left mt_20 mb_10">共{{vm.totalCount}}条</div>
<pagination ng-show="vm.totalCount>vm.pageSize" ng-change="getList()" max-size="maxPageSize" total-items="vm.totalCount"
ng-model="vm.pageNumber" items-per-page="vm.pageSize" class="pagination-sm" boundary-links="true"
previous-text="‹" next-text="›" first-text="«" last-text="»"></pagination>
</div>
</div>
<div class="xn-table-wrap" ng-show = "showTag == 'PUR_RETURN'">
<table class="table table-bordered table-striped ">
<thead>
<tr>
<th class="xn-col-sm-2 xn-text-center">
<input type="checkbox" ng-model="allChecked" ng-click="checkAll()" />
</th>
<th class="xn-col-sm-5 xn-center" >单号</th>
<th class="xn-col-sm-4 xn-center">事业部</th>
<th class="xn-col-sm-3 xn-center">供应商</th>
<th class="xn-col-sm-3 xn-center">库房</th>
<th class="xn-col-sm-3 xn-center">订单号</th>
<th class="xn-col-sm-3 xn-center">退货时间</th>
<th class="xn-col-sm-3 xn-center">退货人</th>
<th class="xn-col-sm-3 xn-center">退货商品金额</th>
<th class="xn-col-sm-3 xn-center">结算状态</th>
<th class="xn-col-sm-3 xn-center">操作</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="settle in settleMentList">
<td class="xn-col-sm-2 xn-text-center">
<input type="checkbox" ng-model="settle.isChecked" ng-chk="chk(settle)"></input>
</td>
<td class="xn-col-sm-5 xn-center" ><a ng-href="$config.getDistributionUrl("")purchasing/backgoods/open.htm?id={{settle.sourceId}}&flowId=">{{settle.sourceNumber}}</td>
<td class="xn-col-sm-4 xn-center">{{settle.operatingUnitName}}</td>
<td class="xn-col-sm-3 xn-center">{{settle.supplierName}}</td>
<td class="xn-col-sm-3 xn-center">{{settle.storeroomName}}</td>
<td class="xn-col-sm-3 xn-center"><a ng-href="$config.getDistributionUrl("")purchasing/order/open.htm?id={{settle.orderHeadId}}&flowId=0">{{settle.orderNumber}}</a></td>
<td class="xn-col-sm-3 xn-center">{{settle.time | timeToDateFormat}}</td>
<td class="xn-col-sm-3 xn-center">{{settle.persion}}</td>
<td class="xn-col-sm-3 xn-center">{{settle.settleAmount}}</td>
<td class="xn-col-sm-3 xn-center">{{settle.isSettled | settled}}</td>
<td class="xn-col-sm-2 xn-center"><a class="btn btn-myprimary xn-center" ng-click="doSettle(settle)">结算</a></td>
</tr>
<tr ng-if="!vm.totalCount || vm.totalCount == 0"><td colspan="12" class="center">无法找到相应的记录</td></tr>
</tbody>
</table>
<!--分页-->
<div class="xn-table-wrap xn-text-center clearfix" ng-if="vm.totalCount ">
<div class="f-left mt_20 mb_10">共{{vm.totalCount}}条</div>
<pagination ng-show="vm.totalCount>vm.pageSize" ng-change="getList()" max-size="maxPageSize" total-items="vm.totalCount"
ng-model="vm.pageNumber" items-per-page="vm.pageSize" class="pagination-sm" boundary-links="true"
previous-text="‹" next-text="›" first-text="«" last-text="»"></pagination>
</div>
</div>
<div class="xn-table-wrap" ng-show = "showTag == 'INV_ADJUSTMENT'">
<table class="table table-bordered table-striped ">
<thead>
<tr>
<th class="xn-col-sm-2 xn-text-center">
<input type="checkbox" ng-model="allChecked" ng-click="checkAll()" />
</th>
<th class="xn-col-sm-4 xn-center" >单号</th>
<th class="xn-col-sm-3 xn-center">事业部</th>
<th class="xn-col-sm-3 xn-center">库房</th>
<th class="xn-col-sm-3 xn-center">类别</th>
<th class="xn-col-sm-4 xn-center">调整时间</th>
<th class="xn-col-sm-3 xn-center">调整人</th>
<th class="xn-col-sm-3 xn-center">调整商品金额</th>
<th class="xn-col-sm-2 xn-center">结算状态</th>
<th class="xn-col-sm-2 xn-center">操作</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="settle in settleMentList">
<td class="xn-col-sm-2 xn-text-center">
<input type="checkbox" ng-model="settle.isChecked" ng-chk="chk(settle)"></input>
</td>
<td class="xn-col-sm-4 xn-center" ><a ng-href="$config.getDistributionUrl("")inventory/adjustment/open.htm?id={{settle.sourceId}}&flowId=0">{{settle.sourceNumber}}</td>
<td class="xn-col-sm-3 xn-center">{{settle.operatingUnitName}}</td>
<td class="xn-col-sm-3 xn-center">{{settle.storeroomName}}</td>
<td class="xn-col-sm-3 xn-center">{{settle.typeName}}</td>
<td class="xn-col-sm-4 xn-center">{{settle.time | timeToDateFormat}}</td>
<td class="xn-col-sm-3 xn-center">{{settle.persion}}</td>
<td class="xn-col-sm-3 xn-center">{{settle.settleAmount}}</td>
<td class="xn-col-sm-2 xn-center">{{settle.isSettled | settled}}</td>
<td class="xn-col-sm-2 xn-center"><a class="btn btn-myprimary xn-center" ng-click="doSettle(settle)">结算</a></td>
<tr ng-if="!vm.totalCount || vm.totalCount == 0"><td colspan="12" class="center">无法找到相应的记录</td></tr>
</tbody>
</table>
<!--分页-->
<div class="xn-table-wrap xn-text-center clearfix" ng-if="vm.totalCount ">
<div class="f-left mt_20 mb_10">共{{vm.totalCount}}条</div>
<pagination ng-show="vm.totalCount>vm.pageSize" ng-change="getList()" max-size="maxPageSize" total-items="vm.totalCount"
ng-model="vm.pageNumber" items-per-page="vm.pageSize" class="pagination-sm" boundary-links="true"
previous-text="‹" next-text="›" first-text="«" last-text="»"></pagination>
</div>
</div>
<div class="xn-table-wrap" ng-show = "showTag == 'SM_SHIPMENT'">
<table class="table table-bordered table-striped ">
<thead>
<tr>
<th class="xn-col-sm-2 xn-text-center">
<input type="checkbox" ng-model="allChecked" ng-click="checkAll()" />
</th>
<th class="xn-col-sm-5 xn-center" >单号</th>
<th class="xn-col-sm-4 xn-center">事业部</th>
<th class="xn-col-sm-5 xn-center">店铺</th>
<th class="xn-col-sm-5 xn-center">发货时间</th>
<th class="xn-col-sm-3 xn-center">订单金额</th>
<th class="xn-col-sm-3 xn-center">结算状态</th>
<th class="xn-col-sm-3 xn-center">操作</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="settle in settleMentList">
<td class="xn-col-sm-2 xn-text-center">
<input type="checkbox" ng-model="settle.isChecked" ng-chk="chk(settle)"></input>
</td>
<td class="xn-col-sm-5 xn-center"><a ng-href="$config.getConfig('site.ordering.url')ecommerce/order/search.htm?sourceNumber={{settle.sourceNumber}}">{{settle.sourceNumber}}</td>
<td class="xn-col-sm-4 xn-center">{{settle.operatingUnitName}}</td>
<td class="xn-col-sm-3 xn-center">{{settle.stormName}}</td>
<td class="xn-col-sm-5 xn-center">{{settle.time | timeToDateFormat}}</td>
<td class="xn-col-sm-3 xn-center">{{settle.settleAmount}}</td>
<td class="xn-col-sm-3 xn-center">{{settle.isSettled | settled}}</td>
<td class="xn-col-sm-2 xn-center"><a class="btn btn-myprimary xn-center" ng-click="doSettle(settle)">结算</a></td>
</tbody>
<tr ng-if="!vm.totalCount || vm.totalCount == 0"><td colspan="12" class="center">无法找到相应的记录</td></tr>
</tbody>
</table>
<!--分页-->
<div class="xn-table-wrap xn-text-center clearfix" ng-if="vm.totalCount ">
<div class="f-left mt_20 mb_10">共{{vm.totalCount}}条</div>
<pagination ng-show="vm.totalCount>vm.pageSize" ng-change="getList()" max-size="maxPageSize" total-items="vm.totalCount"
ng-model="vm.pageNumber" items-per-page="vm.pageSize" class="pagination-sm" boundary-links="true"
previous-text="‹" next-text="›" first-text="«" last-text="»"></pagination>
</div>
</div>
</div>
<script type="text/javascript" src="$customizationContent.getURI('dist/scripts/report.js')"></script>