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 75b32ff6
authored
Feb 22, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复订单修正参数顺序问题
1 parent
c074d1e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
tabWorkOrder/pages/createOrder/createOrder.js
tabWorkOrder/pages/createOrder/createOrder.js
View file @
75b32ff
...
...
@@ -267,6 +267,8 @@ Page({
// delete orderObj.customerCouponCode
delete
orderObj
.
customer
.
createdDate
// return console.log(orderObj)
// 是订单修正就把错误单号带上
if
(
isErrorOrder
)
orderObj
.
oldOrderCode
=
orderObj
.
associateOrderCode
let
submitObj
=
JSON
.
parse
(
JSON
.
stringify
(
orderObj
))
if
(
save
)
{
// 建档删除卡券商品支付方式参数
...
...
@@ -277,8 +279,6 @@ Page({
this
.
showLoading
(
'提交中...'
)
let
apiName
=
save
&&
!
isErrorOrder
?
'createPrerecordedOrder'
:
isErrorOrder
?
'correctionOrder'
:
'createWithPay'
// 是订单修正就把错误单号带上
if
(
isErrorOrder
)
orderObj
.
oldOrderCode
=
orderObj
.
associateOrderCode
api
[
apiName
](
submitObj
).
then
(
res
=>
{
wx
.
hideLoading
()
...
...
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