|
|
@ -897,7 +897,6 @@ export default { |
|
|
|
}, //上装配置信息 |
|
|
|
busSalesOrderModel: { |
|
|
|
brandName: '', //品牌 |
|
|
|
|
|
|
|
config: '', //常用配置 |
|
|
|
finalPrice: '', //单台成交价 |
|
|
|
guildPrice: '', //单台指导价 |
|
|
@ -1064,14 +1063,7 @@ export default { |
|
|
|
this.manufacturerList = response.data |
|
|
|
} |
|
|
|
}) |
|
|
|
// 客户 |
|
|
|
// getLikeGetCustomerName().then((response) => { |
|
|
|
// if (response.code === '200') { |
|
|
|
// this.customerList = response.data |
|
|
|
// // this.getpayTypeList() |
|
|
|
// console.log('客户', this.customerList) |
|
|
|
// } |
|
|
|
// }) |
|
|
|
|
|
|
|
// 拜访方式 |
|
|
|
dictType({ |
|
|
|
type: 'visitWay', |
|
|
@ -1263,8 +1255,8 @@ export default { |
|
|
|
if (this.temp.busSalesOrderMakeup.topPrice !== '') { |
|
|
|
topPrice = parseFloat(this.temp.busSalesOrderMakeup.topPrice) |
|
|
|
} |
|
|
|
var s1 = guildPrice.toString() |
|
|
|
var s2 = topPrice.toString() |
|
|
|
const s1 = guildPrice.toString() |
|
|
|
const s2 = topPrice.toString() |
|
|
|
const value = Number(s1.replace(',', '')) + Number(s2.replace(',', '')) |
|
|
|
this.temp.busSalesOrderPrice.singleGuildPrice = value.toString() |
|
|
|
return this.temp.busSalesOrderPrice.singleGuildPrice |
|
|
@ -1273,22 +1265,36 @@ export default { |
|
|
|
NumberMulTwo() { |
|
|
|
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 |
|
|
|
finalPrice = parseFloat(this.temp.busSalesOrderModel.finalPrice) |
|
|
|
} |
|
|
|
if (this.temp.busSalesOrderMakeup.topPrice !== '') { |
|
|
|
return topPrice |
|
|
|
topPrice = parseFloat(this.temp.busSalesOrderMakeup.topPrice) |
|
|
|
} |
|
|
|
// if (this.temp.busSalesOrderModel.finalPrice == NaN && this.temp.busSalesOrderMakeup.topPrice == NaN) { |
|
|
|
// return 0 |
|
|
|
// } |
|
|
|
var s1 = finalPrice.toString() |
|
|
|
var s2 = topPrice.toString() |
|
|
|
const value = Number(s1.replace(',', '')) + Number(s2.replace(',', '')) |
|
|
|
const aaa = finalPrice.toString() |
|
|
|
const bbb = topPrice.toString() |
|
|
|
const value = Number(aaa.replace(',', '')) + Number(bbb.replace(',', '')) |
|
|
|
this.temp.busSalesOrderPrice.singleFinalPrice = value.toString() |
|
|
|
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) { |
|
|
|
return total + num; |
|
|
@ -1307,6 +1313,7 @@ export default { |
|
|
|
}, |
|
|
|
// 车架合计 |
|
|
|
NumberMulFour() { |
|
|
|
|
|
|
|
// 单台成交价 |
|
|
|
if (this.temp.busSalesOrderPrice.singleFinalPrice == '') { |
|
|
|
return 0 |
|
|
@ -1321,10 +1328,10 @@ export default { |
|
|
|
quantity = parseFloat(this.temp.busSalesOrderPrice.quantity) |
|
|
|
console.log('11111',this.temp.busSalesOrderPrice.singleFinalPrice,singleFinalPrice,quantity) |
|
|
|
console.log('11111.22',this.temp.busSalesOrderPrice.singleFinalPrice,singleFinalPrice,quantity) |
|
|
|
var s1 = singleFinalPrice.toString() |
|
|
|
var s2 = quantity.toString() |
|
|
|
console.log('22222',s1,s2) |
|
|
|
const value = Number(s1.replace(',', '')) * Number(s2.replace(',', '')) |
|
|
|
const chejia1 = singleFinalPrice.toString() |
|
|
|
const chejia2 = quantity.toString() |
|
|
|
console.log('22222',chejia1,chejia2) |
|
|
|
const value = Number(chejia1.replace(',', '')) * Number(chejia2.replace(',', '')) |
|
|
|
this.temp.busSalesOrderPrice.priceSum = value.toString() |
|
|
|
console.log('33333',value) |
|
|
|
return this.temp.busSalesOrderPrice.priceSum |
|
|
@ -1343,8 +1350,8 @@ export default { |
|
|
|
var quantity = 0 |
|
|
|
deposit = parseFloat(this.temp.busSalesOrderDeposit.deposit) |
|
|
|
quantity = parseFloat(this.temp.busSalesOrderPrice.quantity) |
|
|
|
var s1 = deposit.toString() |
|
|
|
var s2 = quantity.toString() |
|
|
|
const s1 = deposit.toString() |
|
|
|
const s2 = quantity.toString() |
|
|
|
const value = Number(s1.replace(',', '')) * Number(s2.replace(',', '')) |
|
|
|
this.temp.busSalesOrderDeposit.depositAll = value.toString() |
|
|
|
return this.temp.busSalesOrderDeposit.depositAll |
|
|
|