From 515dca6dc38a5288471e5fb673cb214e09e4b0f5 Mon Sep 17 00:00:00 2001 From: Zhao Qiqi <1287235164@qq.com> Date: Mon, 20 Jun 2022 10:31:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E7=AE=A1=E7=90=86--=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E7=AE=A1=E7=90=86=EF=BC=88=E6=84=8F=E5=90=91=E8=BD=A6?= =?UTF-8?q?=E5=9E=8B=E6=96=B0=E5=A2=9E=E3=80=81=E7=BC=96=E8=BE=91=E5=92=8C?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E5=9B=9E=E6=98=BE=E3=80=81=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/jichuxinxi/crmvehicle.js | 4 +- .../cheliangxuqiu/cheliangxuqiuAdd.vue | 205 +++++++++--------- .../cheliangxuqiu/cheliangxuqiuinfo.vue | 25 +-- 3 files changed, 116 insertions(+), 118 deletions(-) diff --git a/anrui-buscenter/anrui-buscenter-ui/src/api/jichuxinxi/crmvehicle.js b/anrui-buscenter/anrui-buscenter-ui/src/api/jichuxinxi/crmvehicle.js index 802df6a5cb..48133e1cb3 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/api/jichuxinxi/crmvehicle.js +++ b/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' diff --git a/anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/cheliangxuqiu/cheliangxuqiuAdd.vue b/anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/cheliangxuqiu/cheliangxuqiuAdd.vue index 7d75f7382e..b01cbb1777 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/cheliangxuqiu/cheliangxuqiuAdd.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/cheliangxuqiu/cheliangxuqiuAdd.vue @@ -24,10 +24,10 @@ 品牌 - + :value="item.brandName"/> @@ -35,12 +35,12 @@ 车型 - +
- {{ temp.modelName }} + {{ temp.model }}
车型选择
@@ -52,7 +52,7 @@ 车型常用配置 - {{ temp.sketChconfiguration }} + {{ temp.configName }} @@ -76,16 +76,16 @@ 销售指导价(万元) - {{ temp.saleReferencePrice }} + {{ temp.guidancePrice }} - + 车型报价 - - + + @@ -98,8 +98,8 @@ 预提车日期 - - + + @@ -111,82 +111,82 @@ - -
-
金融需求
- - - - 贷款主体类型 - - - - - - {{ item.dictValue }} - - - - - 资方 - - - - - - - - - - 是否打包 - - - - - - - - - 首付比例 - - - - - - - 保证金比列 - - - - - - - - - 贷款期数 - - - - - - 月还金额 - - - - - - - - 备注 - - - - - - - -
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
@@ -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 diff --git a/anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/cheliangxuqiu/cheliangxuqiuinfo.vue b/anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/cheliangxuqiu/cheliangxuqiuinfo.vue index 917b1d112e..9cf4dff750 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/cheliangxuqiu/cheliangxuqiuinfo.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/cheliangxuqiu/cheliangxuqiuinfo.vue @@ -21,7 +21,7 @@ 品牌
- {{ temp.brandName }} + {{ temp.brand }}
@@ -29,7 +29,7 @@ 车型 - {{ temp.modelName }} + {{ temp.model }} @@ -37,7 +37,7 @@ 车型常用配置 - {{ temp.sketChconfiguration }} + {{ temp.configName }} @@ -61,13 +61,13 @@ 销售参考价 - {{ temp.saleReferencePrice }} + {{ temp.guidancePrice }} 车型报价 - {{ temp.vehicleModelOffer }} + {{ temp.price }} @@ -81,7 +81,7 @@ 预提车日期 - {{ temp.estimatedPickupDate }} + {{ temp.date }} @@ -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 + // } } }) }