constructionOrderDetail.wxml
20.4 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
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
<!-- 完成施工页面 -->
<wxs src="../../../utils/permission.wxs" module="perm" />
<!-- <wxs src="../../../utils/index.wxs" module="common" /> -->
<wxs src="../../index.wxs" module="filter" />
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<block wx:if="{{ flag }}">
<view
class="main {{ isFullSucreen?'isFullSucreen':'' }}"
style="{{ sublistVisible||constructionVisible ? 'overflow: hidden;height:100vh;' : '' }}"
>
<view class="status-box">
<view class="userInfo" hover-class="none" hover-stop-propagation="false">
<image class="" src="../../images/activeIcon.png" />
<view class="customerName">客户{{orderInfo.customerName}}</view>
<!-- wx:if="{{ orderInfo.constructionFlag !='Y' }}" -->
<!-- <block>
<view class="signBtn text-center" bindtap="RatingPopupSetting">查看签名/施工图</view>
</block> -->
</view>
<view class="orderContainer">
<!-- 已微信通知客户前往取车, -->
<view class="tips">已完成施工,如客户有新需求,可点击再次下单。</view>
<view class="againBtn">
<block wx:if="{{ !perm.hasPermission.isSuper(userInfo) && userInfo.userType == 2&&isMake }}">
<view class="btn text-center" bindtap="againOrder">再次下单</view>
</block>
</view>
</view>
<!-- <view class="content">工单已完成</view>
<view class="tips">为该客户新增工单,请点击继续下单。</view> -->
</view>
<view class="box goodsOrderApplyStatus" wx:if="{{ orderInfo.goodsOrderApplyStatus }}">
<view class="title" style="display: flex;justify-content: space-between;align-items: center;">
<text>审批</text>
<view
class="approval-tag {{ orderInfo.goodsOrderApplyStatus==3?'success':orderInfo.goodsOrderApplyStatus==4?'error':'warning' }}"
>{{orderInfo.goodsOrderApplyStatus==3?'审批通过':orderInfo.goodsOrderApplyStatus==4?'审批驳回':'审批中'}}</view>
</view>
<block wx:if="{{ orderInfo.goodsOrderApplyStatus==3 }}">
<view class="approval-info">
<view class="label">审批备注</view>
<text class="value">{{orderInfo.applyRecordRemark || '-'}}</text>
</view>
</block>
<block wx:if="{{ orderInfo.goodsOrderApplyStatus==4 }}">
<view class="approval-info">
<view class="label">驳回原因</view>
<text class="value">{{orderInfo.rejectReason || '-'}}</text>
</view>
</block>
<block wx:if="{{ orderInfo.goodsOrderApplyStatus==1 || orderInfo.goodsOrderApplyStatus==2 }}">
<view class="timeline">
<view class="timeline-item">
<view class="timeline-left">
<view class="dot-wrapper">
<view class="dot {{ orderInfo.goodsOrderApplyStatus==1?'step-active':'step-done' }}"></view>
</view>
<view class="statusLine {{ orderInfo.goodsOrderApplyStatus==2?'step-done':'' }}"></view>
</view>
<view class="timeline-content">
<view>区域经理</view>
<view class="status {{ orderInfo.goodsOrderApplyStatus==1?'warning':'success' }}">{{orderInfo.goodsOrderApplyStatus==1?'审批中':'审批通过'}}</view>
</view>
</view>
<view class="timeline-item">
<view class="timeline-left">
<view class="dot-wrapper">
<view class="dot {{ orderInfo.goodsOrderApplyStatus==2?'step-active':'step-wait' }}"></view>
</view>
</view>
<view class="timeline-content">
<view>线上运营</view>
<view class="status warning" wx:if="{{ orderInfo.goodsOrderApplyStatus==2 }}">审批中</view>
</view>
</view>
</view>
</block>
</view>
<view class="box">
<!-- <view class="title">礼券信息</view> -->
<!-- 不升级 -->
<!-- <block wx:if="{{orderInfo.selectPayType ==0}}">
<view class="title">商品</view>
<view class="cell">
<view class="label">抵用礼券:</view>
<view class="value">
{{orderInfo.couponName || ''}}{{orderInfo.customerCoupon.customerCouponCode ||''}}({{orderInfo.customerCoupon.employeeName || ''}})
</view>
</view>
</block>
<block wx:if="{{orderInfo.selectPayType != 0 && orderInfo.totalPrice!= 0}}"> -->
<view class="title">商品</view>
<view class="meal-box" wx:for="{{ orderInfo.packageGoodsList }}">
<view class="meal-hd">
<view>{{item.packageName}}</view>
<view class="price">¥{{item.finalPrice}}</view>
</view>
<view class="meal-bd">
<view class="meal-bd-box" wx:for="{{ item.packageGoodsOrderList }}" wx:for-item="g">
<view class="meal-bd-head">
<view class="dot"></view>
<view class="name">{{g.upgradeGoodsAlias||g.upgradeGoodsName}}</view>
<view class="price">¥{{g.price}}</view>
</view>
<view class="meal-bd-bottom">
{{g.positionStr || g.upgradeGoodsTypeName}}
<view class="count">x{{g.number}}</view>
<view class="artificer {{ filter.subStatus(g.constructionStatus) }}">{{filter.subStatusName(g.constructionStatus)}}</view>
<!-- <view wx:if="{{ g.technicianName }}" class="artificer disabled">
<text class="{{ !g.technicianName ? 'grey_text' : '' }} 'text-hide'">{{g.technicianName }}</text>
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/components/images/arrow-x.png" mode="" />
</view> -->
</view>
</view>
</view>
</view>
<view class="goods">
<block wx:for="{{ orderInfo.subOrderList }}" wx:key="index">
<view class="item">
<view class="subItem_box goods_name">
<view class="name text-hide">
{{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || ''}}
</view>
<view class="price">¥{{item.price}}</view>
</view>
<view class="subItem_box">
<view
style="{{ !orderInfo.isOpenArtificer || !item.upgradeGoodsPosition ? 'display: flex; justify-content: space-between; width: 100%;' : 'display: flex;' }}"
>
<view class="position">
{{item.positionStr || item.upgradeGoodsTypeName}}
<text class="type">x{{item.number}}</text>
</view>
</view>
<!-- 膜卷号 -->
<!-- <view wx:if="{{ item.filmRollNo }}" class="film-roll disabled" data-item="{{ item }}">
<text class="'text-hide'">{{item.filmRollNo}}</text>
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/components/images/arrow-x.png" mode="" />
</view> -->
<view class="artificer {{ filter.subStatus(item.constructionStatus) }}">{{filter.subStatusName(item.constructionStatus)}}</view>
<!-- 技师 -->
<!-- <view wx:if="{{ item.technicianName }}" class="artificer disabled" data-item="{{ item }}">
<text class="{{ !item.technicianName ? 'grey_text' : '' }} 'text-hide'">{{item.technicianName }}</text>
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/components/images/arrow-x.png" mode="" />
</view> -->
</view>
</view>
</block>
</view>
<view class="cell">
<view class="label icon">
<image src="../../images/voucher_icon.png" mode="" />
</view>
<view class="value">
{{orderInfo.couponName || ''}}{{orderInfo.customerCoupon.customerCouponCode ||''}}({{orderInfo.customerCoupon.employeeName || ''}})
</view>
</view>
<view class="line" />
<view class="cell total">
<view class="label">商品总金额:</view>
<view class="price">¥{{orderInfo.total_price}}</view>
</view>
<!-- </block> -->
</view>
<view class="box">
<view class="title infoTitle">
<view class="flex">
工单信息
<view style="display: flex;gap: var(--fontSize32);margin-left: var(--fontSize32);">
<view
wx:if="{{ orderInfo.showInvoiceEntrance || orderInfo.invoiceStatus == 2 }}"
class="invoice-btn"
bindtap="handleBtnInvoice"
>
<gl-image class="icon" src="/icon-invoice.png"></gl-image>
{{invoiceName}}
</view>
<view>
<apply-refund-btn
updateFlag="{{ updateFlag&&filter.btnPermissions(userPermissions, 'CHUANGJIANSHIGONGDAN')&&(orderInfo.status == 4 || orderInfo.status == 6||orderInfo.status == 2|| orderInfo.status == 12) }}"
orderInfo="{{ orderInfo }}"
showRefundBtn="{{ isStaff && showMoreBtn }}"
></apply-refund-btn>
</view>
</view>
</view>
<view class="operate" wx:if="{{ orderInfo.canOperate&&(isYqdSuper||isStaff)&&isMake }}">
<text bindtap="targetOperate">操作</text>
<view class="tip {{ showTip?'':'none' }}" bindtap="targetError">
<view class="tip-trangle-top" />
<image src="../../images/drawingIcon.png" class="drawIcon" />
工单有误?
</view>
</view>
</view>
<block wx:for="{{ orderObj }}" wx:key="index">
<view class="cell">
<view class="label">{{item.label}}</view>
<block wx:if="{{ item.key == 'status' }}">
<view class="value" style="color:{{ status[orderInfo.status].color || '' }};">{{status[orderInfo.status].text}}</view>
</block>
<block wx:else>
<view class="value">
<block wx:if="{{ item.key == 'payType' }}">{{payType[orderInfo.selectPayType] || ''}}</block>
<block wx:else>{{orderInfo[item.key] || ''}}</block>
</view>
</block>
<block wx:if="{{ item.copy }}">
<view class="copy" bindtap="setCopyData" data-content="{{ orderInfo[item.key] }}">
<!-- 复制 -->
<image src="{{ IMG_URL }}copy_icon_gapy.png" class="copyImage" binderror="" bindload=""></image>
</view>
</block>
</view>
</block>
<block
wx:if="{{ (orderInfo.selectPayType == 2 || orderInfo.selectPayType == 5 || orderInfo.selectPayType == 6 || orderInfo.selectPayType == 7) && orderInfo.payVoucherList.length }}"
>
<view class="cell">
<view class="label">付款凭证</view>
<view class="image-box">
<view
class="value"
bindtap="previewImage"
wx:for="{{ orderInfo.payVoucherList }}"
wx:key="index"
data-index="{{ index }}"
data-url="{{ orderInfo.payVoucherList }}"
>
<view class="image">
<image src="{{ item.payVoucher }}" />
</view>
</view>
</view>
</view>
</block>
<view class="paid" wx:if="{{ orderInfo.payOrder&&orderInfo.payOrder.payStatus == 2 }}">
<image src="../../images/paid.png" />
</view>
</view>
<view class="box customer">
<view class="title userTitle">
<view>客户信息</view>
<!-- 已退款或已开票不可修改客户任何信息 -->
<view
bindtap="jumpUserPortrait"
class="updateInfo icon {{ orderInfo.status == 12 || orderInfo.invoiceStatus == 2 ||!isMake? 'isHide' : '' }}"
>
<image src="{{ IMG_URL }}miniProgram/custom_portrait_icon.png" class="iconImage"></image>
画像
</view>
<view
wx:if="{{ (isYqdSuper||isStaff) && orderInfo.lowPriceFlag != 1 }}"
bindtap="jumpUpdate"
class="updateInfo {{ orderInfo.status == 12 || orderInfo.invoiceStatus == 2 || !isMake ? 'isHide' : '' }}"
>
<image src="{{ IMG_URL }}miniProgram/edit_icon.png" class="iconImage"></image>
客户信息
</view>
</view>
<block wx:for="{{ customerObj }}" wx:key="index">
<view class="cell">
<view class="label">{{item.label}}</view>
<view class="value" style="color:{{ item.color|| '#333' }};" catchtap="item.callBack" data-data="{{ orderInfo[item.key] }}">
<block wx:if="{{ item.arr }}">
<block wx:if="{{ orderInfo[item.arr[1]] }}">
<block wx:for="{{ item.arr }}" wx:key="ind" wx:for-index="ind" wx:for-item="i">
<view class="value-item text-hide">
<text wx:if="{{ ind == 1 }}">|</text>
{{orderInfo[i]}}
</view>
</block>
</block>
</block>
<block wx:else>{{item.enum ? item.enum[orderInfo[item.key]] :orderInfo[item.key] || ''}}</block>
<block wx:if="{{ item.copy }}">
<view class="copy" catchtap="setCopyData" data-content="{{ orderInfo[item.key] }}">
<!-- 复制 -->
<image src="{{ IMG_URL }}copy_icon_gapy.png" class="copyImage" binderror="" bindload=""></image>
</view>
</block>
</view>
</view>
</block>
<view class="cell" wx:if="{{ orderInfo.showCustomerTags }}">
<view class="label">日报标签</view>
<view class="value daily-tag-list">
<view class="daily-tag" wx:for="{{ customerTagLabels }}" wx:key="*this">{{ item }}</view>
</view>
</view>
<view class="cell" wx:if="{{ orderInfo.showActualDeliveryDate }}">
<view class="label">实际交付日期</view>
<view class="value">{{ orderInfo.actualDeliveryDateDisplay || '' }}</view>
</view>
<block wx:if="{{ orderInfo.selectPayType == 0 }}">
<view class="cell">
<view class="label">拒升理由</view>
<view class="value">{{orderInfo.customer.refusalReason?orderInfo.customer.refusalReason:""}}</view>
</view>
</block>
</view>
<!-- <block wx:if="{{warrantyCardList&&warrantyCardList.length}}">
<view class="box">
<view class="title">质保详情</view>
<view class="warranty-box">
<block wx:for="{{warrantyCardList}}" wx:key="index">
<view class="warranty-card">
<view class="name text-hide">{{item.goodsName}}</view>
<view class="value">
质保期
<text>{{item.warrantyPeriod}}年</text>
</view>
</view>
</block>
</view>
<view class="qr-box">
<image src="../../images/kf.png" />
</view>
<view class="warranty-tips">建议让客户扫码关注客服查询质保</view>
</view>
</block> -->
<!-- wx:if="{{warrantyCardList.length || warrantyCardVisible}}" -->
<!-- 没有质保加屏蔽客服开启 就不显示 -->
<block wx:if="{{ orderInfo.status != 10&&warrantyCardList.length || warrantyCardVisible }}">
<view class="box">
<view class="title">{{orderInfo.selectPayType==0? '客服' :'质保'}}</view>
<view class="warranty-box">
<block wx:for="{{ warrantyCardList }}" wx:key="index">
<view class="warranty-card">
<view class="warranty-name">
<view class="name text-hide value">{{filter.replaceItemText(item.goodsName)}}</view>
<view wx:if="{{ item.warrantyPeriod }}" class="right" bind:tap="showWarranty" data-item="{{ item }}">
<gl-image class="editIcon" src="/miniProgram/edit_icon.png"></gl-image>
<view class="warranty-price">质保价格</view>
</view>
</view>
<view class="value">
质保期
<text>{{item.warrantyPeriod}}年</text>
</view>
<view class="codeImg-box">
<image src="{{ item.barCodeUrl }}" class="barCodeImg" />
</view>
<!-- <view class="barCode">{{item.carCode}}</view> -->
</view>
</block>
</view>
<qr-box wx:if="{{ warrantyCardVisible }}" imgSrc="{{ customerService }}" bindrefresh="getWorkWechatLiveQRCode" />
<view class="warranty-tips" wx:if="{{ warrantyCardVisible }}">{{orderInfo.selectPayType==0? '建议让客户扫码关注客服号领取礼包' :'建议让客户扫码关注客服查询质保'}}</view>
</view>
</block>
<block wx:if="{{ showRatingCard }}">
<view class="box">
<view class="box-btn" bindtap="showQrBox">
<image src="{{ qrFlag?'../../images/open.png':'../../images/close.png' }}" />
</view>
<view class="title">车主评价</view>
<!-- wx:show="{{qrFlag}}" -->
<view class="qr-view" id="qr-view" style="height:{{ qrFlag ?0:qrHeight*2 }}rpx">
<block wx:if="{{ orderInfo.status != 6 }}">
<view class="qr-box" wx:show="{{ qrFlag }}">
<view wx:show="{{ qr }}">
<image src="{{ qr }}" bindtap="previewImg" data-src="{{ qr }}" />
</view>
<!-- <view wx:show="{{!qr}}">
<view class="refresh text-center" bindtap="getQrCode">点击刷新</view>
</view> -->
</view>
<view class="qr-tips">请让车主扫码评价</view>
</block>
<block wx:else>
<view class="comment">{{orderInfo.comment.customerComment || '暂无评价'}}</view>
</block>
</view>
</view>
</block>
</view>
<!-- <block wx:if="{{ orderInfo.failureFlag == 'Y'&&isMake && orderInfo.associatedOrderCode }}"> -->
<!-- <view class="btn-box {{ isFullSucreen?'isFullSucreen-btn':'' }}">
</view> -->
<!-- </block> -->
<view wx:if="{{ confirmFlagObj.showBtn }}" class="btn-box {{ isFullSucreen?'isFullSucreen-btn':'' }}">
<block wx:if="{{ orderInfo.failureFlag == 'Y'&&isMake && orderInfo.associatedOrderCode }}">
<view class="tips">
<image class="tipsIcon" src="{{ IMG_URL }}images/tips.png" />
<view class="contentText">该订单录入信息有误,点击跳转正确工单页面。</view>
<view class="checkBtn" bindtap="redirectOrder">去查看</view>
</view>
</block>
<!-- <view class="btn text-center" data-btnName="{{ confirmFlagObj.btnName }}" bindtap="showModal">{{confirmFlagObj.showBtn}}</view> -->
<view
wx:if="{{ confirmFlagObj.btnName == 'constructionVisible' }}"
class="btn text-center"
data-btnName="{{ confirmFlagObj.btnName }}"
bindtap="showModal"
>{{confirmFlagObj.showBtn}}</view>
<view
wx:if="{{ confirmFlagObj.btnName == 'sublistVisible' &&filter.btnPermissions(userPermissions, 'CHUANGJIANSHIGONGDAN') &&(orderInfo.status == 4 || orderInfo.status == 6|| orderInfo.status == 2|| orderInfo.status == 12) }}"
class="btn text-center"
data-btnName="{{ confirmFlagObj.btnName }}"
bindtap="showModal"
>{{confirmFlagObj.showBtn}}</view>
</view>
</block>
<modal id="modal3" class="modal" custom="true" btns="{{ ['取消','确定'] }}">
<view class="modatcontent">
<view class="modalbox {{ selectTypeOrder == 1?'act': '' }} com" bindtap="selectTypeOrder" data-type="1">
<gl-image class="icon" src="/miniProgram/order1.png"></gl-image>
新增工单
</view>
<view class="modalbox cancle {{ selectTypeOrder == 2?'act': '' }}" bindtap="selectTypeOrder" data-type="2">
<gl-image class="icon" src="/miniProgram/order3.png"></gl-image>
战败下单
</view>
</view>
</modal>
<order-popup orderType="4" show="{{ showPopup }}" />
<modal id="modal" class="modal" custom="true" btns="{{ ['返回','确定'] }}">
<view class="modatcontentOrder">
<view class="orderCode">
<text class="code">订单编号:</text>
<text>{{orderInfo.orderCode}}</text>
</view>
<view class="tips">
若工单信息有误,确认操作可标记为
<text class="color">已失效</text>
,并补录新工单以提供线下核对。
</view>
</view>
</modal>
<modal id="modal2" class="modal" custom="true" btns="{{ ['取消','确定'] }}">
<view class="modatcontent">
<view class="modalbox {{ selectType == 1?'act': '' }} com" bindtap="selectType" data-type="1">
<gl-image class="icon" src="/miniProgram/order1.png"></gl-image>
新增工单
</view>
<view class="modalbox cancle {{ selectType == 2?'act': '' }}" bindtap="selectType" data-type="2">
<gl-image class="icon" src="/miniProgram/order2.png"></gl-image>
无需补单
</view>
</view>
</modal>
<modal id="modal4" class="modal" custom="true" btns="{{ ['取消','确定'] }}">
<view class="modatcontent">
<view class="title">质保价格</view>
<view class="productName">产品: {{filter.replaceItemText(warrantyEditObj.goodsName)}}</view>
<view class="label">质保价格</view>
<view class="textarea">
<gl-textarea
focus="{{ focus }}"
showWordLimit="{{ true }}"
value="{{ warrantyEditObj.warrantyPrice }}"
bindinput="blur"
bindblur="blur"
maxlength="50"
placeholder="请输入内容,最多50字"
/>
</view>
<view class="tips">质保价格输入的内容会在车主查询质保卡时显示</view>
</view>
</modal>
<orderRatingPopup
bind:close="RatingPopupSetting"
title="查看签名/施工图"
flag="{{ showRatingPopup }}"
wx:if="{{ showRatingPopup }}"
orderInfoSetting="{{ orderInfo }}"
/>
<select-invoice-modal invoiveVisible="{{ invoiveVisible }}" orderInfo="{{ orderInfo }}"></select-invoice-modal>
<order-prompt-popup
wx:if="{{ showPromptDialog }}"
show="{{ showPromptDialog }}"
bindcancel="promptCancel"
bindconfirm="promptHandleConfirm"
popupSlotStyle="height: calc(100% - var(--fontSize160));"
height="var(--fontSize540);"
includesChildHeight="var(--fontSize1060);"
sceneObj="{{ orderInfo }}"
dj-qr-only-mode="{{ orderPromptDjQrOnlyMode }}"
></order-prompt-popup>
<ConstructionDetailModal
visible="{{ constructionVisible }}"
orderInfo="{{ orderInfo }}"
orderCode="{{ orderInfo.orderCode }}"
bindcancel="constructionCancel"
></ConstructionDetailModal>
<sublist-modal
visible="{{ sublistVisible }}"
orderInfo="{{ orderInfo }}"
orderCode="{{ orderInfo.orderCode }}"
bindcancel="sublistCancel"
></sublist-modal>