confirmOrder.wxml
10.7 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
<!-- 确认付款页面 -->
<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&&!userInfo.isSuper && userInfo.userType == 2?'isFullSucreenCom':''}}">
<view class="status-box">
<block wx:if="{{orderInfo.selectPayType == 3 || orderInfo.selectPayType == 1 }}">
<view class="content">等待客户付款</view>
<view class="tips">点击下一步,锁定并生成工单码。</view>
</block>
<block wx:if="{{orderInfo.selectPayType == 2 ||orderInfo.selectPayType == 5}}">
<view class="content">请上传付款凭证结束工单</view>
<view class="tips">点击确认工单,提交付款凭证。</view>
</block>
<block wx:if="{{orderInfo.selectPayType == 0 ||orderInfo.selectPayType == null}}">
<view class="content">请提交客户拒绝升级原因</view>
<view class="tips">点击确认工单,根据操作结束工单。</view>
</block>
</view>
<view wx:if="{{!isErrorOrder&&(orderInfo.selectPayType == 2 ||orderInfo.selectPayType==5)}}" class="box date-box">
<view class="date-box-label">收款时间<text class='required'>*</text></view>
<view class="date-box-value">{{successDate || (orderInfo.selectPayType == 2?'请选择门店收款时间':'请选择嘀加收款时间')}}</view>
<view class="handlerBtn" bind:tap="toshowDateModal">编辑</view>
</view>
<view class="box">
<!-- 不升级 -->
<!-- <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.totalPrice}}</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.upgradeGoodsType===1?g.positionStr: g.upgradeGoodsTypeName}}
<view class="count">x{{g.number}}</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; align-items: center; width: 100%;' : 'display: flex;align-items: center;'}}">
<view class="position">{{item.positionStr || item.upgradeGoodsTypeName}}</view>
<view class="type">x{{item.number}}</view>
</view>
<!-- 太阳膜类且配置技师 -->
<view wx:if="{{orderInfo.isOpenArtificer && item.upgradeGoodsPosition}}" class="artificer" bindtap="selectArtificer" data-item="{{item}}">
<text class="{{!item.technicianName ? 'grey_text' : ''}} 'text-hide'">{{item.technicianName || '选择技师'}}</text>
<image src="/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">工单信息</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 {{item.key == 'payType'?'pay_value':''}}">
<block wx:if="{{item.key == 'payType'}}">
<image wx:if="{{payType[orderInfo.selectPayType]=='微信支付'}}" class="wxpay" src="../../images/wxPay.png" />
<text>{{payType[orderInfo.selectPayType] || ''}}</text>
</block>
<block wx:else>{{orderInfo[item.key] || ''}}</block>
</view>
</block>
<block wx:if="{{item.dateChange}}">
<!-- isComponents="{{true}}" -->
<calendar class="copy" allowSameDay shortcut bindselect='rangeSelect' rangeAll dateType='single' calenderColor='#347BFF' vertical minDate="2020-10-01" maxDate="{{maxDate}}">
<view>自定义</view>
</calendar>
</block>
<!-- setDateSelect -->
<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>
<!-- 超管不能进入创建工单页面 -->
<block wx:if="{{item.payType&& !userInfo.isSuper}}">
<view class="copy" bindtap="goBack">切换支付方式</view>
</block>
</view>
</block>
<view class="paid" wx:if="{{orderInfo.status == 4}}">
<image src="../../images/paid.png" />
</view>
</view>
<view class="box customer">
<view class="title">客户信息</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'}};position: relative;" 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="../../images/copyIcon.png" class="copyImage" binderror="" bindload=""></image>
</view>
</block>
<block wx:if="{{item.type == 'select'}}">
<view class='value'>
<block wx:if="{{!orderInfo[item.key]}}">
<view class='placeholder'>请选择</view>
</block>
</view>
<image class='arrow' src="../../../components/images/arrow-x.png" />
</block>
</view>
</view>
</block>
</view>
<!-- v4.6版本需求去掉 -->
<!-- <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="{{customerService}}" />
</view>
<view class="warranty-tips">建议让客户扫码关注客服查询质保</view>
</view>
</block> -->
</view>
<block wx:if="{{!userInfo.isSuper && userInfo.userType == 2}}">
<view class="btn-box {{orderInfo['status'] == 3?'tips-btn':'confirm-btn'}} {{isFullSucreen?'isFullSucreen-btn':''}}">
<view class="tips" wx:if="{{(orderInfo['status'] == 3 ) && showTips}}">
<image class="tipsIcon" src="../../../images/tips.png" />
<view class="contentText">超过24h未支付将关闭此订单。</view>
<image class="closeIcon" bindtap="closeTips" src="../../images/closeIcon.png" />
</view>
<block wx:if="{{orderInfo.status == 1}}">
<view class="btn text-center change" bindtap="edit">修改</view>
</block>
<view class="btn text-center" style="width:{{orderInfo.status == 1||orderInfo.status == 3 ? '' : '100%'}}" bindtap="next">
确认
</view>
</view>
</block>
</block>
<!-- 待支付提示 -->
<!-- <block wx:if="{{item.status && orderInfo['status'] == 3}}">
<view class="payTips">超过24h未支付将关闭此订单</view>
</block> -->
<!-- orderInfo.selectPayType showPopup -->
<order-popup orderType="{{orderInfo.selectPayType }}" wx:if="{{showPopup}}" show="{{showPopup}}" qrCode="{{orderInfo.payOrder.outTradeNo || ''}}" price="{{orderInfo.total_price}}" orderCode="{{orderInfo.orderCode}}" />
<artificer-select-popup show="{{artificerSelectPopup}}" title="选择技师" copyArtificerList="{{artificerList}}" orderInfo="{{orderInfo}}" artificerSelectObj="{{artificerSelectObj}}" bindconfirm="changeArtificer" />
<date-select selectPay="{{orderInfo.selectPayType}}" show="{{showDateSelect}}" bind:confirm="getSelectDate"></date-select>