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 43397bcd
authored
Dec 15, 2025
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V5.5.0' of
http://192.168.3.233:8090/glsx/gl_tape
into SAAS+V5.5.0
2 parents
e960d981
8b9c8344
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
136 additions
and
56 deletions
components/OrderPopup/components/Customer.vue
components/OrderPopup/components/EmployeeList.vue
pages/equity/tool/components/CreateEquity.vue
pages/equity/tool/components/EquityForm/contant.js
pages/equity/tool/components/OrderCard.vue
components/OrderPopup/components/Customer.vue
View file @
43397bc
<
template
>
<view
class=
"customer-list"
>
<template
v-for=
"(i, index) in listData"
>
<view
:key=
"index"
@
click=
"choose(i)"
:class=
"['item flex',
{ active: checkActive(i) }]">
<view
:key=
"index"
@
click=
"choose(i)"
:class=
"['item flex',
{ active: checkActive(i) }]"
>
<view
class=
"sprite-icon icon-tag-checked"
></view>
<template
v-if=
"i.customerName || (i.customer && i.customer.customerName)"
>
{{
i
.
customerName
||
(
i
.
customer
&&
i
.
customer
.
customerName
)
}}
</
template
>
<
template
v-if=
"i.carSeriesName || i.carType"
>
<view
class=
"car-model"
>
(
{{
i
.
carType
?
i
.
carType
:
i
.
carChildsBrandName
+
'-'
+
i
.
carSeriesName
||
''
}}
)
</view>
</
template
>
<view
class=
"info flex text-hide"
>
<template
v-if=
"i.customerName || (i.customer && i.customer.customerName)"
>
{{
i
.
customerName
||
(
i
.
customer
&&
i
.
customer
.
customerName
)
}}
</
template
>
<
template
v-if=
"i.carSeriesName || i.carType"
>
<view
class=
"car-model text-hide"
>
(
{{
i
.
carType
?
i
.
carType
:
i
.
carChildsBrandName
+
'-'
+
i
.
carSeriesName
||
''
}}
)
</view>
</
template
>
</view>
<
template
v-if=
"i.customerPhone || i.customer.customerPhone"
>
<view
class=
"phone"
>
|
{{
i
.
customerPhone
||
(
i
.
customer
&&
i
.
customer
.
customerPhone
)
}}
</view>
</
template
>
...
...
@@ -23,14 +29,14 @@ export default {
mixins
:
[
popupmixin
],
name
:
'Customer'
,
inject
:
[
'userInfo'
],
data
()
{
data
()
{
return
{
}
},
mounted
()
{
mounted
()
{
},
methods
:
{
async
getList
(
searchValue
,
search
)
{
async
getList
(
searchValue
,
search
)
{
const
{
userInfo
,
params
}
=
this
,
{
cacheData
}
=
params
this
.
currentId
=
''
...
...
@@ -48,9 +54,9 @@ export default {
}
let
apiTargetName
=
!
params
.
defeat
?
'getQuotationCustomerList'
:
'getWorkPackageGoodsList'
console
.
log
(
apiTargetName
,
'apiTargetName'
)
if
(
params
.
defeat
)
{
apiParams
.
keyword
=
searchValue
}
if
(
params
.
defeat
)
{
apiParams
.
keyword
=
searchValue
}
const
{
list
}
=
await
uni
.
$api
.
popupApi
[
apiTargetName
](
apiParams
)
let
customerList
=
list
if
(
params
.
defeat
)
{
...
...
@@ -65,7 +71,7 @@ export default {
console
.
log
(
customerList
,
'customerList'
)
this
.
updateParams
(
params
,
customerList
||
[])
},
initData
(
list
)
{
initData
(
list
)
{
const
{
params
:
{
idKey
,
defeat
},
data
}
=
this
let
key
=
defeat
?
'id'
:
'customerPhone'
console
.
log
(
data
,
idKey
)
...
...
@@ -77,17 +83,17 @@ export default {
this
.
list
=
list
this
.
$emit
(
'onComplete'
)
},
handleSearch
(
searchValue
)
{
handleSearch
(
searchValue
)
{
this
.
list
=
[]
this
.
getList
(
searchValue
,
true
)
},
choose
(
i
)
{
choose
(
i
)
{
let
{
params
}
=
this
let
key
=
params
.
defeat
?
'id'
:
'customerPhone'
this
.
currentId
=
i
[
key
]
this
.
$emit
(
'choose'
,
i
)
},
checkActive
(
i
)
{
checkActive
(
i
)
{
let
{
currentId
,
data
,
params
}
=
this
let
key
=
params
.
defeat
?
'id'
:
'customerPhone'
return
currentId
?
(
i
[
key
]
==
currentId
)
:
(
i
[
key
])
==
data
[
params
.
idKey
]
...
...
@@ -99,7 +105,7 @@ export default {
<
style
scoped
lang=
"scss"
>
.customer-list
{
display
:
grid
;
grid-template-columns
:
repeat
(
2
,
1
fr
);
grid-template-columns
:
repeat
(
2
,
minmax
(
0
,
1
fr
)
);
gap
:
toRpx
(
32
);
margin
:
0
toRpx
(
48
);
...
...
@@ -119,6 +125,12 @@ export default {
top
:
0
;
right
:
0
;
}
.info
{
max-width
:
70%
;
}
.phone
{
flex-shrink
:
0
;
}
}
.active
{
...
...
components/OrderPopup/components/EmployeeList.vue
View file @
43397bc
<
template
>
<view
class=
"employee-list"
>
<template
v-for=
"(i, index) in list"
>
<view
:key=
"index"
@
click=
"choose(i)"
:class=
"['item flex',
{ active: checkActive(i) }]">
<template
v-for=
"(i, index) in listData"
>
<view
:key=
"index"
@
click=
"choose(i)"
:class=
"['item flex',
{ active: checkActive(i) }]"
>
<view
class=
"sprite-icon icon-tag-checked"
></view>
{{
i
.
staffName
}}
</view>
...
...
@@ -35,11 +39,12 @@ export default {
this
.
currentId
=
''
if
(
!
search
&&
cacheData
&&
cacheData
.
length
)
{
this
.
initData
(
cacheData
)
if
(
searchValue
)
this
.
handleSearch
(
searchValue
)
return
}
this
.
componentLoading
(
params
)
const
{
shopMerchantId
,
sceneType
,
merchantId
}
=
userInfo
,
apiTargetName
=
sceneType
==
1
||
params
.
defeat
?
'getEmployeeList'
:
'getOrderScreenEmployeeList'
,
apiTargetName
=
sceneType
==
1
||
params
.
defeat
?
'getEmployeeList'
:
'getOrderScreenEmployeeList'
,
apiParams
=
{
merchantId
:
params
.
idKey
==
'sellerUserId'
?
merchantId
:
shopMerchantId
,
sceneList
:
params
.
idKey
==
'sellerUserId'
?
''
:
[
sceneType
],
...
...
@@ -49,12 +54,10 @@ export default {
this
.
updateParams
(
params
,
data
||
[])
},
initData
(
list
)
{
const
{
idKey
,
data
,
params
}
=
this
console
.
log
(
idKey
,
data
)
const
{
idKey
,
data
}
=
this
if
(
data
[
idKey
])
{
this
.
currentId
=
data
[
idKey
]
let
item
=
list
.
find
(
i
=>
i
.
uuid
==
this
.
currentId
)
console
.
log
(
item
)
this
.
$emit
(
'choose'
,
item
)
}
...
...
@@ -62,8 +65,26 @@ export default {
this
.
$emit
(
'onComplete'
)
},
handleSearch
(
searchValue
)
{
this
.
list
=
[]
this
.
getList
(
searchValue
,
true
)
const
{
sceneType
}
=
this
if
(
sceneType
==
1
)
{
this
.
list
=
[]
this
.
getList
(
searchValue
,
true
)
}
else
this
.
originalDataSearch
(
searchValue
)
},
originalDataSearch
(
searchValue
)
{
console
.
log
(
searchValue
,
'==='
)
if
(
!
searchValue
)
this
.
searchStatus
=
false
else
{
searchValue
=
searchValue
.
toUpperCase
()
let
{
list
}
=
this
,
employeeList
=
JSON
.
parse
(
JSON
.
stringify
(
list
)),
arr
=
[]
employeeList
.
map
(
e
=>
{
if
(
e
.
staffName
&&
e
.
staffName
.
toUpperCase
().
indexOf
(
searchValue
)
!=
-
1
)
arr
.
push
(
e
)
})
this
.
searchList
=
arr
this
.
searchStatus
=
true
}
},
choose
(
i
)
{
let
{
idKey
,
data
}
=
this
,
...
...
pages/equity/tool/components/CreateEquity.vue
View file @
43397bc
...
...
@@ -235,24 +235,23 @@ export default {
this
.
viewKey
=
Date
.
now
()
},
handleCell
(
val
)
{
console
.
log
(
val
)
if
([
'calendar'
,
'futureCalendar'
].
includes
(
val
.
key
))
return
this
.
$refs
[
val
.
key
]?.
open
()
this
.
popupType
=
Object
.
keys
(
EQUITY_POPUP_ENUM
).
find
(
key
=>
EQUITY_POPUP_ENUM
[
key
].
key
===
val
.
key
)
*
1
this
.
orderPopupRef
.
open
()
},
onConfirm
(
val
)
{
console
.
log
(
val
)
const
{
chooseContent
,
popupType
}
=
val
,
_typeValue
=
EQUITY_POPUP_ENUM
[
popupType
]
console
.
log
(
_typeValue
)
if
(
_typeValue
.
key
==
'carBrand'
)
{
Object
.
assign
(
this
.
orderObj
,
chooseContent
)
this
.
$set
(
this
.
orderObj
,
'carBrandText'
,
`
${
chooseContent
.
vehicleBrandName
}
/
${
chooseContent
.
vehicleSubBrandName
}
/
${
chooseContent
.
vehicleSeriesName
}
/
${
chooseContent
.
vehicleShapeName
}
`
)
this
.
viewKey
=
Date
.
now
()
return
}
else
if
(
_typeValue
.
options
)
{
this
.
$set
(
this
.
orderObj
,
_typeValue
.
targetIdKey
,
chooseContent
[
_typeValue
.
sourceIdKey
||
'optionId'
])
this
.
$set
(
this
.
orderObj
,
_typeValue
.
targetNameKey
,
chooseContent
[
_typeValue
.
sourceNameKey
||
'optionLabel'
])
this
.
viewKey
=
Date
.
now
()
return
}
this
.
$set
(
this
.
orderObj
,
_typeValue
.
value
,
chooseContent
)
...
...
@@ -397,7 +396,6 @@ export default {
this
.
formList
[
4
].
map
(
e
=>
{
if
(
e
.
value
==
'inclueType'
)
e
.
current
=
inclueType
})
console
.
log
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
orderObj
)))
this
.
viewKey
=
Date
.
now
()
this
.
loadComplete
=
true
uni
.
hideLoading
()
...
...
@@ -497,7 +495,6 @@ export default {
this
.
confirm
(
params
,
operationType
)
return
}
console
.
log
(
params
)
if
(
!
this
.
checkOrder
(
params
))
return
uni
.
hideLoading
()
const
{
code
,
message
}
=
await
uni
.
$api
.
equityApi
.
checkVinBuyEquityOrder
({
vin
:
orderObj
.
vin
...
...
@@ -524,7 +521,6 @@ export default {
}
else
{
if
(
validatorCheck
&&
validatorCheck
.
validator
)
{
const
res
=
validatorCheck
.
validator
(
''
,
params
[
key
])
console
.
log
(
res
,
key
)
if
(
res
&&
res
.
message
)
throw
res
.
message
}
}
...
...
@@ -588,7 +584,6 @@ export default {
}
}
}
catch
(
error
)
{
console
.
log
(
error
,
'==='
)
uni
.
showToast
({
title
:
error
,
icon
:
'none'
...
...
@@ -601,7 +596,6 @@ export default {
try
{
let
params
=
utils
.
deepClone
(
paramsData
)
this
.
$refs
.
reportNotice
.
close
()
console
.
log
(
params
,
'==='
)
// 0草稿,1提单
params
.
operationType
=
operationType
params
.
addOnsFlag
=
params
.
inclueType
==
2
?
0
:
1
...
...
@@ -667,7 +661,6 @@ export default {
}
else
throw
message
}
catch
(
error
)
{
console
.
log
(
error
)
uni
.
hideLoading
()
if
(
error
)
uni
.
showToast
({
title
:
error
,
...
...
pages/equity/tool/components/EquityForm/contant.js
View file @
43397bc
...
...
@@ -99,7 +99,7 @@ const extendServiceFormList = [
label
:
'购车发票日期'
,
value
:
'buyDate'
,
type
:
'single-calendar'
,
endDate
:
dayjs
().
subtract
(
1
,
'day'
).
format
(
'YYYY-MM-DD'
)
endDate
:
dayjs
().
format
(
'YYYY-MM-DD'
)
},
{
label
:
'原厂质保开始日期'
,
...
...
pages/equity/tool/components/OrderCard.vue
View file @
43397bc
...
...
@@ -20,8 +20,29 @@
</view>
<view
class=
"order-card-bottom-box"
>
<view
class=
"info-box"
>
<view
class=
"order-list align-center"
v-for=
"(item, sindex) in orderCardDetail.deliveryUserId ? pointsMultiObj : orderObj"
:key=
"sindex"
>
<view
class=
"order flex align-center"
>
<view
class=
"order-list align-center"
v-for=
"(item, sindex) in orderCardDetail.deliveryId ? pointsMultiObj : orderObj"
:key=
"sindex"
>
<view
v-if=
"item.key == 'remark' || item.key == 'payTime' || item.key == 'createdTime'"
>
<view
class=
"order flex align-center"
v-if=
"item.key == 'remark' && orderCardDetail.orderStatus == '-1'"
>
<view
class=
"order-label"
>
{{
item
.
label
}}
</view>
<view
class=
"order-value"
>
<view>
{{
orderCardDetail
[
item
.
key
]
||
''
}}
</view>
</view>
</view>
<view
class=
"order flex align-center"
v-if=
"item.key == 'payTime' && (orderCardDetail.orderStatus == '3' || orderCardDetail.orderStatus == '5')"
>
<view
class=
"order-label"
>
{{
item
.
label
}}
</view>
<view
class=
"order-value"
>
<view>
{{
orderCardDetail
[
item
.
key
]
||
''
}}
</view>
</view>
</view>
<!-- &&( item.orderStatus == '3'||item.orderStatus =='5') -->
<view
class=
"order flex align-center"
v-if=
"item.key == 'createdTime'"
>
<view
class=
"order-label"
>
{{
item
.
label
}}
</view>
<view
class=
"order-value"
>
<view>
{{
orderCardDetail
[
item
.
key
]
||
''
}}
</view>
</view>
</view>
</view>
<view
class=
"order flex align-center"
v-else
>
<view
class=
"order-label"
>
{{
item
.
label
}}
</view>
<view
class=
"order-value flex"
>
<view
v-if=
"item.arr"
class=
"flex"
>
...
...
@@ -62,15 +83,15 @@
{{
orderCardDetail
.
refundAmount
}}
</view>
<!-- 已录单未签名 -->
<!--
<view
wx:
if=
"
{{
(
item
.
orderStatus
==
'3'
&&
item
.
equityOrderStatus
==
'0'
)
||
(
item
.
orderStatus
==
'5'
&&
item
.
equityOrderStatus
==
'0'
)
}}
" class="orange-txt">
<!--
<view
v-
if=
"
{{
(
item
.
orderStatus
==
'3'
&&
item
.
equityOrderStatus
==
'0'
)
||
(
item
.
orderStatus
==
'5'
&&
item
.
equityOrderStatus
==
'0'
)
}}
" class="orange-txt">
<image
class=
"icon-info"
src=
"/packageEquity/images/icon-info.png"
></image>
订单已支付,未录入权益合同
</view>
<view
wx:
elif=
"
{{
item
.
orderStatus
==
'3'
&&
item
.
equityOrderStatus
==
'2'
}}
" class="orange-txt">
<view
v-
elif=
"
{{
item
.
orderStatus
==
'3'
&&
item
.
equityOrderStatus
==
'2'
}}
" class="orange-txt">
<image
class=
"icon-info"
src=
"/packageEquity/images/icon-info.png"
></image>
订单已支付,尚未签名确认
</view>
-->
<!--
<view
wx:
else
>
创建时间:
{{
item
.
createdTime
}}
</view>
-->
<!--
<view
v-
else
>
创建时间:
{{
item
.
createdTime
}}
</view>
-->
</view>
</view>
<!-- 施工技师 -->
...
...
@@ -117,6 +138,7 @@
</view>
</view>
<NoticePopup
ref=
"notice"
title=
"提示"
text=
"是否撤销该笔客户工单,撤销后客户工单为「已撤销」状态,不再统计订单数和订单金额。"
type=
"warning"
></NoticePopup>
<NoticePopup
ref=
"reportNotice"
:title=
"noticeObj.title"
:text=
"noticeObj.text"
:type=
"noticeObj.type || 'success'"
:buttons=
"noticeObj.buttons"
></NoticePopup>
<ContractPopup
ref=
"contractPopupRef"
@
onConfirm=
"onConfirm"
></ContractPopup>
<PublishPopup
ref=
"defeatOrderPopup"
popupClass=
"defeatOrderPopup"
type=
"center"
:showClose=
"true"
:isMaskClick=
"false"
title=
"战败原因"
>
<template
#
content
>
...
...
@@ -440,7 +462,8 @@ export default {
'-1'
:
'去报价'
,
5
:
'去处理'
},
textareaValue
:
''
textareaValue
:
''
,
noticeObj
:
{}
}
},
mounted
()
{
...
...
@@ -501,29 +524,36 @@ export default {
},
// 撤销工单方法
revokeOrder
()
{
const
that
=
this
// 配置弹窗按钮
th
is
.
$refs
.
notice
.
buttonsList
=
[
th
at
.
$refs
.
notice
.
buttonsList
=
[
{
text
:
'取消'
,
type
:
'default'
,
callback
:
()
=>
{
th
is
.
transmissionOfData
=
null
th
is
.
$refs
.
notice
.
close
()
th
at
.
transmissionOfData
=
null
th
at
.
$refs
.
notice
.
close
()
}
},
{
text
:
'撤销'
,
type
:
'primary'
,
callback
:
async
()
=>
{
// 校验订单是否可撤销(在退款流程中无法撤销)
let
refundStep
=
await
uni
.
$api
.
equityApi
.
getOrderRefundStep
({
orderCode
:
this
.
orderCardDetail
.
payId
})
if
(
refundStep
?.
data
==
'Y'
)
return
_this
.
showRefundAlert
()
this
.
repeal
(
this
.
orderCardDetail
.
id
)
console
.
log
(
that
.
orderCardDetail
)
if
(
that
.
orderCardDetail
.
payId
)
{
// 校验订单是否可撤销(在退款流程中无法撤销)
let
refundStep
=
await
uni
.
$api
.
equityApi
.
getOrderRefundStep
({
orderCode
:
that
.
orderCardDetail
.
payId
})
console
.
log
(
refundStep
,
'refundStep'
)
if
(
refundStep
==
'Y'
)
return
that
.
showRefundAlert
()
that
.
repeal
(
that
.
orderCardDetail
.
id
)
}
else
{
that
.
repeal
(
that
.
orderCardDetail
.
id
)
}
}
}
]
// 打开弹窗
th
is
.
$refs
.
notice
.
open
()
th
at
.
$refs
.
notice
.
open
()
},
//修改客户信息
jumpUpdate
()
{
...
...
@@ -554,12 +584,36 @@ export default {
},
showRefundAlert
(
type
)
{
const
text
=
type
==
'error'
?
'订单已发起退款,禁止标记为错误工单!如需标记错误请联系总部运营。'
:
'订单已发起退款,禁止撤销!如需撤销请联系总部运营。'
uni
.
showModal
({
title
:
'提示'
,
content
:
text
,
showCancel
:
false
,
confirmText
:
'好的'
})
console
.
log
(
text
,
'text'
)
let
title
=
'提示'
,
btnText
=
'好的'
,
callbackFun
=
()
=>
{
this
.
$refs
.
notice
.
close
()
this
.
$refs
.
reportNotice
.
close
()
}
this
.
noticeObj
=
{
title
,
text
:
text
,
type
:
'warning'
,
buttons
:
[
{
text
:
btnText
,
type
:
'primary'
,
callback
:
callbackFun
}
]
}
console
.
log
(
this
.
$refs
.
reportNotice
)
this
.
$nextTick
(()
=>
this
.
$refs
.
reportNotice
.
open
())
// uni.showModal({
// title: '提示',
// content: text,
// showCancel: false,
// confirmText: '好的'
// })
},
openNotice
(
message
,
params
)
{
uni
.
hideLoading
()
},
repeal
(
id
,
revokeReason
)
{
uni
.
showLoading
({
...
...
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