SecondStep.wxml
13.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
<!-- packageEquity/pages/carEquity/components/SecondStep/SecondStep.wxml -->
<wxs src="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" 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="icon" bindtap="delGoodsList" data-index="{{ index }}">
<image src="./images/del.png" />
</view>
<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.goodsAlias) ||filter.replaceItemText(item.goods.upgradeGoodsName) || filter.replaceItemText(item.goods.goodsName)}} -->
</view>
<!-- goodsPriceModify:true 价格不可以修改,false价格可以修改 -->
<view class="price-box-Modify" wx:if="{{item.goods.goodsPriceModify}}">
<text>¥</text>
<view class="price">
{{ item.goods.price}}
</view>
</view>
<view class="price-box" wx:else>
<text>¥</text>
<view class="price">
<input type="digit" value="{{ 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>
<!-- {{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="deleteicon" bindtap="delGoodsList" data-index="{{ index }}">
<image src="./images/del.png" />
</view>
<view class="name ">{{item.packageGoods.packageAlias || item.packageGoods.packageNameAlias || item.packageGoods.packageName}}</view>
<view class="package-price">¥{{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="name ">{{child.goodsAlias || child.goodsNameAlias || filter.replaceItemText(child.upgradeGoodsName , (item.specificationData? '/'+child.specificationData: '') ) ||filter.replaceItemText(child.goodsName ,( item.specificationData? '/'+child.specificationData: '') ) }}</view>
<view class="price-box-Modify" wx:if="{{child.goodsPriceModify}}">
<text>¥</text>
<view class="price">
{{ child.price}}
</view>
</view>
<view class="price-box" wx:else>
<text>¥</text>
<view class="price">
<input type="digit" value="{{ 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>
</view>
<!-- 多规格 -->
<view class="goods" wx:if="{{ item.multipleSpecificationsGoods }}">
<view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
<image src="./images/del.png" />
</view>
<view class="goods-content">
<view class="alias" wx:if="{{item.multipleSpecificationsGoods.goods.goodsAlias}}">
商品别名:{{item.multipleSpecificationsGoods.goods.goodsAlias}}
</view>
<view class="bottom_box">
<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">
{{ item.multipleSpecificationsGoods.goods.price}}
</view>
</view>
<view class="price-box" wx:else>
<text>¥</text>
<view class="price">
<input type="digit" value="{{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>
</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> -->
<!-- 新下单非历史单 -->
<block wx:if="{{paymentMethod || !orderInfo.oldOrder}}">
<gl-cell border class="pay-type" label="收款方" valueAlign="right" labelWidth="var(--fontSize140)" wx:if="{{!(orderInfo.switchValue == 1 && orderInfo.selectOutTradeNoArr.length == 1)}}">
<view class="payType-box">
<view class="text-center payment-text">{{orderInfo.payee == 1 ? '4S店收款' : '嘀加收款'}}</view>
</view>
</gl-cell>
<gl-cell border class="pay-type" label="支付方式" valueAlign="right" labelWidth="var(--fontSize140)" wx:if="{{!(orderInfo.switchValue == 1 && orderInfo.selectOutTradeNoArr.length == 1)}}">
<view class="payType-box">
<view class="text-center payment-text">{{payTypeObj[orderInfo.payType]}}</view>
</view>
</gl-cell>
</block>
<block wx:else>
<!-- 非正常分账期单流水补录 -->
<gl-cell border class="pay-type" label="收款方" valueAlign="right" labelWidth="var(--fontSize140)" wx:if="{{!(orderInfo.switchValue == 1 && orderInfo.selectOutTradeNoArr.length == 1)}}">
<view class="payType-box">
<block wx:for="{{ payeeList }}" wx:key="index">
<view class="item text-center {{ orderInfo.payee == item.value?'active':'' }} {{(orderInfo.resetOrder||orderInfo.selectOutTradeNoArr) && orderInfo.payee != item.value ? 'disabled' : ''}}" bindtap="changePayee" data-payee="{{ item.value }}">{{item.name}}</view>
</block>
</view>
</gl-cell>
<!-- 非正常分账期单流水补录 -->
<gl-cell border class="pay-type" label="支付方式" valueAlign="right" labelWidth="var(--fontSize140)" wx:if="{{!(orderInfo.switchValue == 1 && orderInfo.selectOutTradeNoArr.length == 1)}}">
<view class="payType-box">
<!-- 错误工单或非正常分账期单流水补录 固定显示嘀加收款 -->
<view class="item text-center active" wx:if="{{ orderInfo.resetOrder || orderInfo.selectOutTradeNoArr}}">嘀加收款</view>
<block wx:else>
<block wx:for="{{ payTypeList }}" wx:key="index">
<view class="item text-center {{ orderInfo.payType == item.value?'active':'' }}" bindtap="changePayType" data-payType="{{ item.value }}">{{item.name}}</view>
</block>
</block>
</view>
</gl-cell>
</block>
<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" goodsData="{{ quotationGoodsList }}" chooseGoodsList="{{ orderInfo.vdQuotationGoodsList }}" />
<sku-goods show="{{ skuGoodsBox }}" wx:if="{{skuGoodsBox}}" sceneType="0" goodsData="{{ skuGoodsData }}" chooseGoodsList="{{ orderInfo.vdQuotationGoodsList }}"></sku-goods>
<date-select show="{{ showDateSelect }}" bind:close="closeDateModal" selectPay="{{orderInfo.payType}}" bind:confirm="onChanteSuccessDate"></date-select>