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 ab827da6
authored
Aug 18, 2025
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'V4.56.0' of
http://192.168.3.233:8090/glsx/gl_tape
into V4.56.0
2 parents
d97f9c25
b5d0eb4b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
58 additions
and
16 deletions
pages/boutique/components/OrderCard.vue
pages/boutique/tool/components/OrderManagement.vue
utils/utils.js
pages/boutique/components/OrderCard.vue
View file @
ab827da
<!--工单信息卡片-->
<!--工单信息卡片-->
<
template
>
<
template
>
<view
class=
"order-card"
>
<view
class=
"order-card"
@
click=
"() => jump(orderCardDetail.status == 3 ? 'confirmOrder' : orderCardDetail.status == 1 ? 'createOrder' : 'orderDetail', orderCardDetail)"
>
<view
class=
"order-card-top-box flex justify-between"
>
<view
class=
"order-card-top-box flex justify-between"
>
<text>
{{
orderCardDetail
.
customer
.
customerName
}}
</text>
<text>
{{
orderCardDetail
.
customer
.
customerName
}}
</text>
<view
class=
"status text-center"
:style=
"
{ color: orderCardDetail.statuscolor, 'background-color': orderCardDetail.statusbackground }">
<view
class=
"status text-center"
:style=
"
{ color: orderCardDetail.statuscolor, 'background-color': orderCardDetail.statusbackground }">
...
@@ -92,6 +92,7 @@
...
@@ -92,6 +92,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
order_mixins
from
'../order_mixins.js'
import
order_mixins
from
'../order_mixins.js'
import
utils
from
'@/utils/utils'
export
default
{
export
default
{
name
:
'OrderCard'
,
name
:
'OrderCard'
,
props
:
{
props
:
{
...
@@ -153,20 +154,50 @@ export default {
...
@@ -153,20 +154,50 @@ export default {
item
:
this
.
orderCardDetail
,
item
:
this
.
orderCardDetail
,
flag
:
!
this
.
orderCardDetail
.
showAllGoodsListFlag
flag
:
!
this
.
orderCardDetail
.
showAllGoodsListFlag
})
})
},
jump
(
name
,
item
)
{
// 订单状态 1 待跟进, 2 不升级, 3 待支付,4 已支付,6 已评价 ,9 已撤销 , 10 已关闭 , 11 已失效
// constructionFlag 施工标识(Y:已施工;N||null:未施工)
// failureFlag 订单失效状态(Y:已失效,N:未失效)
// console.log(e.currentTarget.dataset)
// return
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
if
(
userInfo
.
merchantAccountList
&&
userInfo
.
merchantAccountList
.
length
)
{
try
{
userInfo
.
merchantAccountList
.
map
(
e
=>
{
if
(
e
==
6
||
e
==
8
)
throw
true
})
}
catch
(
error
)
{
userInfo
.
merchantType
=
error
}
}
let
{
userType
,
isSuper
,
merchantType
}
=
userInfo
console
.
log
(
item
)
if
(
name
==
'createOrder'
)
{
if
(
merchantType
&&
!
isSuper
)
{
// 是微信支付直接跳转确认页面
if
(
userType
==
2
&&
item
?.
selectPayType
==
1
)
{
wx
.
$router
.
go
(
'confirmOrder'
,
item
)
}
else
if
(
userType
==
2
)
{
wx
.
$router
.
go
(
name
,
item
)
}
else
{
utils
.
showNoAccess
()
}
}
else
{
utils
.
showNoAccess
()
}
// 已支付加已施工
}
else
if
(
item
.
constructionFlag
==
'Y'
&&
item
.
status
!=
10
)
{
wx
.
$router
.
go
(
'constructionOrderDetail'
,
item
)
}
else
{
// console.log(item)
wx
.
$router
.
go
(
name
,
item
)
}
}
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.flex
{
display
:
flex
;
}
.justify-between
{
justify-content
:
space-between
;
}
.align-center
{
align-items
:
center
;
}
.order-card
{
.order-card
{
padding
:
toRpx
(
36
)
toRpx
(
32
);
padding
:
toRpx
(
36
)
toRpx
(
32
);
border-radius
:
toRpx
(
24
);
border-radius
:
toRpx
(
24
);
...
...
pages/boutique/tool/components/OrderManagement.vue
View file @
ab827da
...
@@ -175,7 +175,6 @@ export default {
...
@@ -175,7 +175,6 @@ export default {
keyword
:
''
,
keyword
:
''
,
searchObj
:
{},
searchObj
:
{},
dataList
:
[],
dataList
:
[],
userInfo
:
JSON
.
parse
(
getApp
().
globalData
.
userInfo
),
waitInputCount
:
0
,
// 添加待补录计数
waitInputCount
:
0
,
// 添加待补录计数
waitOrderTimer
:
null
,
// 定时器引用
waitOrderTimer
:
null
,
// 定时器引用
tipsProps
:
{
tipsProps
:
{
...
@@ -190,11 +189,13 @@ export default {
...
@@ -190,11 +189,13 @@ export default {
normalCurrentPage
:
1
,
normalCurrentPage
:
1
,
abnormalPages
:
1
,
abnormalPages
:
1
,
normalPages
:
1
,
normalPages
:
1
,
userInfo
:
null
,
checkListObj
:
{},
checkListObj
:
{},
...
order_mixins
.
data
...
order_mixins
.
data
}
}
},
},
mounted
()
{
mounted
()
{
this
.
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
this
.
search
()
this
.
search
()
this
.
startWaitOrderPolling
()
this
.
startWaitOrderPolling
()
},
},
...
@@ -203,7 +204,7 @@ export default {
...
@@ -203,7 +204,7 @@ export default {
},
},
methods
:
{
methods
:
{
search
()
{
search
()
{
// 判断是不是超管 && !userInfo.isSuper
// 判断是不是超管 && !
this.
userInfo.isSuper
// ,不是只能筛选当前4s店的
// ,不是只能筛选当前4s店的
if
(
!
this
.
searchObj
.
merchantId
)
{
if
(
!
this
.
searchObj
.
merchantId
)
{
this
.
searchObj
.
merchantId
=
this
.
userInfo
?.
shopMerchantId
this
.
searchObj
.
merchantId
=
this
.
userInfo
?.
shopMerchantId
...
@@ -213,7 +214,9 @@ export default {
...
@@ -213,7 +214,9 @@ export default {
},
},
async
waitinputorderClick
()
{
async
waitinputorderClick
()
{
if
(
await
this
.
inspectionOfProhibitionBill
())
return
if
(
await
this
.
inspectionOfProhibitionBill
())
return
this
.
getTransactionSerialNumber
()
if
(
!
this
.
normalOrderNoList
.
length
&&
!
this
.
abnormalOrderNoList
.
length
)
{
this
.
getTransactionSerialNumber
()
}
this
.
$refs
.
WaitinputorderPopup
.
open
()
this
.
$refs
.
WaitinputorderPopup
.
open
()
},
},
handleToggleGoodsList
(
data
)
{
handleToggleGoodsList
(
data
)
{
...
@@ -309,7 +312,7 @@ export default {
...
@@ -309,7 +312,7 @@ export default {
// let userType = true
// let userType = true
list
.
map
(
e
=>
{
list
.
map
(
e
=>
{
if
(
e
.
orderTime
)
e
.
orderTime
=
dayjs
(
new
Date
(
e
.
orderTime
)).
format
(
'
yyyy-MM-dd hh
:mm:ss'
)
if
(
e
.
orderTime
)
e
.
orderTime
=
dayjs
(
new
Date
(
e
.
orderTime
)).
format
(
'
YYYY-MM-DD HH
:mm:ss'
)
e
.
subOrderList
.
map
(
i
=>
{
e
.
subOrderList
.
map
(
i
=>
{
i
.
totalPrice
=
Number
(
utils
.
decimal
(
i
.
totalPrice
,
2
)).
toFixed
(
2
)
i
.
totalPrice
=
Number
(
utils
.
decimal
(
i
.
totalPrice
,
2
)).
toFixed
(
2
)
})
})
...
@@ -319,7 +322,7 @@ export default {
...
@@ -319,7 +322,7 @@ export default {
e
.
invoiceName
=
e
.
invoiceStatus
==
2
?
'查看发票'
:
'申请开票'
e
.
invoiceName
=
e
.
invoiceStatus
==
2
?
'查看发票'
:
'申请开票'
// && e.status != 1 待跟进现在也能撤销
// && e.status != 1 待跟进现在也能撤销
let
orderType
=
(
this
.
userInfo
.
userType
==
1
||
this
.
userInfo
.
userType
==
2
)
&&
e
.
status
!=
9
&&
!
[
1
,
3
,
4
].
includes
(
e
.
selectPayType
)
let
orderType
=
(
this
.
userInfo
.
userType
==
1
||
this
.
userInfo
.
userType
==
2
)
&&
e
.
status
!=
9
&&
!
[
1
,
3
,
4
].
includes
(
e
.
selectPayType
)
// let orderType = userInfo.userType !== 1 && e.status != 9 && e.status != 1 && e.selectPayType != 3 && e.selectPayType != 1
// let orderType =
this.
userInfo.userType !== 1 && e.status != 9 && e.status != 1 && e.selectPayType != 3 && e.selectPayType != 1
// console.log(userType);
// console.log(userType);
// console.log(orderType);
// console.log(orderType);
e
.
repeal
=
userType
&&
orderType
e
.
repeal
=
userType
&&
orderType
...
...
utils/utils.js
View file @
ab827da
...
@@ -231,6 +231,13 @@ const setPrice = price => {
...
@@ -231,6 +231,13 @@ const setPrice = price => {
if
(
!
decimal
)
decimal
=
'00'
if
(
!
decimal
)
decimal
=
'00'
return
(
num
||
0
).
toString
().
replace
(
/
(\d)(?=(?:\d{3})
+$
)
/g
,
'$1,'
)
+
`.
${
decimal
}
`
return
(
num
||
0
).
toString
().
replace
(
/
(\d)(?=(?:\d{3})
+$
)
/g
,
'$1,'
)
+
`.
${
decimal
}
`
}
}
const
showNoAccess
=
()
=>
{
// wx.showToast('您的账号无法完成此操作')
uni
.
showToast
({
title
:
'您的账号无法完成此操作'
,
icon
:
'error'
})
}
export
default
{
export
default
{
compareVersions
,
compareVersions
,
convertDateTimeFormat
,
convertDateTimeFormat
,
...
@@ -247,5 +254,6 @@ export default {
...
@@ -247,5 +254,6 @@ export default {
calcAdd
,
calcAdd
,
getViewInfo
,
getViewInfo
,
setPrice
,
setPrice
,
decimal
decimal
,
showNoAccess
}
}
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