open.vm
14 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
##$page.setTitle("收货单操作")
<title>收货单操作</title>
<div class="xn-breadcrumb xn-width auto clearfix " >
<ul class="breadcrumb">
<li><a class="icon icon-home_page" href="$purchasingLink.setTarget('index')"></a> </li>
<li><a href="$purchasingLink.setTarget('receipt/index')">收货</a> </li>
<li class="active">收货单操作</li>
</ul>
</div>
<div class="xn-main auto xn-width clearfix" ng-controller="ReceiptOpenController">
<form class="form-horizontal xn-form ng-pristine ng-valid ng-valid-required" role="form" xn-form-validate="" novalidate="" name="validateForm">
<!--标题-->
<div class="xn-form-title">
<h1 class="f-left">采购收货单</h1>
<span ng-if="receipt.headViewRequest.receiptNumber" class="xn_order_number">{{"No."+receipt.headViewRequest.receiptNumber}}</span>
## <ul class="btn_list clearfix" ng-if="vm">
## <li ng-if="false==receipt.headViewRequest.isSubmit">
## <a ng-href="$purchasingLink.setTarget("receipt/edit")?id={{receipt.headViewRequest.id}}">
## <i class="icon icon-edit"></i><span>编辑</span>
## </a>
## </li>
## <li class="dropdown" dropdown >
## <div class="dropdown-toggle" dropdown-toggle ng-click="showBar()">
## <i class="icon icon-downward-1" ></i>
## <span>更多</span>
## </div>
## <ul class="dropdown-menu clearfix" >
## <li class="bar-item">
## <i class="icon icon-upward-1" ></i><span>更多</span>
## </li>
## <li class="bar-item" ng-click="doPrint();">
## <i class="icon icon-print" ></i><span>打印</span>
## </li>
## <li class="bar-item" ng-if="false==receipt.headViewRequest.isPosted || false==receipt.headViewRequest.isSubmit">
## <a ng-href="$purchasingLink.setTarget("receipt/delete")?id={{receipt.headViewRequest.id}}">
## <i class="icon icon-dustbin02" ></i><span>删除</span>
## </a>
## </li>
## </ul>
## </li>
## </ul>
</div>
<!--标题-->
<div class="clearfix"></div>
<!--订单头信息-->
<div class="xn-form-head">
<div class="col-sm-4 xn_info_1">
<ul>
<li>
<label class="xn_info_lab">订单时间:<span>{{receipt.headViewRequest.submitTime | timeFullFormat}}</span></label>
</li>
<li>
<label class="xn_info_lab">采购员:<span>{{receipt.headViewRequest.buyerUserName}}</span></label>
</li>
<li ng-if="shipmentNumber">
<label class="xn_info_lab">发货单号:<span>{{shipmentNumber}}</span></label>
</li>
</ul>
</div>
<div class="col-sm-4 xn_info_2">
<ul>
<li>
<label class="xn_info_lab">经营单元:<span>{{receipt.headViewRequest.operatingUnitName}}</span></label>
</li>
<li>
<label class="xn_info_lab">供应商:<span>{{receipt.headViewRequest.supplierName}}</span></label>
</li>
</ul>
</div>
<div class="col-sm-4 xn_info_3">
<label class="xn_info_lab">收货说明:</label>
<div class="description-block"><pre>{{receipt.headViewRequest.description}}</pre></div>
</div>
</div>
<!--订单头信息-->
<div class="clearfix"></div>
<!--订单行-->
<div class="xn-form-table-wrap">
<table class="main-grid">
<thead>
<tr>
<th class="xn-col-sm-2 xn-center">序号</th>
<th class="xn-col-sm-7">物品</th>
<th class="xn-col-sm-4">单位</th>
<th class="xn-col-sm-4">规格</th>
<th class="xn-col-sm-4">品牌</th>
<th class="xn-col-sm-4">批号</th>
<th class="xn-col-sm-4">库房</th>
<th class="xn-col-sm-4 xn-text-right">采购数量</th>
<th class="xn-col-sm-4 xn-text-right">退货数量</th>
<th class="xn-col-sm-4 xn-text-right">本次数量</th>
<th class="xn-col-sm-4">备注说明</th>
<th class="xn-col-sm-3">序列号</th>
</tr>
</thead>
<tbody>
<tr class="line" ng-repeat="receiptLine in lineViewRequestList | pageOffset: (page.pageNumber-1)*page.pageSize | limitTo: page.pageSize">
<td class="xn-center column">{{(page.pageNumber-1)*page.pageSize+$index+1}}</td>
<td class="column">{{receiptLine.itemName}}({{receiptLine.itemNumber}})</td>
<td class="column">{{receiptLine.itemUom}}</td>
<td class="column">{{receiptLine.itemSpecCode}}</td>
<td class="column">{{receiptLine.brandName}}</td>
<td class="column">{{receiptLine.lotNumber}}</td>
<td class="column">{{receiptLine.storeroomName}}</td>
<td class="xn-text-right column">{{receiptLine.quantityOrder | number}}</td>
<td class="xn-text-right column">{{receiptLine.quantityReturned | number}}</td>
<td class="xn-text-right column">{{receiptLine.quantityReceived | number}}</td>
<td class="column" ng-show="receiptLine.summary&&receiptLine.summary.length>6"> <div tooltip-placement="right" tooltip="{{receiptLine.summary}}">{{receiptLine.summary | substr:6}}</div></td>
<td class="column" ng-show="!receiptLine.summary||(receiptLine.summary&&receiptLine.summary.length<6)">{{receiptLine.summary}}</td>
<td class="column">
<a ng-show="receiptLine.serialList != null" ng-click="showSerialNumbers(receiptLine.serialList)">S/N</a>
</td>
</tr>
</tbody>
</table>
<pagination ng-show="page.pageSize && lineViewRequestList.length > page.pageSize" max-size="maxPageSize"
total-items="lineViewRequestList.length" ng-model="page.pageNumber"
items-per-page="page.pageSize"
class="pagination-sm" boundary-links="true" previous-text="‹" next-text="›"
first-text="«" last-text="»"></pagination>
<div class="f-left pagination-item"
ng-class="(page.pageSize && lineViewRequestList.length>page.pageSize)?'pl_20':''">
每页显示:
<input ng-model="page.pageSize" type="text">条
<a href="javascript:void(0);" ng-if=" lineViewRequestList.length>page.pageSize" class="btn btn-default"
ng-click="page.pageSize= lineViewRequestList.length">显示全部</a>
</div>
</div>
<!--订单行-->
<div class="clearfix"></div>
<!--订尾部信息-->
<div class="xn-form-foot clearfix">
<div class="col-sm-4 left">
<ul class="foot-head">
<li>
<label class="xn_info_lab">需要检验:
<span ng-if="receipt.headViewRequest.needInspect=='false'">否</span>
<span ng-if="receipt.headViewRequest.needInspect=='true'">是</span>
</label>
</li>
</ul>
</div>
</div>
<div class="xn-form-foot">
<div class="content-block mt_20">
<h4 class="block-title">附件
</h4>
<div class="block-content clearfix">
<div>
<div xn-attachment-view ng-model="attachment"></div>
</div>
</div>
</div>
</div>
<div class="clearfix"></div>
<div class="xn-form-line"></div>
<div class="xn_btn_group">
## <a href="$purchasingLink.setTarget('receipt/submit/index')?id={{receipt.headViewRequest.id}}" ng-if="!receipt.headViewRequest.isSubmit" class="btn btn-warning">提交</a>
## <a href="$purchasingLink.setTarget('receipt/submit/index')?id={{receipt.headViewRequest.id}}" ng-if="receipt.headViewRequest.approveResult == 'AGREED' && receipt.headViewRequest.needInspect == 'false' && !receipt.headViewRequest.isPosted" class="btn btn-warning">提交</a>
## <a href="$purchasingLink.setTarget('receipt/submit/index')?id={{receipt.headViewRequest.id}}" ng-if="receipt.headViewRequest.approveResult == 'AGREED' && receipt.headViewRequest.inspectResult == 'PASS' && !receipt.headViewRequest.isPosted" class="btn btn-warning">提交</a>
<a href="javascript:history.back(-1);" class="btn btn-default">返回</a>
</div>
</form>
#*<div class="sidebar-description xn-center clearfix">
<form class="form-horizontal xn-form" role="form" xn-form-validate novalidate name="validateForm">
<div ng-if="!receipt.headViewRequest.isSubmit || receipt.headViewRequest.approveResult == 'DISAGREED'">
<button class="btn btn-warning col-md-2 col-sm-offset-2" ng-click="doSubmit()">提交</button>
<button class="btn btn-danger col-md-2 col-sm-offset-1" ng-click="doDelete()">删除</button>
<a href="$purchasingLink.setTarget("receipt/index")" class="btn btn-default col-md-2 col-sm-offset-1">返回</a>
</div>
<div ng-if="receipt.headViewRequest.isSubmit && !receipt.headViewRequest.isApproved">
<button class="btn btn-warning col-md-2 col-sm-offset-2" ng-click="doApprove()">审核</button>
<button class="btn btn-danger col-md-2 col-sm-offset-1" ng-click="doDelete()">删除</button>
<a href="$purchasingLink.setTarget("receipt/index")" class="btn btn-default col-md-2 col-sm-offset-1">返回</a>
</div>
<div ng-if="receipt.headViewRequest.approveResult == 'AGREED' && receipt.headViewRequest.needInspect == 'false' && !receipt.headViewRequest.isPosted">
<button class="btn btn-warning col-md-2 col-sm-offset-2" ng-click="doPost()">入库</button>
<button class="btn btn-danger col-md-2 col-sm-offset-1" ng-click="doDelete()">删除</button>
<a href="$purchasingLink.setTarget("receipt/index")" class="btn btn-default col-md-2 col-sm-offset-1">返回</a>
</div>
<div ng-if="receipt.headViewRequest.approveResult == 'AGREED' && receipt.headViewRequest.inspectResult == 'PASS' && !receipt.headViewRequest.isPosted">
<button class="btn btn-warning col-md-2 col-sm-offset-3" ng-click="doPost()">入库</button>
<a href="$purchasingLink.setTarget("receipt/index")" class="btn btn-default col-md-2 col-sm-offset-1">返回</a>
</div>
<div ng-if="receipt.headViewRequest.approveResult == 'AGREED' && receipt.headViewRequest.needInspect == 'true' && receipt.headViewRequest.inspectResult == null">
<button class="btn btn-danger col-md-2 col-sm-offset-3" ng-click="doDelete()">删除</button>
<a href="$purchasingLink.setTarget("receipt/index")" class="btn btn-default col-md-2 col-sm-offset-2">返回</a>
</div>
</form>
</div>*#
</div>
##<script type="text/ng-template" id="serialNumbers.html">
## <form class="form-horizontal xn-form clearfix" role="form" xn-form-validate novalidate name="validateForm" >
## <div class="modal-header">
## <h3 class="modal-title">一物一码序列号</h3>
## <div class="xn-close xn-cursor" ng-click="close()">
## <i class="icon icon-delete"></i>
## </div>
## </div>
## <div class="modal-body clearfix">
## <div class="xn-table-wrap" >
## <table class="table table-bordered table-striped ">
## <thead>
## <tr>
## <div class="l-h-34 col-sm-4">序号</div>
## <div class="l-h-34 col-sm-8">序列号</div>
## </tr>
## </thead>
## <tbody>
## <tr ng-repeat="serialNumber in serialNumberList | pageOffset: (selectVm.pageNumber-1)*selectVm.pageSize | limitTo: selectVm.pageSize" >
## <td class="xn-center">{{(selectVm.pageNumber-1)*selectVm.pageSize+$index+1}}</td>
## <td class="xn-center">
## {{serialNumber.number}}
## </td>
## </tr>
## </tbody>
## </table>
## <div class="clearfix" >
## <div class="f-left mt_20 mb_10">共{{serialNumberList.length}}条</div>
## <pagination ng-show="serialNumberList.length > selectVm.pageSize" max-size="maxPageSize" total-items="serialNumberList.length"
## ng-model="selectVm.pageNumber" items-per-page="selectVm.pageSize" class="pagination-sm" boundary-links="true"
## previous-text="‹" next-text="›" first-text="«" last-text="»"></pagination>
## </div>
## </div>
## </div>
## </form>
##</script>
<script type="text/javascript" src="$customizationContent.getURI('dist/scripts/report.js')"></script>