Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
admin
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
admin
Commits
b7ad3789
提交
b7ad3789
authored
8月 18, 2023
作者:
ZhangLingKun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
功能:服务列表筛选
上级
7fbc6486
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
65 行增加
和
0 行删除
+65
-0
mallManageType.ts
src/api/interface/mallManageType.ts
+36
-0
mallManage.ts
src/api/modules/mallManage.ts
+5
-0
index.tsx
src/pages/mallManage/serviceManage/serviceList/index.tsx
+24
-0
没有找到文件。
src/api/interface/mallManageType.ts
浏览文件 @
b7ad3789
...
...
@@ -367,3 +367,39 @@ export type listInspectionPriceUnitType = InterFunction<
>
;
// 删除单位服务
export
type
companyInspectionRemoveType
=
InterFunction
<
{
id
:
number
},
NonNullable
<
unknown
>>
;
// 合作商家列表-根据合作标签id获取
export
type
listCompanyInfoByCoopIdType
=
InterListFunction
<
{
coopId
:
number
;
lat
:
number
;
lon
:
number
;
pageNo
:
number
;
pageSize
:
number
;
},
{
address
:
string
;
brandLogo
:
string
;
brandName
:
string
;
companyName
:
string
;
companyType
:
number
;
companyUserName
:
string
;
content
:
string
;
creditCode
:
string
;
fullName
:
string
;
id
:
number
;
lat
:
number
;
leader
:
number
;
licenseImg
:
string
;
lon
:
number
;
phoneNum
:
number
;
remark
:
string
;
score
:
string
;
userAccountId
:
number
;
backImg
:
string
;
city
:
string
;
distance
:
number
;
district
:
string
;
province
:
string
;
backUserAccountId
:
number
;
}
>
;
src/api/modules/mallManage.ts
浏览文件 @
b7ad3789
...
...
@@ -19,6 +19,7 @@ import {
getCompanyInspectionByIdType
,
listInspectionPriceUnitType
,
companyInspectionRemoveType
,
listCompanyInfoByCoopIdType
,
}
from
'~/api/interface/mallManageType'
;
export
class
MallManageAPI
{
...
...
@@ -80,4 +81,8 @@ export class MallManageAPI {
// 删除单位服务
static
companyInspectionRemove
:
companyInspectionRemoveType
=
(
params
)
=>
axios
.
get
(
'/pms/company-inspection/remove'
,
{
params
});
// 合作商家列表-根据合作标签id获取
static
listCompanyInfoByCoopId
:
listCompanyInfoByCoopIdType
=
(
params
)
=>
axios
.
get
(
'/userapp/cooperation/listCompanyInfoByCoopId'
,
{
params
});
}
src/pages/mallManage/serviceManage/serviceList/index.tsx
浏览文件 @
b7ad3789
...
...
@@ -144,10 +144,27 @@ const ServiceListView = () => {
// 获取商品的价格单位
const
getPriceUnitStr
=
(
i
:
TableType
[
0
])
=>
priceUnitList
.
find
((
j
)
=>
j
.
id
===
i
?.
inspectionPriceUnitId
)?.
unitName
||
''
;
// 飞手团队列表
const
[
companyInfoList
,
setCompanyInfoList
]
=
useState
<
{
label
:
string
;
value
:
number
}[]
>
([]);
// 获取飞手团队列表
const
getListCompanyInfoByCoopId
=
async
()
=>
{
const
res
=
await
MallManageAPI
.
listCompanyInfoByCoopId
({
lat
:
22
,
lon
:
113
,
pageNo
:
1
,
pageSize
:
9999
,
coopId
:
5
,
});
if
(
res
&&
res
.
code
===
'200'
)
{
const
list
=
res
.
result
?.
list
?.
map
((
i
)
=>
({
label
:
i
.
companyName
,
value
:
i
.
id
}));
setCompanyInfoList
(
list
||
[]);
}
};
// 组件挂载
useEffect
(()
=>
{
getIndustryList
().
then
();
getPriceUnit
().
then
();
getListCompanyInfoByCoopId
().
then
();
getTableList
().
then
();
},
[]);
// 表格结构
...
...
@@ -283,6 +300,13 @@ const ServiceListView = () => {
name
:
'cascaderData'
,
options
:
industryList
,
},
{
label
:
'作业团队'
,
placeholder
:
'请选择作业团队'
,
type
:
'Select'
,
name
:
'companyInfoId'
,
options
:
companyInfoList
,
},
]
}
searchData=
{
onFinish
}
/>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论