createOrder.wxml
11.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
<wxs src="index.wxs" module="filter" />
<block wx:if="{{flag}}">
<view class="main {{isFullSucreen?'isFullSucreen':''}} {{showTips?'fullSucreen-tips':'' }}">
<view class="box">
<view class="userId">
<gl-cell
border
valueAlign="right"
label="销售顾问"
requiredAfter
labelWidth="140rpx"
required
haveArrow
bindclick="showPopup"
data-show-name="selesBox"
placeholder="点击选择"
disabled="{{orderObj.orderSource == 5}}">
<block wx:if="{{orderObj.merchantName && orderObj.employeeName}}">
<view class="between">
<view class="start text-hide">{{orderObj.merchantName}}</view>
<view class="end text-hide">
<text>|</text>
{{orderObj.employeeName}}
</view>
</view>
</block>
</gl-cell>
</view>
<view class="customerName">
<gl-cell
border
valueAlign="right"
label="车主姓名"
requiredAfter
labelWidth="140rpx"
required>
<input
placeholder="点击输入"
class="input"
placeholder-class="placeholder-class"
maxlength="16"
value="{{orderObj.customer.customerName}}"
bindinput="input"
data-name="customer.customerName"
disabled="{{orderObj.orderSource == 5}}"
always-embed></input>
</gl-cell>
</view>
<gl-cell
border
label="性别"
valueAlign="right"
labelWidth="140rpx">
<view class="gender-box">
<view class="block text-center {{orderObj.customer.customerSex==1?'':'right'}}" />
<view class="male text-center {{orderObj.customer.customerSex == 1?'active':''}}" bindtap="changeGender" data-gender="1">
男
</view>
<view class="woman text-center {{orderObj.customer.customerSex == 2?'active':''}}" bindtap="changeGender" data-gender="2">
女
</view>
</view>
</gl-cell>
<view class="customerPhone">
<gl-cell
border
valueAlign="right"
label="手机号"
requiredAfter
labelWidth="140rpx"
required>
<input
placeholder="点击输入"
class="input"
type="number"
maxlength="11"
placeholder-class="placeholder-class"
value="{{orderObj.customer.customerPhone}}"
bindinput="input"
data-name="customer.customerPhone"
disabled="{{orderObj.orderSource == 5||orderObj.orderSource == 6}}"
always-embed></input>
</gl-cell>
</view>
<gl-cell
required="{{filter.isIncludesItem(requiredList ,'carBrand')}}"
border
valueAlign="right"
label="选择车型"
labelWidth="140rpx"
haveArrow
requiredAfter
placeholder="点击选择"
bindclick="showPopup"
data-show-name="carBrandBox">
<block wx:if="{{orderObj.customer.carSeriesName}}">
<view class="between">
{{orderObj.customer.carBrand}}-{{orderObj.customer.carChildsBrandName}}-{{orderObj.customer.carSeriesName}}
</view>
</block>
</gl-cell>
<!-- <gl-cell
required="{{filter.isIncludesItem(requiredList ,'standNo')}}"
border
valueAlign="right"
label="车架号( VIN码 )"
requiredAfter
bindclick="navigator"
labelWidth="240rpx">
<view>扫码车架号2</view>
</gl-cell> -->
<gl-cell
required="{{filter.isIncludesItem(requiredList ,'standNo')}}"
border
iconSrc="{{scanIcon}}"
bindtitleClick="navOcr"
valueAlign="right"
label="车架号( VIN )"
requiredAfter
data-type="standNo"
labelWidth="280rpx">
<input
placeholder="点击输入"
class="input"
placeholder-class="placeholder-class"
value="{{orderObj.customer.standNo}}"
bindinput="input"
data-name="customer.standNo"
maxlength="17"
always-embed></input>
</gl-cell>
<gl-cell
required="{{filter.isIncludesItem(requiredList ,'plateNumber')}}"
border
valueAlign="right"
iconSrc="{{scanIcon}}"
bindtitleClick="navOcr"
data-type="plateNumber"
label="车牌号"
requiredAfter
labelWidth="240rpx">
<input
placeholder="点击输入"
class="input"
placeholder-class="placeholder-class"
value="{{orderObj.customer.plateNumber}}"
bindinput="input"
data-name="customer.plateNumber"
maxlength="8"
always-embed></input>
</gl-cell>
<gl-cell
border
label="是否体验"
valueAlign="right"
labelWidth="140rpx">
<view class="gender-box">
<view class="block text-center {{orderObj.customer.experienceFlag=='Y'?'':'right'}}" />
<view class="male text-center {{orderObj.customer.experienceFlag == 'Y'?'active':''}}" bindtap="changeExperience" data-experience="Y">
是
</view>
<view class="woman text-center {{orderObj.customer.experienceFlag == 'N'?'active':''}}" bindtap="changeExperience" data-experience="N">
否
</view>
</view>
</gl-cell>
<gl-cell
border
valueAlign="right"
label="备注"
labelWidth="140rpx"
bindclick="showPopup"
data-show-name="showRemark"
placeholder="30字以内"
value="{{orderObj.remark}}" />
<view class="sellerUserId">
<gl-cell
border
valueAlign="right"
label="转化人员"
requiredAfter
labelWidth="140rpx"
required
haveArrow
placeholder="点击选择"
bindclick="showPopup"
data-show-name="salesmanBox">
<block wx:if="{{orderObj.sellerMerchantName && orderObj.sellerName}}">
<view class="between">
<view class="start text-hide">{{orderObj.sellerMerchantName}}</view>
<view class="end text-hide">
<text>|</text>
{{orderObj.sellerName}}
</view>
</view>
</block>
</gl-cell>
</view>
</view>
<view class="box">
<block wx:if="{{orderObj.merchantId}}">
<gl-cell
border
valueAlign="right"
label="精品礼券"
labelWidth="140rpx"
haveArrow
requiredAfter
required
value="{{(orderObj.couponName || '') + (orderObj.customerCouponCode || '')}}"
placeholder="点击选择"
bindclick="showPopup"
data-show-name="couponBox"
disabled="{{orderObj.orderSource == 5}}" />
<view class="{{orderObj.selectPayType ==0?'item-disabled':''}}">
<gl-cell
border
valueAlign="right"
label="购买商品"
labelWidth="140rpx"
haveArrow
requiredAfter="{{ orderObj.selectPayType != 0 }}"
required="{{ orderObj.selectPayType != 0 }}"
placeholder="点击选择"
bindclick="showPopup"
data-show-name="goodsBox" />
</view>
<block wx:if="{{goodsList.length > 0}}">
<view class="goods-box">
<block wx:for="{{goodsList}}" wx:key="index">
<view class="goods">
<view class="icon" bindtap="delGoodsList" data-index="{{index}}">
<image src="../../images/del.png" />
</view>
<view class="name text-hide">{{item.goodsInfo.goodsName}}</view>
<view class="price-box">
¥
<view class="price">
<input
type="digit"
value="{{item.price}}"
bindinput="changePrice"
data-item="{{item}}"
bindblur="priceBlur"
data-index="{{index}}"
class="{{item.price < item.shopMinPrice? 'error':''}}"
always-embed />
</view>
</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox">
x{{item.count}}
</view>
</view>
</block>
<view class="goods total-box">
总价
<view class="total">¥{{total || 0}}</view>
</view>
</view>
</block>
</block>
<gl-cell
border
label="支付方式"
valueAlign="right"
wx:if="{{!isErrorOrder}}"
labelWidth="152rpx">
<view class="payType-box">
<block wx:for="{{showPayList}}" wx:key="index">
<view
class="item text-center {{orderObj.selectPayType == item.value?'active':''}} {{goodsList.length > 0 && item.value == 0?'disabled':''}}"
bindtap="changePayType"
data-item="{{item}}"
data-index="{{index}}">
{{item.name}}
<view class="active-icon">
<image src="../../images/active.png" />
</view>
</view>
</block>
</view>
</gl-cell>
</view>
</view>
<view class="btns {{isFullSucreen?'isFullSucreen-btn':''}}">
<!-- wx:if="{{isErrorOrder}}" -->
<view class="tips" wx:if="{{showTips}}">
<image class=" tipsIcon" src="../../../images/tips.png" />
<view class="contentText">
原订单录入信息有误,请重新提交正确的订单信息。
<!-- <view>支付订单号:{{outTradeNo}}</view>
<view>支付时间:{{accountDate}}</view> -->
</view>
<image class="closeIcon" bindtap="closeTips" src="../../images/closeIcon.png" />
</view>
<view class="btns-con">
<view class="save text-center {{isErrorOrder ?'disabled':''}}" bindtap="submit" data-save>
保存
</view>
<view class="confirm text-center" bindtap="submit">提交工单</view>
</view>
</view>
</block>
<merchant-seles
show="{{selesBox}}"
title="选择合作门店"
sub-title="选择销售顾问"
userInfo="{{userInfo}}"
type="1" />
<car-brands show="{{carBrandBox}}" bindconfirm="chooseCar" carSeriesId="{{orderObj.customer.carSeriesId || ''}}" />
<remark-popup
wx:if="{{showRemark}}"
show="{{showRemark}}"
bindconfirm="remarkConfirm"
placeholder="请填写内容,最多30个字"
maxlength="30"
value="{{orderObj.remark}}" />
<merchant-seles
show="{{salesmanBox}}"
isDefault="{{isDefault}}"
title="选择园区店"
sub-title="选择转化人员"
userInfo="{{userInfo}}"
type="2" />
<coupon
show="{{couponBox}}"
class="coupon"
bindconfirm="chooseCoupon"
merchantId="{{orderObj.merchantId}}"
customerPhone="{{orderObj.customer.customerPhone}}"
yqMerchantId="{{orderObj.sellerMerchantId}}"
returnFun="{{returnFun}}" />
<goods
show="{{goodsBox}}"
bindconfirm="chooseGoods"
goodsData="{{goodsData}}"
chooseGoodsList="{{goodsList}}" />
<!-- <order-popup
orderType="{{remarkBox}}"
show="{{remarkBox}}"
qrCode="{{orderInfo.payOrder.outTradeNo}}"
price="{{orderInfo.total_price}}" /> -->