Commit c1250cf0 by 张立顺

bug修复

1 parent 391ea234
...@@ -165,7 +165,9 @@ Page({ ...@@ -165,7 +165,9 @@ Page({
icon: 'success' icon: 'success'
}) })
setTimeout(() => { setTimeout(() => {
wx.$router.redirectTo('packageEquity.equityPage', { tabIndex: 1 }) wx.$router.redirectTo('packageEquity.equityPage', {
tabIndex: 1
})
}, 1000) }, 1000)
} }
}) })
...@@ -190,11 +192,11 @@ Page({ ...@@ -190,11 +192,11 @@ Page({
}) })
// 是订单补录直接走另外的补录逻辑 // 是订单补录直接走另外的补录逻辑
console.log(outTradeNo,'是订单补录直接走另外的补录逻辑'); console.log(outTradeNo, '是订单补录直接走另外的补录逻辑');
if (outTradeNo) return this.setQuotationRecording() if (outTradeNo) return this.setQuotationRecording()
// debugger // 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, showPopup: true,
confirmStatus: false confirmStatus: false
}) })
...@@ -211,7 +213,9 @@ Page({ ...@@ -211,7 +213,9 @@ Page({
// 校验生成告知书是否成功 // 校验生成告知书是否成功
if (id) { 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) let status = await this.createWithPay(id)
wx.hideLoading() wx.hideLoading()
let that = this let that = this
...@@ -271,7 +275,7 @@ Page({ ...@@ -271,7 +275,7 @@ Page({
} = this.data } = this.data
owner = wx.$util.deepClone(owner) 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 // orderInfo.owner = owner
if (owner) { if (owner) {
delete owner?.buyCarTime delete owner?.buyCarTime
...@@ -402,7 +406,9 @@ Page({ ...@@ -402,7 +406,9 @@ Page({
} = this.data } = this.data
// 补单点放弃 // 补单点放弃
if (orderInfo.outTradeNo) { if (orderInfo.outTradeNo) {
return wx.$router.redirectTo('packageEquity.equityPage', { tabIndex: 1 }) return wx.$router.redirectTo('packageEquity.equityPage', {
tabIndex: 1
})
} }
if (saveStatus) return false if (saveStatus) return false
wx.showLoading('保存中...') wx.showLoading('保存中...')
...@@ -425,7 +431,9 @@ Page({ ...@@ -425,7 +431,9 @@ Page({
message message
} = res } = res
if (code == 0) { if (code == 0) {
wx.$router.redirectTo('packageEquity.equityPage', { tabIndex: 1 }) wx.$router.redirectTo('packageEquity.equityPage', {
tabIndex: 1
})
} else { } else {
return wx.$util.showToast(res.message || '保存错误') 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!