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 72e84500
authored
Dec 05, 2025
by
cen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 新增战败原因
1 parent
f1450b49
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
119 additions
and
23 deletions
api/module/equity.js
assets/css/sprite.scss
assets/images/sprite.png
components/OrderPopup/components/EmployeeList.vue
env.js
pages/equity/tool/components/ContractPopup.vue
pages/equity/tool/components/DefeatOrder.vue
pages/equity/tool/components/OrderCard.vue
pages/equity/tool/components/OrderManagement.vue
api/module/equity.js
View file @
72e8450
...
@@ -126,5 +126,31 @@ module.exports = {
...
@@ -126,5 +126,31 @@ module.exports = {
projectName
:
'boutique'
,
projectName
:
'boutique'
,
...
data
...
data
})
})
},
/** 根据商户号商品id获取可选升级商品列表 */
quotationGoodsList
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.quotationGoods.list'
,
projectName
:
'boutique'
,
...
data
})
},
getCheckEmployeeList
(
data
)
{
// 0->2.0 1->1.1 2->1.2 3->1.3 场景对应
// data.sceneList = [1]
return
http
.
post
({
method
:
'dj.api.smartcarlife.employee.onTheJob.getByMerchantId'
,
projectName
:
'boutique'
,
...
data
})
// return api.post("dj.api.smartcarlife.employee.getByMerchantId", data);
},
/** 更新报价单状态 */
updateOrderStatus
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.status.update'
,
projectName
:
'boutique'
,
...
data
})
}
}
}
}
assets/css/sprite.scss
View file @
72e8450
This diff is collapsed.
Click to expand it.
assets/images/sprite.png
View file @
72e8450
2.92 MB
|
W:
|
H:
2.92 MB
|
W:
|
H:
2-up
Swipe
Onion skin
components/OrderPopup/components/EmployeeList.vue
View file @
72e8450
<
template
>
<
template
>
<view
class=
"employee-list"
>
<view
class=
"employee-list"
>
<template
v-for=
"(i, index) in list"
>
<template
v-for=
"(i, index) in list"
>
<view
<view
:key=
"index"
@
click=
"choose(i)"
:class=
"['item flex',
{ active: checkActive(i) }]">
:key=
"index"
@
click=
"choose(i)"
:class=
"['item flex',
{ active: checkActive(i) }]"
>
<view
class=
"sprite-icon icon-tag-checked"
></view>
<view
class=
"sprite-icon icon-tag-checked"
></view>
{{
i
.
staffName
}}
{{
i
.
staffName
}}
</view>
</view>
...
...
env.js
View file @
72e8450
const
target
=
[
'ip'
,
'dev'
,
'uat'
,
'prod'
,
'beta'
]
const
target
=
[
'ip'
,
'dev'
,
'uat'
,
'prod'
,
'beta'
]
const
index
=
1
const
index
=
2
/**
/**
*
*
0本地
0本地
...
...
pages/equity/tool/components/ContractPopup.vue
View file @
72e8450
...
@@ -87,7 +87,18 @@ export default {
...
@@ -87,7 +87,18 @@ export default {
methods
:
{
methods
:
{
open
(
data
)
{
open
(
data
)
{
this
.
currentId
=
''
this
.
currentId
=
''
this
.
data
=
data
console
.
log
(
'data'
,
data
)
if
(
data
&&
data
.
zyPayUrl
)
{
const
urls
=
data
.
zyPayUrl
.
split
(
','
).
filter
(
url
=>
url
.
trim
())
this
.
$set
(
this
.
contractData
,
this
.
uploadField
.
key
,
urls
.
map
(
url
=>
({
url
:
url
.
trim
(),
type
:
this
.
getFileTypeFromUrl
(
url
.
trim
()),
name
:
this
.
getFileNameFromUrl
(
url
.
trim
()),
size
:
0
// 从字符串无法获取文件大小
})))
console
.
log
(
'this.contractData'
,
this
.
contractData
)
}
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
popup
.
open
()
this
.
$refs
.
popup
.
open
()
})
})
...
@@ -367,11 +378,20 @@ export default {
...
@@ -367,11 +378,20 @@ export default {
}
}
return
true
return
true
},
},
confirm
()
{
confirm
()
{
if
(
this
.
validate
)
{
if
(
this
.
validate
)
{
this
.
$emit
(
'onConfirm'
,
this
.
contractData
)
this
.
$emit
(
'onConfirm'
,
this
.
contractData
)
}
}
},
},
getFileTypeFromUrl
(
url
)
{
const
ext
=
url
.
split
(
'.'
).
pop
().
toLowerCase
()
return
ext
===
'pdf'
?
'pdf'
:
'image'
},
// 从URL获取文件名
getFileNameFromUrl
(
url
)
{
return
url
.
split
(
'/'
).
pop
().
split
(
'?'
)[
0
]
||
'未知文件'
},
}
}
}
}
</
script
>
</
script
>
...
...
pages/equity/tool/components/DefeatOrder.vue
View file @
72e8450
This diff is collapsed.
Click to expand it.
pages/equity/tool/components/OrderCard.vue
View file @
72e8450
...
@@ -118,13 +118,24 @@
...
@@ -118,13 +118,24 @@
</view>
</view>
<NoticePopup
ref=
"notice"
title=
"提示"
text=
"是否撤销该笔客户工单,撤销后客户工单为「已撤销」状态,不再统计订单数和订单金额。"
type=
"warning"
></NoticePopup>
<NoticePopup
ref=
"notice"
title=
"提示"
text=
"是否撤销该笔客户工单,撤销后客户工单为「已撤销」状态,不再统计订单数和订单金额。"
type=
"warning"
></NoticePopup>
<ContractPopup
ref=
"contractPopupRef"
@
onConfirm=
"onConfirm"
></ContractPopup>
<ContractPopup
ref=
"contractPopupRef"
@
onConfirm=
"onConfirm"
></ContractPopup>
<PublishPopup
ref=
"defeatOrderPopup"
popupClass=
"defeatOrderPopup"
type=
"center"
:showClose=
"true"
:isMaskClick=
"false"
title=
"战败原因"
>
<template
#
content
>
<view
class=
"defeat-order-box modatcontent"
>
<textarea
class=
"defeat-textarea"
placeholder=
"请填写战败原因"
maxlength=
"15"
v-model=
"textareaValue"
/>
</view>
</
template
>
<
template
#
footer
>
<view
class=
"footer-box flex justify-center"
>
<view
class=
"cancle-btn btn"
@
click
.
stop=
"cancelSelection"
>
取消
</view>
<view
class=
"sure-btn btn"
@
click
.
stop=
"confirmSelection"
>
确认
</view>
</view>
</
template
>
</PublishPopup>
</view>
</view>
</template>
</template>
<
script
>
<
script
>
import
order_mixins
from
'../../order_mixins.js'
import
order_mixins
from
'../../order_mixins.js'
import
{
interceptionMixin
}
from
'@/mixin/index'
import
{
interceptionMixin
}
from
'@/mixin/index'
import
utils
from
'@/utils/utils'
import
{
checkDailyReport
,
showNextModal
}
from
'@/utils/modalUtils'
import
PublishPopup
from
'@/components/PublishPopup.vue'
import
PublishPopup
from
'@/components/PublishPopup.vue'
import
NoticePopup
from
'@/components/NoticePopup.vue'
import
NoticePopup
from
'@/components/NoticePopup.vue'
import
ContractPopup
from
'./ContractPopup.vue'
import
ContractPopup
from
'./ContractPopup.vue'
...
@@ -380,7 +391,8 @@ export default {
...
@@ -380,7 +391,8 @@ export default {
3
:
'去处理'
,
3
:
'去处理'
,
'-1'
:
'去报价'
,
'-1'
:
'去报价'
,
5
:
'去处理'
5
:
'去处理'
}
},
textareaValue
:
''
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -419,6 +431,7 @@ export default {
...
@@ -419,6 +431,7 @@ export default {
break
break
case
'defeat'
:
case
'defeat'
:
// 处理战败
// 处理战败
this
.
defeatOrder
()
break
break
case
'revoke'
:
case
'revoke'
:
// 处理撤销
// 处理撤销
...
@@ -468,7 +481,11 @@ export default {
...
@@ -468,7 +481,11 @@ export default {
},
},
//上传协议
//上传协议
uploadContract
()
{
uploadContract
()
{
this
.
$refs
.
contractPopupRef
.
open
({})
this
.
$refs
.
contractPopupRef
.
open
(
this
.
orderCardDetail
)
},
//战败
defeatOrder
()
{
this
.
$refs
.
defeatOrderPopup
.
open
(
this
.
orderCardDetail
)
},
},
showRefundAlert
(
type
)
{
showRefundAlert
(
type
)
{
const
text
=
type
==
'error'
?
'订单已发起退款,禁止标记为错误工单!如需标记错误请联系总部运营。'
:
'订单已发起退款,禁止撤销!如需撤销请联系总部运营。'
const
text
=
type
==
'error'
?
'订单已发起退款,禁止标记为错误工单!如需标记错误请联系总部运营。'
:
'订单已发起退款,禁止撤销!如需撤销请联系总部运营。'
...
@@ -508,6 +525,31 @@ export default {
...
@@ -508,6 +525,31 @@ export default {
}
}
})
})
},
},
confirmSelection
()
{
if
(
this
.
textareaValue
)
{
uni
.
$api
.
equityApi
.
updateOrderStatus
({
id
:
this
.
orderCardDetail
.
id
,
orderStatus
:
-
1
,
remark
:
this
.
textareaValue
})
.
then
(
res
=>
{
uni
.
showToast
({
title
:
'提交成功'
,
icon
:
'none'
})
setTimeout
(()
=>
{
this
.
$emit
(
'refresh'
)
// _this.getList();
},
500
)
})
}
else
{
uni
.
showToast
({
title
:
'内容不能为空'
,
icon
:
'none'
})
}
},
onConfirm
(
val
)
{
onConfirm
(
val
)
{
console
.
log
(
val
)
console
.
log
(
val
)
let
urls
=
[]
let
urls
=
[]
...
@@ -568,16 +610,19 @@ export default {
...
@@ -568,16 +610,19 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
//
Popup
样式
//
Popup
样式
::v-deep
.
record
OrderPopup
.uni-popup__wrapper
{
::v-deep
.
defeat
OrderPopup
.uni-popup__wrapper
{
position
:
relative
;
position
:
relative
;
border-radius
:
toRpx
(
32
);
border-radius
:
toRpx
(
32
);
opacity
:
1
;
opacity
:
1
;
width
:
toRpx
(
848
);
width
:
toRpx
(
848
);
height
:
toRpx
(
968
);
height
:
toRpx
(
968
);
background
:
linear-gradient
(
180deg
,
#e6f0ff
0%
,
#ffffff
100%
);
background-color
:
#fff
!important
;
.popup-top-box
{
.popup-top-box
{
text-align
:
left
;
text-align
:
left
;
padding
:
toRpx
(
48
)
toRpx
(
64
);
padding
:
toRpx
(
48
)
toRpx
(
64
);
border-radius
:
toRpx
(
32
)
toRpx
(
32
)
0
0
;
background
:
linear-gradient
(
180deg
,
#e6f0ff
0%
,
#ffffff
100%
);
&-title
{
&-title
{
color
:
#1a1a1a
;
color
:
#1a1a1a
;
font-size
:
toRpx
(
40
);
font-size
:
toRpx
(
40
);
...
@@ -644,6 +689,17 @@ export default {
...
@@ -644,6 +689,17 @@ export default {
margin-left
:
toRpx
(
32
);
margin-left
:
toRpx
(
32
);
}
}
}
}
.defeat-textarea
{
height
:
toRpx
(
568
);
border-radius
:
toRpx
(
16
);
background
:
#f5f7fa
;
width
:
100%
;
padding
:
toRpx
(
24
);
box-sizing
:
border-box
;
.uni-input-wrapper
{
background
:
#f5f7fa
;
}
}
}
}
.order-card
{
.order-card
{
padding
:
toRpx
(
36
)
toRpx
(
32
);
padding
:
toRpx
(
36
)
toRpx
(
32
);
...
...
pages/equity/tool/components/OrderManagement.vue
View file @
72e8450
...
@@ -119,6 +119,9 @@ export default {
...
@@ -119,6 +119,9 @@ export default {
mounted
()
{
mounted
()
{
uni
.
$track
.
add
({
eventCode
:
'app_order_management'
})
uni
.
$track
.
add
({
eventCode
:
'app_order_management'
})
this
.
localUserInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
this
.
localUserInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
if
(
!
this
.
localUserInfo
.
isSuper
&&
this
.
localUserInfo
.
loginRole
!=
3
&&
this
.
localUserInfo
?.
loginRole
!=
6
)
{
this
.
searchObj
.
transferIds
=
[
this
.
localUserInfo
.
uuid
]
}
this
.
search
()
this
.
search
()
},
},
methods
:
{
methods
:
{
...
@@ -177,15 +180,12 @@ export default {
...
@@ -177,15 +180,12 @@ export default {
},
},
getStatByStatus
()
{
getStatByStatus
()
{
const
localUserInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
const
localUserInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
console
.
log
(
this
.
searchObj
)
console
.
log
(
this
.
searchObj
,
'this.searchObj'
)
let
params
=
{
let
params
=
{
customerName
:
this
.
customerName
,
customerName
:
this
.
customerName
,
merchantIds
:
[
localUserInfo
.
shopMerchantId
],
merchantIds
:
[
localUserInfo
.
shopMerchantId
],
...
this
.
searchObj
...
this
.
searchObj
}
}
if
(
!
localUserInfo
.
isSuper
&&
localUserInfo
.
loginRole
!=
3
&&
localUserInfo
?.
loginRole
!=
6
)
{
params
.
transferIds
=
[
localUserInfo
.
uuid
]
}
if
(
params
?.
zyPayStatus
==
'1'
)
params
.
orderStatus
=
7
if
(
params
?.
zyPayStatus
==
'1'
)
params
.
orderStatus
=
7
uni
.
$api
.
equityApi
uni
.
$api
.
equityApi
.
orderStatistics
(
params
)
.
orderStatistics
(
params
)
...
@@ -252,9 +252,7 @@ export default {
...
@@ -252,9 +252,7 @@ export default {
merchantIds
:
[
localUserInfo
.
shopMerchantId
],
merchantIds
:
[
localUserInfo
.
shopMerchantId
],
...
this
.
searchObj
...
this
.
searchObj
}
}
if
(
!
localUserInfo
.
isSuper
&&
localUserInfo
.
loginRole
!=
3
&&
localUserInfo
?.
loginRole
!=
6
)
{
if
(
params
?.
zyPayStatus
==
'1'
)
params
.
orderStatus
=
7
params
.
transferIds
=
[
localUserInfo
.
uuid
]
}
// if (staffUuid) {
// if (staffUuid) {
// params.transferIds = [staffUuid]
// params.transferIds = [staffUuid]
// } else {
// } else {
...
...
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