Browse Source

业务管理--客户管理(意向车型新增、编辑和详情回显、编辑保存)

master
Zhao Qiqi 3 years ago
parent
commit
515dca6dc3
  1. 4
      anrui-buscenter/anrui-buscenter-ui/src/api/jichuxinxi/crmvehicle.js
  2. 205
      anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/cheliangxuqiu/cheliangxuqiuAdd.vue
  3. 25
      anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/cheliangxuqiu/cheliangxuqiuinfo.vue

4
anrui-buscenter/anrui-buscenter-ui/src/api/jichuxinxi/crmvehicle.js

@ -25,7 +25,7 @@ export function listPageByVehmodel(data) {
})
}
// 添加 -- 修改
// 车辆需求 添加 -- 修改
export function saveOrUpdatePcCrmVehicleInfo(data) {
return request({
url: '/crm/v1/crmvehicledemand/save',
@ -43,7 +43,7 @@ export function UpdatePcCrmVehicleInfo(data) {
return request({
// url: '/crm/v1/crmvehicledemand/update/' + data.sid, // 旧
url: '/crm/v1/crmvehicledemand/saveVisitDemands',
method: 'post',
method: 'put',
data: data,
headers: {
'Content-Type': 'application/json'

205
anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/cheliangxuqiu/cheliangxuqiuAdd.vue

@ -24,10 +24,10 @@
<el-col :span="4" class="el-form-item-right"> 品牌</el-col>
<el-col :span="8">
<el-form-item>
<el-select v-model="temp.brandSid" :disabled="stateId == '1'" style="width:50%" placeholder="请选择"
<el-select v-model="temp.brand" :disabled="stateId == '1'" style="width:50%" placeholder="请选择"
@change="changePinPai">
<el-option v-for="(item, index) in brand_list" :key="index" :label="item.brandName"
:value="item.sid"/>
:value="item.brandName"/>
</el-select>
</el-form-item>
</el-col>
@ -35,12 +35,12 @@
<el-row>
<el-col :span="4" class="el-form-item-right"> 车型</el-col>
<el-col :span="20">
<el-form-item prop="modelName">
<el-form-item prop="model">
<!-- <el-select v-model="temp.modelName" placeholder="请选择" @change="getName" style="width:19%">-->
<!-- <el-option v-for="(item, index) in figuration" :key="index" :label="item.modelName" :value="item.sid"/>-->
<!-- </el-select>-->
<div class="vehicle">
<span>{{ temp.modelName }}</span>
<span>{{ temp.model }}</span>
<div>
<el-button type="primary" size="small" v-show="this.stateId !== '1'" @click="handSelect">车型选择</el-button>
</div>
@ -52,7 +52,7 @@
<el-col :span="4" class="el-form-item-right"> 车型常用配置</el-col>
<el-col :span="20">
<el-form-item>
{{ temp.sketChconfiguration }}
{{ temp.configName }}
</el-form-item>
</el-col>
</el-row>
@ -76,16 +76,16 @@
<el-col :span="4" class="el-form-item-right">销售指导价(万元)</el-col>
<el-col :span="8">
<el-form-item>
<span>{{ temp.saleReferencePrice }}</span>
<span>{{ temp.guidancePrice }}</span>
</el-form-item>
<!-- <el-form-item prop="saleReferencePrice">-->
<!-- <el-form-item prop="guidancePrice">-->
<!-- <el-input v-model="" maxlength="20" placeholder="" style="width:50%" clearable readonly/>-->
<!-- </el-form-item>-->
</el-col>
<el-col :span="4" class="el-form-item-right">车型报价</el-col>
<el-col :span="8">
<el-form-item prop="vehicleModelOffer">
<el-input v-model="temp.vehicleModelOffer" maxlength="20" placeholder="" style="width:50%" clearable/>
<el-form-item prop="price">
<el-input v-model="temp.price" maxlength="20" placeholder="" style="width:50%" clearable/>
</el-form-item>
</el-col>
</el-row>
@ -98,8 +98,8 @@
</el-col>
<el-col :span="4" class="el-form-item-right">预提车日期</el-col>
<el-col :span="8">
<el-form-item prop="estimatedPickupDate">
<el-date-picker v-model="temp.estimatedPickupDate" type="date" format="yyyy-MM-dd" style="width:50%" value-format="yyyy-MM-dd" placeholder="请选择"/>
<el-form-item prop="date">
<el-date-picker v-model="temp.date" type="date" format="yyyy-MM-dd" style="width:50%" value-format="yyyy-MM-dd" placeholder="请选择"/>
</el-form-item>
</el-col>
</el-row>
@ -111,82 +111,82 @@
</el-form-item>
</el-col>
</el-row>
<!-- 选择贷款后展示的金融需求 -->
<div v-if="this.ifdictKey">
<div class="title">金融需求</div>
<el-form ref="dataForm" :model="crmFindemandVo_copy" label-position="right" label-width="190px" :rules="rules">
<el-row>
<el-col :span="4" class="el-form-item-right">
贷款主体类型
</el-col>
<el-col :span="8">
<el-form-item>
<el-checkbox-group v-if="principal.length > 0" v-model="loanSubjectType" @change="getDaiKuang">
<el-checkbox v-for="item in principal" :key="item.dictKey" :label="item.dictKey">
{{ item.dictValue }}
</el-checkbox>
</el-checkbox-group>
</el-form-item>
</el-col>
<el-col :span="4" class="el-form-item-right"> 资方</el-col>
<el-col :span="8">
<el-form-item>
<el-select v-model="crmFindemandVo_copy.managementName" placeholder="请选择" style="width:50%">
<el-option v-for="(item, index) in supplier" :key="item.sid" :label="item.manageName"
:value="item.manageName"/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="el-form-item-right"> 是否打包</el-col>
<el-col :span="20">
<el-form-item>
<el-radio v-model="crmFindemandVo_copy.isnoPackaging" label="是"></el-radio>
<el-radio v-model="crmFindemandVo_copy.isnoPackaging" label="否"></el-radio>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="el-form-item-right"> 首付比例</el-col>
<el-col :span="8">
<el-form-item prop="downpayment">
<el-input v-model="crmFindemandVo_copy.downpayment" maxlength="5" placeholder="" style="width:50%" class="addinputw" clearable/>
</el-form-item>
</el-col>
<el-col :span="4" class="el-form-item-right">
保证金比列
</el-col>
<el-col :span="8">
<el-form-item prop="marginLevel">
<el-input v-model="crmFindemandVo_copy.marginLevel" maxlength="5" style="width:50%" placeholder="" class="addinputw" clearable/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="el-form-item-right"> 贷款期数</el-col>
<el-col :span="8">
<el-form-item prop="loanStageNumber">
<el-input v-model="crmFindemandVo_copy.loanStageNumber" maxlength="5" placeholder="" style="width:50%" class="addinputw" clearable/>
</el-form-item>
</el-col>
<el-col :span="4" class="el-form-item-right"> 月还金额</el-col>
<el-col :span="8">
<el-form-item prop="acceptMonthAmount">
<el-input v-model="crmFindemandVo_copy.acceptMonthAmount" maxlength="5" placeholder="" style="width:50%" class="addinputw" clearable/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="el-form-item-right"> 备注</el-col>
<el-col :span="20">
<el-form-item prop="">
<el-input v-model="crmFindemandVo_copy.remarks" maxlength="5" placeholder="" style="width:81%" class="addinputw" clearable/>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<!-- 选择贷款后展示的金融需求 暂时注释掉不可删除 -->
<!-- <div v-if="this.ifdictKey">-->
<!-- <div class="title">金融需求</div>-->
<!-- <el-form ref="dataForm" :model="crmFindemandVo_copy" label-position="right" label-width="190px" :rules="rules">-->
<!-- <el-row>-->
<!-- <el-col :span="4" class="el-form-item-right">-->
<!-- 贷款主体类型-->
<!-- </el-col>-->
<!-- <el-col :span="8">-->
<!-- <el-form-item>-->
<!-- <el-checkbox-group v-if="principal.length > 0" v-model="loanSubjectType" @change="getDaiKuang">-->
<!-- <el-checkbox v-for="item in principal" :key="item.dictKey" :label="item.dictKey">-->
<!-- {{ item.dictValue }}-->
<!-- </el-checkbox>-->
<!-- </el-checkbox-group>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="4" class="el-form-item-right"> 资方</el-col>-->
<!-- <el-col :span="8">-->
<!-- <el-form-item>-->
<!-- <el-select v-model="crmFindemandVo_copy.managementName" placeholder="请选择" style="width:50%">-->
<!-- <el-option v-for="(item, index) in supplier" :key="item.sid" :label="item.manageName"-->
<!-- :value="item.manageName"/>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-row>-->
<!-- <el-col :span="4" class="el-form-item-right"> 是否打包</el-col>-->
<!-- <el-col :span="20">-->
<!-- <el-form-item>-->
<!-- <el-radio v-model="crmFindemandVo_copy.isnoPackaging" label="是"></el-radio>-->
<!-- <el-radio v-model="crmFindemandVo_copy.isnoPackaging" label="否"></el-radio>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-row>-->
<!-- <el-col :span="4" class="el-form-item-right"> 首付比例</el-col>-->
<!-- <el-col :span="8">-->
<!-- <el-form-item prop="downpayment">-->
<!-- <el-input v-model="crmFindemandVo_copy.downpayment" maxlength="5" placeholder="" style="width:50%" class="addinputw" clearable/>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="4" class="el-form-item-right">-->
<!-- 保证金比例-->
<!-- </el-col>-->
<!-- <el-col :span="8">-->
<!-- <el-form-item prop="marginLevel">-->
<!-- <el-input v-model="crmFindemandVo_copy.marginLevel" maxlength="5" style="width:50%" placeholder="" class="addinputw" clearable/>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-row>-->
<!-- <el-col :span="4" class="el-form-item-right"> 贷款期数</el-col>-->
<!-- <el-col :span="8">-->
<!-- <el-form-item prop="loanStageNumber">-->
<!-- <el-input v-model="crmFindemandVo_copy.loanStageNumber" maxlength="5" placeholder="" style="width:50%" class="addinputw" clearable/>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="4" class="el-form-item-right"> 月还金额</el-col>-->
<!-- <el-col :span="8">-->
<!-- <el-form-item prop="acceptMonthAmount">-->
<!-- <el-input v-model="crmFindemandVo_copy.acceptMonthAmount" maxlength="5" placeholder="" style="width:50%" class="addinputw" clearable/>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-row>-->
<!-- <el-col :span="4" class="el-form-item-right"> 备注</el-col>-->
<!-- <el-col :span="20">-->
<!-- <el-form-item prop="">-->
<!-- <el-input v-model="crmFindemandVo_copy.remarks" maxlength="5" placeholder="" style="width:81%" class="addinputw" clearable/>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- </el-form>-->
<!-- </div>-->
</el-form>
</div>
</div>
@ -237,20 +237,20 @@ export default {
customerSid: '',
purchaseMethod: '',
brandSid: '',
brandName: '',
brand: '',
modelSid: '',
modelName: '',
sketChconfiguration: '',
model: '',
configName: '',
otherConfig: '',
changeOptions: '',
vehicleModelOffer: '',
price: '',
number: '',
estimatedPickupDate: '',
date: '',
states: '',
comonConfigSid: '',
purchaseMethodValue: '',
remarks: '',
saleReferencePrice: '',
guidancePrice: '',
crmFindemandDto: {
customerSid: '',
demandSid: '',
@ -321,9 +321,8 @@ export default {
// this.enter = checkin
getPcVehicleInfoBySid(sid).then((response) => {
if (response.code === '200') {
// this.temp = response.data
// this.temp.brandSid = response.data.brand
// this.aseTypeBox = [this.temp.purchaseMethod]
this.temp = response.data
this.aseTypeBox = [this.temp.purchaseMethod]
// if (this.temp.purchaseMethodValue == '') {
// this.ifdictKey = true
// this.crmFindemandVo_copy = response.data.crmFindemandVo
@ -331,7 +330,6 @@ export default {
// this.ifdictKey = false
// }
// if (this.temp.crmFindemandVo.loanSubjectType !== '') {
// this.principal.forEach((e) => {
// if (e.dictValue == this.temp.crmFindemandVo.loanSubjectType) {
@ -533,15 +531,16 @@ export default {
changePinPai(value) {
let bb = []
this.brand_list.forEach((e) => {
if (e.sid === value) {
if (e.brandName === value) {
bb = {
name: e.brandName,
sid: e.sid
}
}
})
this.temp.brandName = bb.name
this.temp.brand = bb.name
this.temp.brandSid = bb.sid
console.log('sid',this.temp.brandSid,'name',this.temp.brand)
this.getCheXingName(this.temp.brandSid)
},
@ -568,7 +567,7 @@ export default {
}
})
this.temp.brandSid = bb.sid
this.temp.brandName = bb.names
this.temp.brand = bb.names
},
//
// getCheXing() {
@ -704,10 +703,10 @@ export default {
var arrayList = []
arrayList = value
console.log(arrayList, 8888)
this.temp.modelName = arrayList[0].modelName
this.temp.sketChconfiguration = arrayList[0].configName
this.temp.model = arrayList[0].modelName
this.temp.configName = arrayList[0].configName
this.temp.otherConfig = arrayList[0].otherConfig
this.temp.saleReferencePrice = arrayList[0].guidedPrice
this.temp.guidancePrice = arrayList[0].guidedPrice
},
resetState() {
this.viewState = 1

25
anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/cheliangxuqiu/cheliangxuqiuinfo.vue

@ -21,7 +21,7 @@
品牌
</el-col>
<el-col :span="8" class="el-form-item-left">
{{ temp.brandName }}
{{ temp.brand }}
</el-col>
</el-row>
<el-row>
@ -29,7 +29,7 @@
车型
</el-col>
<el-col :span="20" class="el-form-item-left">
{{ temp.modelName }}
{{ temp.model }}
</el-col>
</el-row>
<el-row>
@ -37,7 +37,7 @@
车型常用配置
</el-col>
<el-col :span="20" class="el-form-item-left">
{{ temp.sketChconfiguration }}
{{ temp.configName }}
</el-col>
</el-row>
<el-row>
@ -61,13 +61,13 @@
销售参考价
</el-col>
<el-col :span="8" class="el-form-item-left">
{{ temp.saleReferencePrice }}
{{ temp.guidancePrice }}
</el-col>
<el-col :span="4" class="el-form-item-right">
车型报价
</el-col>
<el-col :span="8" class="el-form-item-left">
{{ temp.vehicleModelOffer }}
{{ temp.price }}
</el-col>
</el-row>
<el-row>
@ -81,7 +81,7 @@
预提车日期
</el-col>
<el-col :span="8" class="el-form-item-left">
{{ temp.estimatedPickupDate }}
{{ temp.date }}
</el-col>
</el-row>
<el-row>
@ -215,14 +215,13 @@ export default {
if (this.stateId !== '0') {
getPcVehicleInfoBySid(this.stateId, this.userSidL).then((response) => {
if (response.code === '200') {
this.$refs['dataForm'].clearValidate()
this.temp = response.data
this.crmFindemandVo_copy = this.temp.crmFindemandVo
if (this.temp.purchaseMethodValue == '贷款') {
this.ifdictKey = true
} else {
this.ifdictKey = false
}
// if (this.temp.purchaseMethodValue == '') {
// this.ifdictKey = true
// this.crmFindemandVo_copy = this.temp.crmFindemandVo
// } else {
// this.ifdictKey = false
// }
}
})
}

Loading…
Cancel
Save