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 1cf8281a
authored
Aug 25, 2025
by
cen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 跳转参数
1 parent
d36bc044
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
54 additions
and
42 deletions
assets/css/sprite.scss
assets/images/sprite.png
assets/spritesmith/edit.png
pages/boutique/tool/components/CreateOrder.vue
pages/boutique/tool/components/OrderDetail.vue
pages/boutique/tool/components/OrderManagement.vue
assets/css/sprite.scss
View file @
1cf8281
This diff is collapsed.
Click to expand it.
assets/images/sprite.png
View file @
1cf8281
2.61 MB
|
W:
|
H:
2.61 MB
|
W:
|
H:
2-up
Swipe
Onion skin
assets/spritesmith/edit.png
0 → 100644
View file @
1cf8281
1.25 KB
pages/boutique/tool/components/CreateOrder.vue
View file @
1cf8281
...
...
@@ -4,18 +4,10 @@
<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"
>
<!-- 使用v-for循环渲染产品组件,减少重复代码 -->
<template
v-for=
"(_, slotName) in productSlots"
:slot=
"slotName"
>
<Product
:key=
"slotName"
v-if=
"orderObj[slotName] && orderObj[slotName].length"
@
changeTotalPrice=
"changeTotalPrice"
:list=
"orderObj[slotName]"
:positionTypeList=
"positionTypeList"
:baseConfigData=
"baseConfigData"
>
</Product>
<template
v-for=
"(_, slotName) in productSlots"
:slot=
"slotName"
>
<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"
@
changeTotalPrice=
"changeTotalPrice"
:list=
"orderObj.package"
:positionTypeList=
"positionTypeList"
></Package>
...
...
@@ -24,7 +16,7 @@
<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>
<view
class=
"total-right"
>
¥
{{
totalPrice
}}
</view>
</view>
</
template
>
<
template
slot=
"otherPay"
>
...
...
@@ -58,13 +50,13 @@ export default {
SkuGoods
},
props
:
{
selectedTrade
Data
:
{
transmissionOf
Data
:
{
type
:
Object
,
default
:
()
=>
null
}
},
watch
:
{
selectedTrade
Data
:
{
transmissionOf
Data
:
{
handler
(
newVal
)
{
if
(
newVal
)
{
console
.
log
(
'接收到的交易数据:'
,
newVal
)
...
...
@@ -78,7 +70,7 @@ export default {
},
data
()
{
return
{
orderCreateType
:
"createWithPay"
,
// supplementOrder(补录订单) createWithPay(新增)
orderCreateType
:
'createWithPay'
,
// supplementOrder(补录订单) createWithPay(新增)
formList
:
utils
.
deepClone
(
FORM_LIST
),
userInfo
:
{},
baseConfigData
:
{},
...
...
@@ -116,8 +108,8 @@ export default {
frontWindow
:
true
,
rearGear
:
true
,
rearWindow
:
true
,
sunRoof
:
true
,
}
,
sunRoof
:
true
}
}
},
computed
:
{
...
...
@@ -130,7 +122,7 @@ export default {
console
.
log
(
options
,
'options'
)
},
mounted
()
{
console
.
log
(
'mounted'
,
this
.
orderCreateType
)
console
.
log
(
'mounted'
,
this
.
orderCreateType
)
this
.
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
this
.
baseConfigData
=
uni
.
$storage
.
get
(
'mock_data'
)
||
{}
const
{
userInfo
}
=
this
...
...
@@ -193,7 +185,7 @@ export default {
const
_typeValue
=
this
.
popupTypeEnum
[
this
.
popupType
]
console
.
log
(
_typeValue
)
// 定义产品相关字段数组
const
productFields
=
[
'frontGear'
,
'frontWindow'
,
'rearGear'
,
'rearWindow'
,
'sunRoof'
,
'package'
,
'skuGoods'
]
;
const
productFields
=
[
'frontGear'
,
'frontWindow'
,
'rearGear'
,
'rearWindow'
,
'sunRoof'
,
'package'
,
'skuGoods'
]
if
(
_typeValue
.
key
==
'carBrand'
)
{
// 车型
this
.
$set
(
this
.
orderObj
,
_typeValue
.
key
,
`
${
chooseContent
.
carBrand
}
-
${
chooseContent
.
carChildsBrandName
}
-
${
chooseContent
.
carSeriesName
}
`
)
...
...
@@ -218,9 +210,11 @@ export default {
// 过滤出已选的goodFlag为2的对象
const
selectedGoods
=
this
.
orderObj
[
_typeValue
.
key
].
filter
(
item
=>
item
.
goodsFlag
===
2
)
const
singleGoods
=
chooseContent
.
filter
(
item
=>
item
.
goodsFlag
===
1
)
const
moreGoods
=
chooseContent
.
filter
(
item
=>
item
.
goodsFlag
===
2
).
filter
(
item
=>
{
return
!
selectedGoods
.
some
(
selectedItem
=>
selectedItem
.
multipleSpecificationsGoods
.
id
===
item
.
multipleSpecificationsGoods
.
id
)
})
const
moreGoods
=
chooseContent
.
filter
(
item
=>
item
.
goodsFlag
===
2
)
.
filter
(
item
=>
{
return
!
selectedGoods
.
some
(
selectedItem
=>
selectedItem
.
multipleSpecificationsGoods
.
id
===
item
.
multipleSpecificationsGoods
.
id
)
})
// 合并已选的goodFlag为2的对象
this
.
orderObj
[
_typeValue
.
key
]
=
[...
singleGoods
,
...
moreGoods
,
...
selectedGoods
]
}
...
...
@@ -313,7 +307,7 @@ export default {
async
submit
()
{
console
.
log
(
this
.
orderObj
)
if
(
!
this
.
checkRequired
())
return
const
{
orderCreateType
}
=
this
const
{
orderCreateType
}
=
this
const
obj
=
utils
.
deepClone
(
this
.
orderObj
)
const
otherCustomer
=
[
'standNo'
,
'plateNumber'
,
'customerSex'
,
'experienceFlag'
,
'salesType'
]
obj
.
customer
=
{
...
...
@@ -332,10 +326,10 @@ export default {
let
subGoodsList
=
[]
labelFields
.
forEach
(
field
=>
{
if
(
Array
.
isArray
(
obj
[
field
])
&&
obj
[
field
].
length
>
0
)
{
goodsList
=
goodsList
.
concat
(
obj
[
field
])
;
goodsList
=
goodsList
.
concat
(
obj
[
field
])
}
delete
obj
[
field
]
;
})
;
delete
obj
[
field
]
})
if
(
goodsList
.
length
>
0
)
{
goodsList
.
map
(
e
=>
{
if
(
e
.
goodsFlag
==
1
)
{
...
...
@@ -390,7 +384,7 @@ export default {
// 更新总价
this
.
totalPrice
=
total
.
toFixed
(
2
)
},
// 获取上一个订单的销售顾问信息 并且不是再次下单
async
getLastUserOrderInfo
()
{
const
res
=
await
uni
.
$api
.
boutiqueApi
.
getLastUserOrderInfo
({
...
...
@@ -746,12 +740,12 @@ export default {
padding
:
toRpx
(
24
)
toRpx
(
32
)
toRpx
(
24
)
0
;
font-size
:
toRpx
(
28
);
border-bottom
:
toRpx
(
2
)
solid
#f7f7f6
;
&-left
{
color
:
#333
;
font-weight
:
500
;
}
&
-right
{
color
:
#f45001
;
font-weight
:
500
;
...
...
pages/boutique/tool/components/OrderDetail.vue
View file @
1cf8281
...
...
@@ -2,7 +2,7 @@
<view
class=
"order-detail"
>
<view
class=
"common-title"
>
{{
orderInfo
.
constructionFlag
==
'Y'
&&
orderInfo
.
status
!=
10
?
'完成施工'
:
'工单详情'
}}
</view>
<view
class=
"px-48 scroll-y"
v-if=
"orderInfo"
>
<view
class=
"top-tips flex align-center"
v-if=
"orderInfo.status != 10 && orderInfo.status != 9"
>
<view
class=
"top-tips flex align-center"
v-if=
"orderInfo.status != 10 && orderInfo.status != 9
&& orderInfo.constructionFlag !== 'Y'
"
>
<uni-icons
class=
"checkbox-filled"
type=
"checkbox-filled"
color=
"#4ac18e"
></uni-icons>
<view>
<view
class=
"fs-34 fw-5"
>
客户已付款
</view>
...
...
@@ -19,8 +19,11 @@
<!--
<view
class=
"tips"
>
客户支付超过24小时,系统自动关闭订单
</view>
-->
</view>
<view
class=
"top-tips flex align-center"
v-if=
"orderInfo.constructionFlag == 'Y'"
>
<view
class=
"fs-34 fw-5"
>
客户
{{
orderInfo
.
customer
.
customerName
}}
</view>
<view
class=
"fs-26"
>
完成施工,如客户有新的需要,可点击再次下单。
</view>
<uni-icons
class=
"checkbox-filled"
type=
"checkbox-filled"
color=
"#4ac18e"
></uni-icons>
<view>
<view
class=
"fs-34 fw-5"
>
客户
{{
orderInfo
.
customer
.
customerName
}}
</view>
<view
class=
"fs-26"
>
完成施工,如客户有新的需要,可点击再次下单。
</view>
</view>
</view>
<!-- 商品信息 -->
<view
class=
"box-shell"
>
...
...
@@ -138,11 +141,17 @@
<view
v-if=
"warrantyCardList.length || warrantyCardVisible"
class=
"box-shell"
>
<view
class=
"box"
>
<view
class=
"box-shell-title"
>
{{
orderInfo
.
selectPayType
==
0
?
'客服'
:
'质保'
}}
</view>
<view
class=
"box-shell-title"
>
{{
orderInfo
.
selectPayType
==
0
?
'客服'
:
'质保
信息
'
}}
</view>
<view
class=
"warranty-list"
v-for=
"(item, index) in warrantyCardList"
:key=
"index"
>
<view
class=
"warranty flex align-center pt-8"
>
<view
class=
"label"
>
质保产品
</view>
<view
class=
"value"
>
{{
replaceItemText
(
item
.
goodsName
)
}}
</view>
<view
class=
"warranty flex align-center justify-between pt-8"
>
<view
class=
"flex align-center"
>
<view
class=
"label"
>
质保产品
</view>
<view
class=
"value"
>
{{
replaceItemText
(
item
.
goodsName
)
}}
</view>
</view>
<view
class=
"flex align-center edit-warranty"
>
<view
class=
"sprite-icon icon-edit mr-8"
></view>
质保价格
</view>
</view>
<view
class=
"warranty flex align-center pt-8"
>
<view
class=
"label"
>
质保期
</view>
...
...
@@ -243,12 +252,12 @@ export default {
if
(
data
.
selectPayType
!=
2
&&
(
data
.
status
==
4
||
data
.
status
==
6
||
data
.
status
==
12
))
{
// 查询订单可展示按钮
commonApi
.
getMoreBtnAPI
({
orderCode
:
data
.
orderCode
}).
then
(
res
=>
{
let
{
code
,
data
}
=
res
if
(
code
==
0
)
{
this
.
showMoreBtn
=
data
.
refundApplyButton
==
'Y'
||
data
.
refundApplyDetailButton
==
'Y'
}
})
//
commonApi.getMoreBtnAPI({ orderCode: data.orderCode }).then(res => {
//
let { code, data } = res
//
if (code == 0) {
//
this.showMoreBtn = data.refundApplyButton == 'Y' || data.refundApplyDetailButton == 'Y'
//
}
//
})
}
console
.
log
(
'3255555666'
)
// 服务商是否使用膜卷号配置
...
...
@@ -562,6 +571,9 @@ export default {
.ml-12
{
margin-left
:
toRpx
(
12
);
}
.mr-8
{
margin-right
:
toRpx
(
8
);
}
.py-8
{
padding
:
toRpx
(
8
)
0
;
}
...
...
@@ -748,6 +760,11 @@ export default {
height
:
toRpx
(
158
);
}
}
.edit-warranty
{
color
:
#347bff
;
font-size
:
toRpx
(
28
);
font-weight
:
400
;
}
}
.warranty-tips
{
margin-bottom
:
toRpx
(
12
);
...
...
pages/boutique/tool/components/OrderManagement.vue
View file @
1cf8281
...
...
@@ -463,6 +463,7 @@ export default {
this
.
$refs
.
WaitinputorderPopup
.
closePopup
()
},
jump
(
name
,
val
)
{
console
.
log
(
name
,
val
,
'jump'
)
this
.
$emit
(
'jump'
,
name
,
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