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 86091edf
authored
Aug 27, 2025
by
cen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 修改工单确认参数
1 parent
3f99d20b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
39 deletions
pages/boutique/tool/components/ConfirmOrder.vue
pages/boutique/tool/components/ConfirmOrder.vue
View file @
86091ed
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</view>
</view>
</view>
</view>
<view
class=
"good-list"
>
<view
class=
"good-list"
>
<view
class=
"good
p
t-16"
v-for=
"(item, index) in orderInfo.subOrderList"
>
<view
class=
"good
m
t-16"
v-for=
"(item, index) in orderInfo.subOrderList"
>
<view
class=
"flex justify-between align-center"
>
<view
class=
"flex justify-between align-center"
>
<text
class=
"good-name"
>
商品名称:
{{
replaceItemText
(
item
.
upgradeGoodsName
)
||
''
}}
</text>
<text
class=
"good-name"
>
商品名称:
{{
replaceItemText
(
item
.
upgradeGoodsName
)
||
''
}}
</text>
<text
class=
"good-price"
>
¥
{{
item
.
price
}}
</text>
<text
class=
"good-price"
>
¥
{{
item
.
price
}}
</text>
...
@@ -231,7 +231,7 @@ export default {
...
@@ -231,7 +231,7 @@ export default {
this
.
getPositionList
()
this
.
getPositionList
()
// "this.transmissionOfData.orderCode"
// "this.transmissionOfData.orderCode"
this
.
getDetail
(
this
.
transmissionOfData
.
orderCode
)
this
.
getDetail
(
this
.
transmissionOfData
.
orderCode
)
this
.
successDate
=
dayjs
().
format
(
'YYYY-MM-DD
HH:mm:ss
'
)
this
.
successDate
=
dayjs
().
format
(
'YYYY-MM-DD
00:00:00
'
)
}
}
},
},
immediate
:
true
immediate
:
true
...
@@ -306,11 +306,6 @@ export default {
...
@@ -306,11 +306,6 @@ export default {
total_price
+=
item
.
totalPrice
total_price
+=
item
.
totalPrice
})
})
// 处理subOrderList 商品为空的情况
data
.
subOrderList
=
data
.
subOrderList
.
filter
(
item
=>
item
.
merchantGoodsId
)
if
(
data
.
packageGoodsList
&&
data
.
packageGoodsList
.
length
)
{
data
.
subOrderList
=
data
.
subOrderList
.
concat
(
data
.
packageGoodsList
)
}
data
=
{
data
=
{
...
data
.
customer
,
...
data
.
customer
,
...
data
.
payOrder
,
...
data
.
payOrder
,
...
@@ -370,38 +365,6 @@ export default {
...
@@ -370,38 +365,6 @@ export default {
// }
// }
})
})
},
},
async
getPackageGoodsDetail
(
orderCode
)
{
try
{
let
params
=
{
orderCode
}
let
{
total_price
}
=
this
.
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
.
packageGoodsList
=
res
.
data
.
packageGoodsList
this
.
orderInfo
.
total_price
=
Number
(
utils
.
decimal
(
total_price
,
2
)).
toFixed
(
2
)
}
})
}
catch
(
err
)
{}
},
async
getPositionList
()
{
async
getPositionList
()
{
const
res
=
await
uni
.
$api
.
boutiqueApi
.
getPositionList
({})
const
res
=
await
uni
.
$api
.
boutiqueApi
.
getPositionList
({})
this
.
positionTypeList
=
res
this
.
positionTypeList
=
res
...
@@ -413,6 +376,14 @@ export default {
...
@@ -413,6 +376,14 @@ export default {
this
.
checkPayType
()
this
.
checkPayType
()
},
},
edit
()
{
edit
()
{
const
data
=
{
...
this
.
orderInfo
}
// 处理subOrderList 商品为空的情况
data
.
subOrderList
=
data
.
subOrderList
.
filter
(
item
=>
item
.
merchantGoodsId
)
if
(
data
.
packageGoodsList
&&
data
.
packageGoodsList
.
length
)
{
data
.
subOrderList
=
data
.
subOrderList
.
concat
(
data
.
packageGoodsList
)
}
// 商品是否包含太阳膜
data
.
isFilmOrder
=
data
.
subOrderList
?.
findIndex
(
subE
=>
subE
?.
upgradeGoodsType
==
1
)
>
-
1
this
.
$emit
(
'jump'
,
'CreateOrder'
,
{
paramsData
:
this
.
orderInfo
,
type
:
'editWithPay'
})
this
.
$emit
(
'jump'
,
'CreateOrder'
,
{
paramsData
:
this
.
orderInfo
,
type
:
'editWithPay'
})
},
},
confirmDate
(
date
)
{
confirmDate
(
date
)
{
...
@@ -716,6 +687,9 @@ export default {
...
@@ -716,6 +687,9 @@ export default {
.ml-12
{
.ml-12
{
margin-left
:
toRpx
(
12
);
margin-left
:
toRpx
(
12
);
}
}
.mt-16
{
margin-top
:
toRpx
(
16
);
}
.py-8
{
.py-8
{
padding
:
toRpx
(
8
)
0
;
padding
:
toRpx
(
8
)
0
;
}
}
...
...
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