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
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
200 additions
and
35 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 = {
...
@@ -325,5 +325,17 @@ module.exports = {
/** 战败订单批量补录 */
/** 战败订单批量补录 */
notUpgradeOrder
(
data
)
{
notUpgradeOrder
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.order.notUpgrade.batchInsert'
,
projectName
:
'boutique'
,
...
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 {
...
@@ -72,17 +72,33 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
open
(
callback
)
{
open
()
{
this
.
$nextTick
(()
=>
{
console
.
log
(
this
.
$refs
)
if
(
this
.
$refs
.
publishPopup
)
{
this
.
$refs
.
publishPopup
.
open
()
this
.
$refs
.
publishPopup
.
open
()
}
})
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
resolve
=
resolve
this
.
reject
=
reject
})
},
},
change
(
e
)
{
change
(
e
)
{
this
.
show
=
e
.
show
this
.
show
=
e
.
show
},
},
closePopup
()
{
closePopup
()
{
this
.
$refs
.
publishPopup
.
close
()
this
.
$refs
.
publishPopup
.
close
()
if
(
this
.
reject
)
{
this
.
reject
()
}
this
.
$emit
(
'close'
)
this
.
$emit
(
'close'
)
},
},
confirm
()
{
confirm
()
{
if
(
this
.
resolve
)
{
this
.
$refs
.
publishPopup
.
close
()
this
.
resolve
()
}
this
.
$emit
(
'confirm'
)
this
.
$emit
(
'confirm'
)
}
}
}
}
...
...
pages/boutique/components/OrderCard.vue
View file @
b8bda5a
...
@@ -84,9 +84,9 @@
...
@@ -84,9 +84,9 @@
</view>
</view>
</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-label"
>
施工技师
</view>
<view
class=
"staff-value"
>
111
</view>
<view
class=
"staff-value"
>
{{
orderCardDetail
.
technicianName
}}
</view>
</view>
</view>
<PublishPopup
ref=
"recordOrderPopup"
popupClass=
"recordOrderPopup"
type=
"center"
:showClose=
"true"
title=
"请选择录单入口"
>
<PublishPopup
ref=
"recordOrderPopup"
popupClass=
"recordOrderPopup"
type=
"center"
:showClose=
"true"
title=
"请选择录单入口"
>
<template
#
content
>
<template
#
content
>
...
@@ -103,7 +103,7 @@
...
@@ -103,7 +103,7 @@
<view
class=
"sprite-icon icon-expiration"
></view>
<view
class=
"sprite-icon icon-expiration"
></view>
失效客户
失效客户
</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
class=
"sprite-icon icon-revoke"
></view>
撤销工单
撤销工单
</view>
</view>
...
@@ -181,9 +181,13 @@ export default {
...
@@ -181,9 +181,13 @@ export default {
label
:
'工单时间'
,
label
:
'工单时间'
,
key
:
'orderTime'
key
:
'orderTime'
}
}
]
],
localUserInfo
:
null
}
}
},
},
mounted
()
{
this
.
localUserInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
},
methods
:
{
methods
:
{
// 查看全部商品
// 查看全部商品
showAllGoodsList
(
e
)
{
showAllGoodsList
(
e
)
{
...
@@ -198,18 +202,18 @@ export default {
...
@@ -198,18 +202,18 @@ export default {
// failureFlag 订单失效状态(Y:已失效,N:未失效)
// failureFlag 订单失效状态(Y:已失效,N:未失效)
// console.log(e.currentTarget.dataset)
// console.log(e.currentTarget.dataset)
// return
// return
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
if
(
userInfo
.
merchantAccountList
&&
u
serInfo
.
merchantAccountList
.
length
)
{
if
(
this
.
localUserInfo
.
merchantAccountList
&&
this
.
localU
serInfo
.
merchantAccountList
.
length
)
{
try
{
try
{
u
serInfo
.
merchantAccountList
.
map
(
e
=>
{
this
.
localU
serInfo
.
merchantAccountList
.
map
(
e
=>
{
if
(
e
==
6
||
e
==
8
)
throw
true
if
(
e
==
6
||
e
==
8
)
throw
true
})
})
}
catch
(
error
)
{
}
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
)
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
}
=
u
serInfo
let
{
userType
,
isSuper
,
merchantType
,
isMake
}
=
this
.
localU
serInfo
console
.
log
(
item
)
console
.
log
(
item
)
if
(
name
==
'CreateOrder'
||
name
==
'PremiumUpgrade'
)
{
if
(
name
==
'CreateOrder'
||
name
==
'PremiumUpgrade'
)
{
if
(
merchantType
&&
!
isSuper
&&
isMake
)
{
if
(
merchantType
&&
!
isSuper
&&
isMake
)
{
...
@@ -246,16 +250,20 @@ export default {
...
@@ -246,16 +250,20 @@ export default {
if
((
!
this
.
isSettingExpiredTraffic
||
scan
)
&&
this
.
selectType
==
3
)
{
if
((
!
this
.
isSettingExpiredTraffic
||
scan
)
&&
this
.
selectType
==
3
)
{
this
.
selectType
=
1
this
.
selectType
=
1
}
}
this
.
$nextTick
(()
=>
{
if
(
this
.
$refs
.
recordOrderPopup
)
{
this
.
$refs
.
recordOrderPopup
.
open
()
this
.
$refs
.
recordOrderPopup
.
open
()
}
else
{
console
.
error
(
'recordOrderPopup ref is not available'
)
}
})
},
},
// 获取轻改录单配置是否启用流量失效
// 获取轻改录单配置是否启用流量失效
getCreateOrderSetting
()
{
getCreateOrderSetting
()
{
let
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
let
merchantType
=
this
.
localUserInfo
?.
merchantAccountList
.
includes
(
'6'
)
||
this
.
localUserInfo
?.
merchantAccountList
.
includes
(
'8'
)
let
merchantType
=
userInfo
?.
merchantAccountList
.
includes
(
'6'
)
||
userInfo
?.
merchantAccountList
.
includes
(
'8'
)
if
(
merchantType
&&
!
this
.
localUserInfo
?.
isSuper
&&
this
.
localUserInfo
?.
loginRole
!=
3
&&
this
.
localUserInfo
?.
userType
==
2
&&
this
.
localUserInfo
?.
shopMerchantId
)
{
if
(
merchantType
&&
!
userInfo
?.
isSuper
&&
userInfo
?.
loginRole
!=
3
&&
userInfo
?.
userType
==
2
&&
userInfo
?.
shopMerchantId
)
{
uni
.
$api
.
boutiqueApi
.
getServiceBaseInfo
({
merchantId
:
this
.
localUserInfo
?.
shopMerchantId
}).
then
(
res
=>
{
uni
.
$api
.
boutiqueApi
.
getServiceBaseInfo
({
merchantId
:
userInfo
?.
shopMerchantId
}).
then
(
res
=>
{
this
.
isSettingExpiredTraffic
=
res
?.
data
?.
trafficExpireFlag
==
'Y'
this
.
isSettingExpiredTraffic
=
res
?.
data
?.
trafficExpireFlag
==
'Y'
})
})
}
}
...
...
pages/boutique/tool/components/ConfirmOrder.vue
View file @
b8bda5a
...
@@ -251,7 +251,12 @@ export default {
...
@@ -251,7 +251,12 @@ export default {
posQrCode
:
''
posQrCode
:
''
}
}
},
},
mounted
()
{},
mounted
()
{
// this.getPositionList()
// // "this.transmissionOfData.orderCode"
// this.getDetail('250826151911809')
// this.successDate = dayjs().format('YYYY-MM-DD HH:mm:ss')
},
methods
:
{
methods
:
{
replaceItemText
(
item
)
{
replaceItemText
(
item
)
{
var
reg
=
getRegExp
(
';~;'
,
'g'
)
var
reg
=
getRegExp
(
';~;'
,
'g'
)
...
@@ -267,9 +272,7 @@ export default {
...
@@ -267,9 +272,7 @@ export default {
.
then
(
data
=>
{
.
then
(
data
=>
{
if
(
data
.
payOrder
&&
data
.
payOrder
.
payStatus
==
2
)
{
if
(
data
.
payOrder
&&
data
.
payOrder
.
payStatus
==
2
)
{
if
(
this
.
time
)
clearInterval
(
this
.
time
)
if
(
this
.
time
)
clearInterval
(
this
.
time
)
// wx.$router.redirectTo('orderDetail', {
this
.
$emit
(
'jump'
,
'OrderDetail'
,
data
)
// orderCode
// })
return
return
}
}
let
couponName
=
data
.
customerCoupon
?
data
.
customerCoupon
.
couponName
:
''
let
couponName
=
data
.
customerCoupon
?
data
.
customerCoupon
.
couponName
:
''
...
@@ -532,6 +535,7 @@ export default {
...
@@ -532,6 +535,7 @@ export default {
uni
.
$api
.
boutiqueApi
.
createPayOrder
(
obj
).
then
(
data
=>
{
uni
.
$api
.
boutiqueApi
.
createPayOrder
(
obj
).
then
(
data
=>
{
if
(
data
)
{
if
(
data
)
{
console
.
log
(
`类型为:
${
selectPayType
}
`
)
console
.
log
(
`类型为:
${
selectPayType
}
`
)
console
.
log
(
this
.
orderInfo
)
if
(
selectPayType
==
3
||
selectPayType
==
1
)
{
if
(
selectPayType
==
3
||
selectPayType
==
1
)
{
this
.
orderInfo
.
payOrder
.
outTradeNo
=
data
.
outTradeNo
this
.
orderInfo
.
payOrder
.
outTradeNo
=
data
.
outTradeNo
let
size
=
0
let
size
=
0
...
@@ -665,6 +669,7 @@ export default {
...
@@ -665,6 +669,7 @@ export default {
height
:
100%
;
height
:
100%
;
.scroll-y
{
.scroll-y
{
border-radius
:
toRpx
(
16
);
height
:
calc
(
100%
-
#{
toRpx
(
296
)}
);
height
:
calc
(
100%
-
#{
toRpx
(
296
)}
);
overflow-y
:
scroll
;
overflow-y
:
scroll
;
&
::-webkit-scrollbar
{
&
::-webkit-scrollbar
{
...
...
pages/boutique/tool/components/OrderDetail.vue
View file @
b8bda5a
<
template
>
<
template
>
<view
class=
"order-detail"
>
<view
class=
"order-detail"
>
<view
class=
"common-title"
>
{{
orderInfo
.
constructionFlag
==
'Y'
&&
orderInfo
.
status
!=
10
?
'完成施工'
:
'工单详情'
}}
</view>
<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'"
>
<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>
<uni-icons
class=
"checkbox-filled"
type=
"checkbox-filled"
color=
"#4ac18e"
></uni-icons>
<view>
<view>
...
@@ -171,7 +171,7 @@
...
@@ -171,7 +171,7 @@
<view
class=
"label"
>
质保产品
</view>
<view
class=
"label"
>
质保产品
</view>
<view
class=
"value"
>
{{
replaceItemText
(
item
.
goodsName
)
}}
</view>
<view
class=
"value"
>
{{
replaceItemText
(
item
.
goodsName
)
}}
</view>
</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
class=
"sprite-icon icon-edit mr-8"
></view>
质保价格
质保价格
</view>
</view>
...
@@ -206,6 +206,9 @@
...
@@ -206,6 +206,9 @@
<view
class=
"flex align-center footer-box justify-center"
v-if=
"isMake"
>
<view
class=
"flex align-center footer-box justify-center"
v-if=
"isMake"
>
<view
class=
"edit btn flex-1"
@
click=
"repeal"
>
撤销工单
</view>
<view
class=
"edit btn flex-1"
@
click=
"repeal"
>
撤销工单
</view>
</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 三种状态才展示 并且不是通过失效客户录入的战败单 -->
<!-- 已支付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))"
>
<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 @@
...
@@ -224,6 +227,27 @@
<uni-calendar
class=
"calendar"
:showMonth=
"false"
@
change=
"calendarChange"
/>
<uni-calendar
class=
"calendar"
:showMonth=
"false"
@
change=
"calendarChange"
/>
</
template
>
</
template
>
</PublishPopup>
</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>
</view>
</template>
</template>
<
script
>
<
script
>
...
@@ -253,8 +277,6 @@ export default {
...
@@ -253,8 +277,6 @@ export default {
this
.
baseConfigData
=
baseConfigData
this
.
baseConfigData
=
baseConfigData
this
.
getDetail
(
this
.
transmissionOfData
.
orderCode
)
this
.
getDetail
(
this
.
transmissionOfData
.
orderCode
)
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
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
immediate
:
true
...
@@ -271,7 +293,8 @@ export default {
...
@@ -271,7 +293,8 @@ export default {
signatureSwitch
:
false
,
//不需要走签名逻辑 没有开启签名功能或则是战败订单
signatureSwitch
:
false
,
//不需要走签名逻辑 没有开启签名功能或则是战败订单
warrantyCardList
:
[],
warrantyCardList
:
[],
isMake
:
true
,
isMake
:
true
,
selectDate
:
null
selectDate
:
null
,
warrantyEditObj
:
{}
}
}
},
},
async
mounted
()
{},
async
mounted
()
{},
...
@@ -375,6 +398,8 @@ export default {
...
@@ -375,6 +398,8 @@ export default {
}
}
this
.
orderInfo
=
data
this
.
orderInfo
=
data
console
.
log
(
this
.
orderInfo
,
'this.orderInfo'
)
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
.
invoiceName
=
data
.
invoiceStatus
==
2
?
'查看发票'
:
'申请开票'
// 去掉车主评价功能
// 去掉车主评价功能
// this.setQrBoxHeight()
// this.setQrBoxHeight()
...
@@ -546,9 +571,9 @@ export default {
...
@@ -546,9 +571,9 @@ export default {
},
},
// 撤销该工单
// 撤销该工单
async
repeal
()
{
async
repeal
()
{
// 校验是否填写昨日日报
this
.
$refs
.
tipsPopup
// let staffCheck = await checkDailyReport();
.
open
()
// if (staffCheck) return false;
.
then
(()
=>
{
let
_this
=
this
let
_this
=
this
uni
.
$api
.
boutiqueApi
uni
.
$api
.
boutiqueApi
.
revokeOrder
({
.
revokeOrder
({
...
@@ -559,6 +584,11 @@ export default {
...
@@ -559,6 +584,11 @@ export default {
title
:
'操作成功'
,
title
:
'操作成功'
,
icon
:
'success'
icon
:
'success'
})
})
this
.
getDetail
(
this
.
transmissionOfData
.
orderCode
)
})
})
.
catch
(()
=>
{
console
.
log
(
'用户点击了取消或关闭'
)
})
})
},
},
customizeDate
()
{
customizeDate
()
{
...
@@ -594,6 +624,21 @@ export default {
...
@@ -594,6 +624,21 @@ export default {
calendarChange
(
date
)
{
calendarChange
(
date
)
{
console
.
log
(
date
)
console
.
log
(
date
)
this
.
selectDate
=
date
.
year
+
'-'
+
date
.
month
+
'-'
+
date
.
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 {
...
@@ -602,6 +647,82 @@ export default {
.order-detail
{
.order-detail
{
position
:
relative
;
position
:
relative
;
height
:
100%
;
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
{
::v-deep
.calendarPopup
.uni-popup__wrapper
{
width
:
100%
;
width
:
100%
;
height
:
62vh
;
height
:
62vh
;
...
@@ -619,6 +740,9 @@ export default {
...
@@ -619,6 +740,9 @@ export default {
background
:
transparent
;
background
:
transparent
;
}
}
}
}
.construction-flag-y
{
height
:
calc
(
100%
-
#{
toRpx
(
182
)}
);
}
.px-48
{
.px-48
{
padding
:
0
toRpx
(
48
);
padding
:
0
toRpx
(
48
);
}
}
...
...
pages/boutique/tool/components/OrderManagement.vue
View file @
b8bda5a
...
@@ -199,13 +199,13 @@ export default {
...
@@ -199,13 +199,13 @@ export default {
normalCurrentPage
:
1
,
normalCurrentPage
:
1
,
abnormalPages
:
1
,
abnormalPages
:
1
,
normalPages
:
1
,
normalPages
:
1
,
userInfo
:
null
,
checkListObj
:
{},
checkListObj
:
{},
localUserInfo
:
null
,
...
order_mixins
.
data
...
order_mixins
.
data
}
}
},
},
mounted
()
{
mounted
()
{
this
.
u
serInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
this
.
localU
serInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
this
.
search
()
this
.
search
()
this
.
startWaitOrderPolling
()
this
.
startWaitOrderPolling
()
},
},
...
@@ -214,10 +214,10 @@ export default {
...
@@ -214,10 +214,10 @@ export default {
},
},
methods
:
{
methods
:
{
search
()
{
search
()
{
// 判断是不是超管 && !this.
u
serInfo.isSuper
// 判断是不是超管 && !this.
localU
serInfo.isSuper
// ,不是只能筛选当前4s店的
// ,不是只能筛选当前4s店的
if
(
!
this
.
searchObj
.
merchantId
)
{
if
(
!
this
.
searchObj
.
merchantId
)
{
this
.
searchObj
.
merchantId
=
this
.
u
serInfo
?.
shopMerchantId
this
.
searchObj
.
merchantId
=
this
.
localU
serInfo
?.
shopMerchantId
}
}
this
.
$refs
.
paging
.
reload
()
this
.
$refs
.
paging
.
reload
()
this
.
getStatByStatus
()
this
.
getStatByStatus
()
...
@@ -326,7 +326,7 @@ export default {
...
@@ -326,7 +326,7 @@ export default {
.
then
(
result
=>
{
.
then
(
result
=>
{
const
{
list
,
total
}
=
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
// let userType = true
list
.
map
(
e
=>
{
list
.
map
(
e
=>
{
...
@@ -339,8 +339,8 @@ export default {
...
@@ -339,8 +339,8 @@ 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
.
u
serInfo
.
userType
==
2
)
&&
e
.
status
!=
9
&&
!
[
1
,
3
,
4
].
includes
(
e
.
selectPayType
)
let
orderType
=
(
this
.
localUserInfo
.
userType
==
1
||
this
.
localU
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.
localU
serInfo.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
...
...
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