Commit 75b32ff6 by 张立顺

修复订单修正参数顺序问题

1 parent c074d1e4
......@@ -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()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!