Commit c1250cf0 by 张立顺

bug修复

1 parent 391ea234
......@@ -136,7 +136,7 @@ Page({
})
})
},
setQuotationRecording() {
// 获取保险信息
let {
......@@ -165,7 +165,9 @@ Page({
icon: 'success'
})
setTimeout(() => {
wx.$router.redirectTo('packageEquity.equityPage', { tabIndex: 1 })
wx.$router.redirectTo('packageEquity.equityPage', {
tabIndex: 1
})
}, 1000)
}
})
......@@ -190,11 +192,11 @@ Page({
})
// 是订单补录直接走另外的补录逻辑
console.log(outTradeNo,'是订单补录直接走另外的补录逻辑');
console.log(outTradeNo, '是订单补录直接走另外的补录逻辑');
if (outTradeNo) return this.setQuotationRecording()
// debugger
// 如果是门店收款 并且付款凭证没有填
if (orderInfo.payType == 2 && !( orderInfo.transactionNo && orderInfo.paymentDocList.length ) ) return this.setData({
if (orderInfo.payType == 2 && !(orderInfo.transactionNo && orderInfo.paymentDocList.length)) return this.setData({
showPopup: true,
confirmStatus: false
})
......@@ -211,7 +213,9 @@ Page({
// 校验生成告知书是否成功
if (id) {
// 门店付款就直接返回列表
if (orderInfo.payType == 2) return wx.$router.redirectTo('packageEquity.equityPage', { tabIndex: 1 })
if (orderInfo.payType == 2) return wx.$router.redirectTo('packageEquity.equityPage', {
tabIndex: 1
})
let status = await this.createWithPay(id)
wx.hideLoading()
let that = this
......@@ -271,7 +275,7 @@ Page({
} = this.data
owner = wx.$util.deepClone(owner)
owner.price = this.multipliedByHundred(owner?.price) || ''
owner.price = parseFloat(owner?.price).toString() != "NaN" ? this.multipliedByHundred(owner?.price) : ''
// orderInfo.owner = owner
if (owner) {
delete owner?.buyCarTime
......@@ -402,7 +406,9 @@ Page({
} = this.data
// 补单点放弃
if (orderInfo.outTradeNo) {
return wx.$router.redirectTo('packageEquity.equityPage', { tabIndex: 1 })
return wx.$router.redirectTo('packageEquity.equityPage', {
tabIndex: 1
})
}
if (saveStatus) return false
wx.showLoading('保存中...')
......@@ -425,7 +431,9 @@ Page({
message
} = res
if (code == 0) {
wx.$router.redirectTo('packageEquity.equityPage', { tabIndex: 1 })
wx.$router.redirectTo('packageEquity.equityPage', {
tabIndex: 1
})
} else {
return wx.$util.showToast(res.message || '保存错误')
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!