Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a301014a
authored
Aug 19, 2025
by
cen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 新增工单确认页面弹窗
1 parent
386616bd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
230 additions
and
81 deletions
api/module/boutique.js
pages/boutique/tool/components/ConfirmOrder.vue
pages/boutique/tool/components/CreateOrder.vue
pages/boutique/tool/index.vue
api/module/boutique.js
View file @
a301014
...
...
@@ -181,15 +181,15 @@ module.exports = {
})
},
// 根据商户号获取可选商品列表
getSelectOrderGoodsList
(
data
){
getSelectOrderGoodsList
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.selectOrderGoods.list'
,
projectName
:
'boutique'
,
...
data
})
},
/** 选择支付方式下单 */
createWithPay
(
data
)
{
/** 选择支付方式下单 */
createWithPay
(
data
)
{
console
.
log
(
data
)
return
http
.
post
({
method
:
'dj.api.smartcarlife.order.createWithPay'
,
...
...
@@ -205,8 +205,8 @@ module.exports = {
...
data
})
},
// 获取精品升级场景 太阳膜类商品部位数据
getPositionList
(
data
)
{
// 获取精品升级场景 太阳膜类商品部位数据
getPositionList
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.goodsPosition.list'
,
projectName
:
'boutique'
,
...
...
@@ -227,5 +227,9 @@ module.exports = {
/** 获取商户基本信息 */
getServiceBaseInfo
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.serviceMerchant.getServiceBaseInfo'
,
projectName
:
'boutique'
,
...
data
})
},
/**根据订单号获取订单详情(含套餐) */
getPackageGoodsDetail
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.order.packageGoodsDetail'
,
projectName
:
'boutique'
,
...
data
})
}
}
pages/boutique/tool/components/ConfirmOrder.vue
View file @
a301014
...
...
@@ -10,29 +10,29 @@
<view
class=
"box-shell"
>
<view
class=
"box-shell-title"
>
商品信息
</view>
<view
class=
"good-list"
>
<view
class=
"good"
>
<view
class=
"good"
v-for=
"(item, index) in orderInfo.subOrderList"
>
<view
class=
"flex justify-between align-center"
>
<text
class=
"good-name"
>
商品名称:
</text>
<text
class=
"good-price"
>
¥
1000
</text>
<text
class=
"good-name"
>
商品名称:
{{
replaceItemText
(
item
.
upgradeGoodsName
)
||
''
}}
</text>
<text
class=
"good-price"
>
¥
{{
item
.
price
}}
</text>
</view>
<view
class=
"flex justify-between align-center pt-6"
>
<text
class=
"good-alias"
>
商品别名:
</text>
<text
class=
"good-alias"
>
商品别名:
{{
replaceItemText
(
item
.
upgradeGoodsAlias
)
||
''
}}
</text>
</view>
<view
class=
"flex align-center pt-12"
>
<text
class=
"good-sku"
>
天窗玻璃
</text>
<text
class=
"good-count"
>
x
2
</text>
<text
class=
"good-sku"
>
{{
item
.
positionStr
||
item
.
upgradeGoodsTypeName
}}
</text>
<text
class=
"good-count"
>
x
{{
item
.
number
}}
</text>
</view>
</view>
</view>
<view
class=
"flex align-center py-8"
>
<view
class=
"sprite-icon icon-coupon fs-14"
></view>
<text
class=
"fs-14 coupon-name"
>
贴膜抵用券GH647-039(系统
)
</text>
<text
class=
"fs-14 coupon-name"
>
{{
orderInfo
.
couponName
||
''
}}{{
orderInfo
.
customerCoupon
.
customerCouponCode
||
''
}}
(
{{
orderInfo
.
customerCoupon
.
employeeName
||
''
}}
)
</text>
</view>
<view
class=
"flex justify-end align-center"
>
<text
class=
"good-total-lable"
>
商品总金额:
</text>
<text
class=
"good-total-value"
>
<text
class=
"unit"
>
¥
</text>
{{
toPrice
(
218.98887
,
2
)
}}
{{
orderInfo
.
total_price
}}
</text>
</view>
</view>
...
...
@@ -43,9 +43,8 @@
<view
v-for=
"(item, index) in orderObj"
:key=
"index"
class=
"flex align-center pt-8"
>
<view
class=
"label"
>
{{
item
.
label
}}
</view>
<view
v-if=
"item.key == 'status'"
>
<view
class=
"value"
:style=
"
{ color: item.constructionFlag == 'Y' ? status[orderInfo.status].color : '' }">
<!--
{{
item
.
constructionFlag
==
'Y'
?
status
[
orderInfo
.
status
].
text
:
'待施工'
}}
-->
<!--
{{
status
[
orderInfo
.
status
].
text
}}
-->
<view
class=
"value"
:style=
"
{ color: status[orderInfo.status].color || '' }">
{{
status
[
orderInfo
.
status
].
text
}}
</view>
</view>
<view
v-else
>
...
...
@@ -56,10 +55,8 @@
<view
v-else
>
{{
orderInfo
[
item
.
key
]
||
''
}}
</view>
</view>
</view>
<view
v-if=
"item.copy"
>
<view
class=
"copy"
@
click=
"setCopyData"
>
<!-- 复制 -->
</view>
<view
v-if=
"item.copy"
class=
"copy-btn"
@
click=
"copyText"
>
<view
class=
"sprite-icon icon-icon-copy copy"
></view>
</view>
</view>
<view
v-if=
"(orderInfo.selectPayType == 2 || orderInfo.selectPayType == 5 || orderInfo.selectPayType == 6 || orderInfo.selectPayType == 7) && orderInfo.payVoucherList.length"
>
...
...
@@ -134,22 +131,173 @@
<
script
>
import
utils
from
'@/utils/utils'
import
order_mixins
from
'../../order_mixins.js'
import
dayjs
from
'dayjs'
export
default
{
name
:
'OrderConfirm'
,
props
:
{
order
Info
:
{
order
ObjData
:
{
type
:
Object
,
default
:
()
=>
({})
}
},
data
()
{
return
{
...
order_mixins
.
data
...
order_mixins
.
data
,
positionTypeList
:
[],
isErrorOrder
:
false
,
orderInfo
:
{}
}
},
mounted
()
{
this
.
getPositionList
()
this
.
getDetail
(
'250819144103724'
)
},
methods
:
{
toPrice
(
val
,
num
)
{
return
Number
(
utils
.
decimal
(
val
,
num
)).
toFixed
(
2
)
replaceItemText
(
item
)
{
var
reg
=
getRegExp
(
';~;'
,
'g'
)
return
item
?
item
.
replace
(
reg
,
' '
)
:
''
},
async
getDetail
(
orderCode
)
{
// console.log(orderCode)
let
_this
=
this
uni
.
$api
.
boutiqueApi
.
getPackageGoodsDetail
({
orderCode
})
.
then
(
data
=>
{
if
(
data
.
payOrder
&&
data
.
payOrder
.
payStatus
==
2
)
{
if
(
time
)
clearInterval
(
time
)
// wx.$router.redirectTo('orderDetail', {
// orderCode
// })
return
}
let
couponName
=
data
.
customerCoupon
?
data
.
customerCoupon
.
couponName
:
''
let
total_price
=
0
let
warrantyCardList
=
[]
for
(
var
i
=
0
;
i
<
data
?.
subOrderList
?.
length
;
i
++
)
{
let
e
=
data
?.
subOrderList
[
i
]
total_price
+=
e
.
totalPrice
e
.
price
=
Number
(
utils
.
decimal
(
Number
(
e
.
totalPrice
/
e
.
number
),
2
)).
toFixed
(
2
)
e
.
positionStr
=
this
.
positionTypeList
.
filter
(
v
=>
v
.
positionValue
==
e
.
upgradeGoodsPosition
)[
0
]?.
positionName
||
''
if
(
e
.
upgradeWarrantyPeriod
||
e
.
upgradeWarrantyPeriod
>
0
)
{
warrantyCardList
.
push
({
warrantyPeriod
:
e
.
upgradeWarrantyPeriod
,
goodsName
:
e
.
upgradeGoodsAlias
||
e
.
upgradeGoodsName
})
}
}
data
.
packageGoodsList
?.
forEach
(
item
=>
{
item
.
packageGoodsOrderList
.
forEach
(
g
=>
{
g
.
price
=
g
.
totalPrice
?
Number
(
g
.
totalPrice
)
/
Number
(
g
.
number
)
:
g
.
upgradePrice
})
item
.
goodsList
=
item
.
packageGoodsOrderList
item
.
price
=
item
.
goodsList
.
reduce
((
prev
,
cur
)
=>
{
return
prev
+
Number
(
cur
.
totalPrice
)
/
Number
(
cur
.
number
)
},
0
)
item
.
count
=
item
.
goodsList
.
length
?
item
.
goodsList
[
0
].
number
:
1
let
total
=
item
.
price
*
item
.
count
item
.
totalPrice
=
utils
.
decimal
(
total
,
2
)
item
.
packageGoodsOrderList
.
forEach
(
g
=>
{
g
.
positionStr
=
this
.
positionTypeList
.
filter
(
v
=>
v
.
positionValue
==
g
.
upgradeGoodsPosition
)[
0
]?.
positionName
||
''
})
total_price
+=
item
.
totalPrice
})
data
=
{
...
data
.
customer
,
...
data
.
payOrder
,
...
data
,
packageGoodsList
:
data
.
packageGoodsList
,
couponName
,
total_price
:
Number
(
utils
.
decimal
(
total_price
,
2
)).
toFixed
(
2
)
}
if
(
data
.
orderTime
)
data
.
time
=
dayjs
(
new
Date
(
data
.
orderTime
)).
format
(
'YYYY-MM-DD HH:mm:ss'
)
if
(
data
.
customerCoupon
)
{
data
.
customerCoupon
.
customerCouponCode
=
data
.
customerCoupon
.
customerCouponCode
.
split
(
'-'
)[
0
]
}
if
(
data
.
customer
.
carSeriesName
)
{
data
.
carType
=
`
${
data
.
customer
.
carBrand
||
''
}
-
${
data
.
customer
.
carChildsBrandName
||
''
}
-
${
data
.
customer
.
carSeriesName
||
''
}
`
}
_this
.
orderInfo
=
data
_this
.
flag
=
true
_this
.
warrantyCardList
=
warrantyCardList
// 校验是否显示二级流量方
if
(
data
.
subShopMerchantName
)
{
if
(
_this
.
customerObj
.
findIndex
(
val
=>
val
?.
key
&&
val
.
key
==
'subShopMerchantName'
)
<
0
)
{
_this
.
customerObj
[
_this
.
customerObj
.
length
-
2
]
=
{
label
:
'二级流量方'
,
key
:
'subShopMerchantName'
}
}
}
// 是2:门店收款 5:嘀加收款 6:对公转账 7:其它收款并且不是错误订单 自动打开门店收款弹窗
if
(
!
_this
.
isErrorOrder
&&
[
2
,
5
,
6
,
7
].
includes
(
Number
(
data
.
selectPayType
)))
{
_this
.
toshowDateModal
()
}
// 获取园区店技师配置信息
uni
.
$api
.
boutiqueApi
.
getQYTechnicianList
({
yqMerchantId
:
uni
.
$storage
.
get
(
'userInfo'
)?.
merchantId
})
.
then
(
respone
=>
{
if
(
respone
?.
code
==
0
)
{
if
(
respone
?.
data
.
length
>
0
)
this
.
isArtificer
(
respone
.
data
)
}
})
// } else {
// wx.showModal({
// title: '温馨提示',
// content: message,
// showCancel: false,
// confirmText: '刷新',
// confirmColor: '#347BFF',
// success(res) {
// if (res.confirm) {
// _this.getDetail(orderCode)
// }
// }
// })
// }
})
},
async
getPackageGoodsDetail
(
orderCode
)
{
try
{
let
params
=
{
orderCode
}
let
{
total_price
}
=
this
.
data
.
orderInfo
uni
.
$api
.
boutiqueApi
.
getPackageGoodsDetail
(
params
).
then
(
res
=>
{
res
.
data
?.
packageGoodsList
.
forEach
(
item
=>
{
item
.
packageGoodsOrderList
.
forEach
(
g
=>
{
g
.
price
=
g
.
totalPrice
?
Number
(
g
.
totalPrice
)
/
Number
(
g
.
number
)
:
g
.
upgradePrice
})
item
.
goodsList
=
item
.
packageGoodsOrderList
item
.
price
=
item
.
goodsList
.
reduce
((
prev
,
cur
)
=>
{
return
prev
+
Number
(
cur
.
totalPrice
)
/
Number
(
cur
.
number
)
},
0
)
item
.
count
=
item
.
goodsList
.
length
?
item
.
goodsList
[
0
].
number
:
1
let
total
=
item
.
price
*
item
.
count
item
.
totalPrice
=
utils
.
decimal
(
total
,
2
)
item
.
packageGoodsOrderList
.
forEach
(
g
=>
{
g
.
positionStr
=
this
.
positionTypeList
.
filter
(
v
=>
v
.
positionValue
==
g
.
upgradeGoodsPosition
)[
0
]?.
positionName
||
''
})
total_price
=
Number
(
total_price
)
+
Number
(
item
.
totalPrice
)
})
if
(
res
.
code
==
0
)
{
this
.
setData
({
packageGoodsList
:
res
.
data
.
packageGoodsList
,
'orderInfo.total_price'
:
Number
(
utils
.
decimal
(
total_price
,
2
)).
toFixed
(
2
)
})
}
})
}
catch
(
err
)
{}
},
async
getPositionList
()
{
const
res
=
await
uni
.
$api
.
boutiqueApi
.
getPositionList
({})
this
.
positionTypeList
=
res
}
}
}
...
...
pages/boutique/tool/components/CreateOrder.vue
View file @
a301014
...
...
@@ -4,8 +4,7 @@
<view
class=
"box"
>
<scroll-view
class=
"scroll-view"
scroll-y=
"true"
>
<view
class=
"box-content"
>
<GlCell
:formList=
"formList"
:formData=
"orderObj"
@
radioChange=
"radioChange"
@
inputBlur=
"inputBlur"
@
handleCell=
"handleCell"
>
<GlCell
:formList=
"formList"
:formData=
"orderObj"
@
radioChange=
"radioChange"
@
inputBlur=
"inputBlur"
@
handleCell=
"handleCell"
>
<template
slot=
"frontGear"
>
<Product
v-if=
"orderObj.frontGear && orderObj.frontGear.length"
:list=
"orderObj.frontGear"
:positionTypeList=
"positionTypeList"
:baseConfigData=
"baseConfigData"
></Product>
</
template
>
...
...
@@ -21,13 +20,12 @@
</scroll-view>
</view>
<!-- 弹窗 -->
<order-popup
ref=
"orderPopup"
:data=
"orderObj"
:dataKey=
"valueKey"
@
onConfirm=
"onConfirm"
:externalData=
"externalData"
:popupType=
"popupType"
/>
<order-popup
ref=
"orderPopup"
:data=
"orderObj"
:dataKey=
"valueKey"
@
onConfirm=
"onConfirm"
:externalData=
"externalData"
:popupType=
"popupType"
/>
</view>
</template>
<
script
>
import
utils
from
"@/utils/utils"
;
import
utils
from
'@/utils/utils'
import
OrderPopup
from
'@/components/OrderPopup/index.vue'
import
GlCell
from
'../../../../components/Form/GlCell.vue'
import
Product
from
'./Product.vue'
...
...
@@ -69,7 +67,7 @@ export default {
experienceFlag
:
'Y'
,
payeeType
:
1
,
salesType
:
'0'
,
frontGear
:
null
,
frontGear
:
null
},
// 弹窗传入的数据},
popupType
:
0
,
popupTypeEnum
,
...
...
@@ -82,7 +80,7 @@ export default {
payTypeList
,
goodsList
:
[],
positionTypeList
:
[],
valueKey
:
''
,
valueKey
:
''
}
},
computed
:
{
...
...
@@ -125,21 +123,21 @@ export default {
handleCell
(
val
)
{
console
.
log
(
val
,
this
.
orderObj
)
// 获取当前选中的popupType
this
.
popupType
=
Object
.
keys
(
this
.
popupTypeEnum
).
find
(
key
=>
this
.
popupTypeEnum
[
key
].
key
===
val
.
value
)
*
1
;
this
.
popupType
=
Object
.
keys
(
this
.
popupTypeEnum
).
find
(
key
=>
this
.
popupTypeEnum
[
key
].
key
===
val
.
value
)
*
1
// 获取对应的list字段
const
popupConfig
=
this
.
popupTypeEnum
[
this
.
popupType
]
;
const
popupConfig
=
this
.
popupTypeEnum
[
this
.
popupType
]
if
(
popupConfig
&&
popupConfig
.
list
)
{
this
.
externalData
=
this
[
popupConfig
.
list
]
||
[]
;
this
.
externalData
=
this
[
popupConfig
.
list
]
||
[]
}
else
{
this
.
externalData
=
[]
;
this
.
externalData
=
[]
}
// 定义产品相关字段数组
const
productFields
=
[
'frontGear'
,
'frontWindow'
,
'rearGear'
,
'rearWindow'
,
'sunRoof'
]
;
const
productFields
=
[
'frontGear'
,
'frontWindow'
,
'rearGear'
,
'rearWindow'
,
'sunRoof'
]
if
(
productFields
.
includes
(
val
.
value
))
{
this
.
valueKey
=
val
.
value
;
this
.
valueKey
=
val
.
value
}
console
.
log
(
this
.
popupType
,
this
.
externalData
,
'-------------'
)
this
.
$refs
.
orderPopup
.
open
()
;
this
.
$refs
.
orderPopup
.
open
()
},
// 单选框change事件
radioChange
(
e
,
val
)
{
...
...
@@ -153,7 +151,7 @@ export default {
console
.
log
(
val
,
'onConfirm'
)
const
{
chooseContent
}
=
val
// 根据popupTypeEnum优化处理
const
_typeValue
=
this
.
popupTypeEnum
[
this
.
popupType
]
;
const
_typeValue
=
this
.
popupTypeEnum
[
this
.
popupType
]
console
.
log
(
_typeValue
)
if
(
_typeValue
.
key
==
'carBrand'
)
{
// 车型
...
...
@@ -185,74 +183,74 @@ export default {
this
.
orderObj
.
customer
[
val
.
value
]
=
this
.
orderObj
[
val
.
value
]
},
checkRequired
()
{
const
phoneRex
=
/^
[
1
]([
3-9
])[
0-9
]{9}
$/
;
const
phoneRex
=
/^
[
1
]([
3-9
])[
0-9
]{9}
$/
// 把formList中所有required为true的对象放到一个数组中
const
requiredArr
=
[]
;
const
onlyLabelItem
=
[]
;
const
requiredArr
=
[]
const
onlyLabelItem
=
[]
this
.
formList
.
forEach
(
group
=>
{
group
.
forEach
(
item
=>
{
if
(
item
.
required
===
true
&&
item
.
hidden
!==
true
)
{
if
(
item
.
onlyLabel
===
true
)
{
onlyLabelItem
.
push
(
item
)
;
onlyLabelItem
.
push
(
item
)
}
else
{
requiredArr
.
push
(
item
)
;
requiredArr
.
push
(
item
)
}
}
})
;
})
;
})
})
// 遍历requiredArr,检查orderObj中是否有对应的值
for
(
let
i
=
0
;
i
<
requiredArr
.
length
;
i
++
)
{
const
item
=
requiredArr
[
i
]
;
const
item
=
requiredArr
[
i
]
// 兼容嵌套customer对象的情况
let
value
;
let
value
if
(
item
.
value
===
'customerName'
||
item
.
value
===
'customerPhone'
||
item
.
value
===
'standNo'
||
item
.
value
===
'plateNumber'
)
{
value
=
this
.
orderObj
.
customer
?
this
.
orderObj
.
customer
[
item
.
value
]
:
undefined
;
value
=
this
.
orderObj
.
customer
?
this
.
orderObj
.
customer
[
item
.
value
]
:
undefined
}
else
{
value
=
this
.
orderObj
[
item
.
value
]
;
value
=
this
.
orderObj
[
item
.
value
]
}
// 0、false、'0'等视为有效,null/undefined/空字符串视为无效
if
(
value
===
undefined
||
value
===
null
||
value
===
''
)
{
uni
.
showToast
({
title
:
`
${
item
.
label
}
不能为空`
,
icon
:
'none'
})
;
return
false
;
})
return
false
}
// 如果是customerPhone,添加phoneRex校验
if
(
item
.
value
===
'customerPhone'
&&
!
phoneRex
.
test
(
value
))
{
uni
.
showToast
({
title
:
`请输入正确的
${
item
.
label
}
`
,
icon
:
'none'
})
;
return
false
;
})
return
false
}
}
// 处理onlyLabel为true的特殊校验
if
(
onlyLabelItem
.
length
>
0
)
{
// 检查frontGear、frontWindow、rearGear、rearWindow、sunRoof和couponInfo字段中是否至少有一个不为空
const
labelFields
=
[
'frontGear'
,
'frontWindow'
,
'rearGear'
,
'rearWindow'
,
'sunRoof'
]
;
const
labelFields
=
[
'frontGear'
,
'frontWindow'
,
'rearGear'
,
'rearWindow'
,
'sunRoof'
]
const
hasValue
=
labelFields
.
some
(
field
=>
{
console
.
log
(
field
,
this
.
orderObj
[
field
])
const
value
=
this
.
orderObj
[
field
]
;
return
value
!==
undefined
&&
value
!==
null
&&
(
Array
.
isArray
(
value
)
?
value
.
length
>
0
:
value
!==
''
)
;
})
;
const
value
=
this
.
orderObj
[
field
]
return
value
!==
undefined
&&
value
!==
null
&&
(
Array
.
isArray
(
value
)
?
value
.
length
>
0
:
value
!==
''
)
})
console
.
log
(
hasValue
,
hasValue
)
if
(
!
hasValue
)
{
uni
.
showToast
({
title
:
'请至少选择一个产品'
,
icon
:
'none'
})
;
return
false
;
})
return
false
}
}
return
true
;
return
true
},
// 提交
async
submit
()
{
console
.
log
(
this
.
orderObj
)
if
(
!
this
.
checkRequired
())
return
...
...
@@ -288,6 +286,7 @@ export default {
title
:
'保存成功'
,
icon
:
'success'
})
this
.
$emit
(
'jump'
,
'ConfirmOrder'
,
res
.
data
)
}
},
async
getShopMerchantPointConfig
(
merchantId
)
{
...
...
@@ -309,7 +308,7 @@ export default {
console
.
log
(
res
,
'流量方'
)
if
(
res
&&
res
.
length
)
{
this
.
subShopMerchantList
=
res
const
cell
=
this
.
formList
[
0
].
find
(
item
=>
item
.
label
===
'二级流量方'
)
;
const
cell
=
this
.
formList
[
0
].
find
(
item
=>
item
.
label
===
'二级流量方'
)
if
(
cell
)
{
cell
.
hidden
=
false
}
...
...
@@ -352,11 +351,11 @@ export default {
})
console
.
log
(
res
)
let
m
=
res
.
supportPayTypes
||
[]
let
n
=
this
.
payTypeList
;
let
list
=
n
.
filter
(
(
k
)
=>
{
let
idx
=
m
.
find
(
(
j
)
=>
j
==
k
.
value
);
return
idx
>=
0
;
})
;
let
n
=
this
.
payTypeList
let
list
=
n
.
filter
(
k
=>
{
let
idx
=
m
.
find
(
j
=>
j
==
k
.
value
)
return
idx
>=
0
})
// this.configPayTypeList = list
this
.
djPayList
=
[
...
list
?.
filter
(
v
=>
!
[
2
,
5
].
includes
(
Number
(
v
.
value
))),
...
...
@@ -369,16 +368,14 @@ export default {
value
:
'7'
}
]
this
.
merchantPayList
=
[
...
list
?.
filter
(
v
=>
v
.
value
==
2
)
]
this
.
merchantPayList
=
[...
list
?.
filter
(
v
=>
v
.
value
==
2
)]
this
.
changePayee
()
console
.
log
(
this
.
djPayList
,
this
.
merchantPayList
,
'list'
)
},
changePayee
()
{
const
cell
=
this
.
formList
[
2
].
find
(
item
=>
item
.
value
===
'selectPayType'
)
;
const
cell
=
this
.
formList
[
2
].
find
(
item
=>
item
.
value
===
'selectPayType'
)
if
(
cell
)
{
cell
.
radioList
=
this
.
orderObj
.
payeeType
==
1
?
this
.
merchantPayList
:
this
.
djPayList
;
cell
.
radioList
=
this
.
orderObj
.
payeeType
==
1
?
this
.
merchantPayList
:
this
.
djPayList
if
(
cell
.
radioList
&&
cell
.
radioList
.
length
>
0
)
{
cell
.
current
=
cell
.
radioList
[
0
].
value
this
.
orderObj
.
selectPayType
=
cell
.
radioList
[
0
].
value
...
...
pages/boutique/tool/index.vue
View file @
a301014
...
...
@@ -18,7 +18,7 @@
</view>
</view>
<view
class=
"detail-right"
>
<component
:is=
"toolComponentName"
@
jump=
"jump"
:
selected-trade-data=
"selectedTrade
Data"
/>
<component
:is=
"toolComponentName"
@
jump=
"jump"
:
transmission-of-data=
"transmissionOf
Data"
/>
</view>
</view>
</view>
...
...
@@ -43,7 +43,7 @@ export default {
data
()
{
return
{
toolComponentName
:
''
,
selectedTrade
Data
:
null
transmissionOf
Data
:
null
}
},
onLoad
(
options
)
{
...
...
@@ -54,7 +54,7 @@ export default {
console
.
log
(
item
)
this
.
toolComponentName
=
item
.
name
if
(
item
.
name
!==
'CreateOrder'
)
{
this
.
selectedTrade
Data
=
null
this
.
transmissionOf
Data
=
null
}
},
backPage
()
{
...
...
@@ -65,7 +65,7 @@ export default {
this
.
toolComponentName
=
name
console
.
log
(
this
.
toolComponentName
)
if
(
val
)
{
this
.
selectedTrade
Data
=
val
this
.
transmissionOf
Data
=
val
}
}
}
...
...
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