refundApply.wxml
16.1 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
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
<!--tabWorkOrder/pages/refundApply/refundApply.wxml-->
<wxs src="../../../utils/permission.wxs" module="perm" />
<wxs src="../../index.wxs" module="filter" />
<view class="apply-content">
<view class="status-box">
<block wx:if="{{ refundPayType != 2 }}">
<review-status infoData="{{ infoData }}"></review-status>
</block>
<block wx:else>
<label-refund-status infoData="{{ infoData }}"></label-refund-status>
</block>
</view>
<view class="form-item">
<view wx:for="{{ perm.hasPermission.canViewRecruit(userInfo) ? roleMessageObj : messageObj }}"
wx:key="index">
<gl-cell required="{{ item.required }}"
border
valueAlign="right"
label="{{ item.label }}"
requiredAfter
value="{{ infoData[item.value] }}"
labelWidth="var(--fontSize280)"></gl-cell>
</view>
</view>
<view class="form-item">
<view class="item_title">
退款明细
</view>
<view class="choose_box">
<block wx:if="{{ (infoData.afterStatus === '' && !filter.filterShowBtn(infoData.subOrderList).length) || (infoData.afterStatus == 5 && !perm.hasPermission.canViewRecruit(userInfo) && filter.filterOrderStatus(infoData) && !filter.filterShowBtn(infoData.subOrderList).length) || infoData.refundType == 1 }}">
<view class="radio_box">
<block wx:if="{{ infoData.refundType == 1 }}">
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/components/images/radio.png" />
</block>
<block wx:else>
<view class="arc"
bindtap="chooseRefundType"
data-type="1" />
</block>
<view class="radio_label"
bindtap="chooseRefundType"
data-type="1">
全额退款
</view>
<view class="sub_order_box" wx:if="{{ infoData.refundType == 1 }}">
<view class="item"
wx:for="{{ infoData.subOrderList }}"
wx:key="index">
<view class="left">
<view class="circle"></view>
</view>
<view class="right">
<view class="name">
<view class="goods-name-with-icon">
<view class="goods-name-text text-hide">{{ item.upgradeGoodsName }}</view>
<image wx:if="{{ item.marketingFlag == 1 }}" class="marketing-icon" src="/tabWorkOrder/images/activeIcon.png" mode="aspectFit" />
</view>
<view class="price">
支付金额:¥{{ item.finalPrice }}
</view>
</view>
<view class="alias" wx:if="{{ item.upgradeGoodsAlias }}">
{{ item.upgradeGoodsAlias }}
</view>
<view class="refund_price">
申请退款:¥{{ item.finalPrice }}
</view>
</view>
</view>
<view class="computed_price">
<view class="label">
可选可退总价
</view>
<view class="value">
¥{{ allTotalPrice }}
</view>
</view>
</view>
</view>
</block>
<block wx:if="{{ infoData.afterStatus === '' || (infoData.afterStatus == 5 && !perm.hasPermission.canViewRecruit(userInfo) && filter.filterOrderStatus(infoData)) || infoData.refundType == 2 }}">
<view class="radio_box">
<block wx:if="{{ infoData.refundType == 2 }}">
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/components/images/radio.png" />
</block>
<block wx:else>
<view class="arc"
bindtap="chooseRefundType"
data-type="2" />
</block>
<view class="radio_label"
bindtap="chooseRefundType"
data-type="2">
部分退款
</view>
<view class="sub_order_box {{ !filter.filterRefundDisabled(infoData, userInfo) ? 'set_sub_order_box' : '' }}"
wx:if="{{ infoData.refundType == 2 }}">
<block wx:for="{{ infoData.subOrderList }}" wx:key="index">
<view class="item" wx:if="{{ item.status != 2 }}">
<view class="left">
<view class="check_box"
wx:if="{{ !filter.filterRefundDisabled(infoData, userInfo) }}"
catchtap="checkSubOrder"
data-item="{{ item }}"
data-index="{{ index }}">
<block wx:if="{{ item.checked }}">
<image src="{{ IMG_URL }}check.png" mode="" />
</block>
<block wx:else>
<view class="arc"></view>
</block>
</view>
<view wx:else class="circle"></view>
</view>
<view class="right">
<view class="name">
<view class="goods-name-with-icon">
<view class="goods-name-text text-hide">{{ item.upgradeGoodsName }}</view>
<image wx:if="{{ item.marketingFlag == 1 }}" class="marketing-icon" src="/tabWorkOrder/images/activeIcon.png" mode="aspectFit" />
</view>
<view class="price">
支付金额:¥{{ item.finalPrice }}
</view>
</view>
<view class="alias" wx:if="{{ item.upgradeGoodsAlias }}">
{{ item.upgradeGoodsAlias }}
</view>
<block>
<view wx:if="{{ !filter.filterRefundDisabled(infoData, userInfo) && item.checked }}"
class="refund_price">
退款金额
<view class="price">
<text style="color: {{ item.refundPrice !== '' ? '#222222' : '#B6B6B8' }}">¥</text>
<input type="digit"
value="{{ item.refundPrice }}"
bindinput="changePrice"
placeholder-style="color: #B6B6B8;"
placeholder="请输入"
data-index="{{ index }}"
class="{{ item.errorZero || item.errorTarget ? 'error' : '' }}"
always-embed />
</view>
</view>
<view wx:if="{{ filter.filterRefundDisabled(infoData, userInfo) }}"
class="refund_price">
申请退款:¥{{ item.refundAmount }}
</view>
</block>
</view>
</view>
</block>
<view class="computed_price" wx:if="{{ refundablePrice }}">
<view class="label">
可选可退总价
</view>
<view class="value">
¥{{ refundablePrice }}<text wx:if="{{ filter.filterShowBtn(infoData.subOrderList).length }}">,订单支付总额 ¥{{ allTotalPrice }}</text>
</view>
</view>
<view class="refund_log"
wx:if="{{ infoData.refundType == 2 && infoData.refundedOrderList.length }}">
<view class="log_item"
wx:for="{{ infoData.refundedOrderList }}"
wx:key="index">
<view class="title">
退款记录{{ index + 1 }}:
</view>
<view class="sub_item"
wx:for="{{ item.refundApplyDetailList }}"
wx:for-item="li"
wx:for-key="{{ idx }}"
wx:key="idx">
<view class="goods-name-with-icon">
<view class="goods-name-text">{{ li.upgradeGoodsName }}</view>
<image wx:if="{{ li.marketingFlag == 1 }}" class="marketing-icon" src="/tabWorkOrder/images/activeIcon.png" mode="aspectFit" />
</view>
<view>支付金额 ¥{{ li.finalPrice }},申请退款 ¥{{ li.refundAmount }}</view>
</view>
<view class="sub_item" wx:if="{{ item.refundTime }}">
{{ item.refundTime }}退款成功,实际退款 ¥{{ item.payAmount }}
</view>
</view>
</view>
</view>
</view>
</block>
</view>
<block wx:if="{{ refundPayType != 2 }}">
<van-collapse value="{{ collapse.refundRule.show }}"
clickable="{{ false }}"
border="{{ false }}"
accordion
bind:change="onCollapseChange">
<van-collapse-item name="refundRule"
custom-class="refund-collapse-item {{ collapse.refundRule.show ? '':'bottom-line' }}"
content-class="refund-collapse-item-content-wrapper">
<view slot="title" class="refund-title-wrapper">
<text>退款规则</text><gl-image class="icon-tips" src="/tips-2.png"></gl-image>
</view>
<view slot="value">
{{ collapse.refundRule.title }}
</view>
<view class="refund-rule-image">
<van-image width="100%"
lazy-load
fit="widthFix"
src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/refund/refund-rule.png" />
</view>
</van-collapse-item>
</van-collapse>
</block>
<block wx:if="{{ refundPayType != 2 }}">
<dialog-input label="收款人姓名"
required
value="{{ infoData.payee }}"
showEditIcon="{{ !filter.filterRefundDisabled(infoData, userInfo) }}"
compareValue="{{ initialRefundName }}"
maxlength="20"
bind:confirm="handlePayeeConfirm"
tips="收款人与工单车主姓名不一致,若不一致请提供收款人付款凭证(如微信截图)"></dialog-input>
<!-- disabled="{{ filter.filterRefundDisabled(infoData, userInfo) }}" -->
<!-- <gl-cell border
valueAlign="right"
label="收款人姓名"
requiredAfter
labelWidth="var(--fontSize280)"
required>
<input placeholder="点击输入"
class="input"
maxlength="20"
placeholder-class="placeholder-class"
value="{{ infoData.payee }}"
bindinput="input"
data-name="payee"
disabled="{{ filter.filterRefundDisabled(infoData, userInfo) }}"
always-embed></input>
</gl-cell> -->
<gl-cell border
valueAlign="right"
label="开户行名称"
requiredAfter
labelWidth="var(--fontSize280)"
required>
<input placeholder="点击输入"
class="input"
maxlength="50"
placeholder-class="placeholder-class"
value="{{ infoData.openAccBankName }}"
bindinput="input"
data-name="openAccBankName"
disabled="{{ filter.filterRefundDisabled(infoData, userInfo) }}"
always-embed></input>
</gl-cell>
<gl-cell border
valueAlign="right"
label="开户支行名称"
requiredAfter
labelWidth="var(--fontSize280)"
required>
<input placeholder="点击输入"
class="input"
maxlength="50"
placeholder-class="placeholder-class"
value="{{ infoData.openAccBranchBankName }}"
bindinput="input"
data-name="openAccBranchBankName"
disabled="{{ filter.filterRefundDisabled(infoData, userInfo) }}"
always-embed></input>
</gl-cell>
<gl-cell border
valueAlign="right"
label="银行卡号"
requiredAfter
labelWidth="var(--fontSize280)"
required>
<input placeholder="点击输入"
class="input"
type="number"
maxlength="30"
placeholder-class="placeholder-class"
value="{{ infoData.bankAccountNo }}"
bindinput="input"
data-name="bankAccountNo"
disabled="{{ filter.filterRefundDisabled(infoData, userInfo) }}"
always-embed></input>
</gl-cell>
<view class="reason_box">
<view class="label">
退款原因说明
</view>
<view class="textarea_box">
<textarea value="{{ infoData.remark }}"
disabled="{{ filter.filterRefundDisabled(infoData, userInfo) }}"
placeholder="请输入 (500字以内)"
placeholder-class="placeholder-class"
class="textarea"
maxlength="500"
bindinput="input"
data-name="remark" />
</view>
</view>
<view class="upload_box"
wx:if="{{ infoData.afterStatus === '' || (infoData.afterStatus == 5 && !filter.filterRefundDisabled(infoData, userInfo)) || infoData.attachmentList.length }}">
<view class="label">
上传图片
</view>
<view class="label-tips first">
原厂延保退款:退款须告知门店,请上传沟通确认凭证截图
</view>
<view class="label-tips">
嘀加权益退款:退款需上传自愿退款协议及告知客户退款后服务作废凭证截图
</view>
<view class="content_box">
<view class="image_content"
wx:for="{{ infoData.attachmentList }}"
wx:key="index">
<image bindtap="previewImage"
class="image_box"
data-url="{{ infoData.attachmentList }}"
data-index="{{ index }}"
src="{{ item.fileUrl }}" />
<image class="del_icon"
wx:if="{{ !filter.filterRefundDisabled(infoData, userInfo) }}"
src="{{ IMG_URL }}zy_paf_del_icon.png"
mode=""
bindtap="deleteFile"
data-index="{{ index }}" />
</view>
<view class="upload_content"
bindtap="uploadImages"
wx:if="{{ !filter.filterRefundDisabled(infoData, userInfo) && infoData.attachmentList.length < 5 }}">
<image src="{{ IMG_URL }}zy-upload_icon.png"></image><text class="text">最多5张</text>
</view>
</view>
</view>
<view wx:if="{{ !filter.filterRefundDisabled(infoData, userInfo) }}"
class="modify-name-wrapper">
说明:收款人姓名将自动带入工单完整姓名,如需修改请确保提供实际收款人付款凭证,避免影响审核进度。
</view>
</block>
<block wx:else>
<view class="upload_box">
<view class="label">
客户退款回单<text class="required">*</text>
</view>
<view class="label-tips"></view>
<view class="content_box">
<view class="image_content"
wx:for="{{ infoData.attachmentList }}"
wx:key="index">
<image bindtap="previewImage"
class="image_box"
data-url="{{ infoData.attachmentList }}"
data-index="{{ index }}"
src="{{ item.fileUrl }}" />
<image class="del_icon"
wx:if="{{ !filter.filterRefundDisabled(infoData, userInfo) }}"
src="{{ IMG_URL }}zy_paf_del_icon.png"
mode=""
bindtap="deleteFile"
data-index="{{ index }}" />
</view>
<view class="upload_content"
bindtap="uploadImages"
wx:if="{{ !filter.filterRefundDisabled(infoData, userInfo) && infoData.attachmentList.length < 5 }}">
<image src="{{ IMG_URL }}zy-upload_icon.png"></image><text class="text">最多5张</text>
</view>
</view>
</view>
</block>
</view>
<!-- 区域运营审核 -->
<view class="review_box"
wx:if="{{ infoData.beforeStatus == 6 && infoData.afterStatus == 7 && perm.hasPermission.canViewRecruit(userInfo) && infoData.auditableFlag == 'Y' }}">
<view class="btn pass_btn"
bindtap="review"
data-type="1">
审核通过
</view>
<view class="btn no_pass_btn"
bindtap="review"
data-type="2">
审核不通过
</view>
</view>
</view>
<view class="btns {{ isFullSucreen?'isFullSucreen-btn':'' }}"
wx:if="{{ !filter.filterRefundDisabled(infoData, userInfo) }}">
<view class="btns-con">
<view class="confirm text-center" bindtap="submit">
{{ infoData.afterStatus === '' ? '提交' : '重新提交' }}
</view>
</view>
</view>
<view class="repeal-modal" wx:if="{{ repealVisible }}">
<view class="repeal-wrap">
<view class="title">
审核不通过原因
</view>
<view class="textarea-wrap">
<textarea class="textarea"
maxlength="{{ 100 }}"
value="{{ disapprovalReason }}"
bindinput="textareaInput"
focus="{{ true }}"
placeholder-style="color: #B6B6B8; font-size: var(--fontSize28);"
placeholder="请输入退款审核不通过原因"></textarea>
</view>
<view class="footer">
<view class="btn cancel_btn" bindtap="cancelRepeal">
取消
</view>
<view class="btn" bindtap="confirmRepeal">
确定
</view>
</view>
</view>
</view>
<block wx:if="{{ loadingFlag }}">
<van-popup show="{{ true }}" close-on-click-overlay="{{ false }}">
<van-loading custom-class="loading-box"
color="#FFFFFF"
type="spinner"
size="45px"
vertical>
上传中
</van-loading>
</van-popup>
</block>