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 b8bda5ab
authored
Aug 26, 2025
by
cen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 补充弹窗回调
1 parent
e488f0f3
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
211 additions
and
46 deletions
api/module/boutique.js
components/PublishPopup.vue
pages/boutique/components/OrderCard.vue
pages/boutique/tool/components/ConfirmOrder.vue
pages/boutique/tool/components/OrderDetail.vue
pages/boutique/tool/components/OrderManagement.vue
api/module/boutique.js
View file @
b8bda5a
...
...
@@ -325,5 +325,17 @@ module.exports = {
/** 战败订单批量补录 */
notUpgradeOrder
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.order.notUpgrade.batchInsert'
,
projectName
:
'boutique'
,
...
data
})
},
/**改变支付订单状态 */
createPayOrder
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.payOrder.create'
,
projectName
:
'boutique'
,
...
data
})
},
/** 质保价格编辑接口 */
modifyWarrantyPrice
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.customer.warrantyCard.modifyWarrantyPrice'
,
projectName
:
'boutique'
,
...
data
})
}
}
components/PublishPopup.vue
View file @
b8bda5a
...
...
@@ -72,17 +72,33 @@ export default {
}
},
methods
:
{
open
(
callback
)
{
this
.
$refs
.
publishPopup
.
open
()
open
()
{
this
.
$nextTick
(()
=>
{
console
.
log
(
this
.
$refs
)
if
(
this
.
$refs
.
publishPopup
)
{
this
.
$refs
.
publishPopup
.
open
()
}
})
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
resolve
=
resolve
this
.
reject
=
reject
})
},
change
(
e
)
{
this
.
show
=
e
.
show
},
closePopup
()
{
this
.
$refs
.
publishPopup
.
close
()
if
(
this
.
reject
)
{
this
.
reject
()
}
this
.
$emit
(
'close'
)
},
confirm
()
{
if
(
this
.
resolve
)
{
this
.
$refs
.
publishPopup
.
close
()
this
.
resolve
()
}
this
.
$emit
(
'confirm'
)
}
}
...
...
pages/boutique/components/OrderCard.vue
View file @
b8bda5a
...
...
@@ -84,9 +84,9 @@
</view>
</view>
<!-- 施工技师 -->
<view
class=
"construction-staff flex"
v-if=
"orderCardDetail.constructionFlag == 'Y'"
>
<view
class=
"construction-staff flex"
v-if=
"orderCardDetail
&& orderCardDetail
.constructionFlag == 'Y'"
>
<view
class=
"staff-label"
>
施工技师
</view>
<view
class=
"staff-value"
>
111
</view>
<view
class=
"staff-value"
>
{{
orderCardDetail
.
technicianName
}}
</view>
</view>
<PublishPopup
ref=
"recordOrderPopup"
popupClass=
"recordOrderPopup"
type=
"center"
:showClose=
"true"
title=
"请选择录单入口"
>
<template
#
content
>
...
...
@@ -103,7 +103,7 @@
<view
class=
"sprite-icon icon-expiration"
></view>
失效客户
</view>
<view
class=
"modalbox cancle"
:class=
"selectType == 4 ? 'act' : ''"
@
click
.
stop=
"changeType(4)"
>
<view
class=
"modalbox cancle"
v-if=
"orderCardDetail.constructionFlag !== 'Y' && orderCardDetail.selectPayType !== 1 && orderCardDetail.selectPayType !== 3 && orderCardDetail.selectPayType !== 4 && orderCardDetail.status !== 9"
:class=
"selectType == 4 ? 'act' : ''"
@
click
.
stop=
"changeType(4)"
>
<view
class=
"sprite-icon icon-revoke"
></view>
撤销工单
</view>
...
...
@@ -181,9 +181,13 @@ export default {
label
:
'工单时间'
,
key
:
'orderTime'
}
]
],
localUserInfo
:
null
}
},
mounted
()
{
this
.
localUserInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
},
methods
:
{
// 查看全部商品
showAllGoodsList
(
e
)
{
...
...
@@ -198,18 +202,18 @@ export default {
// failureFlag 订单失效状态(Y:已失效,N:未失效)
// console.log(e.currentTarget.dataset)
// return
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
if
(
userInfo
.
merchantAccountList
&&
u
serInfo
.
merchantAccountList
.
length
)
{
if
(
this
.
localUserInfo
.
merchantAccountList
&&
this
.
localU
serInfo
.
merchantAccountList
.
length
)
{
try
{
u
serInfo
.
merchantAccountList
.
map
(
e
=>
{
this
.
localU
serInfo
.
merchantAccountList
.
map
(
e
=>
{
if
(
e
==
6
||
e
==
8
)
throw
true
})
}
catch
(
error
)
{
u
serInfo
.
merchantType
=
error
this
.
localU
serInfo
.
merchantType
=
error
}
}
userInfo
.
isMake
=
!
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
?.
loginRole
==
5
||
userInfo
?.
loginRole
==
6
||
u
serInfo
?.
loginRole
==
7
)
let
{
userType
,
isSuper
,
merchantType
,
isMake
}
=
u
serInfo
this
.
localUserInfo
.
isMake
=
!
(
this
.
localUserInfo
?.
isSuper
||
this
.
localUserInfo
?.
loginRole
==
3
||
this
.
localUserInfo
?.
loginRole
==
5
||
this
.
localUserInfo
?.
loginRole
==
6
||
this
.
localU
serInfo
?.
loginRole
==
7
)
let
{
userType
,
isSuper
,
merchantType
,
isMake
}
=
this
.
localU
serInfo
console
.
log
(
item
)
if
(
name
==
'CreateOrder'
||
name
==
'PremiumUpgrade'
)
{
if
(
merchantType
&&
!
isSuper
&&
isMake
)
{
...
...
@@ -246,16 +250,20 @@ export default {
if
((
!
this
.
isSettingExpiredTraffic
||
scan
)
&&
this
.
selectType
==
3
)
{
this
.
selectType
=
1
}
this
.
$refs
.
recordOrderPopup
.
open
()
this
.
$nextTick
(()
=>
{
if
(
this
.
$refs
.
recordOrderPopup
)
{
this
.
$refs
.
recordOrderPopup
.
open
()
}
else
{
console
.
error
(
'recordOrderPopup ref is not available'
)
}
})
},
// 获取轻改录单配置是否启用流量失效
getCreateOrderSetting
()
{
let
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
let
merchantType
=
userInfo
?.
merchantAccountList
.
includes
(
'6'
)
||
userInfo
?.
merchantAccountList
.
includes
(
'8'
)
if
(
merchantType
&&
!
userInfo
?.
isSuper
&&
userInfo
?.
loginRole
!=
3
&&
userInfo
?.
userType
==
2
&&
userInfo
?.
shopMerchantId
)
{
uni
.
$api
.
boutiqueApi
.
getServiceBaseInfo
({
merchantId
:
userInfo
?.
shopMerchantId
}).
then
(
res
=>
{
let
merchantType
=
this
.
localUserInfo
?.
merchantAccountList
.
includes
(
'6'
)
||
this
.
localUserInfo
?.
merchantAccountList
.
includes
(
'8'
)
if
(
merchantType
&&
!
this
.
localUserInfo
?.
isSuper
&&
this
.
localUserInfo
?.
loginRole
!=
3
&&
this
.
localUserInfo
?.
userType
==
2
&&
this
.
localUserInfo
?.
shopMerchantId
)
{
uni
.
$api
.
boutiqueApi
.
getServiceBaseInfo
({
merchantId
:
this
.
localUserInfo
?.
shopMerchantId
}).
then
(
res
=>
{
this
.
isSettingExpiredTraffic
=
res
?.
data
?.
trafficExpireFlag
==
'Y'
})
}
...
...
pages/boutique/tool/components/ConfirmOrder.vue
View file @
b8bda5a
...
...
@@ -251,7 +251,12 @@ export default {
posQrCode
:
''
}
},
mounted
()
{},
mounted
()
{
// this.getPositionList()
// // "this.transmissionOfData.orderCode"
// this.getDetail('250826151911809')
// this.successDate = dayjs().format('YYYY-MM-DD HH:mm:ss')
},
methods
:
{
replaceItemText
(
item
)
{
var
reg
=
getRegExp
(
';~;'
,
'g'
)
...
...
@@ -267,9 +272,7 @@ export default {
.
then
(
data
=>
{
if
(
data
.
payOrder
&&
data
.
payOrder
.
payStatus
==
2
)
{
if
(
this
.
time
)
clearInterval
(
this
.
time
)
// wx.$router.redirectTo('orderDetail', {
// orderCode
// })
this
.
$emit
(
'jump'
,
'OrderDetail'
,
data
)
return
}
let
couponName
=
data
.
customerCoupon
?
data
.
customerCoupon
.
couponName
:
''
...
...
@@ -532,6 +535,7 @@ export default {
uni
.
$api
.
boutiqueApi
.
createPayOrder
(
obj
).
then
(
data
=>
{
if
(
data
)
{
console
.
log
(
`类型为:
${
selectPayType
}
`
)
console
.
log
(
this
.
orderInfo
)
if
(
selectPayType
==
3
||
selectPayType
==
1
)
{
this
.
orderInfo
.
payOrder
.
outTradeNo
=
data
.
outTradeNo
let
size
=
0
...
...
@@ -665,6 +669,7 @@ export default {
height
:
100%
;
.scroll-y
{
border-radius
:
toRpx
(
16
);
height
:
calc
(
100%
-
#{
toRpx
(
296
)}
);
overflow-y
:
scroll
;
&
::-webkit-scrollbar
{
...
...
pages/boutique/tool/components/OrderDetail.vue
View file @
b8bda5a
<
template
>
<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=
"px-48 scroll-y"
:class=
"
{ 'construction-flag-y': orderInfo
&&
orderInfo.constructionFlag !== 'Y'
&&
!isMake }"
v-if="orderInfo">
<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>
...
...
@@ -171,7 +171,7 @@
<view
class=
"label"
>
质保产品
</view>
<view
class=
"value"
>
{{
replaceItemText
(
item
.
goodsName
)
}}
</view>
</view>
<view
class=
"flex align-center edit-warranty"
>
<view
class=
"flex align-center edit-warranty"
@
click=
"warrantyEdit(item)"
v-if=
"orderInfo.constructionFlag == 'Y'"
>
<view
class=
"sprite-icon icon-edit mr-8"
></view>
质保价格
</view>
...
...
@@ -206,6 +206,9 @@
<view
class=
"flex align-center footer-box justify-center"
v-if=
"isMake"
>
<view
class=
"edit btn flex-1"
@
click=
"repeal"
>
撤销工单
</view>
</view>
<view
class=
"flex align-center footer-box justify-center"
v-if=
"orderInfo.constructionFlag == 'Y'"
>
<view
class=
"edit btn flex-1"
@
click=
"repeal"
>
再来一单
</view>
</view>
<!-- 已支付4 战败2 已评价6 三种状态才展示 并且不是通过失效客户录入的战败单 -->
<view
v-if=
"!userInfo.isSuper && userInfo.loginRole != 3 && userInfo.loginRole != 6 && userInfo.userType == 2 && (orderInfo.status == 4 || orderInfo.status == 2 || orderInfo.status == 6) && ((orderInfo.subOrderList && orderInfo.subOrderList.length) || (orderInfo.packageGoodsList && orderInfo.packageGoodsList.length))"
>
<!-- 不需要走签名逻辑 -->
...
...
@@ -224,6 +227,27 @@
<uni-calendar
class=
"calendar"
:showMonth=
"false"
@
change=
"calendarChange"
/>
</
template
>
</PublishPopup>
<PublishPopup
ref=
"tipsPopup"
popupClass=
"tipsPopup"
type=
"center"
:showClose=
"true"
:showTitle=
"false"
>
<
template
#
content
>
<view>
<image
class=
"tipsPopupBg"
src=
"@/assets/images/boutique/tipsPopupBg.png"
/>
<view
class=
"title"
>
重要提示
</view>
<view
class=
"tipsConent"
>
<view>
是否确认撤销工单?
</view>
</view>
</view>
</
template
>
</PublishPopup>
<PublishPopup
ref=
"warrantyPopup"
popupClass=
"warrantyPopup"
type=
"center"
title=
"质保价格"
:showClose=
"true"
@
confirm=
"confirmEdit"
>
<
template
#
content
>
<view
class=
"warranty-content"
>
<view
class=
"name"
>
产品:
{{
replaceItemText
(
warrantyEditObj
.
goodsName
)
}}
</view>
<view
class=
"label"
>
质保价格
</view>
<textarea
class=
"warranty-input"
v-model=
"warrantyEditObj.warrantyPrice"
maxlength=
"50"
placeholder=
"请输入(最多50字)"
/>
<view
class=
"tips"
>
质保价格输入的内容会在车主查询质保卡时显示
</view>
</view>
</
template
>
</PublishPopup>
</view>
</template>
<
script
>
...
...
@@ -253,8 +277,6 @@ export default {
this
.
baseConfigData
=
baseConfigData
this
.
getDetail
(
this
.
transmissionOfData
.
orderCode
)
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
console
.
log
(
userInfo
)
this
.
isMake
=
!
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
.
loginRole
==
5
||
userInfo
?.
loginRole
==
6
||
userInfo
?.
loginRole
==
7
)
}
},
immediate
:
true
...
...
@@ -271,7 +293,8 @@ export default {
signatureSwitch
:
false
,
//不需要走签名逻辑 没有开启签名功能或则是战败订单
warrantyCardList
:
[],
isMake
:
true
,
selectDate
:
null
selectDate
:
null
,
warrantyEditObj
:
{}
}
},
async
mounted
()
{},
...
...
@@ -375,6 +398,8 @@ export default {
}
this
.
orderInfo
=
data
console
.
log
(
this
.
orderInfo
,
'this.orderInfo'
)
console
.
log
(
this
.
orderInfo
.
selectPayType
,
this
.
orderInfo
.
constructionFlag
)
this
.
isMake
=
this
.
orderInfo
.
constructionFlag
!==
'Y'
&&
this
.
orderInfo
.
selectPayType
!==
1
&&
this
.
orderInfo
.
selectPayType
!==
3
&&
this
.
orderInfo
.
selectPayType
!==
4
&&
this
.
orderInfo
.
status
!==
9
this
.
invoiceName
=
data
.
invoiceStatus
==
2
?
'查看发票'
:
'申请开票'
// 去掉车主评价功能
// this.setQrBoxHeight()
...
...
@@ -546,19 +571,24 @@ export default {
},
// 撤销该工单
async
repeal
()
{
// 校验是否填写昨日日报
// let staffCheck = await checkDailyReport();
// if (staffCheck) return false;
let
_this
=
this
uni
.
$api
.
boutiqueApi
.
revokeOrder
({
orderCode
:
this
.
transmissionOfData
.
orderCode
this
.
$refs
.
tipsPopup
.
open
()
.
then
(()
=>
{
let
_this
=
this
uni
.
$api
.
boutiqueApi
.
revokeOrder
({
orderCode
:
this
.
transmissionOfData
.
orderCode
})
.
then
(
data
=>
{
uni
.
showToast
({
title
:
'操作成功'
,
icon
:
'success'
})
this
.
getDetail
(
this
.
transmissionOfData
.
orderCode
)
})
})
.
then
(
data
=>
{
uni
.
showToast
({
title
:
'操作成功'
,
icon
:
'success'
})
.
catch
(()
=>
{
console
.
log
(
'用户点击了取消或关闭'
)
})
},
customizeDate
()
{
...
...
@@ -594,6 +624,21 @@ export default {
calendarChange
(
date
)
{
console
.
log
(
date
)
this
.
selectDate
=
date
.
year
+
'-'
+
date
.
month
+
'-'
+
date
.
date
},
warrantyEdit
(
item
)
{
console
.
log
(
item
)
this
.
warrantyEditObj
=
item
this
.
$refs
.
warrantyPopup
.
open
()
},
confirmEdit
()
{
uni
.
$api
.
boutiqueApi
.
modifyWarrantyPrice
({
...
this
.
warrantyEditObj
})
.
then
(
result
=>
{
uni
.
showToast
({
title
:
'更新成功'
,
icon
:
'success'
})
this
.
$refs
.
warrantyPopup
.
closePopup
()
this
.
getOrderDetail
(
this
.
orderInfo
.
orderCode
)
})
.
catch
(
err
=>
{})
}
}
}
...
...
@@ -602,6 +647,82 @@ export default {
.order-detail
{
position
:
relative
;
height
:
100%
;
//
Popup样式
::v-deep
.tipsPopup
.uni-popup__wrapper
{
width
:
toRpx
(
848
);
height
:
toRpx
(
744
);
border-radius
:
toRpx
(
42
);
background
:
rgb
(
255
,
255
,
255
)
!important
;
.tipsPopupBg
{
border-radius
:
toRpx
(
42
)
toRpx
(
42
)
0
0
;
width
:
100%
;
height
:
toRpx
(
244
);
}
.title
{
color
:
#333333
;
font-size
:
toRpx
(
40
);
font-weight
:
500
;
text-align
:
center
;
margin-top
:
toRpx
(
48
);
}
.tipsConent
{
text-align
:
center
;
color
:
#666666
;
font-size
:
toRpx
(
32
);
font-weight
:
400
;
padding
:
toRpx
(
16
)
toRpx
(
64
);
line-height
:
toRpx
(
48
);
text
{
color
:
#347bff
;
}
}
}
::v-deep
.warrantyPopup
.uni-popup__wrapper
{
width
:
36%
;
height
:
toRpx
(
808
);
border-radius
:
toRpx
(
32
);
background
:
#fff
!important
;
.popup-top-box
{
padding
:
toRpx
(
48
)
toRpx
(
64
);
border-radius
:
toRpx
(
32
);
font-size
:
toRpx
(
40
);
font-weight
:
500
;
text-align
:
left
;
background
:
linear-gradient
(
180deg
,
#e6f0ff
0%
,
#ffffff
100%
)
!important
;
}
.warranty-content
{
padding
:
toRpx
(
0
)
toRpx
(
64
);
.name
{
color
:
#666666
;
font-size
:
toRpx
(
32
);
font-weight
:
400
;
margin-bottom
:
toRpx
(
48
);
}
.label
{
color
:
#333333
;
font-size
:
toRpx
(
32
);
font-weight
:
400
;
margin-bottom
:
toRpx
(
24
);
}
.warranty-input
{
border-radius
:
12px
;
background
:
#f4f5f7
;
height
:
toRpx
(
216
);
margin-bottom
:
toRpx
(
24
);
padding
:
toRpx
(
32
)
toRpx
(
32
)
toRpx
(
32
)
toRpx
(
32
);
.uni-textarea-placeholder
{
color
:
#999999
;
font-size
:
toRpx
(
32
);
font-weight
:
400
;
}
}
.tips
{
color
:
#666666
;
font-size
:
toRpx
(
28
);
font-weight
:
400
;
}
}
}
::v-deep
.calendarPopup
.uni-popup__wrapper
{
width
:
100%
;
height
:
62vh
;
...
...
@@ -619,6 +740,9 @@ export default {
background
:
transparent
;
}
}
.construction-flag-y
{
height
:
calc
(
100%
-
#{
toRpx
(
182
)}
);
}
.px-48
{
padding
:
0
toRpx
(
48
);
}
...
...
pages/boutique/tool/components/OrderManagement.vue
View file @
b8bda5a
...
...
@@ -199,13 +199,13 @@ export default {
normalCurrentPage
:
1
,
abnormalPages
:
1
,
normalPages
:
1
,
userInfo
:
null
,
checkListObj
:
{},
localUserInfo
:
null
,
...
order_mixins
.
data
}
},
mounted
()
{
this
.
u
serInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
this
.
localU
serInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
this
.
search
()
this
.
startWaitOrderPolling
()
},
...
...
@@ -214,10 +214,10 @@ export default {
},
methods
:
{
search
()
{
// 判断是不是超管 && !this.
u
serInfo.isSuper
// 判断是不是超管 && !this.
localU
serInfo.isSuper
// ,不是只能筛选当前4s店的
if
(
!
this
.
searchObj
.
merchantId
)
{
this
.
searchObj
.
merchantId
=
this
.
u
serInfo
?.
shopMerchantId
this
.
searchObj
.
merchantId
=
this
.
localU
serInfo
?.
shopMerchantId
}
this
.
$refs
.
paging
.
reload
()
this
.
getStatByStatus
()
...
...
@@ -326,7 +326,7 @@ export default {
.
then
(
result
=>
{
const
{
list
,
total
}
=
result
// 这个是用来判断哪些用户可以撤销的
let
userType
=
(
!
this
.
userInfo
.
isSuper
&&
this
.
userInfo
.
merchantType
)
||
(
this
.
userInfo
.
loginRole
!==
3
&&
this
.
u
serInfo
?.
loginRole
!==
6
)
let
userType
=
(
!
this
.
localUserInfo
.
isSuper
&&
this
.
localUserInfo
.
merchantType
)
||
(
this
.
localUserInfo
.
loginRole
!==
3
&&
this
.
localU
serInfo
?.
loginRole
!==
6
)
// let userType = true
list
.
map
(
e
=>
{
...
...
@@ -339,8 +339,8 @@ export default {
// 开票按钮
e
.
invoiceName
=
e
.
invoiceStatus
==
2
?
'查看发票'
:
'申请开票'
// && e.status != 1 待跟进现在也能撤销
let
orderType
=
(
this
.
userInfo
.
userType
==
1
||
this
.
u
serInfo
.
userType
==
2
)
&&
e
.
status
!=
9
&&
!
[
1
,
3
,
4
].
includes
(
e
.
selectPayType
)
// let orderType = this.
u
serInfo.userType !== 1 && e.status != 9 && e.status != 1 && e.selectPayType != 3 && e.selectPayType != 1
let
orderType
=
(
this
.
localUserInfo
.
userType
==
1
||
this
.
localU
serInfo
.
userType
==
2
)
&&
e
.
status
!=
9
&&
!
[
1
,
3
,
4
].
includes
(
e
.
selectPayType
)
// let orderType = this.
localU
serInfo.userType !== 1 && e.status != 9 && e.status != 1 && e.selectPayType != 3 && e.selectPayType != 1
// console.log(userType);
// console.log(orderType);
e
.
repeal
=
userType
&&
orderType
...
...
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