Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c1250cf0
authored
Nov 20, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
391ea234
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.js
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.js
View file @
c1250cf
...
@@ -136,7 +136,7 @@ Page({
...
@@ -136,7 +136,7 @@ Page({
})
})
})
})
},
},
setQuotationRecording
()
{
setQuotationRecording
()
{
// 获取保险信息
// 获取保险信息
let
{
let
{
...
@@ -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
||
'保存错误'
)
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment