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 55be1400
authored
Jul 11, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
线上订单补录问题修复
1 parent
daf00558
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
47 deletions
config.js
tabIndex/pages/index/index.js
tabWorkOrder/pages/additionRecordOrder/additionRecordOrder.js
utils/constantData.js
config.js
View file @
55be140
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
* 3生产环境
* 3生产环境
* 4预发布
* 4预发布
*/
*/
let
index
=
3
let
index
=
2
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
...
...
tabIndex/pages/index/index.js
View file @
55be140
...
@@ -51,6 +51,7 @@ Page({
...
@@ -51,6 +51,7 @@ Page({
console
.
log
(
e
)
console
.
log
(
e
)
let
{
outTradeNo
}
=
e
.
detail
let
{
outTradeNo
}
=
e
.
detail
this
.
closeSwitchPopup
()
this
.
closeSwitchPopup
()
wx
.
$storage
.
set
(
'outTradeNo'
,
outTradeNo
)
outTradeNo
&&
outTradeNo
&&
wx
.
$router
.
go
(
'tabWorkOrder.additionRecordOrder'
,
{
wx
.
$router
.
go
(
'tabWorkOrder.additionRecordOrder'
,
{
...
e
.
detail
...
e
.
detail
...
...
tabWorkOrder/pages/additionRecordOrder/additionRecordOrder.js
View file @
55be140
...
@@ -231,7 +231,7 @@ Page({
...
@@ -231,7 +231,7 @@ Page({
},
},
// 屏蔽不用
// 屏蔽不用
// setGoodsTotal(goodsList) {
// setGoodsTotal(goodsList) {
// let { totalFee } = this.data
// let { totalFee } = this.data
// let total = 0
// let total = 0
// // goodsList.map(i => (total += i.count * i.price))
// // goodsList.map(i => (total += i.count * i.price))
...
@@ -307,19 +307,19 @@ Page({
...
@@ -307,19 +307,19 @@ Page({
// this.setGoodsTotal(goodsList)
// this.setGoodsTotal(goodsList)
},
},
submit
(
i
)
{
submit
(
i
)
{
// console.log(wx.$storage.get('outTradeNo'))
// wx.$storage.rm('outTradeNo')
// 判断手机号是否用配置的默认值
// 判断手机号是否用配置的默认值
this
.
checkPhoneUseConfig
()
this
.
checkPhoneUseConfig
()
let
{
save
}
=
i
.
currentTarget
.
dataset
let
{
save
}
=
i
.
currentTarget
.
dataset
// orderDisabled,
// orderDisabled,
let
{
goodsList
,
orderObj
,
scene
,
totalFee
,
total
,
disabled
}
=
this
.
data
let
{
goodsList
,
orderObj
,
scene
,
outTradeNo
,
totalFee
,
total
,
disabled
}
=
this
.
data
orderObj
=
wx
.
$util
.
deepClone
(
orderObj
)
goodsList
=
wx
.
$util
.
deepClone
(
goodsList
)
if
(
disabled
)
{
if
(
disabled
)
{
return
this
.
showToast
(
'提交中'
)
return
this
.
showToast
(
'提交中'
)
}
}
// 判断商户配置财务规则
// if (!canOrder) {
// return this.showToast('未设置分润规则 请联系管理员')
// }
let
key
=
this
.
checkRequired
(
orderObj
)
let
key
=
this
.
checkRequired
(
orderObj
)
console
.
log
(
key
)
console
.
log
(
key
)
...
@@ -399,58 +399,27 @@ Page({
...
@@ -399,58 +399,27 @@ Page({
// 订单补录不需要提交这个参数
// 订单补录不需要提交这个参数
// delete orderObj.selectPayType
// delete orderObj.selectPayType
// 处理流水号没有带上的bug问题
// 处理流水号没有带上的bug问题
if
(
!
orderObj
.
outTradeNo
)
{
if
(
!
orderObj
?.
outTradeNo
||
orderObj
?.
outTradeNo
==
''
||
!
outTradeNo
)
{
let
{
outTradeNo
}
=
this
.
data
// let {outTradeNo} = this.data
orderObj
.
outTradeNo
=
outTradeNo
let
{
outTradeNo
:
storageOutTradeNo
}
=
wx
.
$storage
.
get
(
'orderObj'
)
}
orderObj
.
outTradeNo
=
storageOutTradeNo
}
console
.
log
(
orderObj
)
console
.
log
(
orderObj
)
// return
// return
// return console.log(orderObj)
// return
this
.
showLoading
(
'提交中...'
)
this
.
showLoading
(
'提交中...'
)
this
.
setData
({
this
.
setData
({
disabled
:
true
disabled
:
true
})
})
// const orderObj = {
// couponName: "流程测试新建001",
// customer: {customerName: "张立顺",
// customerPhone: "15817639334",
// customerSex: "2",
// experienceFlag: "Y",
// plateNumber: "",
// standNo: ""},
// customerCouponCode: "GH151S",
// employeeName: "刘伟",
// merchantCouponId: 11385,
// merchantId: 44211116,
// merchantName: "流程测试4s店",
// outTradeNo: "0120230630676252458305200128",
// remark: "",
// selectPayType: 2,
// sellerMerchantId: 44211025,
// sellerMerchantName: "流程测试园区门店",
// sellerName: "zhangls",
// sellerUserId: "bfe4919ab01143e5844846ef92aa3db3",
// subOrderList: [
// {baseGoodsId: null, totalPrice: 0.1, number: 1, merchantGoodsId: 7213},
// {baseGoodsId: null, totalPrice: 0.1, number: 1, merchantGoodsId: 5897}
// ],
// subShopMerchantId: 44211746,
// subShopMerchantName: "test_xjq03",
// // userId: "cbe5621e7afa4ccaac1b279c2a2ee98d",
// }
console
.
log
(
orderObj
)
;
console
.
log
(
orderObj
)
// return
// return
api
api
.
supplementOrder
(
orderObj
)
.
supplementOrder
(
orderObj
)
.
then
(
res
=>
{
.
then
(
res
=>
{
wx
.
hideLoading
()
wx
.
hideLoading
()
// console.log(orderObj, res)
// console.log(orderObj, res)
let
{
code
,
data
,
message
,
subErrors
}
=
res
let
{
code
,
data
,
message
,
subErrors
}
=
res
if
(
code
==
0
)
{
if
(
code
==
0
)
{
if
(
save
)
{
if
(
save
)
{
wx
.
showModal
({
wx
.
showModal
({
...
@@ -471,6 +440,7 @@ Page({
...
@@ -471,6 +440,7 @@ Page({
wx
.
$refresh
=
true
wx
.
$refresh
=
true
// wx.$router.redirectTo('confirmOrder', data)
// wx.$router.redirectTo('confirmOrder', data)
wx
.
$router
.
redirectTo
(
'orderDetail'
,
data
)
wx
.
$router
.
redirectTo
(
'orderDetail'
,
data
)
wx
.
$storage
.
rm
(
'outTradeNo'
)
// 去除流水号
// 暂时保留跳转页面
// 暂时保留跳转页面
// wx.$router.go('confirmOrder', data)
// wx.$router.go('confirmOrder', data)
}
}
...
@@ -479,6 +449,7 @@ Page({
...
@@ -479,6 +449,7 @@ Page({
// console.log(subErrors);
// console.log(subErrors);
throw
{
throw
{
subErrors
,
subErrors
,
message
,
orderObj
orderObj
}
}
}
}
...
@@ -828,7 +799,7 @@ Page({
...
@@ -828,7 +799,7 @@ Page({
}
else
{
}
else
{
this
.
setData
({
this
.
setData
({
outTradeNo
,
outTradeNo
,
[
'orderObj.outTradeNo'
]:
outTradeNo
,
[
'orderObj.outTradeNo'
]:
outTradeNo
,
totalFee
:
totalFee
,
totalFee
:
totalFee
,
accountDate
accountDate
})
})
...
...
utils/constantData.js
View file @
55be140
...
@@ -18,7 +18,8 @@ export const STORAGE_OBJECTkEY = {
...
@@ -18,7 +18,8 @@ export const STORAGE_OBJECTkEY = {
disLikeRecordFlag
:
'disLikeRecordFlag'
,
disLikeRecordFlag
:
'disLikeRecordFlag'
,
fileList
:
'fileList'
,
fileList
:
'fileList'
,
posterId
:
'posterId'
,
posterId
:
'posterId'
,
noSignInUuid
:
'noSignInUuid'
noSignInUuid
:
'noSignInUuid'
,
outTradeNo
:
'outTradeNo'
}
}
// export const IMG_VERSION = () => {
// export const IMG_VERSION = () => {
...
...
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