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

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

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

Loading…
Cancel
Save