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 aa8085b1
authored
Dec 02, 2025
by
cen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:权益列表
1 parent
e1e5dc7f
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
227 additions
and
199 deletions
api/module/equit.js
assets/css/common.scss
components/OrderScreenContract/components/OrderStatusList.vue
components/OrderScreenContract/config.js
components/OrderScreenContract/index.vue
pages/equity/order_mixins.js
pages/equity/tool/components/OrderCard.vue
pages/equity/tool/components/OrderManagement.vue
api/module/equit.js
View file @
aa8085b
...
...
@@ -24,5 +24,22 @@ module.exports = {
projectName
:
'boutique'
,
...
data
})
},
/** 修改车损报价单客户基本信息信息 */
updateCustomerInfo
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.customer.base.info.update'
,
projectName
:
'boutique'
,
...
data
})
},
/** 报价单订单分状态统计信息 */
orderStatistics
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.order.status.statistics'
,
projectName
:
'boutique'
,
...
data
})
}
}
assets/css/common.scss
View file @
aa8085b
...
...
@@ -110,6 +110,9 @@
.mr-12
{
margin-right
:
toRpx
(
12
);
}
.mr-20
{
margin-right
:
toRpx
(
20
);
}
.mr-24
{
margin-right
:
toRpx
(
24
);
}
...
...
components/OrderScreenContract/components/OrderStatusList.vue
View file @
aa8085b
<
template
>
<view
class=
"list"
>
<view
@
click=
"currentId = ''"
:class=
"['item flex',
{active:!currentId}]"
>
<view
@
click=
"currentId = ''"
:class=
"['item flex',
{ active: !currentId }]">
<view
class=
"sprite-icon icon-tag-checked"
></view>
全部
</view>
<template
v-for=
"(i, index) in list"
>
<view
:key=
"index"
@
click=
"currentId = i.id"
:class=
"['item flex',
{active:currentId == i.id}]"
>
<view
:key=
"index"
@
click=
"currentId = i.id"
:class=
"['item flex',
{ active: currentId == i.id }]">
<view
class=
"sprite-icon icon-tag-checked"
></view>
{{
i
.
name
}}
{{
i
.
name
}}
</view>
</
template
>
</view>
</template>
<
script
type=
'text/ecmascript-6'
>
<
script
type=
"text/ecmascript-6"
>
export
default
{
name
:
'OrderStatusList'
,
inject
:
[
'userInfo'
],
data
()
{
return
{
// 订单状态 (0待报价、1待确认、2待支付、3已支付、5已完成、6已退款、9已撤销、11错误订单、-1战败)
list
:
Object
.
freeze
([
{
name
:
'待
跟进
'
,
value
:
[
1
]
,
name
:
'待
报价
'
,
value
:
0
,
id
:
1
},
{
name
:
'
已支付
'
,
value
:
[
4
]
,
name
:
'
待确认
'
,
value
:
1
,
id
:
2
},
{
name
:
'待支付'
,
value
:
[
3
]
,
value
:
2
,
id
:
3
},
{
name
:
'已
撤销
'
,
value
:
[
9
]
,
name
:
'已
支付
'
,
value
:
3
,
id
:
4
},
{
name
:
'
战败
'
,
value
:
[
2
]
,
name
:
'
已完成
'
,
value
:
5
,
id
:
5
},
{
name
:
'已
评价
'
,
value
:
[
6
]
,
name
:
'已
退款
'
,
value
:
6
,
id
:
6
},
{
name
:
'已
关闭
'
,
value
:
[
10
]
,
name
:
'已
撤销
'
,
value
:
9
,
id
:
7
},
{
name
:
'
已失效
'
,
value
:
[
11
]
,
name
:
'
错误订单
'
,
value
:
11
,
id
:
8
},
{
name
:
'未施工'
,
value
:
[
'N'
],
id
:
9
},
{
name
:
'已施工'
,
value
:
[
'Y'
],
id
:
10
},
{
name
:
'已退款'
,
value
:
[
5
,
12
],
name
:
'战败'
,
value
:
-
1
,
id
:
11
}
]),
...
...
@@ -110,8 +94,9 @@ export default {
methods
:
{
initList
()
{
let
{
data
,
params
:
{
idKey
},
list
}
=
this
if
(
data
[
idKey
])
{
let
item
=
list
.
find
(
val
=>
val
.
value
.
join
(
','
)
==
data
[
idKey
].
join
(
','
))
console
.
log
(
data
,
idKey
,
'32938928392'
)
if
(
data
[
idKey
]
!==
undefined
&&
data
[
idKey
]
!==
null
&&
data
[
idKey
]
!==
''
)
{
let
item
=
list
.
find
(
val
=>
val
.
value
==
data
[
idKey
])
this
.
currentId
=
item
?
item
.
id
:
''
}
this
.
$emit
(
'onComplete'
)
...
...
@@ -120,7 +105,7 @@ export default {
}
</
script
>
<
style
scoped
lang=
'scss'
>
<
style
scoped
lang=
"scss"
>
.list
{
display
:
grid
;
grid-template-columns
:
repeat
(
6
,
1
fr
);
...
...
@@ -156,4 +141,4 @@ export default {
}
}
}
</
style
>
\ No newline at end of file
</
style
>
components/OrderScreenContract/config.js
View file @
aa8085b
...
...
@@ -5,7 +5,7 @@ const screenList = [
componentName
:
'EmployeeList'
,
params
:
{
cacheData
:
[],
idKey
:
'
sellerUserIdList
'
idKey
:
'
transferIds
'
},
hasToggle
:
true
,
toggle
:
false
...
...
@@ -16,7 +16,7 @@ const screenList = [
componentName
:
'EmployeeList'
,
params
:
{
cacheData
:
[],
idKey
:
'
userIdList
'
idKey
:
'
referrerIds
'
},
hasToggle
:
true
,
toggle
:
false
...
...
@@ -25,7 +25,7 @@ const screenList = [
title
:
'订单时间'
,
componentName
:
'TimeList'
,
params
:
{
idKey
:
[
'
placeOrderStartDateStr'
,
'placeOrderEndDateStr
'
],
idKey
:
[
'
minCreateTime'
,
'maxCreateTime
'
],
currentIdKey
:
'orderTimeId'
}
},
...
...
@@ -33,7 +33,7 @@ const screenList = [
title
:
'支付时间'
,
componentName
:
'TimeList'
,
params
:
{
idKey
:
[
'
installUpgradeBeginTimeStr'
,
'installUpgradeEndTimeStr
'
],
idKey
:
[
'
minPayTime'
,
'maxPayTime
'
],
currentIdKey
:
'payTimeId'
}
},
...
...
@@ -41,7 +41,7 @@ const screenList = [
title
:
'订单状态'
,
componentName
:
'OrderStatusList'
,
params
:
{
idKey
:
'
statusList
'
idKey
:
'
orderStatus
'
}
},
{
...
...
components/OrderScreenContract/index.vue
View file @
aa8085b
...
...
@@ -90,6 +90,11 @@ export default {
},
methods
:
{
open
(
data
)
{
console
.
log
(
'open'
,
data
)
const
{
orderStatus
}
=
data
if
(
orderStatus
!==
undefined
&&
orderStatus
!==
null
&&
orderStatus
!==
''
)
{
this
.
$set
(
this
.
chooseContent
,
'orderStatus'
,
orderStatus
)
}
this
.
$refs
.
popup
.
open
()
},
clear
()
{
...
...
@@ -101,10 +106,11 @@ export default {
},
choose
(
i
)
{
let
{
key
,
value
,
keys
,
currentIdKey
,
currentId
}
=
i
;
console
.
log
(
'choose'
,
key
,
value
)
let
updatedChooseContent
=
{
...
this
.
chooseContent
};
let
needRefresh
=
false
;
// 有订单状态,将合同协议状态置为全部
if
(
key
==
'
statusList
'
&&
value
)
{
if
(
key
==
'
orderStatus
'
&&
value
)
{
if
(
updatedChooseContent
.
zyPayStatus
!==
undefined
)
{
this
.
$delete
(
updatedChooseContent
,
'zyPayStatus'
)
needRefresh
=
true
...
...
@@ -112,8 +118,8 @@ export default {
}
// 有合同协议状态时,将订单状态置为全部
if
(
key
==
'zyPayStatus'
&&
value
)
{
if
(
updatedChooseContent
.
statusList
!==
undefined
)
{
this
.
$delete
(
updatedChooseContent
,
'
statusList
'
)
if
(
updatedChooseContent
.
orderStatus
!==
undefined
)
{
this
.
$delete
(
updatedChooseContent
,
'
orderStatus
'
)
needRefresh
=
true
}
}
...
...
@@ -121,14 +127,15 @@ export default {
if
(
keys
)
{
if
(
currentIdKey
)
this
.
$set
(
updatedChooseContent
,
currentIdKey
,
currentId
||
''
)
keys
.
map
(
e
=>
{
if
(
value
[
e
])
this
.
$set
(
updatedChooseContent
,
e
,
value
[
e
])
if
(
value
[
e
]
!==
undefined
&&
value
[
e
]
!==
null
&&
value
[
e
]
!==
''
)
this
.
$set
(
updatedChooseContent
,
e
,
value
[
e
])
else
this
.
$delete
(
updatedChooseContent
,
e
)
})
}
else
{
if
(
value
)
this
.
$set
(
updatedChooseContent
,
key
,
value
)
if
(
value
!==
undefined
&&
value
!==
null
&&
value
!==
''
)
this
.
$set
(
updatedChooseContent
,
key
,
value
)
else
this
.
$delete
(
updatedChooseContent
,
key
)
}
this
.
chooseContent
=
updatedChooseContent
;
console
.
log
(
'chooseContent'
,
this
.
chooseContent
)
if
(
needRefresh
)
{
this
.
componentKey
=
Date
.
now
()
}
...
...
pages/equity/order_mixins.js
View file @
aa8085b
...
...
@@ -184,6 +184,18 @@ module.exports = {
],
grassInfo
:
{},
orderCode
:
''
,
userInfo
:
{}
userInfo
:
{},
orderStatusObj
:
{
0
:
{
text
:
'待报价'
,
color
:
'#F7A431'
,
background
:
'#FFF5E6'
},
1
:
{
text
:
'待确认'
,
color
:
'#F7A431'
,
background
:
'#FFF5E6'
},
2
:
{
text
:
'待支付'
,
color
:
'#F7A431'
,
background
:
'#FFF5E6'
},
3
:
{
text
:
'已支付'
,
color
:
'#2CCA74'
,
background
:
'#EAF9F1'
},
4
:
{
text
:
'已支付'
,
color
:
'#2CCA74'
,
background
:
'#EAF9F1'
},
5
:
{
text
:
'已完成'
,
color
:
'#F7A431'
,
background
:
'#FFF5E6'
},
'-1'
:
{
text
:
'战败'
,
color
:
'#F24724'
,
background
:
'#FDECE9'
},
9
:
{
text
:
'已撤销'
,
color
:
'#999999'
,
background
:
' #9999991a;'
},
11
:
{
text
:
'已失效'
,
color
:
'#F7A431'
,
background
:
'#FFF5E6'
},
6
:
{
text
:
'已退款'
,
color
:
'#F7A431'
,
background
:
'#FFF5E6'
}
}
}
}
pages/equity/tool/components/OrderCard.vue
View file @
aa8085b
...
...
@@ -2,43 +2,33 @@
<
template
>
<view
class=
"order-card"
@
click
.
stop=
"cardClick"
>
<view
class=
"order-card-top-box flex justify-between"
>
<text>
{{
orderCardDetail
.
customer
.
customerName
}}
</text>
<view
class=
"status text-center"
:style=
"
{ color: orderCardDetail.statuscolor, 'background-color': orderCardDetail.statusbackground }">
<view
v-if=
"orderCardDetail.status == 1 || orderCardDetail.status == 3"
>
<view
v-if=
"status[orderCardDetail.status].background"
>
<view
class=
"flex item-center"
>
<text
class=
"mr-20"
>
{{
orderCardDetail
.
customerName
}}
</text>
<!-- 标记为已开票的 不可编辑客户信息 invoicing 2已开票 -->
<view
v-if=
"isOrder"
>
<view
v-if=
"orderCardDetail.orderStatus == 3 || orderCardDetail.orderStatus == 5 || orderCardDetail.orderStatus == -1"
@
click=
"jumpUpdate"
:class=
"['updateInfo flex', orderCardDetail.orderStatus == '6' || orderCardDetail.invoicing == '2' ? 'isHide' : '']"
>
<view
class=
"sprite-icon icon-edit mr-8"
></view>
客户信息
</view>
</view>
</view>
<!-- 待上传合同协议且是已支付的订单 -->
<view
class=
"status text-center"
:style=
"
{ color: status[0].color, 'background-color': status[0].background }" v-if="orderCardDetail.zyPayStatus == 1
&&
(orderCardDetail.orderStatus == 3 || orderCardDetail.orderStatus == 4 || orderCardDetail.orderStatus == 7)">待上传
</view>
<view
v-else
class=
"status text-center"
:style=
"
{ color: status[orderCardDetail.orderStatus].color, 'background-color': status[orderCardDetail.orderStatus].background }">
<!--
<view
v-if=
"orderCardDetail.orderStatus == 1 || orderCardDetail.orderStatus == 3"
>
<view
v-if=
"status[orderCardDetail.orderStatus].background"
>
<view
class=
"arc y-center"
>
<view
class=
"outside box-center"
:style=
"
{ 'background-color': status[orderCardDetail.
s
tatus].background }" />
<view
class=
"inside box-center"
:style=
"
{ 'background-color': status[orderCardDetail.
s
tatus].color }" />
<view
class=
"outside box-center"
:style=
"
{ 'background-color': status[orderCardDetail.
orderS
tatus].background }" />
<view
class=
"inside box-center"
:style=
"
{ 'background-color': status[orderCardDetail.
orderS
tatus].color }" />
</view>
</view>
</view>
</view>
-->
<!-- 优先显示已撤销的 然后是已施工的 最后是其他的 -->
<!--
{{
li
.
status
==
9
?
status
[
li
.
status
].
text
:
(
li
.
constructionFlag
==
'Y'
?
'已施工'
:
status
[
li
.
status
].
text
)
}}
-->
{{
orderCardDetail
.
statusT
ext
}}
{{
status
[
orderCardDetail
.
orderStatus
].
t
ext
}}
</view>
</view>
<view>
<view
class=
"goods-list"
:style=
"
{ paddingBottom: orderCardDetail.subOrderList
&&
orderCardDetail.subOrderList.length
< 1
?
'
0
'
:
''
}"
v-if=
"orderCardDetail.subOrderList && orderCardDetail.subOrderList.length > 0"
>
<view>
<view
v-for=
"(i, sindex) in orderCardDetail.subOrderList"
:key=
"sindex"
class=
"goods flex justify-between"
:class=
"
{ 'no-margin': orderCardDetail.subOrderList.length === 1 }" v-if="orderCardDetail.showAllGoodsListFlag ? true : sindex
< 2
"
>
<view
class=
"goods-name text-hide flex"
>
<view
class=
"point"
></view>
{{
i
.
upgradeGoodsAlias
||
i
.
upgradeGoodsName
||
i
.
packageName
||
''
}}
</view>
<view
class=
"goods-price"
>
¥
<text>
{{
i
.
totalPrice
||
0
}}
</text>
</view>
</view>
<view
v-if=
"orderCardDetail.subOrderList.length > 2"
class=
"goods-more"
>
<text
@
click
.
stop=
"showAllGoodsList"
>
{{
orderCardDetail
.
showAllGoodsListFlag
?
'收起'
:
'查看全部'
}}
</text>
(共
{{
orderCardDetail
.
subOrderList
.
length
}}
件)
</view>
</view>
</view>
<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"
>
...
...
@@ -142,7 +132,7 @@ export default {
return
order_mixins
.
data
.
payType
||
{}
},
status
()
{
return
order_mixins
.
data
.
status
||
{}
return
order_mixins
.
data
.
orderStatusObj
||
{}
}
},
data
()
{
...
...
@@ -153,48 +143,119 @@ export default {
pointsMultiObj
:
[
{
label
:
'销售顾问 /录单员'
,
arr
:
[
'merchantName'
,
'
employee
Name'
]
arr
:
[
'merchantName'
,
'
referrer
Name'
]
},
{
label
:
'交付人员'
,
arr
:
[
'merchantName'
,
'delivery
Employee
Name'
]
arr
:
[
'merchantName'
,
'deliveryName'
]
},
{
label
:
'转化人员'
,
arr
:
[
'sellerMerchantName'
,
'sellerName'
]
arr
:
[
'parkMerchantName'
,
'transferName'
]
},
{
label
:
'车架号'
,
key
:
'carVin'
},
{
label
:
'购买商品'
,
key
:
'goodsNameAlias'
,
otherKey
:
'goodsName'
},
{
label
:
'工单编号'
,
key
:
'orderCode'
key
:
'payId'
,
canCopy
:
true
},
{
label
:
'交易流水号'
,
key
:
'tradeNo'
,
canCopy
:
true
},
{
label
:
'拒升原因'
,
key
:
'remark'
},
{
label
:
'工单时间'
,
key
:
'orderTime'
label
:
'支付时间'
,
key
:
'payTime'
},
{
label
:
'创建时间'
,
key
:
'createdTime'
},
{
label
:
'支付方式'
,
key
:
'payType'
,
mapValue
:
{
1
:
'线上支付'
,
2
:
'门店收款'
,
5
:
'嘀加收款'
,
6
:
'对公转账'
,
7
:
'其它收款'
}
}
],
orderObj
:
[
{
label
:
'销售顾问'
,
arr
:
[
'merchantName'
,
'
employee
Name'
]
arr
:
[
'merchantName'
,
'
referrer
Name'
]
},
{
label
:
'转化人员'
,
arr
:
[
'sellerMerchantName'
,
'sellerName'
]
arr
:
[
'parkMerchantName'
,
'transferName'
]
},
{
label
:
'车架号'
,
key
:
'carVin'
},
{
label
:
'购买商品'
,
key
:
'goodsNameAlias'
,
otherKey
:
'goodsName'
},
{
label
:
'工单编号'
,
key
:
'orderCode'
key
:
'payId'
,
canCopy
:
true
},
{
label
:
'工单时间'
,
key
:
'orderTime'
label
:
'交易流水号'
,
key
:
'tradeNo'
,
// key: "transactionNo",
canCopy
:
true
},
{
label
:
'拒升原因'
,
key
:
'remark'
},
{
label
:
'支付时间'
,
key
:
'payTime'
},
{
label
:
'创建时间'
,
key
:
'createdTime'
},
{
label
:
'支付方式'
,
key
:
'payType'
,
mapValue
:
{
1
:
'线上支付'
,
2
:
'门店收款'
,
5
:
'嘀加收款'
,
6
:
'对公转账'
,
7
:
'其它收款'
}
}
],
localUserInfo
:
null
localUserInfo
:
null
,
isOrder
:
null
}
},
mounted
()
{
this
.
localUserInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
this
.
isOrder
=
!
(
this
.
localUserInfo
?.
isSuper
||
this
.
localUserInfo
?.
loginRole
==
3
||
this
.
localUserInfo
.
loginRole
==
5
||
this
.
localUserInfo
?.
loginRole
==
6
)
},
methods
:
{
// 查看全部商品
...
...
pages/equity/tool/components/OrderManagement.vue
View file @
aa8085b
<
template
>
<view
class=
"order-management"
>
<view
class=
"search-box"
>
<input
class=
"search-input"
placeholder-class=
"placeholder"
v-model=
"
keyword
"
confirm-type=
"search"
@
confirm=
"search"
placeholder=
"输入客户姓名/商品名称/订单编号/手机号搜索"
/>
<input
class=
"search-input"
placeholder-class=
"placeholder"
v-model=
"
customerName
"
confirm-type=
"search"
@
confirm=
"search"
placeholder=
"输入客户姓名/商品名称/订单编号/手机号搜索"
/>
<view
class=
"clear flex"
@
click=
"clear"
>
<uni-icons
type=
"closeempty"
size=
"16"
v-if=
"
keyword
"
></uni-icons>
<uni-icons
type=
"closeempty"
size=
"16"
v-if=
"
customerName
"
></uni-icons>
</view>
</view>
...
...
@@ -193,13 +193,13 @@ export default {
}
],
tabList
:
[
{
tabName
:
'全部'
,
num
:
0
},
{
tabName
:
'待报价'
,
num
:
0
},
{
tabName
:
'待支付'
,
num
:
0
},
{
tabName
:
'已支付'
,
num
:
0
},
{
tabName
:
'已完成'
,
num
:
0
},
{
tabName
:
'战败'
,
num
:
0
},
{
tabName
:
'待上传协议'
,
num
:
0
}
{
tabName
:
'全部'
,
num
:
0
,
value
:
null
},
{
tabName
:
'待报价'
,
num
:
0
,
value
:
0
},
{
tabName
:
'待支付'
,
num
:
0
,
value
:
2
},
{
tabName
:
'已支付'
,
num
:
0
,
value
:
3
},
{
tabName
:
'已完成'
,
num
:
0
,
value
:
5
},
{
tabName
:
'战败'
,
num
:
0
,
value
:
-
1
},
{
tabName
:
'待上传协议'
,
num
:
0
,
value
:
7
}
],
tabIndex
:
0
,
waitinputorderTabList
:
[
...
...
@@ -207,7 +207,7 @@ export default {
{
name
:
'超分账期'
,
showQuestion
:
true
}
],
activeIndex
:
0
,
keyword
:
''
,
customerName
:
''
,
searchObj
:
{},
dataList
:
[],
triggered
:
false
,
...
...
@@ -265,11 +265,11 @@ export default {
},
switchTab
(
index
)
{
this
.
tabIndex
=
index
delete
this
.
searchObj
.
statusList
this
.
searchObj
.
orderStatus
=
this
.
tabList
[
index
].
value
this
.
search
()
},
openFilter
()
{
this
.
$refs
.
openFilter
.
open
()
this
.
$refs
.
openFilter
.
open
(
this
.
searchObj
)
},
openFilterConfirm
(
val
)
{
console
.
log
(
val
)
...
...
@@ -301,18 +301,21 @@ export default {
}
},
getStatByStatus
()
{
if
((
this
.
searchObj
.
statusList
&&
this
.
searchObj
.
statusList
[
0
]
==
'Y'
)
||
(
this
.
searchObj
.
statusList
&&
this
.
searchObj
.
statusList
[
0
]
==
'N'
))
{
this
.
searchObj
.
constructionFlag
=
this
.
searchObj
.
statusList
[
0
]
delete
this
.
searchObj
.
statusList
const
localUserInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
console
.
log
(
this
.
searchObj
)
let
params
=
{
customerName
:
this
.
customerName
,
merchantIds
:
[
localUserInfo
.
shopMerchantId
],
...
this
.
searchObj
}
uni
.
$api
.
boutiqueApi
.
statByStatus
({
...
this
.
searchObj
,
keyword
:
this
.
keyword
,
sceneType
:
1
}
)
if
(
!
localUserInfo
.
isSuper
&&
localUserInfo
.
loginRole
!=
3
&&
localUserInfo
?.
loginRole
!=
6
)
{
params
.
transferIds
=
[
localUserInfo
.
uuid
]
}
if
(
params
?.
zyPayStatus
==
'1'
)
params
.
orderStatus
=
7
uni
.
$api
.
equitApi
.
orderStatistics
(
params
)
.
then
(
result
=>
{
const
labelList
=
[
'total
Count'
,
'waitUpgradeCount'
,
'upgradedCount'
,
'notUpgradeCoun
t'
]
const
labelList
=
[
'total
'
,
'waitQuotation'
,
'waitPay'
,
'paySuccess'
,
'completed'
,
'defea
t'
]
labelList
.
map
((
item
,
index
)
=>
{
this
.
tabList
[
index
].
num
=
result
[
item
]
?
result
[
item
]
:
0
})
...
...
@@ -365,93 +368,33 @@ export default {
})
},
queryList
(
pageNo
,
pageSize
)
{
// let { pageSize, currentPage, orderStatus, customerName, userInfo, storeInfo, nothing, staffUuid, zyPayStatus } = this.data,
// { screenForm } = this,
// merchantId = ''
// if (!screenForm) screenForm = {}
// if (nothing) {
// return
// }
// let params = {
// pageSize,
// currentPage,
// customerName,
// orderStatus,
// merchantId,
// zyPayStatus
// }
// if (!userInfo.isSuper && userInfo.loginRole != 3 && userInfo?.loginRole != 6) {
// // debugger
// params.transferIds = [userInfo.uuid]
// }
const
localUserInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
console
.
log
(
this
.
searchObj
)
let
params
=
{
pageSize
,
currentPage
:
pageNo
,
customerName
:
this
.
customerName
,
merchantIds
:
[
localUserInfo
.
shopMerchantId
],
...
this
.
searchObj
}
if
(
!
localUserInfo
.
isSuper
&&
localUserInfo
.
loginRole
!=
3
&&
localUserInfo
?.
loginRole
!=
6
)
{
params
.
transferIds
=
[
localUserInfo
.
uuid
]
}
// if (staffUuid) {
// params.transferIds = [staffUuid]
// } else {
// params.merchantId = storeInfo?.merchantId
// }
// uni.$api.equitApi
// .quotationPage(obj)
// .then(result => {
// const { list, total } = result
// // 这个是用来判断哪些用户可以撤销的
// let userType = (!this.localUserInfo.isSuper && this.localUserInfo.merchantType) || (this.localUserInfo.loginRole !== 3 && this.localUserInfo?.loginRole !== 6)
// // let userType = true
// list.map(e => {
// if (e.orderTime) e.orderTime = dayjs(new Date(e.orderTime)).format('YYYY-MM-DD HH:mm:ss')
// e.subOrderList.map(i => {
// i.totalPrice = Number(utils.decimal(i.totalPrice, 2)).toFixed(2)
// })
// e.total_price = e.totalPrice
// e.totalPrice = Number(utils.decimal(e.totalPrice, 2)).toFixed(2)
// // 开票按钮
// e.invoiceName = e.invoiceStatus == 2 ? '查看发票' : '申请开票'
// // && e.status != 1 待跟进现在也能撤销
// let orderType = (this.localUserInfo.userType == 1 || this.localUserInfo.userType == 2) && e.status != 9 && ![1, 3, 4].includes(e.selectPayType)
// // let orderType = this.localUserInfo.userType !== 1 && e.status != 9 && e.status != 1 && e.selectPayType != 3 && e.selectPayType != 1
// // console.log(userType);
// // console.log(orderType);
// e.repeal = userType && orderType
// // 处理subOrderList 商品为空的情况
// e.subOrderList = e.subOrderList.filter(item => item.merchantGoodsId)
// e.packageGoodsList?.forEach(item => {
// item.packageGoodsOrderList.forEach(g => {
// g.price = g.totalPrice ? Number(g.totalPrice) / Number(g.number) : g.upgradePrice
// })
// item.goodsList = item.packageGoodsOrderList
// item.price = item.goodsList.reduce((prev, cur) => {
// return prev + Number(cur.totalPrice) / Number(cur.number)
// }, 0)
// item.count = item.goodsList.length ? item.goodsList[0].number : 1
// let total = item.price * item.count
// item.totalPrice = utils.decimal(total, 2)
// })
// if (e.packageGoodsList && e.packageGoodsList.length) {
// e.subOrderList = e.subOrderList.concat(e.packageGoodsList)
// }
// // e.subOrderList = e.subOrderList.filter(item => item.id)
// // 处理显示订单右上角文字
// let text = this.status[e.status].text
// let color = this.status[e.status].color
// let background = this.status[e.status].background
// // 不是订单失效状态优先显示已施工
// if (![9, 11, 12].includes(e.status) && e.constructionFlag == 'Y') {
// text = '已施工'
// color = '#347BFF'
// background = '#F3F7FC'
// }
// e.statusText = text
// e.statuscolor = color
// e.statusbackground = background
// // 商品是否包含太阳膜
// e.isFilmOrder = e.subOrderList?.findIndex(subE => subE?.upgradeGoodsType == 1) > -1
// })
// console.log(list)
this
.
$refs
.
paging
.
complete
([])
// })
// .catch(err => {
// this.$refs.paging.complete(false)
// console.log(err)
// })
uni
.
$api
.
equitApi
.
quotationPage
(
params
)
.
then
(
result
=>
{
console
.
log
(
result
)
this
.
$refs
.
paging
.
complete
(
result
.
list
)
})
.
catch
(
err
=>
{
this
.
$refs
.
paging
.
complete
(
false
)
console
.
log
(
err
)
})
},
// 10s轮询一次待补录
getWaitOrder
()
{
...
...
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