premiumUpgrade.wxml
14 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
<!--tabWorkOrder/pages/carFilmUpgrade/carFilmUpgrade.wxml-->
<wxs src="../../index.wxs" module="filter" />
<block wx:if="{{ flag }}">
<view class="main {{ isFullSucreen?'isFullSucreen':''}} {{tipsProps.showTips?'fullSucreen-tips':'' }}">
<view class="box">
<view class="userId">
<gl-cell border valueAlign="right" label="销售顾问" requiredAfter labelWidth="var(--fontSize140)" 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="subShopMerchantId" wx:if="{{isShowSubShopMerchant}}">
<gl-cell border valueAlign="right" label="二级流量方" requiredAfter labelWidth="var(--fontSize180)" required haveArrow bindclick="showPopup" data-show-name="subShopMerchantBox" placeholder="点击选择" disabled="{{orderObj.orderSource == 5}}">
<block wx:if="{{orderObj.subShopMerchantName}}">
<view class="between">{{orderObj.subShopMerchantName}}</view>
</block>
</gl-cell>
</view>
<view class="sellerUserId">
<gl-cell border valueAlign="right" label="转化人员" requiredAfter labelWidth="var(--fontSize140)" 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>
<!-- <gl-cell
wx:if="{{ orderObj.selectPayType !=0 }}"
border
valueAlign="right"
label="订单备注"
labelWidth="var(--fontSize140)"
bindclick="showPopup"
data-show-name="showRemark"
placeholder="100字以内"
value="{{ orderObj.remark }}"
/> -->
</view>
<view class="box">
<gl-cell border label="客户类型" valueAlign="right" labelWidth="var(--fontSize140)">
<view class="gender-box">
<view class="block text-center {{ orderObj.selectPayType !=0?'':'right' }}" />
<view class="male text-center {{ orderObj.selectPayType !=0 ?'active':'' }}" bindtap="changeSelectPayType" data-experience="2">升级</view>
<view class="woman text-center {{ orderObj.selectPayType ==0?'active':'' }}" bindtap="changeSelectPayType" data-experience="0">战败</view>
</view>
</gl-cell>
<view class="customerName">
<gl-cell border valueAlign="right" label="车主姓名" requiredAfter titleBtn="客户档案" bindtitleClick="showCustomPop" labelWidth="var(--fontSize290)" 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="客户来源" value="{{Sourcecolumns[orderObj.customer.salesType].name}}" bind:click="toSelectCustomerSource" haveArrow="{{true}}" placeholder="点击选择" requiredAfter required valueAlign="right" labelWidth="var(--fontSize140)">
</gl-cell>
<gl-cell border label="性别" valueAlign="right" labelWidth="var(--fontSize140)">
<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" wx:if="{{ !phoneShow }}">
<gl-cell border valueAlign="right" label="手机号" requiredAfter labelWidth="var(--fontSize140)" required>
<input placeholder="点击输入" class="input" type="number" maxlength="11" placeholder-class="placeholder-class" value="{{ orderObj.customer.customerPhone }}" bindinput="input" bindblur="phoneBlur" 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="var(--fontSize140)" 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 wx:if="{{ orderObj.selectPayType !=0 }}" required="{{ filter.isIncludesItem(requiredList ,'standNo') }}" border iconSrc="{{ scanIcon }}" bindtitleClick="navOcr" valueAlign="right" label="车架号( VIN )" requiredAfter data-type="standNo" labelWidth="var(--fontSize280)">
<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 wx:if="{{ orderObj.selectPayType !=0 }}" required="{{ filter.isIncludesItem(requiredList ,'plateNumber') }}" border valueAlign="right" iconSrc="{{ scanIcon }}" bindtitleClick="navOcr" data-type="plateNumber" label="车牌号" requiredAfter labelWidth="var(--fontSize240)">
<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 wx:if="{{ orderObj.selectPayType !=0 }}" border label="是否体验" valueAlign="right" labelWidth="var(--fontSize140)">
<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>
</view>
<view class="box">
<block wx:if="{{ orderObj.merchantId }}">
<gl-cell border valueAlign="right" label="精品礼券" labelWidth="var(--fontSize140)" haveArrow requiredAfter required value="{{ (orderObj.couponName || '') + (orderObj.customerCouponCode || '') }}" placeholder="点击选择" bindclick="showPopup" data-show-name="couponBox" disabled="{{ orderObj.orderSource == 5 }}" />
<view class="goods_box">
<view class="label">请选择产品<text class='required'>*</text></view>
<gl-cell border valueAlign="right" label="购买商品" labelWidth="var(--fontSize140)" haveArrow placeholder="点击选择" bindclick="showPopup" data-show-name="goodsBox" data-type="4" />
<block wx:if="{{ goodsList.length > 0 }}">
<view class="goods-box">
<block wx:for="{{ goodsList }}" wx:key="index">
<view class="goods">
<view class="name_box">
<view class="name text-hide">
{{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || filter.replaceItemText(item.goodsInfo.goodsName)}}
</view>
</view>
<view class="bottom_box">
<!-- merchantGoodsPosition商品列表部位字段 upgradeGoodsPosition订单详情部位字段 -->
<view class="position" wx:if="{{(item.merchantGoodsPosition || item.upgradeGoodsPosition) && (item.goodsInfo.goodsType == 1 || item.upgradeGoodsType == 1)}}">{{filter.formatPosition((item.merchantGoodsPosition || item.upgradeGoodsPosition), positionTypeList)}}</view>
<view class="position red_text" wx:if="{{(item.goodsInfo.goodsType == 1 || item.upgradeGoodsType == 1) && !item.merchantGoodsPosition && !item.upgradeGoodsPosition}}">无部位属性</view>
<view class="position" wx:else>{{item.goodsInfo.goodsTypeName || item.upgradeGoodsTypeName}}</view>
<view class="price_count">
<view class="price">
<text>¥</text>
<input type="digit" value="{{item.price}}" bindinput="changePrice" disabled="{{orderObj.selectPayType ==0}}" data-item="{{item}}" bindblur="priceBlur" data-index="{{index}}" class="{{item.price < 0 && (orderObj.selectPayType !=0) ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':''}}" always-embed />
</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox">
x{{item.count}}
</view>
</view>
</view>
<view class="icon" bindtap="delGoodsList" data-index="{{index}}">
<image src="../../images/del.png" />
</view>
</view>
</block>
<view class="total-box">
<view>总价</view>
<view class="total">¥{{total || 0}}</view>
</view>
</view>
</block>
</view>
</block>
<gl-cell border label="支付方式" valueAlign="right" wx:if="{{ !isErrorOrder && orderObj.selectPayType != 0 }}" labelWidth="var(--fontSize152)">
<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>
<gl-cell border label="支付方式" valueAlign="right" labelStyle="margin-top:-40px" wx:if="{{ isErrorOrder }}" cellHeight="{{ false }}" labelWidth="var(--fontSize152)">
<view class="payType-box">
<block wx:for="{{ payTypeList }}" wx:key="index">
<!-- bindtap="changePayType" -->
<view class="item text-center {{ item.value==2?'active':''}} {{item.value != 2?'disabled':'' }}" data-item="{{ item }}" data-index="{{ index }}">
<image class="wxPayIcon" src="{{ item.imgurl }}" wx:if="{{ item.imgurl }}" />
{{item.name}}
<view class="active-icon">
<image src="../../images/active.png" />
</view>
</view>
</block>
</view>
</gl-cell>
</view>
<view class="box">
<view class="remark_box">
<view class="label">订单备注</view>
<view class="textArea_box">
<textarea value="{{orderObj.remark}}" placeholder="请输入" placeholder-style="color: #BEC1C7;" class="textarea" maxlength="100" bindinput="remarkInput" />
<view class="currentWordNumber">{{currentWordNumber || 0}} / 100</view>
</view>
</view>
</view>
</view>
<view class="btns {{ isFullSucreen?'isFullSucreen-btn':'' }}">
<tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" />
<view class="btns-con">
<view class="save text-center {{ isErrorOrder || isAlreadyExistOrder ?'disabled':'' }}" bindtap="submit" data-save>建档</view>
<view class="confirm text-center" bindtap="submit">直接下单</view>
</view>
</view>
</block>
<merchant-seles show="{{ salesmanBox }}" isDefault="{{ isDefault }}" title="选择园区店" sub-title="选择转化人员" userInfo="{{ userInfo }}" type="2" scene="1" />
<merchant-seles show="{{ selesBox }}" title="选择合作门店" orderObj="{{ orderObj }}" sub-title="选择销售顾问" userInfo="{{ userInfo }}" singleSeller="{{true}}" type="1" scene="1" />
<car-brands show="{{ carBrandBox }}" bindconfirm="chooseCar" carSeriesId="{{ orderObj.customer.carSeriesId || '' }}" merchantId="{{ orderObj.merchantId || undefined }}" />
<remark-popup wx:if="{{ showRemark }}" show="{{ showRemark }}" bindconfirm="remarkConfirm" placeholder="请填写内容,最多100个字" maxlength="100" value="{{ orderObj.remark }}" />
<coupon id="coupon" show="{{ couponBox }}" class="coupon" bindconfirm="chooseCoupon" merchantId="{{ orderObj.merchantId }}" customerPhone="{{ orderObj.customer.customerPhone }}" yqMerchantId="{{ orderObj.sellerMerchantId }}" selectPayType="{{orderObj.selectPayType}}" returnFun="{{ returnFun }}" filmOrder="1" />
<goods show="{{ goodsBox }}" bindconfirm="chooseGoods" goodsData="{{ goodsData }}" chooseGoodsList="{{ goodsList }}" />
<customerInfo show="{{ customerInfoBox }}" bindconfirm="chooseCustomerInfo" />
<sub-shop-merchant show="{{ subShopMerchantBox }}" title="选择二级流量方" selectedSelesMerchantId="{{ orderObj.merchantId }}" selectedCustomerInfo="{{ orderObj.customer.customerId }}" selectedSubShopMerchantId="{{ orderObj.subShopMerchantId }}" />
<van-popup show="{{ showSource }}" position="bottom" bind:close="onCloseSource">
<van-picker show-toolbar title="客户来源" bind:cancel="onCloseSource" columns="{{ Sourcecolumns }}" value-key="name" bind:confirm="onChangeSource" />
</van-popup>