SecondStep.wxml
22.5 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
494
495
<!-- packageEquity/pages/carEquity/components/SecondStep/SecondStep.wxml -->
<wxs src="/packageEquity/pages/carQuotation/components/SecondStepSimple/index.wxs" module="filter" />
<view class="testFormCon">
<van-collapse value="{{ activeNames }}">
<view class="collapse">
<van-collapse-item name="3" is-link="{{ false }}">
<view slot="title">
<view class="collapseBoxTitle">
<view class="label">
增值车损险
<text class="required">*</text>
</view>
</view>
</view>
<view>
<gl-cell
border
valueAlign="right"
class="goodsCom {{ createAllGoodsFlag == 0 ? 'item-disabled' : '' }}"
label="订单类型"
labelWidth="var(--fontSize140)"
haveArrow="{{ createAllGoodsFlag != 0 }}"
requiredAfter
required
value="{{ orderTypeName }}"
bindclick="openOrderType"
/>
<block wx:if="{{ orderInfo.resetOrder }}">
<gl-cell
class="item-disabled"
border
valueAlign="right"
label="原错误订单编号"
labelWidth="var(--fontSize280)"
value="{{ orderInfo.payId }}"
cellBoxStyle="opacity: .4;"
/>
<gl-cell
class="item-disabled"
border
valueAlign="right"
label="原错误订单总价"
labelWidth="var(--fontSize280)"
value="¥{{ orderInfo.finalPrice }}"
cellBoxStyle="opacity: .4;"
/>
<gl-cell
border
valueAlign="right"
label="关联交易流水"
labelWidth="var(--fontSize280)"
haveArrow
placeholder="点击选择"
value="{{ totalFee ? '¥' + totalFee/100 : '' }}"
bindclick="tipsEvent"
/>
</block>
<gl-cell
border
valueAlign="right"
class="goodsCom"
label="购买商品"
labelWidth="var(--fontSize140)"
haveArrow
requiredAfter
required
placeholder="点击选择"
bindclick="showPopup"
data-show-name="goodsBox"
/>
</view>
<block wx:if="{{ orderInfo.vdQuotationGoodsList.length > 0 }}">
<view class="goods-box">
<block wx:for="{{ orderInfo.vdQuotationGoodsList }}" wx:key="index">
<view class="goods" wx:if="{{ item.goods }}">
<view class="goods-content">
<!-- <view class="alias" wx:if="{{ item.goods.goodsAlias || item.goods.goodsNameAlias }}">商品别名:{{ item.goods.goodsAlias || item.goods.goodsNameAlias }}</view> -->
<view class="bottom_box">
<view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
<image src="./images/del.png" />
</view>
<view class="name left">
<view class="name">
{{item.goods.goodsAlias || item.goods.goodsNameAlias|| filter.replaceItemText(item.goods.upgradeGoodsName ,( item.goods.specificationData? '/'+item.goods.specificationData:'')) || filter.replaceItemText(item.goods.goodsName, (item.goods.specificationData? '/'+item.goods.specificationData:''))}}
<!-- {{ filter.replaceItemText(item.goods.upgradeGoodsName ,( item.goods.specificationData? '/'+item.goods.specificationData:'')) || filter.replaceItemText(item.goods.goodsName, (item.goods.specificationData? '/'+item.goods.specificationData:'')) }} -->
</view>
<!-- <view class="position" wx:if="{{ item.goods.specificationData }}">{{ item.goods.specificationData }}</view> -->
</view>
<view class="right">
<!-- goodsPriceModify:true 价格不可以修改,false价格可以修改 -->
<view class="price-box-Modify" wx:if="{{ item.goods.goodsPriceModify }}">
<text>¥</text>
<view class="price">{{filter.divideByHundred(item.goods.price)}}</view>
</view>
<view class="price-box" wx:else>
<text>¥</text>
<view class="price">
<input
type="digit"
value="{{ item.goods.priceInput != null ? item.goods.priceInput : filter.divideByHundred(item.goods.price) }}"
bindinput="changePrice"
disabled="{{ orderObj.selectPayType ==0||item.goods.goodsPriceModify }}"
data-item="{{ item }}"
bindblur="priceBlur"
data-index="{{ index }}"
class="{{ item.goods.checkError ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}"
always-embed
/>
</view>
</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox">x {{item.count||1}}</view>
</view>
</view>
<block wx:if="{{ orderInfo.orderType == 2 || orderInfo.orderType == 3 || orderInfo.orderType == 5 }}">
<view class="strategy-box">
<view class="gift-row" wx:if="{{ orderInfo.orderType == 3 }}">
<view>是否为赠品</view>
<radio-group bindchange="toggleGift" data-index="{{ index }}" class="gift-radios">
<label class="radio-label">
<radio value="4" checked="{{ item.goods.discountType == 4 }}" color="#347BFF" />
是
</label>
<label class="radio-label">
<radio value="5" checked="{{ item.goods.discountType != 4 }}" color="#347BFF" />
否
</label>
</radio-group>
</view>
<view class="discount-types" wx:else>
<view class="discount-tabs">
<view
class="type-item {{ (item.goods.discountType == 3 || !item.goods.discountType) ? 'active' : '' }}"
catchtap="changeProductDiscountType"
data-index="{{ index }}"
data-type="3"
>无折扣</view>
<view
class="type-item {{ item.goods.discountType == 1 ? 'active' : '' }}"
catchtap="changeProductDiscountType"
data-index="{{ index }}"
data-type="1"
wx:if="{{ orderInfo.orderType != 5 }}"
>折扣比例</view>
<view
class="type-item {{ item.goods.discountType == 2 ? 'active' : '' }}"
catchtap="changeProductDiscountType"
data-index="{{ index }}"
data-type="2"
>折扣金额</view>
</view>
<view class="discount-input" wx:if="{{ item.goods.discountType == 1 || item.goods.discountType == 2 }}">
<input type="digit" value="{{ item.goods.discountValue }}" bindinput="inputDiscountValue" data-index="{{ index }}" />
<text> {{item.goods.discountType == 1 ? '折': '元'}}</text>
</view>
</view>
<view class="final-price">
价格
<text class="orange">¥ {{filter.divideByHundred(item.goods.finalPrice !== undefined ? item.goods.finalPrice : (item.goods.sellPrice !== undefined ? item.goods.sellPrice : item.goods.price))}}</text>
</view>
</view>
</block>
</view>
</view>
<!-- {{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || filter.replaceItemText(item.goodsInfo.goodsName)}}-->
<view class="goods packageList" wx:if="{{ item.packageGoods }}">
<view class="package">
<view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
<image src="./images/del.png" />
</view>
<!-- <view class="name">
<view class="alias" wx:if="{{ item.packageGoods.packageAlias || item.packageGoods.packageNameAlias }}">套餐别名:{{ item.packageGoods.packageAlias || item.packageGoods.packageNameAlias }}</view>
<view>{{ item.packageGoods.packageName}}</view>
</view> -->
<view class="name">{{item.packageGoods.packageAlias || item.packageGoods.packageNameAlias || item.packageGoods.packageName}}</view>
<view class="package-price">¥ {{filter.divideByHundred(item.price)}}</view>
<!-- <view class="count"catchtap="showPopup"data-show-name="goodsBox">x {{item.count||1}}</view>-->
</view>
<view class="packageBox">
<view class="itemSty" wx:for="{{ item.packageGoods.goodsList }}" wx:key="childind" wx:for-index="childind" wx:for-item="child">
<view class="goods-content" style="width: 100%">
<!-- <view class="alias" wx:if="{{ child.goodsAlias || child.goodsNameAlias }}">商品别名:{{ child.goodsAlias || child.goodsNameAlias }}</view> -->
<view class="bottom_box">
<view class="name left">
<view class="name">
{{child.goodsAlias || child.goodsNameAlias || filter.replaceItemText(child.upgradeGoodsName , (item.specificationData? '/'+child.specificationData: '') ) ||filter.replaceItemText(child.goodsName ,( item.specificationData? '/'+child.specificationData: '') ) }}
</view>
<!-- <view class="position" wx:if="{{ child.specificationData }}">{{ child.specificationData }}</view> -->
<!-- <view class="serveName" wx:if="{{child.serveName}}">(包含{{child.serveName}})</view> -->
</view>
<view class="right">
<view class="price-box-Modify" wx:if="{{ child.goodsPriceModify }}">
<text>¥</text>
<view class="price">{{filter.divideByHundred(child.price)}}</view>
</view>
<view class="price-box" wx:else>
<text>¥</text>
<view class="price">
<input
type="digit"
value="{{ child.priceInput != null ? child.priceInput : filter.divideByHundred(child.price) }}"
bindinput="changePricePackage"
disabled="{{ orderObj.selectPayType ==0 ||child.goodsPriceModify }}"
data-childind="{{ childind }}"
data-item="{{ item }}"
bindblur="priceBlur"
data-index="{{ index }}"
class="{{ child.checkError ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}"
always-embed
/>
</view>
</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox">x {{child.count||1}}</view>
</view>
</view>
<block wx:if="{{ orderInfo.orderType == 2 || orderInfo.orderType == 3 || orderInfo.orderType == 5 }}">
<view class="strategy-box">
<view class="gift-row" wx:if="{{ orderInfo.orderType == 3 }}">
<view>是否为赠品</view>
<radio-group bindchange="toggleGift" data-index="{{ index }}" data-gindex="{{ childind }}" class="gift-radios">
<label class="radio-label">
<radio value="4" checked="{{ child.discountType == 4 }}" color="#347BFF" />
是
</label>
<label class="radio-label">
<radio value="5" checked="{{ child.discountType != 4 }}" color="#347BFF" />
否
</label>
</radio-group>
</view>
<view class="discount-types" wx:else>
<view class="discount-tabs">
<view
class="type-item {{ (child.discountType == 3 || !child.discountType) ? 'active' : '' }}"
catchtap="changeProductDiscountType"
data-index="{{ index }}"
data-gindex="{{ childind }}"
data-type="3"
>无折扣</view>
<view
class="type-item {{ child.discountType == 1 ? 'active' : '' }}"
catchtap="changeProductDiscountType"
data-index="{{ index }}"
data-gindex="{{ childind }}"
data-type="1"
wx:if="{{ orderInfo.orderType != 5 }}"
>折扣比例</view>
<view
class="type-item {{ child.discountType == 2 ? 'active' : '' }}"
catchtap="changeProductDiscountType"
data-index="{{ index }}"
data-gindex="{{ childind }}"
data-type="2"
>折扣金额</view>
</view>
<view class="discount-input" wx:if="{{ child.discountType == 1 || child.discountType == 2 }}">
<input
type="digit"
value="{{ child.discountValue }}"
bindinput="inputDiscountValue"
data-index="{{ index }}"
data-gindex="{{ childind }}"
/>
<text> {{child.discountType == 1 ? '折': '元'}}</text>
</view>
</view>
<view class="final-price">
价格
<text class="orange">¥ {{child.finalPrice !== undefined ? filter.divideByHundred(child.finalPrice) : (child.sellPrice !== undefined ? child.sellPrice : filter.divideByHundred(child.price))}}</text>
</view>
</view>
</block>
</view>
</view>
</view>
</view>
<!-- 多规格 -->
<view class="goods" wx:if="{{ item.multipleSpecificationsGoods }}">
<view class="goods-content">
<view
class="alias"
wx:if="{{ item.multipleSpecificationsGoods.goods.goodsAlias || item.multipleSpecificationsGoods.goods.goodsNameAlias }}"
>商品别名:{{ item.multipleSpecificationsGoods.goods.goodsAlias || item.multipleSpecificationsGoods.goods.goodsNameAlias }}</view>
<view class="bottom_box">
<view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
<image src="./images/del.png" />
</view>
<view class="name left">
<view class="name">{{item.multipleSpecificationsGoods.baseGoodsName }}</view>
<view class="position" wx:if="{{ item.multipleSpecificationsGoods.goods.specificationStr }}">{{item.multipleSpecificationsGoods.goods.specificationStr}}</view>
</view>
<view class="right">
<view class="price-box-Modify" wx:if="{{ item.multipleSpecificationsGoods.goods.goodsPriceModify }}">
<text>¥</text>
<view class="price">{{filter.divideByHundred(item.multipleSpecificationsGoods.goods.price)}}</view>
</view>
<view class="price-box" wx:else>
<text>¥</text>
<view class="price">
<input
type="digit"
value="{{ item.multipleSpecificationsGoods.goods.priceInput != null ? item.multipleSpecificationsGoods.goods.priceInput : filter.divideByHundred(item.multipleSpecificationsGoods.goods.price) }}"
bindinput="changeSpecific"
disabled="{{ orderObj.selectPayType ==0||item.multipleSpecificationsGoods.goods.goodsPriceModify }}"
data-item="{{ item }}"
bindblur="priceBlur"
data-index="{{ index }}"
class="{{ item.multipleSpecificationsGoods.goods.checkError ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}"
always-embed
/>
</view>
</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox">x {{item.count||1}}</view>
</view>
</view>
<block wx:if="{{ orderInfo.orderType == 2 || orderInfo.orderType == 3 || orderInfo.orderType == 5 }}">
<view class="strategy-box">
<view class="gift-row" wx:if="{{ orderInfo.orderType == 3 }}">
<view>是否为赠品</view>
<radio-group bindchange="toggleGift" data-index="{{ index }}" class="gift-radios">
<label class="radio-label">
<radio value="4" checked="{{ item.multipleSpecificationsGoods.goods.discountType == 4 }}" color="#347BFF" />
是
</label>
<label class="radio-label">
<radio value="5" checked="{{ item.multipleSpecificationsGoods.goods.discountType != 4 }}" color="#347BFF" />
否
</label>
</radio-group>
</view>
<view class="discount-types" wx:else>
<view class="discount-tabs">
<view
class="type-item {{ (item.multipleSpecificationsGoods.goods.discountType == 3 || !item.multipleSpecificationsGoods.goods.discountType) ? 'active' : '' }}"
catchtap="changeProductDiscountType"
data-index="{{ index }}"
data-type="3"
>无折扣</view>
<view
class="type-item {{ item.multipleSpecificationsGoods.goods.discountType == 1 ? 'active' : '' }}"
catchtap="changeProductDiscountType"
data-index="{{ index }}"
data-type="1"
wx:if="{{ orderInfo.orderType != 5 }}"
>折扣比例</view>
<view
class="type-item {{ item.multipleSpecificationsGoods.goods.discountType == 2 ? 'active' : '' }}"
catchtap="changeProductDiscountType"
data-index="{{ index }}"
data-type="2"
>折扣金额</view>
</view>
<view
class="discount-input"
wx:if="{{ item.multipleSpecificationsGoods.goods.discountType == 1 || item.multipleSpecificationsGoods.goods.discountType == 2 }}"
>
<input
type="digit"
value="{{ item.multipleSpecificationsGoods.goods.discountValue }}"
bindinput="inputDiscountValue"
data-index="{{ index }}"
/>
<text> {{item.multipleSpecificationsGoods.goods.discountType == 1 ? '折': '元'}}</text>
</view>
</view>
<view class="final-price">
价格
<text class="orange">¥ {{filter.divideByHundred(item.multipleSpecificationsGoods.goods.finalPrice !== undefined ? item.multipleSpecificationsGoods.goods.finalPrice : (item.multipleSpecificationsGoods.goods.sellPrice !== undefined ? item.multipleSpecificationsGoods.goods.sellPrice : item.multipleSpecificationsGoods.goods.price))}}</text>
</view>
</view>
</block>
</view>
</view>
</block>
<view class="goods total-box">
<view>总价</view>
<view class="total">¥ {{orderInfo.total || 0}}</view>
</view>
</view>
</block>
</van-collapse-item>
</view>
<view class="collapse">
<van-collapse-item name="1" is-link="{{ false }}">
<view slot="title">
<view class="collapseBoxTitle remark">
<view class="sprite-icon mr10" />
<view class="label">其他信息</view>
</view>
</view>
<!-- <gl-cell wx:if="{{ !orderInfo.outTradeNo || orderInfo.resetOrder }}"
border class="pay-type"
label="支付方式"
valueAlign="right"
labelWidth="var(--fontSize140)"
><view class="only-select-text"wx:if="{{ orderInfo.resetOrder }}">门店收款</view><view wx:else class="switch-box"><view class="block text-center {{ orderInfo.payType==1?'':'right' }}"/><view class="left text-center {{ orderInfo.payType == 1?'active':'' }}"bindtap="changePayType"data-payType="1">线上支付</view><view class="right text-center {{ orderInfo.payType == 2?'active':'' }}"bindtap="changePayType"data-payType="2">门店收款</view></view></gl-cell>-->
<!-- 新下单非历史单 -->
<gl-cell
border
class="pay-type"
label="收款方"
valueAlign="right"
labelWidth="var(--fontSize140)"
value="{{ orderInfo.payee == 1 ? '4S店收款' : '嘀加收款' }}"
wx:if="{{ !(orderInfo.switchValue == 1 && orderInfo.selectOutTradeNoArr.length == 1) }}"
></gl-cell>
<gl-cell
border
class="pay-type"
label="支付方式"
valueAlign="right"
labelWidth="var(--fontSize140)"
value="{{ payTypeObj[orderInfo.payType] }}"
wx:if="{{ !(orderInfo.switchValue == 1 && orderInfo.selectOutTradeNoArr.length == 1) }}"
></gl-cell>
<view class="paytype-tips" wx:if="{{ orderInfo.payType == 7 }}">其它收款:当客户已向嘀加付款但无法使用流水补录时,新建工单应选择收款方为「嘀加收款」且支付方为「其它收款」。</view>
<gl-cell
wx:if="{{ (orderInfo.payType == 2 ||orderInfo.payType ==5 || orderInfo.payType == 6 || orderInfo.payType == 7 )&&!orderInfo.resetOrder&&!orderInfo.selectOutTradeNoArr }}"
value="{{ successDateTime }}"
bind:click="toSelectDate"
haveArrow="{{ true }}"
placeholder="请选择时间"
required="{{ true }}"
requiredAfter="{{ true }}"
border
class="pay-type"
label="{{ orderInfo.payType == 2?'4S店收款时间':'嘀加收款时间' }}"
valueAlign="right"
labelWidth="var(--fontSize200)"
></gl-cell>
<gl-cell
wx:if="{{ orderInfo.selectOutTradeNoArr.length && !(orderInfo.switchValue == 1 && orderInfo.selectOutTradeNoArr.length == 1) }}"
value="{{ orderInfo.successDateTime }}"
haveArrow="{{ true }}"
placeholder="请选择时间"
required="{{ true }}"
requiredAfter="{{ true }}"
border
class="pay-type"
label="{{ orderInfo.payType == 2?'4S店收款时间':'嘀加收款时间' }}"
valueAlign="right"
labelWidth="var(--fontSize200)"
></gl-cell>
<view class="box">
<!-- 支付方式为其他收款时,备注必填 -->
<view class="title remarkTitle">
备注
<text wx:if="{{ orderInfo.payType == 7 }}" class="required">*</text>
</view>
<van-field
type="textarea"
maxlength="30"
autosize
class="inputBox"
border="{{ false }}"
data-hold-keyboard
value="{{ orderInfo.notes }}"
data-attrName="notes"
placeholder="请输入(30字以内)"
data-attrType=""
bindinput="handleInput"
></van-field>
</view>
</van-collapse-item>
</view>
</van-collapse>
<Gl-Button-Group bindbtnTap="btnTap" textNameObj="{{ textNameObj }}" />
</view>
<goods
show="{{ goodsBox }}"
bindconfirm="chooseGoods"
bind:cancel="onGoodsCancel"
bind:refreshRequested="onGoodsRefreshRequested"
bind:skuRequested="onGoodsSkuRequested"
goodsData="{{ quotationGoodsList }}"
chooseGoodsList="{{ orderInfo.vdQuotationGoodsList }}"
/>
<sku-goods
show="{{ skuGoodsBox }}"
wx:if="{{ skuGoodsBox }}"
sceneType="0"
goodsData="{{ skuGoodsData }}"
chooseGoodsList="{{ orderInfo.vdQuotationGoodsList }}"
bindconfirm="onSkuGoodsConfirm"
bindcancel="onSkuGoodsCancel"
bind:visibilityChange="onSkuVisibilityChange"
></sku-goods>
<date-select
show="{{ showDateSelect }}"
bind:close="closeDateModal"
selectPay="{{ orderInfo.payType }}"
bind:confirm="onChanteSuccessDate"
></date-select>
<van-popup show="{{ orderTypeBox }}" position="bottom" bind:close="onCloseOrderType">
<van-picker columns="{{ orderTypeList }}" show-toolbar bind:cancel="onCloseOrderType" bind:confirm="onConfirmOrderType" />
</van-popup>