客户信息,订单信息,贷款信息修改
This commit is contained in:
@@ -117,6 +117,7 @@
|
||||
.line-height-20{line-height:2;}
|
||||
.rich-text-img{display:bolck;max-width:100% !important;height:auto !important;margin:40rpx 0 20rpx 0 !important;}
|
||||
|
||||
.height-80{height:80rpx;box-sizing:border-box;}
|
||||
.height-90{height:90rpx;box-sizing:border-box;}
|
||||
.height-100{height:100rpx;box-sizing:border-box;}
|
||||
.height-120{height:120rpx;box-sizing:border-box;}
|
||||
|
||||
Vendored
+7
-3
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
||||
const env = "p";
|
||||
const env = "d";
|
||||
|
||||
const version = 1,
|
||||
|
||||
@@ -131,7 +131,9 @@ api = {
|
||||
|
||||
appCustomersOffline_sources:'app/customers/offline_sources', //线索来源
|
||||
appCustomersTag:'app/customers/tag', //客户标签
|
||||
|
||||
|
||||
appCityOncard:'app/city/oncard', //获取上牌城市
|
||||
appFinanceNums:'app/finance/nums', //获取金融分期期数
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -818,4 +818,19 @@ apiQuery.putAppLoan = function (params) {
|
||||
})
|
||||
}
|
||||
|
||||
//获取上牌城市
|
||||
apiQuery.getAppCityOncard = function (params) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
HttpRequest(false, Config.api.appCityOncard, 2, params, "GET", resolve, reject)
|
||||
})
|
||||
}
|
||||
|
||||
//获取金融分期期数
|
||||
apiQuery.getAppFinanceNums = function (params) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
HttpRequest(false, Config.api.appFinanceNums, 2, params, "GET", resolve, reject)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export default apiQuery;
|
||||
@@ -5,11 +5,11 @@ let interval = null
|
||||
Page({
|
||||
data: {
|
||||
imgUrl:_.config.imgUrl,
|
||||
tabid:0,
|
||||
tabid:2,
|
||||
tab:[
|
||||
{"id":0,"title":"详细信息"},
|
||||
// {"id":0,"title":"详细信息"},
|
||||
{"id":2,"title":"客户画像"},
|
||||
{"id":1,"title":"跟进记录"},
|
||||
{"id":2,"title":"智能标签"}
|
||||
],
|
||||
logslist: [],//日志列表
|
||||
pageNo: 1,
|
||||
@@ -321,16 +321,19 @@ Page({
|
||||
//选择状态
|
||||
radioPicker(e){
|
||||
if(e.currentTarget.dataset.key != this.data.statuskey){
|
||||
if(e.currentTarget.dataset.key == 2 &&this.data.detailinfo.status==0){
|
||||
wx.showToast({
|
||||
title: '请先将客户变更为到店客户',
|
||||
icon: 'none'
|
||||
})
|
||||
}else{
|
||||
this.setData({
|
||||
statuskey:e.currentTarget.dataset.key,
|
||||
})
|
||||
}
|
||||
// if(e.currentTarget.dataset.key == 2 &&this.data.detailinfo.status==0){
|
||||
// wx.showToast({
|
||||
// title: '请先将客户变更为到店客户',
|
||||
// icon: 'none'
|
||||
// })
|
||||
// }else{
|
||||
// this.setData({
|
||||
// statuskey:e.currentTarget.dataset.key,
|
||||
// })
|
||||
// }
|
||||
this.setData({
|
||||
statuskey:e.currentTarget.dataset.key,
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
<view class="container">
|
||||
<view class="inner40 pb0">
|
||||
<view class="inner40 relative ulib-r10 box-shadow-000-10-10 mb30 overflowhidden">
|
||||
<view class="absolute top-0 left-0 width-25 mt40 pt5 pb5 bg-36afa2 line-height-13 font-22 color-fff">{{detailinfo.tip}}</view>
|
||||
<view class="absolute top-0 left-0 ml40 bg-36afa2 pl10 pr10 font-22 color-fff" wx:if="{{detailinfo.tip}}">{{detailinfo.tip}}</view>
|
||||
<view class="relative pr180">
|
||||
<view class="font-32">
|
||||
<text>{{detailinfo.name}}</text>
|
||||
<text class="font-26 color-666">({{detailinfo.mobile}})</text>
|
||||
<view class="font-28">
|
||||
<text>{{detailinfo.name}}<text class="ml10 font-22 color-666">编号:{{detailinfo.id}}</text></text>
|
||||
<text class="text-middle iconfont icon-weixin1 ml10 color-00c800" wx:if="{{detailinfo.is_weChat}}"></text>
|
||||
<text class="iconfont icon-xingxing ml10 {{detailinfo.is_top==1?'color-f9394d':'color-ccc'}}" catchtap="optTop" data-index="{{index}}"></text>
|
||||
</view>
|
||||
<view class="text-nowrap">
|
||||
<view class="mt10 text-nowrap font-28">
|
||||
<text>{{detailinfo.mobile}}</text>
|
||||
</view>
|
||||
<!-- <view class="text-nowrap">
|
||||
<text class="mr15 font-22 color-666">编号:{{detailinfo.id}}</text>
|
||||
<block wx:for="{{detailinfo.tags}}" wx:for-index='i' wx:for-item='tag' wx:key='i'>
|
||||
<text class="inline-block mr10 pl10 pr10 bg-666 font-18 color-fff ulib-r750" wx:if="{{i<4}}">{{tag}}</text>
|
||||
@@ -17,8 +19,8 @@
|
||||
<block wx:if="{{detailinfo.tags.length>4}}">
|
||||
...
|
||||
</block>
|
||||
</view>
|
||||
<view class="absolute right-0 box-middle">
|
||||
</view> -->
|
||||
<view class="absolute right-0 box-middle text-center">
|
||||
<view class="inline-block relative img-55x55 bg-333 font-28 color-fff mr30 ulib-r750" catchtap="showMessage" data-id="{{detailinfo.id}}">
|
||||
<i class="absolute box-center-middle iconfont icon-duanxinguanli"></i>
|
||||
</view>
|
||||
@@ -36,72 +38,15 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="pl30 pr30">
|
||||
<view class="fn-flex font-32 color-666 text-center">
|
||||
<view class="fn-flex pl50 pr50 font-32 color-666 text-center">
|
||||
<block wx:for='{{tab}}' wx:key='list'>
|
||||
<view class="fn-flex-item pl20 pr20 tabmenu2 {{tabid == item.id?'active color-36afa2':''}}" data-index="{{index}}" bindtap="changeTab">
|
||||
<view class="relative">{{item.title}}</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="mt30 pl10 pr10 pb200" wx:if="{{tabid == tab[0].id}}">
|
||||
<!-- <view class="font-22">
|
||||
<i class="iconfont icon-fenqi mr10"></i>
|
||||
<text>分期信息</text>
|
||||
</view> -->
|
||||
<view class="text-right">
|
||||
<button bindtap="pushLink" data-url="/pages/customer/editCard/index?id={{id}}" class="inline-block btn-36afa2 font-22 color-fff ulib-r10" hover-class="btn-36afa2-hover"><i class="iconfont icon-dengji mr10"></i>修改</button>
|
||||
</view>
|
||||
<view>
|
||||
<view class="relative bbs-1-eb last-b-none pl140 font-28">
|
||||
<view class="absolute left-0 box-middle">客户姓名</view>
|
||||
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx">
|
||||
{{name}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="relative bbs-1-eb last-b-none pl140 font-28">
|
||||
<view class="absolute left-0 box-middle">手机号码</view>
|
||||
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx">
|
||||
{{mobile}}
|
||||
</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">
|
||||
{{brandArray[brandIndex]}}
|
||||
</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">
|
||||
{{modelArray[modelIndex]}}
|
||||
</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">
|
||||
{{levelArray[levelIndex]}}
|
||||
</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">
|
||||
{{colorArray[colorIndex]}}
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="relative bbs-1-eb last-b-none pl140 font-28" wx:if="{{baseinfo.of_id.value}}">
|
||||
<view class="absolute left-0 box-middle">线索来源</view>
|
||||
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx">{{baseinfo.of_id.value}}</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">
|
||||
{{buy_time}}天
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<view class="mt30 pb150" wx:elif="{{tabid == tab[1].id}}">
|
||||
<view class="mt30 pb150" wx:if="{{tabid == 1}}">
|
||||
<view class="fn-flex text-center">
|
||||
<block wx:for="{{statistics}}" wx:key='index'>
|
||||
<view class="fn-flex-item ml15 mr15 pt20 pb20 bg-f3f6fc ulib-r10" style="background-color:{{item.color}}">
|
||||
@@ -157,20 +102,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="mt10 pl50 pr30 pb200" wx:elif="{{tabid == tab[2].id}}">
|
||||
<view class="relative">
|
||||
<view class="absolute left-0 box-middle font-28">客户级别</view>
|
||||
<view class="pl150" wx:if="{{detailinfo.tags.length>0}}">
|
||||
<block wx:for="{{detailinfo.tags}}" wx:for-index='i' wx:for-item='tag' wx:key='i'>
|
||||
<text class="inline-block space-nowrap mt5 mb5 mr10 pt10 pb10 pl20 pr20 font-22 ulib-r10 bg-f3f6fc">{{tag}}</text>
|
||||
</block>
|
||||
</view>
|
||||
<!-- <block wx:for='{{taglList}}' wx:for-item='list' wx:for-index='i' wx:key='i'>
|
||||
<block wx:for='{{list.list}}' wx:for-item='option' wx:for-index='j' wx:key='j'>
|
||||
<text class="inline-block space-nowrap mt20 mr20 pt15 pb15 pl30 pr30 font-22 ulib-r10 bg-f3f6fc" wx:if="{{option.checked}}">{{option.name}}</text>
|
||||
</block>
|
||||
</block> -->
|
||||
</view>
|
||||
<view class="mt30 pl50 pr30 pb200" wx:elif="{{tabid == 2}}">
|
||||
<block wx:for='{{taglList}}' wx:for-item='list' wx:for-index='i' wx:key='i'>
|
||||
<view class="relative mt20" wx:if="{{list.have}}">
|
||||
<view class="absolute left-0 box-middle font-28">{{list.name}}</view>
|
||||
@@ -184,15 +116,32 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="fixed left-0 bottom-0 right-0 bg-fff-op80 pl40 pr40 pt20 pb40 z-index-1">
|
||||
<view class="fn-flex" wx:if="{{optDefeat}}">
|
||||
<view class="fixed left-0 bottom-0 right-0 bg-fff-op90 pl40 pr40 pt20 pb40 z-index-1">
|
||||
<!-- <view>
|
||||
<button bindtap="pushLink" data-url="/pages/customer/editCard/index?id={{id}}" class="inline-block btn-36afa2 font-22 color-fff ulib-r10" hover-class="btn-36afa2-hover"></button>
|
||||
</view> -->
|
||||
<view class="fn-flex text-center">
|
||||
<view class="fn-flex-item flexsize3 pt10 color-36afa2" bindtap="pushLink" data-url="/pages/customer/editCard/index?id={{id}}">
|
||||
<i class="iconfont icon-bianjiwenjian font-36"></i>
|
||||
<view class="font-22">修改信息</view>
|
||||
</view>
|
||||
<block wx:if="{{optDefeat}}">
|
||||
<view class="fn-flex-item flexsize4 pt20 pb20 bds-2-36afa2 bg-fff font-32 color-36afa2 ulib-rl750" bindtap="putAppCustomersDefeats" data-type="0">战败</view>
|
||||
<view class="fn-flex-item flexsize4 pt20 pb20 btn-36afa2 font-32 color-fff ulib-rr750" bindtap="putAppCustomersDefeats" data-type="1">再战</view>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<view class="fn-flex-item flexsize4 pt20 pb20 bds-2-36afa2 bg-fff font-32 color-36afa2 ulib-rl750" bindtap="optShowNote">跟进记录</view>
|
||||
<view class="fn-flex-item flexsize4 pt20 pb20 btn-36afa2 font-32 color-fff ulib-rr750" bindtap="showSelectStatus">变更状态</view>
|
||||
</block>
|
||||
</view>
|
||||
<!-- <view class="fn-flex" wx:if="{{optDefeat}}">
|
||||
<button class="fn-flex-item bds-2-36afa2 bg-fff mr20 pt10 pb10 text-center font-32 color-36afa2 ulib-r750" bindtap="putAppCustomersDefeats" data-type="0">战败</button>
|
||||
<button class="fn-flex-item btn-36afa2 ml20 pt10 pb10 text-center font-32 color-fff ulib-r750" bindtap="putAppCustomersDefeats" data-type="1">再战</button>
|
||||
</view>
|
||||
<view class="fn-flex" wx:else>
|
||||
<button class="fn-flex-item bds-2-36afa2 bg-fff mr20 pt10 pb10 text-center font-32 color-36afa2 ulib-r750" bindtap="optShowNote"><i class="iconfont icon-xiaoji mr10"></i>小记</button>
|
||||
<button class="fn-flex-item btn-36afa2 ml20 pt10 pb10 text-center font-32 color-fff ulib-r750" bindtap="showSelectStatus">变更状态</button>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
+14
-26
@@ -193,38 +193,26 @@
|
||||
</picker>
|
||||
</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="relative bbs-1-eb last-b-none pl140 font-28">
|
||||
<view class="absolute left-0 box-middle">客户来源</view>
|
||||
<view class="pt25 pb25 text-right font-28 color-666">
|
||||
<picker bindchange="changeCfrom" value="{{cfromIndex}}" range="{{filter.cfrom}}">
|
||||
<text class="color-ccc" wx:if="{{cfromIndex == -1}}">请选择</text>
|
||||
<text wx:else>{{filter.cfrom[cfromIndex]}}</text>
|
||||
<picker bindchange="changeOf1" value="{{of1Index}}" range="{{of1Arr}}">
|
||||
<text class="color-ccc" wx:if="{{of1Index == -1}}">请选择</text>
|
||||
<text wx:else>{{of1Arr[of1Index]}}</text>
|
||||
<i class="iconfont ml5 icon-gengduo"></i>
|
||||
</picker>
|
||||
</view>
|
||||
</view>
|
||||
<block wx:if="{{cfrom=='自有资源'}}">
|
||||
<view class="relative bbs-1-eb last-b-none pl140 font-28">
|
||||
<view class="absolute left-0 box-middle">线索来源</view>
|
||||
<view class="pt25 pb25 text-right font-28 color-666">
|
||||
<picker bindchange="changeOf1" value="{{of1Index}}" range="{{of1Arr}}">
|
||||
<text class="color-ccc" wx:if="{{of1Index == -1}}">请选择</text>
|
||||
<text wx:else>{{of1Arr[of1Index]}}</text>
|
||||
<i class="iconfont ml5 icon-gengduo"></i>
|
||||
</picker>
|
||||
</view>
|
||||
<view class="relative bbs-1-eb last-b-none pl140 font-28" wx:if="{{of2Arr.length>0}}">
|
||||
<view class="absolute left-0 box-middle">{{sources[of1Index].name}}</view>
|
||||
<view class="pt25 pb25 text-right font-28 color-666">
|
||||
<picker bindchange="changeOf2" value="{{of2Index}}" range="{{of2Arr}}">
|
||||
<text class="color-ccc" wx:if="{{of2Index == -1}}">请选择</text>
|
||||
<text wx:else>{{of2Arr[of2Index]}}</text>
|
||||
<i class="iconfont ml5 icon-gengduo"></i>
|
||||
</picker>
|
||||
</view>
|
||||
<view class="relative bbs-1-eb last-b-none pl140 font-28" wx:if="{{of2Arr.length>0}}">
|
||||
<view class="absolute left-0 box-middle">{{sources[of1Index].name}}</view>
|
||||
<view class="pt25 pb25 text-right font-28 color-666">
|
||||
<picker bindchange="changeOf2" value="{{of2Index}}" range="{{of2Arr}}">
|
||||
<text class="color-ccc" wx:if="{{of2Index == -1}}">请选择</text>
|
||||
<text wx:else>{{of2Arr[of2Index]}}</text>
|
||||
<i class="iconfont ml5 icon-gengduo"></i>
|
||||
</picker>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</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="pt25 pb25 text-right font-28 color-666">
|
||||
|
||||
@@ -53,8 +53,8 @@ Page({
|
||||
list:[
|
||||
// '新增 库存盘点',
|
||||
// '优化 客户建卡',
|
||||
'新增版本更新说明',
|
||||
'修复订单详情中销售顾问显示错误的问题',
|
||||
'去掉客户详情中变更到订单客户需要先变更为到店客户的限制',
|
||||
//'修复订单详情中销售顾问显示错误的问题',
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
@@ -62,6 +62,21 @@ Page({
|
||||
this.getAppDelivery()
|
||||
}
|
||||
|
||||
//匹配上牌城市
|
||||
if(!!res.data.c_city_id){
|
||||
_.apiQuery.getAppCityOncard().then(res1 => {
|
||||
if(res1.data.list.length>0){
|
||||
res1.data.list.forEach((item,index) => {
|
||||
if(item.city_id == res.data.c_city_id){
|
||||
this.setData({
|
||||
c_city_name:item.name,
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
wx.stopPullDownRefresh()
|
||||
|
||||
})
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
</view>
|
||||
<view class="relative bbs-1-eb pl140 font-28">
|
||||
<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">{{info.address}}</view>
|
||||
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx"><block wx:for="{{info.pro}}" wx:key='index'>{{item}} </block>{{info.address}}</view>
|
||||
</view>
|
||||
</block>
|
||||
<block wx:if="{{info.main_type==1}}">
|
||||
@@ -51,6 +51,10 @@
|
||||
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx">{{info.credit}}</view>
|
||||
</view>
|
||||
</block>
|
||||
<view class="relative bbs-1-eb pl140 font-28" wx:if="{{c_city_name}}">
|
||||
<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">{{c_city_name}}</view>
|
||||
</view>
|
||||
<view class="mt40 fn-clear">
|
||||
<view class="fn-fl pt10 font-32">订单信息</view>
|
||||
<view class="fn-fr" wx:if="{{info.edit_status==1}}">
|
||||
|
||||
@@ -9,6 +9,12 @@ Page({
|
||||
|
||||
price_loan:'',//贷款金额
|
||||
submitFlag:false,
|
||||
|
||||
isShowConfirm:false,//是否显示确认弹框
|
||||
nums:[],//金融分期期数列表
|
||||
numIndex:-1,//分期期数索引
|
||||
num:'',//分期期数
|
||||
|
||||
},
|
||||
onLoad: function (options) {
|
||||
for (let key in options) {
|
||||
@@ -63,6 +69,27 @@ Page({
|
||||
this.getAppFinance()
|
||||
}
|
||||
|
||||
//匹配分期期数
|
||||
if(!!res.data.num){
|
||||
_.apiQuery.getAppFinanceNums().then(res1 => {
|
||||
if(res1.data.list.length>0){
|
||||
res1.data.list.forEach((item,index) => {
|
||||
if(item == res.data.num){
|
||||
this.setData({
|
||||
numIndex:index,
|
||||
})
|
||||
}
|
||||
})
|
||||
this.setData({
|
||||
num:res.data.num,
|
||||
nums:res1.data.list,
|
||||
})
|
||||
}
|
||||
})
|
||||
}else{
|
||||
this.getAppFinanceNums()
|
||||
}
|
||||
|
||||
wx.stopPullDownRefresh()
|
||||
|
||||
})
|
||||
@@ -179,7 +206,7 @@ Page({
|
||||
},
|
||||
|
||||
//修改贷款信息
|
||||
putAppLoan() {
|
||||
putAppLoan1() {
|
||||
if(this.data.finance_id == ''){
|
||||
wx.showToast({
|
||||
title: '请选择金融机构',
|
||||
@@ -192,6 +219,12 @@ Page({
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
else if(!this.data.price_loan||this.data.num == ''){
|
||||
wx.showToast({
|
||||
title: '请选择分期期数',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
else if(!this.data.notify_file_obj.src){
|
||||
wx.showToast({
|
||||
title: '请上传按揭通知函',
|
||||
@@ -199,60 +232,12 @@ Page({
|
||||
})
|
||||
}
|
||||
else{
|
||||
let that = this
|
||||
if(that.data.info.edit_status==1){
|
||||
wx.showModal({
|
||||
title: '确定修改按揭信息?',
|
||||
content: '金融机构:'+that.data.financeArray[that.data.financeIndex]+'\r\n贷款金额:'+that.data.price_loan+' ',
|
||||
confirmColor: "#36afa2",
|
||||
success(resW) {
|
||||
if (resW.confirm) {
|
||||
that.setData({
|
||||
submitFlag: true,
|
||||
})
|
||||
let params = {};
|
||||
params['o_id'] = that.data.id;
|
||||
params['finance_id'] = that.data.finance_id;
|
||||
params['notify_file'] = that.data.notify_file_obj.value;
|
||||
params['price_loan'] = that.data.price_loan;
|
||||
if(that.data.lend_file_obj.value){
|
||||
params['lend_file'] = that.data.lend_file_obj.value;
|
||||
}
|
||||
_.apiQuery.putAppLoan(params).then(res => {
|
||||
|
||||
that.setData({
|
||||
submitFlag: false,
|
||||
})
|
||||
|
||||
//刷新详情页
|
||||
let pages = getCurrentPages();
|
||||
let prevPage = null; //上一个页面
|
||||
if (pages.length >= 2) {
|
||||
prevPage = pages[pages.length - 2]; //上一个页面
|
||||
if(prevPage.route == 'pages/order/detail/index2'){
|
||||
prevPage.onPullDownRefresh()
|
||||
}
|
||||
}
|
||||
wx.showToast({
|
||||
title: '编辑成功',
|
||||
icon: 'success',
|
||||
duration: 2000
|
||||
})
|
||||
setTimeout(function () {
|
||||
wx.navigateBack({
|
||||
delta: 1
|
||||
})
|
||||
}, 500)
|
||||
|
||||
}).catch(res=>{
|
||||
that.setData({
|
||||
submitFlag: false,
|
||||
})
|
||||
});
|
||||
}
|
||||
}
|
||||
if(this.data.info.edit_status==1){
|
||||
this.setData({
|
||||
isShowConfirm:true,
|
||||
})
|
||||
}else{
|
||||
let that = this
|
||||
that.setData({
|
||||
submitFlag: true,
|
||||
})
|
||||
@@ -298,6 +283,57 @@ Page({
|
||||
}
|
||||
},
|
||||
|
||||
//修改贷款信息
|
||||
putAppLoan2() {
|
||||
let that = this
|
||||
that.setData({
|
||||
submitFlag: true,
|
||||
})
|
||||
let params = {};
|
||||
params['o_id'] = that.data.id;
|
||||
params['finance_id'] = that.data.finance_id;
|
||||
params['notify_file'] = that.data.notify_file_obj.value;
|
||||
params['price_loan'] = that.data.price_loan;
|
||||
if(that.data.lend_file_obj.value){
|
||||
params['lend_file'] = that.data.lend_file_obj.value;
|
||||
}
|
||||
if(that.data.num){
|
||||
params['num'] = that.data.num;
|
||||
}
|
||||
_.apiQuery.putAppLoan(params).then(res => {
|
||||
|
||||
that.setData({
|
||||
isShowConfirm: false,
|
||||
submitFlag: false,
|
||||
})
|
||||
|
||||
//刷新详情页
|
||||
let pages = getCurrentPages();
|
||||
let prevPage = null; //上一个页面
|
||||
if (pages.length >= 2) {
|
||||
prevPage = pages[pages.length - 2]; //上一个页面
|
||||
if(prevPage.route == 'pages/order/detail/index2'){
|
||||
prevPage.onPullDownRefresh()
|
||||
}
|
||||
}
|
||||
wx.showToast({
|
||||
title: '编辑成功',
|
||||
icon: 'success',
|
||||
duration: 2000
|
||||
})
|
||||
setTimeout(function () {
|
||||
wx.navigateBack({
|
||||
delta: 1
|
||||
})
|
||||
}, 500)
|
||||
|
||||
}).catch(res=>{
|
||||
that.setData({
|
||||
submitFlag: false,
|
||||
})
|
||||
});
|
||||
},
|
||||
|
||||
//查看图片
|
||||
previewImage: function (e) {
|
||||
wx.previewImage({
|
||||
@@ -306,4 +342,36 @@ Page({
|
||||
})
|
||||
},
|
||||
|
||||
//获取金融分期期数
|
||||
getAppFinanceNums(){
|
||||
_.apiQuery.getAppFinanceNums().then(res => {
|
||||
if(res.data.list.length>0){
|
||||
this.setData({
|
||||
nums:res.data.list,
|
||||
})
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
//选择金融分期期数
|
||||
changeNum(e) {
|
||||
if(this.data.numIndex != e.detail.value && e.detail.value >= 0){
|
||||
let num = ''
|
||||
if(e.detail.value >= 0){
|
||||
num = this.data.nums[e.detail.value]
|
||||
}
|
||||
this.setData({
|
||||
num,
|
||||
numIndex:e.detail.value,
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
//显示隐藏意向金弹框
|
||||
optConfirm(){
|
||||
this.setData({
|
||||
isShowConfirm:!this.data.isShowConfirm,
|
||||
})
|
||||
},
|
||||
|
||||
})
|
||||
@@ -17,6 +17,16 @@
|
||||
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="number" placeholder="请输入贷款金额" model:value='{{price_loan}}' />
|
||||
</view>
|
||||
</view>
|
||||
<view class="relative bbs-1-eb pl190 last-b-none" wx:if="{{nums.length>0}}">
|
||||
<view class="absolute left-0 box-middle font-28 color-333">分期期数<text class="color-f9394d">*</text></view>
|
||||
<view class="pt30 pb30 text-right font-28">
|
||||
<picker bindchange="changeNum" value="{{numIndex}}" range="{{nums}}">
|
||||
<text class="color-ccc" wx:if="{{numIndex == -1}}">请选择</text>
|
||||
<text wx:else>{{nums[numIndex]}}</text>
|
||||
<i class="iconfont ml5 icon-gengduo"></i>
|
||||
</picker>
|
||||
</view>
|
||||
</view>
|
||||
<view class="relative">
|
||||
<view class="mt30 font-28">按揭通知函<text class="color-f9394d">*</text></view>
|
||||
<view class="mt30 text-center">
|
||||
@@ -86,5 +96,27 @@
|
||||
</view>
|
||||
|
||||
<view class="fixed left-0 right-0 bottom-0 bg-fff-op90 inner40 fn-flex safe-pb">
|
||||
<button class="wp100 btn-36afa2 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" disabled="{{submitFlag}}" bindtap="putAppLoan">确认</button>
|
||||
</view>
|
||||
<button class="wp100 btn-36afa2 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" disabled="{{submitFlag}}" bindtap="putAppLoan1">确认</button>
|
||||
</view>
|
||||
|
||||
<!--收起意向金-->
|
||||
<lcb-msg isShow="{{isShowConfirm}}">
|
||||
<view slot="content">
|
||||
<view class="pt50 pl60 pr60 pb40 text-center">
|
||||
<view class="font-36">确定修改按揭信息?</view>
|
||||
<view class="inline-block text-left">
|
||||
<view class="mt20 font-28 color-666">金融机构:{{financeArray[financeIndex]}}</view>
|
||||
<view class="mt20 font-28 color-666">贷款金额:{{price_loan}}</view>
|
||||
<view class="mt20 font-28 color-666">分期期数:{{num}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="pl60 pr60 pb50 text-center font-32 color-666 fn-flex">
|
||||
<view class="fn-flex-item pr15">
|
||||
<view bindtap="optConfirm" class="bds-1-eb pt15 pb15 font-28 color-666 ulib-r750">取消</view>
|
||||
</view>
|
||||
<view class="fn-flex-item pl15">
|
||||
<view bindtap="putAppLoan2" disabled="{{submitFlag}}" class="btn-36afa2 pt15 pb15 font-28 color-fff ulib-r750">确认</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</lcb-msg>
|
||||
@@ -10,6 +10,12 @@ Page({
|
||||
company:'',//企业名称
|
||||
credit:'',//企业信用代码
|
||||
submitFlag:false,
|
||||
|
||||
isShowAddress:false,//是否显示地址弹框
|
||||
region: ['福建省', '', ''],
|
||||
c_city_id:'',
|
||||
oncardArray:[],//上牌城市
|
||||
oncardIndex:-1,//上牌城市索引
|
||||
},
|
||||
onLoad: function (options) {
|
||||
for (let key in options) {
|
||||
@@ -38,8 +44,33 @@ Page({
|
||||
address:res.data.address?res.data.address:'',
|
||||
company:res.data.company?res.data.company:'',
|
||||
credit:res.data.credit?res.data.credit:'',
|
||||
region:res.data.pro?res.data.pro:['福建省', '', ''],
|
||||
})
|
||||
|
||||
//匹配上牌城市
|
||||
if(!!res.data.c_city_id){
|
||||
_.apiQuery.getAppCityOncard().then(res1 => {
|
||||
if(res1.data.list.length>0){
|
||||
let oncardArray = []
|
||||
res1.data.list.forEach((item,index) => {
|
||||
if(item.city_id == res.data.c_city_id){
|
||||
this.setData({
|
||||
oncardIndex:index,
|
||||
})
|
||||
}
|
||||
oncardArray.push(item.name)
|
||||
})
|
||||
this.setData({
|
||||
c_city_id:res.data.c_city_id,
|
||||
oncardArray,
|
||||
oncardList:res1.data.list,
|
||||
})
|
||||
}
|
||||
})
|
||||
}else{
|
||||
this.getAppCityOncard()
|
||||
}
|
||||
|
||||
wx.stopPullDownRefresh()
|
||||
|
||||
})
|
||||
@@ -65,7 +96,7 @@ Page({
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
else if(this.data.main_type == 0&&this.data.address == ''){
|
||||
else if(this.data.main_type == 0&&(this.data.region[2]== ''||this.data.address == '')){
|
||||
wx.showToast({
|
||||
title: '请填写车主地址',
|
||||
icon: 'none'
|
||||
@@ -83,6 +114,12 @@ Page({
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
else if(this.data.c_city_id == ''){
|
||||
wx.showToast({
|
||||
title: '请选择上牌城市',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
else{
|
||||
let that = this
|
||||
that.setData({
|
||||
@@ -90,6 +127,11 @@ Page({
|
||||
})
|
||||
let params = {};
|
||||
params['id'] = this.data.id;
|
||||
params['c_city_id'] = that.data.c_city_id;
|
||||
if(that.data.address != ''){
|
||||
params['pro'] = that.data.region;
|
||||
params['address'] = that.data.address;
|
||||
}
|
||||
if(that.data.owner_name != ''){
|
||||
params['owner_name'] = that.data.owner_name;
|
||||
}
|
||||
@@ -99,15 +141,13 @@ Page({
|
||||
if(that.data.owner_cardid != ''){
|
||||
params['owner_cardid'] = that.data.owner_cardid;
|
||||
}
|
||||
if(that.data.address != ''){
|
||||
params['address'] = that.data.address;
|
||||
}
|
||||
if(that.data.company != ''){
|
||||
params['company'] = that.data.company;
|
||||
}
|
||||
if(that.data.credit != ''){
|
||||
params['credit'] = that.data.credit;
|
||||
}
|
||||
|
||||
_.apiQuery.putAppCusorderV2Info(params).then(res => {
|
||||
|
||||
//刷新详情页
|
||||
@@ -145,4 +185,44 @@ Page({
|
||||
}
|
||||
},
|
||||
|
||||
//获取上牌城市
|
||||
getAppCityOncard(){
|
||||
_.apiQuery.getAppCityOncard().then(res => {
|
||||
if(res.data.list.length>0){
|
||||
let oncardArray = []
|
||||
res.data.list.forEach(item => {
|
||||
oncardArray.push(item.name)
|
||||
})
|
||||
this.setData({
|
||||
oncardArray,
|
||||
oncardList:res.data.list,
|
||||
})
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
//选择城市
|
||||
bindRegionChange(e) {
|
||||
this.setData({
|
||||
region: e.detail.value
|
||||
})
|
||||
},
|
||||
|
||||
//显示隐藏修改地址
|
||||
optAddress(){
|
||||
this.setData({
|
||||
isShowAddress:!this.data.isShowAddress,
|
||||
})
|
||||
},
|
||||
|
||||
//选择上牌城市
|
||||
changeOncard(e) {
|
||||
if(this.data.oncardIndex != e.detail.value && e.detail.value >= 0){
|
||||
this.setData({
|
||||
c_city_id:this.data.oncardList[e.detail.value].city_id,
|
||||
oncardIndex:e.detail.value,
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
})
|
||||
@@ -5,25 +5,26 @@
|
||||
<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='{{owner_name}}' disabled='{{isShowSelectCustomer||isShowRemarks?true:false}}' />
|
||||
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="text" placeholder="请输入客户姓名" model:value='{{owner_name}}' disabled='{{isShowAddress?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="number" placeholder="请输入客户手机号码" model:value='{{owner_mobile}}' disabled='{{isShowSelectCustomer||isShowRemarks?true:false}}' />
|
||||
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="number" placeholder="请输入客户手机号码" model:value='{{owner_mobile}}' disabled='{{isShowAddress?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="idcard" placeholder="请输入客户身份证" model:value='{{owner_cardid}}' disabled='{{isShowSelectCustomer||isShowRemarks?true:false}}' />
|
||||
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="idcard" placeholder="请输入客户身份证" model:value='{{owner_cardid}}' disabled='{{isShowAddress?true:false}}' />
|
||||
</view>
|
||||
</view>
|
||||
<view class="relative bbs-1-eb last-b-none pl180 font-28">
|
||||
<view class="relative bbs-1-eb last-b-none pl180 font-28" bindtap="optAddress">
|
||||
<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 class="pt30 pb30 text-right font-28 text-break" wx:if="{{address}}"><block wx:for="{{region}}" wx:key='index'>{{item}} </block>{{address}}</view>
|
||||
<view wx:else class="pt30 pb30 text-right font-28 color-ccc">
|
||||
请编辑车主地址
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
@@ -32,16 +33,26 @@
|
||||
<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='{{company}}' disabled='{{isShowSelectCustomer||isShowRemarks?true:false}}' />
|
||||
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="text" placeholder="请输入企业名称" model:value='{{company}}' disabled='{{isShowAddress?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='{{credit}}' disabled='{{isShowSelectCustomer||isShowRemarks?true:false}}' />
|
||||
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="text" placeholder="请输入企业信用代号" model:value='{{credit}}' disabled='{{isShowAddress?true:false}}' />
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<view class="relative bbs-1-eb pl190 last-b-none">
|
||||
<view class="absolute left-0 box-middle font-28 color-333">上牌城市<text class="color-f9394d">*</text></view>
|
||||
<view class="pt30 pb30 text-right font-28 color-666">
|
||||
<picker bindchange="changeOncard" value="{{oncardIndex}}" range="{{oncardArray}}">
|
||||
<text class="color-ccc" wx:if="{{oncardIndex == -1}}">请选择</text>
|
||||
<text wx:else>{{oncardArray[oncardIndex]}}</text>
|
||||
<i class="iconfont ml5 icon-gengduo"></i>
|
||||
</picker>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="mt40 font-22 color-666 text-center">
|
||||
<label class="inline-block text-middle statement fn-clear"><checkbox class="fn-fl" value="cb" /><text class="pt3 fn-fl">我已阅读并同意</text></label>
|
||||
@@ -53,4 +64,28 @@
|
||||
|
||||
<view class="fixed left-0 right-0 bottom-0 bg-fff-op90 inner40 fn-flex safe-pb">
|
||||
<button class="wp100 btn-36afa2 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" disabled="{{submitFlag}}" bindtap="putAppCusorderV2Info">确认</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!--车主地址-->
|
||||
<lcb-msg isShow="{{isShowAddress}}">
|
||||
<view slot="content" style="width:650rpx;">
|
||||
<view class="pt50 font-36 text-center">请填写车主地址信息</view>
|
||||
<view class="pt30 pl60 pr60 pb40">
|
||||
<picker class="inner20 bds-1-eb relative font-28 ulib-r10" mode="region" bindchange="bindRegionChange" value="{{region}}">
|
||||
<text>{{region[0]}}</text>
|
||||
<text class="pl10 pr10 color-666">-</text>
|
||||
<text wx:if="{{region[1]}}">{{region[1]}}</text>
|
||||
<text wx:else class="color-ccc">选择城市</text>
|
||||
<text class="pl10 pr10 color-666">-</text>
|
||||
<text wx:if="{{region[2]}}">{{region[2]}}</text>
|
||||
<text wx:else class="color-ccc">选择地区</text>
|
||||
</picker>
|
||||
<view class="mt30 relative">
|
||||
<textarea class="wp100 inner20 bds-1-eb font-28 ulib-r10" style="height:150rpx;" placeholder-class="color-ccc" type="text" placeholder="请输入详细地址" model:value='{{address}}' />
|
||||
</view>
|
||||
</view>
|
||||
<view class="pl60 pr60 pb50 text-center font-32 color-666">
|
||||
<button bindtap="optAddress" class="inline-block wp50 btn-36afa2 font-28 color-fff ulib-r750" hover-class="btn-36afa2-hover">确定</button>
|
||||
</view>
|
||||
</view>
|
||||
</lcb-msg>
|
||||
@@ -75,7 +75,6 @@ Page({
|
||||
isShowcheck:false,//是否显示预览核对弹框
|
||||
checkCount: 2,
|
||||
checktext: '3s',
|
||||
isShowRemarks:false,//意向金备注
|
||||
srv_total:0,//代办费用
|
||||
agencyList:[],//代办数组
|
||||
fine_total:0,//精品费用
|
||||
@@ -94,6 +93,13 @@ Page({
|
||||
|
||||
business_type:0,//0未执行到商务政策 1商务政策执行中 2商务政策成功 3商务政策失败
|
||||
|
||||
isShowIntenMoney:false,//是否显示意向金弹框
|
||||
isShowAddress:false,//是否显示地址弹框
|
||||
region: ['福建省', '', ''],
|
||||
c_city_id:'',
|
||||
oncardArray:[],//上牌城市
|
||||
oncardIndex:-1,//上牌城市索引
|
||||
|
||||
},
|
||||
//生命周期函数--监听页面加载
|
||||
onLoad: function (options) {
|
||||
@@ -106,6 +112,7 @@ Page({
|
||||
this.getAppCustomersList()
|
||||
this.getAppSeriesBrands()
|
||||
this.getUserInfo()
|
||||
this.getAppCityOncard()
|
||||
|
||||
},
|
||||
|
||||
@@ -160,7 +167,7 @@ Page({
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
else if(this.data.main_type == 0&&this.data.address == ''){
|
||||
else if(this.data.main_type == 0&&(this.data.region[2]== ''||this.data.address == '')){
|
||||
wx.showToast({
|
||||
title: '请填写车主地址',
|
||||
icon: 'none'
|
||||
@@ -178,6 +185,12 @@ Page({
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
else if(this.data.c_city_id == ''){
|
||||
wx.showToast({
|
||||
title: '请选择上牌城市',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
else{
|
||||
this.setData({
|
||||
step:2,
|
||||
@@ -313,6 +326,22 @@ Page({
|
||||
wx.stopPullDownRefresh()
|
||||
});
|
||||
},
|
||||
|
||||
//获取上牌城市
|
||||
getAppCityOncard(){
|
||||
_.apiQuery.getAppCityOncard().then(res => {
|
||||
if(res.data.list.length>0){
|
||||
let oncardArray = []
|
||||
res.data.list.forEach(item => {
|
||||
oncardArray.push(item.name)
|
||||
})
|
||||
this.setData({
|
||||
oncardArray,
|
||||
oncardList:res.data.list,
|
||||
})
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
//获取车型品牌
|
||||
getAppSeriesBrands(){
|
||||
@@ -621,7 +650,9 @@ Page({
|
||||
params['cus_id'] = that.data.customer[that.data.customerIndex].id;
|
||||
params['name'] = that.data.name;
|
||||
params['mobile'] = that.data.mobile;
|
||||
params['c_city_id'] = that.data.c_city_id;
|
||||
if(that.data.address != ''){
|
||||
params['pro'] = that.data.region;
|
||||
params['address'] = that.data.address;
|
||||
}
|
||||
if(that.data.cardid != ''){
|
||||
@@ -636,9 +667,6 @@ Page({
|
||||
params['payway'] = that.data.paymentIndex==0?'1':'0';
|
||||
params['delry_time'] = that.data.delry_time;
|
||||
params['business_id'] = that.data.priceinfo.id;
|
||||
if(that.data.inten_money != ''){
|
||||
params['inten_money'] = that.data.inten_money;
|
||||
}
|
||||
if(that.data.owner_name != ''){
|
||||
params['owner_name'] = that.data.owner_name;
|
||||
}
|
||||
@@ -732,13 +760,6 @@ Page({
|
||||
})
|
||||
},
|
||||
|
||||
//显示隐藏意向金备注
|
||||
optShowRemarks(){
|
||||
this.setData({
|
||||
isShowRemarks:!this.data.isShowRemarks,
|
||||
})
|
||||
},
|
||||
|
||||
//选择客户
|
||||
radioPicker(e){
|
||||
if(e.currentTarget.dataset.index != this.data.customerIndex){
|
||||
@@ -771,9 +792,8 @@ Page({
|
||||
this.getAppCustomersList()
|
||||
},
|
||||
|
||||
//收取意向金新建订单
|
||||
postAppCusorderV2Inten() {
|
||||
|
||||
//点击收取意向金
|
||||
createV2Inten() {
|
||||
if (this.data.customerIndex == -1 ) {
|
||||
wx.showToast({
|
||||
title: '请选择客户',
|
||||
@@ -796,12 +816,6 @@ Page({
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
else if(this.data.inten_money == ''){
|
||||
wx.showToast({
|
||||
title: '请输入意向金',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
else if(this.data.main_type == 0&&this.data.owner_name == ''){
|
||||
wx.showToast({
|
||||
title: '请填写车主姓名',
|
||||
@@ -820,7 +834,7 @@ Page({
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
else if(this.data.main_type == 0&&this.data.address == ''){
|
||||
else if(this.data.main_type == 0&&(this.data.region[2]== ''||this.data.address == '')){
|
||||
wx.showToast({
|
||||
title: '请填写车主地址',
|
||||
icon: 'none'
|
||||
@@ -838,7 +852,32 @@ Page({
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
else if(this.data.c_city_id == ''){
|
||||
wx.showToast({
|
||||
title: '请选择上牌城市',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
else{
|
||||
this.setData({
|
||||
isShowIntenMoney:true,
|
||||
})
|
||||
}
|
||||
},
|
||||
//显示隐藏意向金弹框
|
||||
optIntenMoney(){
|
||||
this.setData({
|
||||
isShowIntenMoney:!this.data.isShowIntenMoney,
|
||||
})
|
||||
},
|
||||
//收取意向金新建订单
|
||||
postAppCusorderV2Inten() {
|
||||
if(this.data.inten_money == ''){
|
||||
wx.showToast({
|
||||
title: '请输入意向金',
|
||||
icon: 'none'
|
||||
})
|
||||
}else{
|
||||
let that = this
|
||||
wx.showModal({
|
||||
title: '确定创建订单,收取意向金?',
|
||||
@@ -855,7 +894,9 @@ Page({
|
||||
params['name'] = that.data.name;
|
||||
params['mobile'] = that.data.mobile;
|
||||
params['inten_money'] = that.data.inten_money;
|
||||
params['c_city_id'] = that.data.c_city_id;
|
||||
if(that.data.address != ''){
|
||||
params['pro'] = that.data.region;
|
||||
params['address'] = that.data.address;
|
||||
}
|
||||
if(that.data.cardid != ''){
|
||||
@@ -889,6 +930,7 @@ Page({
|
||||
}
|
||||
|
||||
that.setData({
|
||||
isShowIntenMoney:false,//关闭意向金弹框
|
||||
isShowSuccess:true,//是否显示成功提示
|
||||
details:res.data,
|
||||
})
|
||||
@@ -1143,4 +1185,28 @@ Page({
|
||||
}
|
||||
},
|
||||
|
||||
//选择城市
|
||||
bindRegionChange(e) {
|
||||
this.setData({
|
||||
region: e.detail.value
|
||||
})
|
||||
},
|
||||
|
||||
//显示隐藏修改地址
|
||||
optAddress(){
|
||||
this.setData({
|
||||
isShowAddress:!this.data.isShowAddress,
|
||||
})
|
||||
},
|
||||
|
||||
//选择上牌城市
|
||||
changeOncard(e) {
|
||||
if(this.data.oncardIndex != e.detail.value && e.detail.value >= 0){
|
||||
this.setData({
|
||||
c_city_id:this.data.oncardList[e.detail.value].city_id,
|
||||
oncardIndex:e.detail.value,
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
})
|
||||
@@ -12,14 +12,14 @@
|
||||
|
||||
<view class="pb200">
|
||||
<view wx:if="{{step == 1}}">
|
||||
<view class="mt20 pl40 pr40 pt10 pb10 relative ulib-r10 box-shadow-000-10-10 overflowhidden" bindtap="{{customer.length>0?'showSelectCustomer':''}}">
|
||||
<!-- <view class="mt20 pl40 pr40 pt10 pb10 relative ulib-r10 box-shadow-000-10-10 overflowhidden" bindtap="{{customer.length>0?'showSelectCustomer':''}}">
|
||||
<view class="pt50 pb50 font-28" wx:if="{{customerIndex == -1}}">{{customer.length>0?'请选择客户':'暂无可选客户'}}</view>
|
||||
<view class="pt30 pb30 font-28" wx:else>
|
||||
<view class="font-32">{{customer[customerIndex].name}}</view>
|
||||
<view class="mt5 font-22 color-666">手机号:{{customer[customerIndex].mobile}}</view>
|
||||
</view>
|
||||
<i class="absolute right-0 box-middle iconfont mr30 icon-gengduo font-28 color-666"></i>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="mt40 font-32">购车信息</view>
|
||||
<view class="mt30 pt10 pb10 pl30 pr30 bg-fff ulib-r10 box-shadow-000-10-10">
|
||||
<view class="relative bbs-1-eb pl190 last-b-none">
|
||||
@@ -35,33 +35,31 @@
|
||||
</radio-group>
|
||||
</view>
|
||||
</view>
|
||||
<view class="relative bbs-1-eb last-b-none pl180 font-28" bindtap="{{customer.length>0?'showSelectCustomer':''}}">
|
||||
<view class="absolute left-0 box-middle">{{customer.length>0?'选择客户':'暂无可选客户'}}<text class="color-f9394d">*</text></view>
|
||||
<view class="wp100 height-100 pt30 pr40 text-right font-28">{{customer[customerIndex].name}}</view>
|
||||
<i class="absolute right-0 box-middle iconfont icon-gengduo font-28 color-666"></i>
|
||||
</view>
|
||||
<block wx:if="{{customerIndex != -1}}">
|
||||
<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='{{name}}' disabled='{{isShowSelectCustomer||isShowRemarks?true:false}}' always-embed='{{true}}' />
|
||||
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="text" placeholder="请输入客户姓名" model:value='{{name}}' disabled='{{isShowSelectCustomer||isShowIntenMoney||isShowAddress?true:false}}' always-embed='{{true}}' />
|
||||
</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="number" placeholder="请输入客户手机号码" model:value='{{mobile}}' disabled='{{isShowSelectCustomer||isShowRemarks?true:false}}' always-embed='{{true}}' />
|
||||
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="number" placeholder="请输入客户手机号码" model:value='{{mobile}}' disabled='{{isShowSelectCustomer||isShowIntenMoney||isShowAddress?true:false}}' always-embed='{{true}}' />
|
||||
</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="idcard" placeholder="请输入客户身份证" model:value='{{cardid}}' disabled='{{isShowSelectCustomer||isShowRemarks?true:false}}' always-embed='{{true}}' />
|
||||
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="idcard" placeholder="请输入客户身份证" model:value='{{cardid}}' disabled='{{isShowSelectCustomer||isShowIntenMoney||isShowAddress?true:false}}' always-embed='{{true}}' />
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<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">
|
||||
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="text" placeholder="意向金不超过定金" model:value='{{inten_money}}' disabled='{{isShowSelectCustomer||isShowRemarks?true:false}}' always-embed='{{true}}' />
|
||||
<view class="absolute right-0 box-middle font-28 color-666">元</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<block wx:if="{{main_type==0}}">
|
||||
<view class="mt40 fn-clear">
|
||||
@@ -74,25 +72,36 @@
|
||||
<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='{{owner_name}}' disabled='{{isShowSelectCustomer||isShowRemarks?true:false}}' always-embed='{{true}}' />
|
||||
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="text" placeholder="请输入车主姓名" model:value='{{owner_name}}' disabled='{{isShowSelectCustomer||isShowIntenMoney||isShowAddress?true:false}}' always-embed='{{true}}' />
|
||||
</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="number" placeholder="请输入车主手机号码" model:value='{{owner_mobile}}' disabled='{{isShowSelectCustomer||isShowRemarks?true:false}}' always-embed='{{true}}' />
|
||||
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="number" placeholder="请输入车主手机号码" model:value='{{owner_mobile}}' disabled='{{isShowSelectCustomer||isShowIntenMoney||isShowAddress?true:false}}' always-embed='{{true}}' />
|
||||
</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="idcard" placeholder="请输入车主身份证" model:value='{{owner_cardid}}' disabled='{{isShowSelectCustomer||isShowRemarks?true:false}}' always-embed='{{true}}' />
|
||||
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="idcard" placeholder="请输入车主身份证" model:value='{{owner_cardid}}' disabled='{{isShowSelectCustomer||isShowIntenMoney||isShowAddress?true:false}}' always-embed='{{true}}' />
|
||||
</view>
|
||||
</view>
|
||||
<view class="relative bbs-1-eb last-b-none pl180 font-28">
|
||||
<view class="relative bbs-1-eb last-b-none pl180 font-28" bindtap="optAddress">
|
||||
<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}}' always-embed='{{true}}' />
|
||||
<view class="pt30 pb30 text-right font-28 text-break" wx:if="{{address}}"><block wx:for="{{region}}" wx:key='index'>{{item}} </block>{{address}}</view>
|
||||
<view wx:else class="pt30 pb30 text-right font-28 color-ccc">
|
||||
请编辑车主地址
|
||||
</view>
|
||||
</view>
|
||||
<view class="relative bbs-1-eb pl190 last-b-none">
|
||||
<view class="absolute left-0 box-middle font-28 color-333">上牌城市<text class="color-f9394d">*</text></view>
|
||||
<view class="pt30 pb30 text-right font-28 color-666">
|
||||
<picker bindchange="changeOncard" value="{{oncardIndex}}" range="{{oncardArray}}">
|
||||
<text class="color-ccc" wx:if="{{oncardIndex == -1}}">请选择</text>
|
||||
<text wx:else>{{oncardArray[oncardIndex]}}</text>
|
||||
<i class="iconfont ml5 icon-gengduo"></i>
|
||||
</picker>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -103,13 +112,23 @@
|
||||
<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='{{company}}' disabled='{{isShowSelectCustomer||isShowRemarks?true:false}}' always-embed='{{true}}' />
|
||||
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="text" placeholder="请输入企业名称" model:value='{{company}}' disabled='{{isShowSelectCustomer||isShowIntenMoney||isShowAddress?true:false}}' always-embed='{{true}}' />
|
||||
</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='{{credit}}' disabled='{{isShowSelectCustomer||isShowRemarks?true:false}}' always-embed='{{true}}' />
|
||||
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="text" placeholder="请输入企业信用代码" model:value='{{credit}}' disabled='{{isShowSelectCustomer||isShowIntenMoney||isShowAddress?true:false}}' always-embed='{{true}}' />
|
||||
</view>
|
||||
</view>
|
||||
<view class="relative bbs-1-eb pl190 last-b-none">
|
||||
<view class="absolute left-0 box-middle font-28 color-333">上牌城市<text class="color-f9394d">*</text></view>
|
||||
<view class="pt30 pb30 text-right font-28 color-666">
|
||||
<picker bindchange="changeOncard" value="{{oncardIndex}}" range="{{oncardArray}}">
|
||||
<text class="color-ccc" wx:if="{{oncardIndex == -1}}">请选择</text>
|
||||
<text wx:else>{{oncardArray[oncardIndex]}}</text>
|
||||
<i class="iconfont ml5 icon-gengduo"></i>
|
||||
</picker>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -309,7 +328,7 @@
|
||||
<view class="fixed left-0 right-0 bottom-0 bg-fff-op90 inner40 fn-flex safe-pb">
|
||||
<block wx:if="{{step==1}}">
|
||||
<block wx:if="{{!isFill}}">
|
||||
<button class="wp100 bds-2-36afa2 bg-fff mr20 pt10 pb10 text-center font-32 color-36afa2 ulib-r750" bindtap="postAppCusorderV2Inten">收取意向金</button>
|
||||
<button class="wp100 bds-2-36afa2 bg-fff mr20 pt10 pb10 text-center font-32 color-36afa2 ulib-r750" bindtap="createV2Inten">收取意向金</button>
|
||||
</block>
|
||||
<button class="wp100 btn-36afa2 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" bindtap="nextstep">下一步</button>
|
||||
</block>
|
||||
@@ -383,7 +402,7 @@
|
||||
</view>
|
||||
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{address}}">
|
||||
<view class="absolute left-0 box-middle">车主地址</view>
|
||||
<view class="pt30 pb30 text-right font-28 color-666">{{address}}</view>
|
||||
<view class="pt30 pb30 text-right font-28 color-666"><block wx:for="{{region}}" wx:key='index'>{{item}} </block>{{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>
|
||||
@@ -397,6 +416,10 @@
|
||||
<text>{{credit}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{c_city_id}}">
|
||||
<view class="absolute left-0 box-middle font-28 color-333">上牌城市</view>
|
||||
<view class="pt30 pb30 text-right font-28 color-666">{{oncardArray[oncardIndex]}}</view>
|
||||
</view>
|
||||
<view class="mt40 font-32">车辆信息</view>
|
||||
<view class="relative bbs-1-eb pl190 last-b-none">
|
||||
<view class="absolute left-0 box-middle font-28 color-333">车辆品牌</view>
|
||||
@@ -439,10 +462,6 @@
|
||||
<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="mr10 color-f9394d">{{priceinfo.price_coplus}}</text>元</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="pt25 pb25 text-right" style="min-height:30rpx"><text class="mr10 color-f9394d">{{inten_money}}</text>元</view>
|
||||
</view>
|
||||
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{priceinfo.sdeposit}}">
|
||||
<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="mr10 color-f9394d">{{priceinfo.sdeposit}}</text>元</view>
|
||||
@@ -532,18 +551,6 @@
|
||||
</view>
|
||||
</lcb-msg>
|
||||
|
||||
<!--意向金备注-->
|
||||
<lcb-msg isShow="{{isShowRemarks}}">
|
||||
<view slot="content">
|
||||
<view class="inner40 pt50 pb50 line-height-16">
|
||||
<view class="font-28 color-666">意向金:旨在客户尚未明确购车决策时(车型、付款方式等),在不需要签订合同的情况下,收取订车费用锁定客户</view>
|
||||
</view>
|
||||
<view class="bts-1-eb text-center font-32 color-666">
|
||||
<view class="pt25 pb25 color-36afa2" bindtap="optShowRemarks">知道了</view>
|
||||
</view>
|
||||
</view>
|
||||
</lcb-msg>
|
||||
|
||||
<!--订单登记成功-->
|
||||
<lcb-msg isShow="{{isShowSuccess}}">
|
||||
<view slot="content">
|
||||
@@ -573,4 +580,49 @@
|
||||
<button bindtap="viewDetails" class="inline-block wp50 btn-36afa2 font-28 color-fff ulib-r750" hover-class="btn-36afa2-hover">查看订单</button>
|
||||
</view>
|
||||
</view>
|
||||
</lcb-msg>
|
||||
|
||||
<!--收起意向金-->
|
||||
<lcb-msg isShow="{{isShowIntenMoney}}">
|
||||
<view slot="content">
|
||||
<view class="pt50 pl60 pr60 pb40">
|
||||
<view class="font-36 text-center">请输入意向金</view>
|
||||
<view class="mt30 relative">
|
||||
<input class="wp100 height-80 pl20 pr20 bds-1-eb font-28 ulib-r10" placeholder-class="color-ccc" type="number" placeholder="意向金不超过定金" model:value='{{inten_money}}' />
|
||||
</view>
|
||||
<view class="mt20 line-height-15 font-22 color-999">意向金:旨在客户尚未明确购车决策时(车型、付款方式等),在不需要签订合同的情况下,收取订车费用锁定客户</view>
|
||||
</view>
|
||||
<view class="pl60 pr60 pb50 text-center font-32 color-666 fn-flex">
|
||||
<view class="fn-flex-item pr15">
|
||||
<view bindtap="optIntenMoney" class="bds-1-eb pt15 pb15 font-28 color-666 ulib-r750">取消</view>
|
||||
</view>
|
||||
<view class="fn-flex-item pl15">
|
||||
<view bindtap="postAppCusorderV2Inten" class="btn-36afa2 pt15 pb15 font-28 color-fff ulib-r750">确认</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</lcb-msg>
|
||||
|
||||
<!--车主地址-->
|
||||
<lcb-msg isShow="{{isShowAddress}}">
|
||||
<view slot="content" style="width:650rpx;">
|
||||
<view class="pt50 font-36 text-center">请填写车主地址信息</view>
|
||||
<view class="pt30 pl60 pr60 pb40">
|
||||
<picker class="inner20 bds-1-eb relative font-28 ulib-r10" mode="region" bindchange="bindRegionChange" value="{{region}}">
|
||||
<text>{{region[0]}}</text>
|
||||
<text class="pl10 pr10 color-666">-</text>
|
||||
<text wx:if="{{region[1]}}">{{region[1]}}</text>
|
||||
<text wx:else class="color-ccc">选择城市</text>
|
||||
<text class="pl10 pr10 color-666">-</text>
|
||||
<text wx:if="{{region[2]}}">{{region[2]}}</text>
|
||||
<text wx:else class="color-ccc">选择地区</text>
|
||||
</picker>
|
||||
<view class="mt30 relative">
|
||||
<textarea class="wp100 inner20 bds-1-eb font-28 ulib-r10" style="height:150rpx;" placeholder-class="color-ccc" type="text" placeholder="请输入详细地址" model:value='{{address}}' />
|
||||
</view>
|
||||
</view>
|
||||
<view class="pl60 pr60 pb50 text-center font-32 color-666">
|
||||
<button bindtap="optAddress" class="inline-block wp50 btn-36afa2 font-28 color-fff ulib-r750" hover-class="btn-36afa2-hover">确定</button>
|
||||
</view>
|
||||
</view>
|
||||
</lcb-msg>
|
||||
Reference in New Issue
Block a user