Browse Source

销售管理补交内容

master
Zhao Qiqi 3 years ago
parent
commit
b48fcf93ab
  1. 2
      anrui-buscenter/anrui-buscenter-ui/src/api/jichuxinxi/salepolicy.js
  2. 40
      anrui-buscenter/anrui-buscenter-ui/src/router/index.js
  3. 61
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshoudingdan/xiaoshoudingdanAdd.vue

2
anrui-buscenter/anrui-buscenter-ui/src/api/jichuxinxi/salepolicy.js

@ -4,7 +4,7 @@ import qs from 'qs'
// 销售政策分页列表 // 销售政策分页列表
export function listPage(data) { export function listPage(data) {
return request({ return request({
url: '/buscenter/v1/busorderdiscount/listPage', url: '/base/v1/basediscountpackage/listPage',
method: 'post', method: 'post',
data: data, data: data,
headers: { headers: {

40
anrui-buscenter/anrui-buscenter-ui/src/router/index.js

@ -288,26 +288,15 @@ export const constantRoutes = [{
title: '订销售订单详情' title: '订销售订单详情'
} }
}, },
// 消贷业务金融方案 {
// { path: '/xiaoshouguanli/xiaoshouzhengce',
// path: '/xiaoshouguanli/xiaodaijinrongfanganAdd', component: () =>
// component: () => import('@/views/xiaoshouguanli/xiaoshouzhengce/xiaoshouzhengce.vue'),
// import('@/views/xiaoshouguanli/xiaodaijinrongfangan/xiaodaijinrongfanganAdd.vue'), name: 'xiaoshouzhengce',
// name: 'xiaodaijinrongfanganAdd', meta: {
// meta: { title: '销售政策管理'
// title: '消贷业务金融方案添加' }
// } },
// },
// {
// path: '/xiaoshouguanli/xiaodaijinrongfanganInfo',
// component: () =>
// import('@/views/xiaoshouguanli/xiaodaijinrongfangan/xiaodaijinrongfanganinfo.vue'),
// name: 'xiaodaijinrongfanganInfo',
// meta: {
// title: '消贷业务金融方案详情'
// }
// },
// 挂车配置
{ {
path: '/xiaoshouguanli/guachepeizhixinxi', path: '/xiaoshouguanli/guachepeizhixinxi',
component: () => component: () =>
@ -317,16 +306,6 @@ export const constantRoutes = [{
title: '挂车配置' title: '挂车配置'
} }
}, },
// 上装配置
// {
// path: '/xiaoshouguanli/shangzhuanpeizhi',
// component: () =>
// import('@/views/xiaoshouguanli/jiaochedingdan/shangzhuanpeizhi.vue'),
// name: 'shangzhuanpeizhi',
// meta: {
// title: '上装配置'
// }
// },
// 车辆交付 // 车辆交付
{ {
path: '/xiaoshouguanli/cheliangjiaofu', path: '/xiaoshouguanli/cheliangjiaofu',
@ -668,6 +647,7 @@ export const constantRoutes = [{
// import('@/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdangan.vue'), // import('@/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdangan.vue'),
// name: 'hetongdangan', // name: 'hetongdangan',
// }, // },
// 404 page must be placed at the end !!! // 404 page must be placed at the end !!!
// { path: '*', redirect: '/404', hidden: true } // { path: '*', redirect: '/404', hidden: true }
] ]

61
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshoudingdan/xiaoshoudingdanAdd.vue

@ -897,7 +897,6 @@ export default {
}, // }, //
busSalesOrderModel: { busSalesOrderModel: {
brandName: '', // brandName: '', //
config: '', // config: '', //
finalPrice: '', // finalPrice: '', //
guildPrice: '', // guildPrice: '', //
@ -1064,14 +1063,7 @@ export default {
this.manufacturerList = response.data this.manufacturerList = response.data
} }
}) })
//
// getLikeGetCustomerName().then((response) => {
// if (response.code === '200') {
// this.customerList = response.data
// // this.getpayTypeList()
// console.log('', this.customerList)
// }
// })
// 访 // 访
dictType({ dictType({
type: 'visitWay', type: 'visitWay',
@ -1263,8 +1255,8 @@ export default {
if (this.temp.busSalesOrderMakeup.topPrice !== '') { if (this.temp.busSalesOrderMakeup.topPrice !== '') {
topPrice = parseFloat(this.temp.busSalesOrderMakeup.topPrice) topPrice = parseFloat(this.temp.busSalesOrderMakeup.topPrice)
} }
var s1 = guildPrice.toString() const s1 = guildPrice.toString()
var s2 = topPrice.toString() const s2 = topPrice.toString()
const value = Number(s1.replace(',', '')) + Number(s2.replace(',', '')) const value = Number(s1.replace(',', '')) + Number(s2.replace(',', ''))
this.temp.busSalesOrderPrice.singleGuildPrice = value.toString() this.temp.busSalesOrderPrice.singleGuildPrice = value.toString()
return this.temp.busSalesOrderPrice.singleGuildPrice return this.temp.busSalesOrderPrice.singleGuildPrice
@ -1273,22 +1265,36 @@ export default {
NumberMulTwo() { NumberMulTwo() {
var finalPrice = 0 var finalPrice = 0
var topPrice = 0 var topPrice = 0
finalPrice = parseFloat(this.temp.busSalesOrderModel.finalPrice)
topPrice = parseFloat(this.temp.busSalesOrderMakeup.topPrice)
if (this.temp.busSalesOrderModel.finalPrice !== '') { if (this.temp.busSalesOrderModel.finalPrice !== '') {
return finalPrice finalPrice = parseFloat(this.temp.busSalesOrderModel.finalPrice)
} }
if (this.temp.busSalesOrderMakeup.topPrice !== '') { if (this.temp.busSalesOrderMakeup.topPrice !== '') {
return topPrice topPrice = parseFloat(this.temp.busSalesOrderMakeup.topPrice)
} }
// if (this.temp.busSalesOrderModel.finalPrice == NaN && this.temp.busSalesOrderMakeup.topPrice == NaN) { const aaa = finalPrice.toString()
// return 0 const bbb = topPrice.toString()
// } const value = Number(aaa.replace(',', '')) + Number(bbb.replace(',', ''))
var s1 = finalPrice.toString()
var s2 = topPrice.toString()
const value = Number(s1.replace(',', '')) + Number(s2.replace(',', ''))
this.temp.busSalesOrderPrice.singleFinalPrice = value.toString() this.temp.busSalesOrderPrice.singleFinalPrice = value.toString()
return this.temp.busSalesOrderPrice.singleFinalPrice return this.temp.busSalesOrderPrice.singleFinalPrice
// var finalPrice = 0
// var topPrice = 0
// finalPrice = parseFloat(this.temp.busSalesOrderModel.finalPrice)
// topPrice = parseFloat(this.temp.busSalesOrderMakeup.topPrice)
// if (this.temp.busSalesOrderModel.finalPrice !== '') {
// return finalPrice
// }
// if (this.temp.busSalesOrderMakeup.topPrice !== '') {
// return topPrice
// }
//
// var s1 = finalPrice.toString()
// var s2 = topPrice.toString()
// const value = Number(s1.replace(',', '')) + Number(s2.replace(',', ''))
// this.temp.busSalesOrderPrice.singleFinalPrice = value.toString()
// return this.temp.busSalesOrderPrice.singleFinalPrice
}, },
getSum(total, num) { getSum(total, num) {
return total + num; return total + num;
@ -1307,6 +1313,7 @@ export default {
}, },
// //
NumberMulFour() { NumberMulFour() {
// //
if (this.temp.busSalesOrderPrice.singleFinalPrice == '') { if (this.temp.busSalesOrderPrice.singleFinalPrice == '') {
return 0 return 0
@ -1321,10 +1328,10 @@ export default {
quantity = parseFloat(this.temp.busSalesOrderPrice.quantity) quantity = parseFloat(this.temp.busSalesOrderPrice.quantity)
console.log('11111',this.temp.busSalesOrderPrice.singleFinalPrice,singleFinalPrice,quantity) console.log('11111',this.temp.busSalesOrderPrice.singleFinalPrice,singleFinalPrice,quantity)
console.log('11111.22',this.temp.busSalesOrderPrice.singleFinalPrice,singleFinalPrice,quantity) console.log('11111.22',this.temp.busSalesOrderPrice.singleFinalPrice,singleFinalPrice,quantity)
var s1 = singleFinalPrice.toString() const chejia1 = singleFinalPrice.toString()
var s2 = quantity.toString() const chejia2 = quantity.toString()
console.log('22222',s1,s2) console.log('22222',chejia1,chejia2)
const value = Number(s1.replace(',', '')) * Number(s2.replace(',', '')) const value = Number(chejia1.replace(',', '')) * Number(chejia2.replace(',', ''))
this.temp.busSalesOrderPrice.priceSum = value.toString() this.temp.busSalesOrderPrice.priceSum = value.toString()
console.log('33333',value) console.log('33333',value)
return this.temp.busSalesOrderPrice.priceSum return this.temp.busSalesOrderPrice.priceSum
@ -1343,8 +1350,8 @@ export default {
var quantity = 0 var quantity = 0
deposit = parseFloat(this.temp.busSalesOrderDeposit.deposit) deposit = parseFloat(this.temp.busSalesOrderDeposit.deposit)
quantity = parseFloat(this.temp.busSalesOrderPrice.quantity) quantity = parseFloat(this.temp.busSalesOrderPrice.quantity)
var s1 = deposit.toString() const s1 = deposit.toString()
var s2 = quantity.toString() const s2 = quantity.toString()
const value = Number(s1.replace(',', '')) * Number(s2.replace(',', '')) const value = Number(s1.replace(',', '')) * Number(s2.replace(',', ''))
this.temp.busSalesOrderDeposit.depositAll = value.toString() this.temp.busSalesOrderDeposit.depositAll = value.toString()
return this.temp.busSalesOrderDeposit.depositAll return this.temp.busSalesOrderDeposit.depositAll

Loading…
Cancel
Save