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 5aacd85a
authored
Aug 27, 2025
by
cen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 修改编辑工单类型值
1 parent
873855b1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
88 additions
and
20 deletions
pages/boutique/components/OrderCard.vue
pages/boutique/tool/components/ConfirmOrder.vue
pages/boutique/tool/components/DefeatOrder.vue
pages/boutique/components/OrderCard.vue
View file @
5aacd85
...
...
@@ -236,7 +236,7 @@ export default {
?
this
.
showSelectType
({
item
})
:
this
.
$emit
(
'jump'
,
name
,
{
paramsData
:
this
.
orderCardDetail
,
type
:
name
==
'CreateOrder'
?
'createWithPay'
:
'
'
})
:
this
.
$emit
(
'jump'
,
name
,
{
paramsData
:
this
.
orderCardDetail
,
type
:
'createWithPay
'
})
}
else
{
utils
.
showNoAccess
()
}
...
...
pages/boutique/tool/components/ConfirmOrder.vue
View file @
5aacd85
...
...
@@ -386,7 +386,7 @@ export default {
}
// 商品是否包含太阳膜
data
.
isFilmOrder
=
data
.
subOrderList
?.
findIndex
(
subE
=>
subE
?.
upgradeGoodsType
==
1
)
>
-
1
this
.
$emit
(
'jump'
,
'CreateOrder'
,
{
paramsData
:
data
,
type
:
'
edit
WithPay'
})
this
.
$emit
(
'jump'
,
'CreateOrder'
,
{
paramsData
:
data
,
type
:
'
create
WithPay'
})
},
confirmDate
(
date
)
{
const
{
chooseContent
}
=
date
...
...
pages/boutique/tool/components/DefeatOrder.vue
View file @
5aacd85
...
...
@@ -10,10 +10,10 @@
<Product
:key=
"slotName"
v-if=
"orderObj[slotName] && orderObj[slotName].length"
@
changeTotalPrice=
"changeTotalPrice"
:list=
"orderObj[slotName]"
:positionTypeList=
"positionTypeList"
:baseConfigData=
"baseConfigData"
></Product>
</
template
>
<
template
slot=
"package"
>
<Package
v-if=
"orderObj.package"
:list=
"orderObj.package"
:positionTypeList=
"positionTypeList"
></Package>
<Package
v-if=
"orderObj.package"
@
changeTotalPrice=
"changeTotalPrice"
:list=
"orderObj.package"
:positionTypeList=
"positionTypeList"
></Package>
</
template
>
<
template
slot=
"skuGoods"
>
<SkuGoods
v-if=
"orderObj.skuGoods"
:list=
"orderObj.skuGoods"
:positionTypeList=
"positionTypeList"
:baseConfigData=
"baseConfigData"
></SkuGoods>
<SkuGoods
v-if=
"orderObj.skuGoods"
:list=
"orderObj.skuGoods"
@
changeTotalPrice=
"changeTotalPrice"
:positionTypeList=
"positionTypeList"
:baseConfigData=
"baseConfigData"
></SkuGoods>
<view
class=
"total"
v-if=
"totalPrice > 0"
>
<view
class=
"total-left"
>
总价
</view>
<view
class=
"total-right"
>
¥
{{
totalPrice
}}
</view>
...
...
@@ -68,8 +68,71 @@ export default {
handler
(
newVal
)
{
if
(
newVal
)
{
console
.
log
(
'接收到的交易数据:'
,
newVal
)
// this.orderObj.customer = newVal.customer
this
.
$set
(
this
.
orderObj
,
'customer'
,
newVal
.
customer
)
// 处理交易数据
const
handleTransactionData
=
newVal
=>
{
this
.
orderCreateType
=
newVal
.
type
// 新增订单处理
const
{
paramsData
:
{
customer
,
customerCoupon
,
...
rest
}
}
=
newVal
// 基础字段映射
const
baseFields
=
[
'id'
,
'orderCode'
,
'userId'
,
'employeeName'
,
'deliveryEmployeeName'
,
'deliveryUserId'
,
'subShopMerchantName'
,
'subShopMerchantId'
,
'sellerName'
,
'sellerUserId'
,
'sellerMerchantName'
,
'sellerMerchantId'
,
'merchantId'
,
'merchantName'
,
'customerCouponId'
,
'selectPayType'
]
Object
.
assign
(
this
.
orderObj
,
Object
.
fromEntries
(
baseFields
.
map
(
field
=>
[
field
,
rest
[
field
]])))
// 设置支付类型
this
.
orderObj
.
payeeType
=
rest
.
selectPayType
===
'2'
?
'1'
:
'0'
// 客户信息映射
const
customerFields
=
[
'customerName'
,
'customerSex'
,
'customerPhone'
,
'salesType'
,
'standNo'
,
'plateNumber'
,
'experienceFlag'
]
Object
.
assign
(
this
.
orderObj
,
Object
.
fromEntries
(
customerFields
.
map
(
field
=>
[
field
,
customer
[
field
]])))
// 优惠券信息
const
{
couponName
,
customerCouponCode
}
=
customerCoupon
Object
.
assign
(
this
.
orderObj
,
{
couponName
,
customerCouponCode
,
couponInfo
:
couponName
+
customerCouponCode
})
// 车辆信息
this
.
orderObj
.
customer
=
{
carBrand
:
customer
.
carBrand
,
carBrandId
:
customer
.
carBrandId
,
carChildsBrandId
:
customer
.
carChildsBrandId
,
carChildsBrandName
:
customer
.
carChildsBrandName
,
carSeriesId
:
customer
.
carSeriesId
,
carSeriesName
:
customer
.
carSeriesName
,
customerPhone
:
customer
.
customerPhone
,
standNo
:
customer
.
standNo
,
plateNumber
:
customer
.
plateNumber
,
customerSex
:
customer
.
customerSex
,
experienceFlag
:
customer
.
experienceFlag
,
salesType
:
customer
.
salesType
,
customerName
:
customer
.
customerName
}
this
.
orderObj
.
carBrand
=
`
${
customer
.
carBrand
}
-
${
customer
.
carChildsBrandName
}
-
${
customer
.
carSeriesName
}
`
// 更新表单状态
const
updateFormCell
=
(
formIndex
,
fieldName
,
value
)
=>
{
const
cell
=
this
.
formList
[
formIndex
].
find
(
item
=>
item
.
value
===
fieldName
)
if
(
cell
)
cell
.
current
=
value
}
const
formUpdates
=
[
[
1
,
'salesType'
,
customer
.
salesType
],
[
1
,
'customerSex'
,
customer
.
customerSex
],
[
1
,
'experienceFlag'
,
customer
.
experienceFlag
],
[
2
,
'selectPayType'
,
this
.
orderObj
.
selectPayType
],
[
2
,
'payeeType'
,
this
.
orderObj
.
payeeType
]
]
formUpdates
.
forEach
(([
index
,
field
,
value
])
=>
updateFormCell
(
index
,
field
,
value
))
this
.
goodsList
=
rest
.
subOrderList
}
handleTransactionData
(
newVal
)
}
},
immediate
:
true
...
...
@@ -88,11 +151,13 @@ export default {
experienceFlag
:
'Y'
,
payeeType
:
1
,
salesType
:
'0'
,
frontGear
:
null
,
frontWindow
:
null
,
rearWindow
:
null
,
rearGear
:
null
,
sunRoof
:
null
frontGear
:
null
,
// 1 ,回显upgradeGoodsPosition == 1
frontWindow
:
null
,
// 2
rearWindow
:
null
,
// 3
rearGear
:
null
,
// 4
sunRoof
:
null
,
// 5, 6,7
package
:
null
,
skuGoods
:
null
// upgradeGoodsPosition 为空,则是其他精品单商品
},
// 弹窗传入的数据},
popupType
:
0
,
popupTypeEnum
,
...
...
@@ -131,23 +196,26 @@ export default {
this
.
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
this
.
baseConfigData
=
uni
.
$storage
.
get
(
'mock_data'
)
||
{}
const
{
userInfo
}
=
this
// 在原有的 orderObj 对象上新增这些属性
Object
.
assign
(
this
.
orderObj
,
{
sellerMerchantName
:
userInfo
.
merchantName
,
sellerName
:
userInfo
.
name
,
sellerMerchantId
:
userInfo
.
merchantId
,
sellerUserId
:
userInfo
.
uuid
,
merchantId
:
userInfo
.
shopMerchantId
,
merchantName
:
userInfo
.
shopMerchantName
})
this
.
initData
()
},
methods
:
{
initData
()
{
const
{
userInfo
}
=
this
if
(
!
this
.
orderObj
.
id
)
{
// 在原有的 orderObj 对象上新增这些属性
Object
.
assign
(
this
.
orderObj
,
{
sellerMerchantName
:
userInfo
.
merchantName
,
sellerName
:
userInfo
.
name
,
sellerMerchantId
:
userInfo
.
merchantId
,
sellerUserId
:
userInfo
.
uuid
,
merchantId
:
userInfo
.
shopMerchantId
,
merchantName
:
userInfo
.
shopMerchantName
})
}
this
.
getShopMerchantPointConfig
(
userInfo
.
shopMerchantId
)
this
.
getSubShopMerchantList
(
userInfo
.
shopMerchantId
)
this
.
getSetting
()
this
.
getConfig
()
this
.
getConfigList
()
// this.getEmployeeList()
...
...
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