This commit is contained in:
老叶
2022-01-25 10:27:12 +08:00
parent 77e3241ee4
commit 8b2f95acc4
6 changed files with 108 additions and 92 deletions
+1 -1
View File
@@ -974,7 +974,7 @@ Page({
})
},
//代办相关
//委托代办
changeAgency(e) {
let agencyList = this.data.agencyList
let values = e.detail.value
+33 -29
View File
@@ -133,18 +133,20 @@
</view>
<view class="bbs-1-eb last-b-none">
<view class="relative pl190">
<view class="absolute left-0 box-middle font-28 color-333">代办相关<text class="color-f9394d" wx:if="{{userInfo.biz_type != 3}}">*</text></view>
<view class="absolute left-0 box-middle font-28 color-333">委托代办<text class="color-f9394d" wx:if="{{userInfo.biz_type != 3}}">*</text></view>
<view class="pt30 pb30 text-right font-28 color-666">
当前代办费用:<text class="color-f9394d">{{srv_total}}</text>元
</view>
</view>
<view class="pb10 fn-clear">
<view class="pb10">
<checkbox-group bindchange="changeAgency">
<block wx:for="{{agencyList}}" wx:key='index'>
<label class="fn-fl block mb20 wp31 relative inner30 bg-f6 font-28 ulib-r10 {{(index+1)%3==0?'':'mr20'}}">
<text>{{item.title}}</text>
<checkbox class="absolute right-0 box-middle mr15" value="{{item.id}}" checked="{{item.checked}}"/>
</label>
<view class="mb20 block relative inner30 bg-f6 font-28 ulib-r10 fn-clear">
<label class="fn-fl">
<text class="text-middle">{{item.title}}</text>
<checkbox class="text-middle ml15" value="{{item.id}}" checked="{{item.checked}}"/>
</label>
</view>
</block>
</checkbox-group>
</view>
@@ -153,7 +155,7 @@
<view class="relative pl190">
<view class="absolute left-0 box-middle font-28 color-333">精品选装</view>
<view class="pt30 pb30 text-right font-28 color-666">
<text class="color-f9394d">{{fine_total}}</text>元
价:<text class="color-f9394d">{{fine_total}}</text>元
</view>
</view>
<view class="pb10">
@@ -221,38 +223,40 @@
<view class="absolute left-0 box-middle color-333">车辆平台售价</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="color-f9394d">{{priceinfo.price}}</text>元</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{deposit}}">
<view class="absolute left-0 box-middle color-333">定金</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="color-f9394d">{{deposit}}</text>元</view>
<view class="relative ml40 bbs-1-eb pl140 font-22 color-666" wx:if="{{deposit}}">
<view class="absolute left-0 box-middle"><i class="iconfont ml5 mr10 icon-gengduo"></i>定金</view>
<view class="pt25 pb25 text-right" style="min-height:30rpx"><text class="color-f9394d">{{deposit}}</text>元</view>
</view>
<view class="relative bbs-1-eb pl190 last-b-none" wx:if="{{disc_money != ''}}">
<view class="absolute left-0 box-middle font-28 color-333">车身优惠</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="color-f9394d">{{disc_money}}</text>元</view>
<view class="relative ml40 bbs-1-eb pl140 font-22 color-666" wx:if="{{disc_money != ''}}">
<view class="absolute left-0 box-middle"><i class="iconfont ml5 mr10 icon-gengduo"></i>车身优惠</view>
<view class="pt25 pb25 text-right" style="min-height:30rpx"><text class="color-f9394d">{{disc_money}}</text>元</view>
</view>
<view class="relative bbs-1-eb pl190 last-b-none" wx:if="{{if_fine}}">
<view class="absolute left-0 box-middle font-28 color-333">精品尊享包</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="color-f9394d">{{priceinfo.fine_money}}</text>元</view>
</view>
<view class="relative bbs-1-eb pl190 last-b-none" wx:if="{{disc_fine_money != ''}}">
<view class="absolute left-0 box-middle font-28 color-333">精品优惠</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="color-f9394d">{{disc_fine_money}}</text>元</view>
<view class="relative ml40 bbs-1-eb pl140 font-22 color-666" wx:if="{{disc_fine_money != ''}}">
<view class="absolute left-0 box-middle"><i class="iconfont ml5 mr10 icon-gengduo"></i>精品优惠</view>
<view class="pt25 pb25 text-right" style="min-height:30rpx"><text class="color-f9394d">{{disc_fine_money}}</text>元</view>
</view>
<view class="relative bbs-1-eb pl190 last-b-none">
<view class="absolute left-0 box-middle font-28 color-333">代办相关</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;">
<block wx:for="{{agencyList}}" wx:key='index'>
<text class="pl10" wx:if="{{item.checked}}">{{item.title}}</text>
</block>
<view class="relative bbs-1-eb pt30 pb30 last-b-none">
<view class="font-28 color-333">委托代办</view>
</view>
<block wx:for="{{agencyList}}" wx:key='index'>
<view class="relative ml40 bbs-1-eb pl140 font-22 color-666" wx:if="{{item.checked}}">
<view class="absolute left-0 box-middle"><i class="iconfont ml5 mr10 icon-gengduo"></i>{{item.title}}</view>
<view class="pt25 pb25 text-right" style="min-height:30rpx"><text class="color-f9394d">{{item.sprice}}</text>元</view>
</view>
</block>
<view class="relative bbs-1-eb pt30 pb30 last-b-none">
<view class="font-28 color-333">精品选装</view>
</view>
<view class="relative bbs-1-eb pl190 last-b-none">
<view class="absolute left-0 box-middle font-28 color-333">精品选装</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;">
<block wx:for="{{fines}}" wx:key='index'>
<text class="pl10" wx:if="{{item.txt}}">{{item.txt}}</text>
</block>
<block wx:for="{{fines}}" wx:key='index'>
<view class="relative ml40 bbs-1-eb pl140 font-22 color-666" wx:if="{{item.txt}}">
<view class="absolute left-0 box-middle"><i class="iconfont ml5 mr10 icon-gengduo"></i>{{item.txt}}</view>
<view class="pt25 pb25 text-right" style="min-height:30rpx" wx:if="{{item.price}}"><text class="color-f9394d">{{item.price}}</text>元</view>
</view>
</view>
</block>
<view class="fixed left-0 right-0 bottom-0 bg-fff-op90 inner40 fn-flex safe-pb">
<button class="wp100 bds-2-36afa2 bg-fff mr20 pt10 pb10 text-center font-32 color-36afa2 ulib-r750" hover-class="btn-36afa2-hover" bindtap="optPreview">重新编辑</button>
<button class="wp100 btn-36afa2 ml20 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" disabled="{{submitFlag}}" bindtap="putAppCusorderV2">确认编辑</button>
+8
View File
@@ -6,6 +6,7 @@ Page({
owner_name:'',//车主姓名
owner_mobile:'',//车主手机号
owner_cardid:'',//车主身份证
address:'',//车主地址
company:'',//企业名称
credit:'',//企业信用代码
submitFlag:false,
@@ -34,6 +35,7 @@ Page({
owner_name:res.data.owner_name?res.data.owner_name:'',
owner_mobile:res.data.owner_mobile?res.data.owner_mobile:'',
owner_cardid:res.data.owner_cardid?res.data.owner_cardid:'',
address:res.data.address?res.data.address:'',
company:res.data.company?res.data.company:'',
credit:res.data.credit?res.data.credit:'',
})
@@ -63,6 +65,12 @@ Page({
icon: 'none'
})
}
else if(this.data.main_type == 0&&this.data.address == ''){
wx.showToast({
title: '请填写车主地址',
icon: 'none'
})
}
else if(this.data.main_type == 1&&this.data.company == ''){
wx.showToast({
title: '请填写企业名称',
+6
View File
@@ -20,6 +20,12 @@
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="idcard" placeholder="请输入客户身份证" model:value='{{owner_cardid}}' disabled='{{isShowSelectCustomer||isShowRemarks?true:false}}' />
</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28">
<view class="absolute left-0 box-middle">车主地址<text class="color-f9394d">*</text></view>
<view>
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="text" placeholder="请输入车主地址" model:value='{{address}}' disabled='{{isShowSelectCustomer||isShowRemarks?true:false}}' />
</view>
</view>
</block>
<block wx:if="{{main_type==1}}">
<view class="mt10 pt20 pb20 bg-e3f5f3 font-36 text-center ulib-r10">企业信息</view>
+19 -15
View File
@@ -149,12 +149,6 @@ Page({
icon: 'none'
})
}
else if(this.data.address == ''){
wx.showToast({
title: '请填写联系地址',
icon: 'none'
})
}
else if(this.data.main_type == 0&&this.data.owner_name == ''){
wx.showToast({
title: '请填写车主姓名',
@@ -173,6 +167,12 @@ Page({
icon: 'none'
})
}
else if(this.data.main_type == 0&&this.data.address == ''){
wx.showToast({
title: '请填写车主地址',
icon: 'none'
})
}
else if(this.data.main_type == 1&&this.data.company == ''){
wx.showToast({
title: '请填写企业名称',
@@ -663,7 +663,9 @@ Page({
params['cus_id'] = that.data.customer[that.data.customerIndex].id;
params['name'] = that.data.name;
params['mobile'] = that.data.mobile;
params['address'] = that.data.address;
if(that.data.address != ''){
params['address'] = that.data.address;
}
if(that.data.cardid != ''){
params['cardid'] = that.data.cardid;
}
@@ -837,12 +839,6 @@ Page({
icon: 'none'
})
}
else if(this.data.address == ''){
wx.showToast({
title: '请填写联系地址',
icon: 'none'
})
}
else if(this.data.inten_money == ''){
wx.showToast({
title: '请输入意向金',
@@ -867,6 +863,12 @@ Page({
icon: 'none'
})
}
else if(this.data.main_type == 0&&this.data.address == ''){
wx.showToast({
title: '请填写车主地址',
icon: 'none'
})
}
else if(this.data.main_type == 1&&this.data.company == ''){
wx.showToast({
title: '请填写企业名称',
@@ -895,8 +897,10 @@ Page({
params['cus_id'] = that.data.customer[that.data.customerIndex].id;
params['name'] = that.data.name;
params['mobile'] = that.data.mobile;
params['address'] = that.data.address;
params['inten_money'] = that.data.inten_money;
if(that.data.address != ''){
params['address'] = that.data.address;
}
if(that.data.cardid != ''){
params['cardid'] = that.data.cardid;
}
@@ -943,7 +947,7 @@ Page({
}
},
//代办相关
//委托代办
changeAgency(e) {
let agencyList = this.data.agencyList
let values = e.detail.value
+41 -47
View File
@@ -55,12 +55,6 @@
</view>
</view>
</block>
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{main_type==0}}">
<view class="absolute left-0 box-middle">联系地址<text class="color-f9394d">*</text></view>
<view>
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="text" placeholder="请输入联系地址" model:value='{{address}}' disabled='{{isShowSelectCustomer||isShowRemarks?true:false}}' />
</view>
</view>
<view class="relative bbs-1-eb last-b-none pl320 font-28">
<view class="absolute left-0 box-middle" bindtap="optShowRemarks">意向金<i class="iconfont icon-shuoming ml5 font-30"></i></view>
<view class="relative pr40">
@@ -95,6 +89,12 @@
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="idcard" placeholder="请输入客户身份证" model:value='{{owner_cardid}}' disabled='{{isShowSelectCustomer||isShowRemarks?true:false}}' />
</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{main_type==0}}">
<view class="absolute left-0 box-middle">车主地址<text class="color-f9394d">*</text></view>
<view>
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="text" placeholder="请输入车主地址" model:value='{{address}}' disabled='{{isShowSelectCustomer||isShowRemarks?true:false}}' />
</view>
</view>
</view>
</block>
<block wx:elif="{{main_type==1}}">
@@ -237,7 +237,7 @@
</view>
<view class="bbs-1-eb last-b-none">
<view class="relative pl190">
<view class="absolute left-0 box-middle font-28 color-333">代办相关<text class="color-f9394d" wx:if="{{userInfo.biz_type != 3}}">*</text></view>
<view class="absolute left-0 box-middle font-28 color-333">委托代办<text class="color-f9394d" wx:if="{{userInfo.biz_type != 3}}">*</text></view>
<view class="pt30 pb30 text-right font-28 color-666">
当前代办费用:<text class="color-f9394d">{{srv_total}}</text>元
</view>
@@ -257,7 +257,7 @@
<view class="relative pl190">
<view class="absolute left-0 box-middle font-28 color-333">精品选装</view>
<view class="pt30 pb30 text-right font-28 color-666">
<text class="color-f9394d">{{fine_total}}</text>元
价:<text class="color-f9394d">{{fine_total}}</text>元
</view>
</view>
<view class="pb10">
@@ -303,14 +303,6 @@
<view class="font-32">用户信息</view>
<view class="absolute right-0 box-middle font-22 color-666">销售顾问:<text class="color-36afa2">{{userInfo.uname}}</text></view>
</view>
<view class="relative bbs-1-eb pl190 last-b-none">
<view class="absolute left-0 box-middle font-28 color-333">购车主体</view>
<view class="pt30 pb30 text-right font-28 color-666">
<block wx:for="{{main}}" wx:key='index'>
<text wx:if="{{item.value == main_type}}">{{item.title}}</text>
</block>
</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28">
<view class="absolute left-0 box-middle">客户姓名</view>
<view class="pt30 pb30 text-right font-28 color-666">{{name}}</view>
@@ -323,14 +315,6 @@
<view class="absolute left-0 box-middle">客户身份证</view>
<view class="pt30 pb30 text-right font-28 color-666">{{cardid}}</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28">
<view class="absolute left-0 box-middle">联系地址</view>
<view class="pt30 pb30 text-right font-28 color-666">{{address}}</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{inten_money}}">
<view class="absolute left-0 box-middle color-333">意向金</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="color-f9394d">{{inten_money}}</text>元</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{owner_name}}">
<view class="absolute left-0 box-middle color-333">车主姓名</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;">
@@ -349,6 +333,10 @@
<text>{{owner_cardid}}</text>
</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28">
<view class="absolute left-0 box-middle">车主地址</view>
<view class="pt30 pb30 text-right font-28 color-666">{{address}}</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{company}}">
<view class="absolute left-0 box-middle color-333">企业名称</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;">
@@ -399,38 +387,44 @@
<view class="absolute left-0 box-middle color-333">车辆平台售价</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="color-f9394d">{{priceinfo.price}}</text>元</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{deposit}}">
<view class="absolute left-0 box-middle color-333">定金</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="color-f9394d">{{deposit}}</text>元</view>
<view class="relative ml40 bbs-1-eb pl140 font-22 color-666" wx:if="{{inten_money}}">
<view class="absolute left-0 box-middle"><i class="iconfont ml5 mr10 icon-gengduo"></i>意向金</view>
<view class="pt25 pb25 text-right" style="min-height:30rpx"><text class="color-f9394d">{{inten_money}}</text>元</view>
</view>
<view class="relative bbs-1-eb pl190 last-b-none" wx:if="{{disc_money != ''}}">
<view class="absolute left-0 box-middle font-28 color-333">车身优惠</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="color-f9394d">{{disc_money}}</text>元</view>
<view class="relative ml40 bbs-1-eb pl140 font-22 color-666" wx:if="{{deposit}}">
<view class="absolute left-0 box-middle"><i class="iconfont ml5 mr10 icon-gengduo"></i>定金</view>
<view class="pt25 pb25 text-right" style="min-height:30rpx"><text class="color-f9394d">{{deposit}}</text>元</view>
</view>
<view class="relative ml40 bbs-1-eb pl140 font-22 color-666" wx:if="{{disc_money != ''}}">
<view class="absolute left-0 box-middle"><i class="iconfont ml5 mr10 icon-gengduo"></i>车身优惠</view>
<view class="pt25 pb25 text-right" style="min-height:30rpx"><text class="color-f9394d">{{disc_money}}</text>元</view>
</view>
<view class="relative bbs-1-eb pl190 last-b-none" wx:if="{{if_fine}}">
<view class="absolute left-0 box-middle font-28 color-333">精品尊享包</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;">{{priceinfo.fine_money}}元</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="color-f9394d">{{priceinfo.fine_money}}</text>元</view>
</view>
<view class="relative bbs-1-eb pl190 last-b-none" wx:if="{{disc_fine_money != ''}}">
<view class="absolute left-0 box-middle font-28 color-333">精品优惠</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="color-f9394d">{{disc_fine_money}}</text>元</view>
<view class="relative ml40 bbs-1-eb pl140 font-22 color-666" wx:if="{{disc_fine_money != ''}}">
<view class="absolute left-0 box-middle"><i class="iconfont ml5 mr10 icon-gengduo"></i>精品优惠</view>
<view class="pt25 pb25 text-right" style="min-height:30rpx"><text class="color-f9394d">{{disc_fine_money}}</text>元</view>
</view>
<view class="relative bbs-1-eb pl190 last-b-none">
<view class="absolute left-0 box-middle font-28 color-333">代办相关</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;">
<block wx:for="{{agencyList}}" wx:key='index'>
<text class="pl10" wx:if="{{item.checked}}">{{item.title}}</text>
</block>
<view class="relative bbs-1-eb pt30 pb30 last-b-none">
<view class="font-28 color-333">委托代办</view>
</view>
<block wx:for="{{agencyList}}" wx:key='index'>
<view class="relative ml40 bbs-1-eb pl140 font-22 color-666" wx:if="{{item.checked}}">
<view class="absolute left-0 box-middle"><i class="iconfont ml5 mr10 icon-gengduo"></i>{{item.title}}</view>
<view class="pt25 pb25 text-right" style="min-height:30rpx"><text class="color-f9394d">{{item.sprice}}</text>元</view>
</view>
</block>
<view class="relative bbs-1-eb pt30 pb30 last-b-none">
<view class="font-28 color-333">精品选装</view>
</view>
<view class="relative bbs-1-eb pl190 last-b-none">
<view class="absolute left-0 box-middle font-28 color-333">精品选装</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;">
<block wx:for="{{fines}}" wx:key='index'>
<text class="pl10" wx:if="{{item.txt}}">{{item.txt}}</text>
</block>
<block wx:for="{{fines}}" wx:key='index'>
<view class="relative ml40 bbs-1-eb pl140 font-22 color-666" wx:if="{{item.txt}}">
<view class="absolute left-0 box-middle"><i class="iconfont ml5 mr10 icon-gengduo"></i>{{item.txt}}</view>
<view class="pt25 pb25 text-right" style="min-height:30rpx" wx:if="{{item.price}}"><text class="color-f9394d">{{item.price}}</text>元</view>
</view>
</view>
</block>
<view class="fixed left-0 right-0 bottom-0 bg-fff-op90 inner40 fn-flex safe-pb">
<button class="wp100 bds-2-36afa2 bg-fff mr20 pt10 pb10 text-center font-32 color-36afa2 ulib-r750" hover-class="btn-36afa2-hover" bindtap="optPreview">重新编辑</button>
<button class="wp100 btn-36afa2 ml20 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" disabled="{{submitFlag}}" bindtap="postAppCusorderV2">确认登记</button>