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 45ba7400
authored
Feb 04, 2026
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug
1 parent
1135e51a
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
94 additions
and
43 deletions
components/orderPromptPop/orderPromptPop.js
packageEquity/pages/TabBar/equityPage.js
packageEquity/pages/carQuotation/components/SecondStepSimple/SecondStep.js
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.js
tabIndex/pages/index/index.js
tabWorkOrder/pages/confirmOrder/confirmOrder.js
tabWorkOrder/pages/confirmOrder/confirmOrder.wxml
tabWorkOrder/pages/createOrder/createOrder.js
tabWorkOrder/pages/createOrder/productStrategy.js
tabWorkOrder/pages/createOrder/routeStrategy.js
tabWorkOrder/pages/createOrder/submitStrategy.js
components/orderPromptPop/orderPromptPop.js
View file @
45ba740
// components/orderPromptPop/orderPromptPop.js
// components/orderPromptPop/orderPromptPop.js
Component
({
Component
({
/**
/**
* 组件的属性列表
* 组件的属性列表
*/
*/
...
@@ -46,21 +45,26 @@ Component({
...
@@ -46,21 +45,26 @@ Component({
*/
*/
data
:
{
data
:
{
infoData
:
{},
infoData
:
{},
payTypeList
:
[{
payTypeList
:
[
{
label
:
'收款方为门店收款'
,
label
:
'收款方为门店收款'
,
value
:
'3'
value
:
'3'
},
{
},
{
label
:
'收款方为嘀加且属于对公转账收款'
,
label
:
'收款方为嘀加且属于对公转账收款'
,
value
:
'4'
value
:
'4'
},
{
},
{
label
:
'收款方为嘀加二维码收款'
,
label
:
'收款方为嘀加二维码收款'
,
value
:
'5'
,
value
:
'5'
,
tips
:
'适用于已有交易收款流水需补录订单时'
tips
:
'适用于已有交易收款流水需补录订单时'
},
{
},
{
label
:
'特殊收款'
,
label
:
'特殊收款'
,
value
:
'6'
,
value
:
'6'
,
tips
:
'仅用于无法关联流水或混合支付场景,请谨慎选择。'
tips
:
'仅用于无法关联流水或混合支付场景,请谨慎选择。'
}]
}
]
},
},
/**
/**
...
...
packageEquity/pages/TabBar/equityPage.js
View file @
45ba740
...
@@ -294,7 +294,7 @@ Page({
...
@@ -294,7 +294,7 @@ Page({
'确定'
,
'确定'
,
false
,
false
,
1
,
1
,
()
=>
{
}
()
=>
{
}
)
)
}
}
resolve
()
resolve
()
...
@@ -567,7 +567,7 @@ Page({
...
@@ -567,7 +567,7 @@ Page({
api
api
.
abnormalOrderLock
()
.
abnormalOrderLock
()
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
res
.
data
.
lockOrderFlag
===
'Y'
)
{
if
(
res
.
data
.
abnormalOrderNum
)
{
this
.
addModalToQueue
(
this
.
addModalToQueue
(
'异常订单提醒'
,
'异常订单提醒'
,
`存在
${
res
.
data
.
abnormalOrderNum
}
条异常订单未处理,请尽快处理!`
,
`存在
${
res
.
data
.
abnormalOrderNum
}
条异常订单未处理,请尽快处理!`
,
...
@@ -639,6 +639,7 @@ Page({
...
@@ -639,6 +639,7 @@ Page({
]
]
// 检查是否有异常订单锁单
// 检查是否有异常订单锁单
const
today
=
dayjs
().
day
()
const
today
=
dayjs
().
day
()
console
.
log
(
today
,
'today'
);
if
(
today
>=
1
&&
today
<=
3
)
{
if
(
today
>=
1
&&
today
<=
3
)
{
eventRequest
.
push
(
this
.
checkAbnormalOrderLocal
())
eventRequest
.
push
(
this
.
checkAbnormalOrderLocal
())
}
}
...
@@ -696,7 +697,7 @@ Page({
...
@@ -696,7 +697,7 @@ Page({
})
})
}
}
})
})
.
catch
(
err
=>
{
})
.
catch
(
err
=>
{
})
}
}
},
},
...
@@ -739,7 +740,7 @@ Page({
...
@@ -739,7 +740,7 @@ Page({
/**
/**
* 生命周期函数--监听页面初次渲染完成
* 生命周期函数--监听页面初次渲染完成
*/
*/
onReady
()
{
},
onReady
()
{
},
/**
/**
* 生命周期函数--监听页面显示
* 生命周期函数--监听页面显示
...
@@ -780,17 +781,17 @@ Page({
...
@@ -780,17 +781,17 @@ Page({
/**
/**
* 页面相关事件处理函数--监听用户下拉动作
* 页面相关事件处理函数--监听用户下拉动作
*/
*/
onPullDownRefresh
()
{
},
onPullDownRefresh
()
{
},
/**
/**
* 页面上拉触底事件的处理函数
* 页面上拉触底事件的处理函数
*/
*/
onReachBottom
()
{
},
onReachBottom
()
{
},
/**
/**
* 用户点击右上角分享
* 用户点击右上角分享
*/
*/
onShareAppMessage
()
{
},
onShareAppMessage
()
{
},
// closeScreen() {
// closeScreen() {
// this.selectComponent("#page-1").back();
// this.selectComponent("#page-1").back();
// },
// },
...
...
packageEquity/pages/carQuotation/components/SecondStepSimple/SecondStep.js
View file @
45ba740
...
@@ -400,8 +400,8 @@ Component({
...
@@ -400,8 +400,8 @@ Component({
value
=
integerPart
+
'.'
+
decimalPart
value
=
integerPart
+
'.'
+
decimalPart
}
}
if
(
parseFloat
(
value
)
>
parseFloat
(
basePrice
))
{
if
(
NP
.
times
(
parseFloat
(
value
),
100
)
>
parseFloat
(
basePrice
))
{
value
=
basePrice
.
toString
()
value
=
NP
.
divide
(
parseFloat
(
basePrice
),
100
)
.
toString
()
}
}
}
}
}
}
...
...
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.js
View file @
45ba740
...
@@ -579,7 +579,9 @@ Page({
...
@@ -579,7 +579,9 @@ Page({
let
currentTotal
=
Number
(
orderInfo
.
total
||
0
)
let
currentTotal
=
Number
(
orderInfo
.
total
||
0
)
if
(
NP
.
plus
(
originalPrice
,
transactionPrice
)
!=
currentTotal
)
{
if
(
NP
.
plus
(
originalPrice
,
transactionPrice
)
!=
currentTotal
)
{
return
wx
.
$util
.
showToast
(
'原错误订单总价+关联交易流水必须等于订单总价'
)
return
wx
.
$util
.
showToast
(
'【原错误订单总价+关联交易流水】必须等于【商品总价】'
)
}
}
}
else
{
}
else
{
// 正常订单校验总价不能小于0.01
// 正常订单校验总价不能小于0.01
...
...
tabIndex/pages/index/index.js
View file @
45ba740
...
@@ -452,7 +452,7 @@ Page({
...
@@ -452,7 +452,7 @@ Page({
merchantRange
merchantRange
})
})
})
})
.
catch
(
err
=>
{
})
.
catch
(
err
=>
{
})
},
},
changePicker
(
e
,
value
)
{
changePicker
(
e
,
value
)
{
let
{
merchantId
}
=
e
let
{
merchantId
}
=
e
...
@@ -758,7 +758,7 @@ Page({
...
@@ -758,7 +758,7 @@ Page({
})
})
}
}
},
},
error
:
()
=>
{
}
error
:
()
=>
{
}
},
},
'#modal2'
'#modal2'
)
)
...
@@ -855,7 +855,7 @@ Page({
...
@@ -855,7 +855,7 @@ Page({
})
})
}
}
})
})
.
catch
(
err
=>
{
})
.
catch
(
err
=>
{
})
},
},
// 10s轮询一次待补录
// 10s轮询一次待补录
getWaitOrder
()
{
getWaitOrder
()
{
...
@@ -872,7 +872,7 @@ Page({
...
@@ -872,7 +872,7 @@ Page({
})
})
}
}
})
})
.
catch
(
err
=>
{
})
.
catch
(
err
=>
{
})
},
},
setTab
(
tableBtn
,
index
)
{
setTab
(
tableBtn
,
index
)
{
console
.
log
(
index
)
console
.
log
(
index
)
...
@@ -1062,7 +1062,7 @@ Page({
...
@@ -1062,7 +1062,7 @@ Page({
})
})
}
}
})
})
.
catch
(
err
=>
{
})
.
catch
(
err
=>
{
})
},
},
getUserStat
(
userInfo
)
{
getUserStat
(
userInfo
)
{
api
api
...
@@ -1092,7 +1092,7 @@ Page({
...
@@ -1092,7 +1092,7 @@ Page({
})
})
}
}
})
})
.
catch
(
err
=>
{
})
.
catch
(
err
=>
{
})
},
},
totalListSet
()
{
totalListSet
()
{
let
{
userInfo
}
=
this
.
data
let
{
userInfo
}
=
this
.
data
...
@@ -1212,9 +1212,9 @@ Page({
...
@@ -1212,9 +1212,9 @@ Page({
userInfo
?.
loginRole
!=
6
userInfo
?.
loginRole
!=
6
)
)
eventRequest
.
push
(
this
.
checkAgreeClient
(
wx
.
$util
.
getUserInfo
()))
eventRequest
.
push
(
this
.
checkAgreeClient
(
wx
.
$util
.
getUserInfo
()))
// 检查是否有异常订单锁单
// 检查是否有异常订单锁单
const
today
=
dayjs
().
day
()
const
today
=
dayjs
().
day
()
console
.
log
(
today
,
'today = dayjs().day()'
);
if
(
today
>=
1
&&
today
<=
3
)
{
if
(
today
>=
1
&&
today
<=
3
)
{
eventRequest
.
push
(
this
.
checkAbnormalOrderLocal
())
eventRequest
.
push
(
this
.
checkAbnormalOrderLocal
())
}
}
...
@@ -1232,7 +1232,8 @@ Page({
...
@@ -1232,7 +1232,8 @@ Page({
commonApi
commonApi
.
abnormalOrderLock
()
.
abnormalOrderLock
()
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
res
.
data
.
lockOrderFlag
===
'Y'
)
{
console
.
log
(
res
,
'checkAbnormalOrderLocal'
);
if
(
res
.
data
.
abnormalOrderNum
)
{
this
.
addModalToQueue
(
this
.
addModalToQueue
(
'异常订单提醒'
,
'异常订单提醒'
,
`存在
${
res
.
data
.
abnormalOrderNum
}
条异常订单未处理,请尽快处理!`
,
`存在
${
res
.
data
.
abnormalOrderNum
}
条异常订单未处理,请尽快处理!`
,
...
@@ -1439,7 +1440,7 @@ Page({
...
@@ -1439,7 +1440,7 @@ Page({
.
setTaskDialog
({
.
setTaskDialog
({
id
:
data
[
0
]?.
id
id
:
data
[
0
]?.
id
})
})
.
then
(()
=>
{
})
.
then
(()
=>
{
})
}
}
}
else
{
}
else
{
wx
.
$util
.
showToast
(
message
)
wx
.
$util
.
showToast
(
message
)
...
@@ -2109,14 +2110,14 @@ Page({
...
@@ -2109,14 +2110,14 @@ Page({
/**
/**
* 页面相关事件处理函数--监听用户下拉动作
* 页面相关事件处理函数--监听用户下拉动作
*/
*/
onPullDownRefresh: function () {
},
onPullDownRefresh: function () {
},
/**
/**
* 页面上拉触底事件的处理函数
* 页面上拉触底事件的处理函数
*/
*/
onReachBottom: function () {
},
onReachBottom: function () {
},
/**
/**
* 用户点击右上角分享
* 用户点击右上角分享
*/
*/
onShareAppMessage: function () {
}
onShareAppMessage: function () {
}
})
})
tabWorkOrder/pages/confirmOrder/confirmOrder.js
View file @
45ba740
...
@@ -287,7 +287,8 @@ Page({
...
@@ -287,7 +287,8 @@ Page({
if
(
g
.
discountType
==
4
)
{
if
(
g
.
discountType
==
4
)
{
g
.
displayPrice
=
'0'
g
.
displayPrice
=
'0'
}
else
{
}
else
{
g
.
displayPrice
=
g
.
finalPrice
g
.
displayPrice
=
g
.
finalPrice
||
g
.
finalPrice
===
0
?
Number
(
g
.
finalPrice
)
/
Number
(
g
.
number
)
?
Number
(
g
.
finalPrice
)
/
Number
(
g
.
number
)
:
g
.
upgradePrice
:
g
.
upgradePrice
}
}
...
@@ -397,7 +398,8 @@ Page({
...
@@ -397,7 +398,8 @@ Page({
if
(
g
.
discountType
==
4
)
{
if
(
g
.
discountType
==
4
)
{
g
.
displayPrice
=
'0'
g
.
displayPrice
=
'0'
}
else
{
}
else
{
g
.
displayPrice
=
g
.
finalPrice
g
.
displayPrice
=
g
.
finalPrice
||
g
.
finalPrice
===
0
?
Number
(
g
.
finalPrice
)
/
Number
(
g
.
number
)
?
Number
(
g
.
finalPrice
)
/
Number
(
g
.
number
)
:
g
.
upgradePrice
:
g
.
upgradePrice
}
}
...
...
tabWorkOrder/pages/confirmOrder/confirmOrder.wxml
View file @
45ba740
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
<view class="meal-bd-head">
<view class="meal-bd-head">
<view class="dot"></view>
<view class="dot"></view>
<view class="name">{{g.upgradeGoodsAlias||g.upgradeGoodsName}}</view>
<view class="name">{{g.upgradeGoodsAlias||g.upgradeGoodsName}}</view>
<view class="price">¥{{g.displayPrice
|| g.price
}}</view>
<view class="price">¥{{g.displayPrice }}</view>
</view>
</view>
<view class="meal-bd-bottom">
<view class="meal-bd-bottom">
{{g.upgradeGoodsType===1?g.positionStr: g.upgradeGoodsTypeName}}
{{g.upgradeGoodsType===1?g.positionStr: g.upgradeGoodsTypeName}}
...
...
tabWorkOrder/pages/createOrder/createOrder.js
View file @
45ba740
...
@@ -356,12 +356,12 @@ Page({
...
@@ -356,12 +356,12 @@ Page({
},
},
async
navigator
(
e
)
{
async
navigator
(
e
)
{
let
{
selectOutTradeNoArr
}
=
e
.
detail
let
{
selectOutTradeNoArr
}
=
e
.
detail
let
{
paymentMethod
,
isErrorOrder
}
=
this
.
data
let
{
paymentMethod
,
isErrorOrder
,
orderCreateType
}
=
this
.
data
this
.
closeSwitchPopup
()
this
.
closeSwitchPopup
()
selectOutTradeNoArr
?.
length
&&
selectOutTradeNoArr
?.
length
&&
this
.
onRoute
({
this
.
onRoute
({
selectOutTradeNoArr
,
selectOutTradeNoArr
,
orderCreateType
:
'additionRecordOrder'
,
orderCreateType
:
isErrorOrder
?
orderCreateType
:
'additionRecordOrder'
,
paymentMethod
paymentMethod
})
})
...
@@ -719,7 +719,7 @@ Page({
...
@@ -719,7 +719,7 @@ Page({
}
}
strategy
.
setBasePrice
(
number
)
strategy
.
setBasePrice
(
number
)
}
else
{
}
else
{
strategy
.
setPrice
(
number
)
strategy
.
set
Base
Price
(
number
)
}
}
this
.
setGoodsTotal
(
goodsList
)
this
.
setGoodsTotal
(
goodsList
)
}
}
...
@@ -856,7 +856,7 @@ Page({
...
@@ -856,7 +856,7 @@ Page({
djOrderType
:
orderObj
.
djOrderType
djOrderType
:
orderObj
.
djOrderType
}
}
if
(
if
(
e
.
goods
.
p
rice
<
e
.
goods
.
shopMinPrice
&&
e
.
goods
.
sellP
rice
<
e
.
goods
.
shopMinPrice
&&
orderObj
.
selectPayType
!=
0
orderObj
.
selectPayType
!=
0
)
)
priceDisabled
=
false
priceDisabled
=
false
...
@@ -880,7 +880,7 @@ Page({
...
@@ -880,7 +880,7 @@ Page({
// goodsInfo:e.goodsInfo,
// goodsInfo:e.goodsInfo,
packageCode
:
e
.
packageGoods
.
packageCode
,
packageCode
:
e
.
packageGoods
.
packageCode
,
packageName
:
e
.
packageGoods
.
packageName
,
packageName
:
e
.
packageGoods
.
packageName
,
totalPrice
:
g
.
p
rice
,
totalPrice
:
g
.
sellP
rice
,
number
:
e
.
count
,
number
:
e
.
count
,
merchantGoodsId
:
g
.
merchantGoodsId
,
merchantGoodsId
:
g
.
merchantGoodsId
,
upgradePrice
:
g
.
sellPrice
,
upgradePrice
:
g
.
sellPrice
,
...
@@ -890,7 +890,10 @@ Page({
...
@@ -890,7 +890,10 @@ Page({
finalPrice
:
finalPrice
:
discountType
==
4
discountType
==
4
?
0
?
0
:
NP
.
minus
(
NP
.
times
(
g
.
price
,
e
.
count
||
1
),
discountAmount
),
:
NP
.
minus
(
NP
.
times
(
g
.
sellPrice
,
e
.
count
||
1
),
discountAmount
),
djOrderType
:
orderObj
.
djOrderType
djOrderType
:
orderObj
.
djOrderType
})
})
})
})
...
@@ -1096,6 +1099,15 @@ Page({
...
@@ -1096,6 +1099,15 @@ Page({
}
}
})
})
// 兼容处理 orderType 赋值给 djOrderType
if
(
orderObj
.
djOrderType
===
undefined
||
orderObj
.
djOrderType
===
null
)
{
if
(
orderObj
.
orderType
!==
undefined
&&
orderObj
.
orderType
!==
null
)
{
orderObj
.
djOrderType
=
orderObj
.
orderType
}
else
{
orderObj
.
djOrderType
=
0
}
}
// 兼容再次编辑(onLoad options)进来的数据类型可能是字符串的问题
// 兼容再次编辑(onLoad options)进来的数据类型可能是字符串的问题
const
numberFields
=
[
const
numberFields
=
[
'selectPayType'
,
'selectPayType'
,
...
@@ -1181,10 +1193,21 @@ Page({
...
@@ -1181,10 +1193,21 @@ Page({
orderObj
.
sellerMerchantId
=
options
.
yqMerchantId
orderObj
.
sellerMerchantId
=
options
.
yqMerchantId
}
}
if
(
!
orderObj
.
customer
.
salesType
)
orderObj
.
customer
.
salesType
=
0
if
(
!
orderObj
.
customer
.
salesType
)
orderObj
.
customer
.
salesType
=
0
// 回显订单类型名称
let
{
orderTypeName
,
orderTypeList
}
=
this
.
data
if
(
orderObj
.
djOrderType
!==
undefined
&&
orderObj
.
djOrderType
!==
null
)
{
const
typeItem
=
orderTypeList
.
find
(
item
=>
item
.
value
==
orderObj
.
djOrderType
)
if
(
typeItem
)
{
orderTypeName
=
typeItem
.
text
}
}
console
.
log
(
JSON
.
parse
(
JSON
.
stringify
(
orderObj
)))
console
.
log
(
JSON
.
parse
(
JSON
.
stringify
(
orderObj
)))
this
.
setData
({
this
.
setData
({
currentWordNumber
:
orderObj
?.
remark
?.
length
||
0
,
currentWordNumber
:
orderObj
?.
remark
?.
length
||
0
,
orderObj
,
orderObj
,
orderTypeName
,
first
:
true
,
first
:
true
,
flag
:
true
,
flag
:
true
,
isErrorOrder
,
isErrorOrder
,
...
@@ -1720,16 +1743,25 @@ Page({
...
@@ -1720,16 +1743,25 @@ Page({
}
else
{
}
else
{
// 修复: 再次编辑时优先使用单价初始化
// 修复: 再次编辑时优先使用单价初始化
const
count
=
Number
(
g
.
number
)
||
1
const
count
=
Number
(
g
.
number
)
||
1
g
.
price
=
g
.
totalPrice
g
.
price
=
g
.
totalPrice
||
g
.
totalPrice
===
0
?
Number
(
g
.
totalPrice
)
/
count
?
Number
(
g
.
totalPrice
)
/
count
:
g
.
sellPrice
:
g
.
sellPrice
g
.
sellPrice
=
g
.
price
g
.
sellPrice
=
g
.
price
}
}
}
else
{
}
else
{
g
.
sellPrice
=
g
.
sellPrice
||
g
.
upgradePrice
||
g
.
totalPrice
const
priceFromTotal
=
g
.
price
=
g
.
totalPrice
g
.
totalPrice
||
g
.
totalPrice
===
0
?
Number
(
g
.
totalPrice
)
/
Number
(
g
.
number
)
?
Number
(
g
.
totalPrice
)
/
Number
(
g
.
number
)
:
g
.
sellPrice
:
undefined
g
.
sellPrice
=
g
.
sellPrice
||
g
.
sellPrice
===
0
?
g
.
sellPrice
:
priceFromTotal
!==
undefined
?
priceFromTotal
:
g
.
upgradePrice
g
.
price
=
priceFromTotal
!==
undefined
?
priceFromTotal
:
g
.
sellPrice
}
}
if
(
!
g
.
minSellPrice
)
g
.
minSellPrice
=
g
.
upgradeShopMinPrice
if
(
!
g
.
minSellPrice
)
g
.
minSellPrice
=
g
.
upgradeShopMinPrice
if
(
if
(
...
...
tabWorkOrder/pages/createOrder/productStrategy.js
View file @
45ba740
...
@@ -349,6 +349,12 @@ PackageProductStrategy.prototype.applySubItemDiscount = function (subItem) {
...
@@ -349,6 +349,12 @@ PackageProductStrategy.prototype.applySubItemDiscount = function (subItem) {
const
type
=
subItem
.
discountType
const
type
=
subItem
.
discountType
const
value
=
subItem
.
discountValue
const
value
=
subItem
.
discountValue
if
(
Number
(
basePrice
)
===
0
)
{
subItem
.
finalPrice
=
0
subItem
.
discountAmount
=
0
return
}
if
(
type
==
DISCOUNT_TYPE
.
RATIO
&&
value
)
{
if
(
type
==
DISCOUNT_TYPE
.
RATIO
&&
value
)
{
if
(
value
>
0
&&
value
<=
10
)
{
if
(
value
>
0
&&
value
<=
10
)
{
finalPrice
=
NP
.
times
(
basePrice
,
NP
.
divide
(
value
,
10
))
finalPrice
=
NP
.
times
(
basePrice
,
NP
.
divide
(
value
,
10
))
...
...
tabWorkOrder/pages/createOrder/routeStrategy.js
View file @
45ba740
...
@@ -27,7 +27,10 @@ RouteContext.prototype.execute = async function (res) {
...
@@ -27,7 +27,10 @@ RouteContext.prototype.execute = async function (res) {
strategy
=
new
ScanCodeStrategy
(
this
.
page
)
strategy
=
new
ScanCodeStrategy
(
this
.
page
)
}
else
if
(
res
.
orderCode
&&
res
.
page
)
{
}
else
if
(
res
.
orderCode
&&
res
.
page
)
{
strategy
=
new
EditOrderStrategy
(
this
.
page
)
strategy
=
new
EditOrderStrategy
(
this
.
page
)
}
else
if
(
res
&&
res
.
orderCreateType
===
'additionRecordOrder'
)
{
}
else
if
(
(
res
&&
res
.
orderCreateType
===
'additionRecordOrder'
)
||
(
res
&&
res
.
selectOutTradeNoArr
&&
res
.
selectOutTradeNoArr
.
length
)
)
{
strategy
=
new
AdditionRecordStrategy
(
this
.
page
)
strategy
=
new
AdditionRecordStrategy
(
this
.
page
)
}
else
if
(
res
.
merchantId
)
{
}
else
if
(
res
.
merchantId
)
{
strategy
=
new
MerchantStrategy
(
this
.
page
)
strategy
=
new
MerchantStrategy
(
this
.
page
)
...
...
tabWorkOrder/pages/createOrder/submitStrategy.js
View file @
45ba740
...
@@ -171,7 +171,7 @@ ErrorOrderPriceStrategy.prototype.validate = async function () {
...
@@ -171,7 +171,7 @@ ErrorOrderPriceStrategy.prototype.validate = async function () {
if
(
NP
.
minus
(
NP
.
plus
(
originalPrice
,
associatedPrice
),
currentTotal
)
!==
0
)
{
if
(
NP
.
minus
(
NP
.
plus
(
originalPrice
,
associatedPrice
),
currentTotal
)
!==
0
)
{
return
ValidationResult
.
failure
(
return
ValidationResult
.
failure
(
'
原错误订单总价+关联交易流水必须等于商品总价
'
'
【原错误订单总价+关联交易流水】必须等于【商品总价】
'
)
)
}
}
}
}
...
...
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