Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
admin
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
admin
Commits
97610a37
提交
97610a37
authored
6月 12, 2023
作者:
龚洪江
提交者:
余乾开
6月 12, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复:注释不显示的目录
上级
c8761a75
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
172 行增加
和
73 行删除
+172
-73
orderManageType.ts
src/api/interface/orderManageType.ts
+22
-1
orderManage.ts
src/api/modules/orderManage.ts
+8
-0
index.tsx
...ponents/goods/commonAddOrEdit/addOrEditSkuModal/index.tsx
+1
-1
index.tsx
src/components/goods/commonAddOrEdit/baseInfo/index.tsx
+1
-0
index.tsx
src/pages/mallManage/mallGoods/goodsList/index.tsx
+4
-0
index.tsx
src/pages/mallManage/produceManage/produceList/index.tsx
+3
-2
index.tsx
src/pages/mallManage/rentGoods/rentList/index.tsx
+4
-0
index.tsx
src/pages/orderManage/serviceOrder/index.tsx
+129
-69
router.tsx
src/router/router.tsx
+0
-0
没有找到文件。
src/api/interface/orderManageType.ts
浏览文件 @
97610a37
import
{
InterFunction
,
InterListFunction
}
from
'~/api/interface'
;
import
{
InterFunction
,
Inter
ItemFunction
,
Inter
ListFunction
}
from
'~/api/interface'
;
// web 租赁订单-分页-列表
// web 租赁订单-分页-列表
export
type
listOfRentalOrdersType
=
InterListFunction
<
export
type
listOfRentalOrdersType
=
InterListFunction
<
{
{
...
@@ -403,6 +403,27 @@ export type refundOrderType = InterFunction<
...
@@ -403,6 +403,27 @@ export type refundOrderType = InterFunction<
},
},
NonNullable
<
unknown
>
NonNullable
<
unknown
>
>
;
>
;
//服务-订单
export
type
serviceOrderType
=
InterItemFunction
<
{
startTime
?:
string
;
endTime
?:
string
;
orderStatus
?:
number
;
orderNameOrNo
?:
string
},
{
id
:
number
;
orderName
:
string
;
orderNo
:
string
;
orderStatus
:
number
;
images
:
string
[];
orderAmt
:
number
;
phoneNum
:
string
;
uid
:
string
;
createdTime
:
string
;
userName
:
string
;
}[]
>
;
// 服务-订单字典
export
type
serviceOrderStatusType
=
InterFunction
<
any
,
{
flyerPort
:
string
;
orderStatus
:
number
;
managePort
:
string
;
userPort
:
string
}[]
>
;
// 商城订单-订单状态-字典
// 商城订单-订单状态-字典
export
type
orderListStatus
=
InterFunction
<
export
type
orderListStatus
=
InterFunction
<
NonNullable
<
unknown
>
,
NonNullable
<
unknown
>
,
...
...
src/api/modules/orderManage.ts
浏览文件 @
97610a37
...
@@ -13,6 +13,8 @@ import {
...
@@ -13,6 +13,8 @@ import {
refundOrderType
,
refundOrderType
,
renterTakeOrderType
,
renterTakeOrderType
,
sendOrderWareType
,
sendOrderWareType
,
serviceOrderStatusType
,
serviceOrderType
,
}
from
'~/api/interface/orderManageType'
;
}
from
'~/api/interface/orderManageType'
;
export
class
OrderManageAPI
{
export
class
OrderManageAPI
{
...
@@ -66,4 +68,10 @@ export class OrderManageAPI {
...
@@ -66,4 +68,10 @@ export class OrderManageAPI {
// v1.0.0订单管理-分页查询(改版后)
// v1.0.0订单管理-分页查询(改版后)
static
listPageManagerVerOne
:
listPageManagerVerOne
=
(
params
)
=>
static
listPageManagerVerOne
:
listPageManagerVerOne
=
(
params
)
=>
axios
.
post
(
'/oms/pmorderVerOne/listPageManagerVerOne'
,
params
);
axios
.
post
(
'/oms/pmorderVerOne/listPageManagerVerOne'
,
params
);
// 服务-订单
static
getServiceOrderList
:
serviceOrderType
=
(
data
)
=>
axios
.
post
(
'/oms/serviceOrderTask/queryOrderTaskList'
,
data
);
// 服务-订单字典
static
getServiceStatusList
:
serviceOrderStatusType
=
()
=>
axios
.
post
(
'/oms/serviceOrderTask/getServiceOrderStatus'
);
}
}
src/components/goods/commonAddOrEdit/addOrEditSkuModal/index.tsx
浏览文件 @
97610a37
...
@@ -450,7 +450,7 @@ const AddOrEditSkuModal: React.FC<ModalProps & selfProps> = ({
...
@@ -450,7 +450,7 @@ const AddOrEditSkuModal: React.FC<ModalProps & selfProps> = ({
name=
'goodsSpecName'
name=
'goodsSpecName'
rules=
{
[{
required
:
true
,
message
:
'请输入规格名称'
}]
}
rules=
{
[{
required
:
true
,
message
:
'请输入规格名称'
}]
}
>
>
<
Input
placeholder=
'请输入规格名称'
/>
<
Input
placeholder=
'请输入规格名称'
maxLength=
{
30
}
/>
</
Form
.
Item
>
</
Form
.
Item
>
{
currentDesc
!=
2
&&
(
{
currentDesc
!=
2
&&
(
<
Form
.
Item
label=
'规格来源'
name=
'flag'
>
<
Form
.
Item
label=
'规格来源'
name=
'flag'
>
...
...
src/components/goods/commonAddOrEdit/baseInfo/index.tsx
浏览文件 @
97610a37
...
@@ -286,6 +286,7 @@ const BaseInfo: React.FC<selfProps> = forwardRef(
...
@@ -286,6 +286,7 @@ const BaseInfo: React.FC<selfProps> = forwardRef(
placeholder=
'请选择所属目录'
placeholder=
'请选择所属目录'
style=
{
{
width
:
'400px'
}
}
style=
{
{
width
:
'400px'
}
}
onChange=
{
directorySelectChange
}
onChange=
{
directorySelectChange
}
disabled=
{
!!
goodsDetail
}
>
>
{
directoryList
.
map
((
v
)
=>
(
{
directoryList
.
map
((
v
)
=>
(
<
Select
.
Option
value=
{
v
.
id
}
key=
{
v
.
id
}
>
<
Select
.
Option
value=
{
v
.
id
}
key=
{
v
.
id
}
>
...
...
src/pages/mallManage/mallGoods/goodsList/index.tsx
浏览文件 @
97610a37
...
@@ -97,6 +97,7 @@ const GoodsList = () => {
...
@@ -97,6 +97,7 @@ const GoodsList = () => {
},
},
];
];
const
[
tableData
,
setTableData
]
=
useState
<
goodsType
>
([]);
const
[
tableData
,
setTableData
]
=
useState
<
goodsType
>
([]);
const
[
loading
,
setLoading
]
=
useState
<
boolean
>
(
false
);
//分页
//分页
const
[
pagination
,
setPagination
]
=
useState
<
PaginationProps
&
{
totalCount
:
number
}
>
({
const
[
pagination
,
setPagination
]
=
useState
<
PaginationProps
&
{
totalCount
:
number
}
>
({
pageNo
:
1
,
pageNo
:
1
,
...
@@ -128,12 +129,14 @@ const GoodsList = () => {
...
@@ -128,12 +129,14 @@ const GoodsList = () => {
};
};
//商品列表
//商品列表
const
getGoodsList
=
(
query
?:
goodsSearchParameters
)
=>
{
const
getGoodsList
=
(
query
?:
goodsSearchParameters
)
=>
{
setLoading
(
true
);
GoodsAPI
.
getGoodsList
({
GoodsAPI
.
getGoodsList
({
pageNo
:
pagination
.
pageNo
,
pageNo
:
pagination
.
pageNo
,
pageSize
:
pagination
.
pageSize
,
pageSize
:
pagination
.
pageSize
,
goodsType
:
0
,
goodsType
:
0
,
...
query
,
...
query
,
}).
then
(({
result
})
=>
{
}).
then
(({
result
})
=>
{
setLoading
(
false
);
setTableData
(
result
.
list
||
[]);
setTableData
(
result
.
list
||
[]);
pagination
.
totalCount
=
result
.
totalCount
;
pagination
.
totalCount
=
result
.
totalCount
;
setPagination
(
pagination
);
setPagination
(
pagination
);
...
@@ -251,6 +254,7 @@ const GoodsList = () => {
...
@@ -251,6 +254,7 @@ const GoodsList = () => {
selectedRowKeys
,
selectedRowKeys
,
onChange
:
onSelectChange
,
onChange
:
onSelectChange
,
}
}
}
}
loading=
{
loading
}
pagination=
{
{
pagination=
{
{
total
:
pagination
.
totalCount
,
total
:
pagination
.
totalCount
,
pageSize
:
pagination
.
pageSize
,
pageSize
:
pagination
.
pageSize
,
...
...
src/pages/mallManage/produceManage/produceList/index.tsx
浏览文件 @
97610a37
...
@@ -9,6 +9,7 @@ import { InterDataType, InterReqType, PaginationProps } from '~/api/interface';
...
@@ -9,6 +9,7 @@ import { InterDataType, InterReqType, PaginationProps } from '~/api/interface';
import
{
addProductType
,
productListType
}
from
'~/api/interface/produceManageType'
;
import
{
addProductType
,
productListType
}
from
'~/api/interface/produceManageType'
;
import
{
categoryListType
,
directoryListType
}
from
'~/api/interface/categoryManage'
;
import
{
categoryListType
,
directoryListType
}
from
'~/api/interface/categoryManage'
;
import
{
MakeListType
}
from
'~/api/interface/makeManage'
;
import
{
MakeListType
}
from
'~/api/interface/makeManage'
;
import
{
PlusOutlined
}
from
'@ant-design/icons'
;
//产品列表返回类型
//产品列表返回类型
type
produceListType
=
InterDataType
<
productListType
>
[
'list'
];
type
produceListType
=
InterDataType
<
productListType
>
[
'list'
];
...
@@ -218,8 +219,8 @@ function ProduceManage() {
...
@@ -218,8 +219,8 @@ function ProduceManage() {
<
div
className=
'header-view'
>
<
div
className=
'header-view'
>
<
Form
name=
'basic'
layout=
'inline'
onFinish=
{
onFinish
}
>
<
Form
name=
'basic'
layout=
'inline'
onFinish=
{
onFinish
}
>
<
Form
.
Item
>
<
Form
.
Item
>
<
Button
type=
'primary'
onClick=
{
handleAdd
}
>
<
Button
type=
'primary'
onClick=
{
handleAdd
}
icon=
{
<
PlusOutlined
/>
}
>
新增
新增
产品
</
Button
>
</
Button
>
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
name=
'productName'
label=
'产品名称'
>
<
Form
.
Item
name=
'productName'
label=
'产品名称'
>
...
...
src/pages/mallManage/rentGoods/rentList/index.tsx
浏览文件 @
97610a37
...
@@ -96,6 +96,7 @@ const RentList = () => {
...
@@ -96,6 +96,7 @@ const RentList = () => {
},
},
];
];
const
[
tableData
,
setTableData
]
=
useState
<
goodsType
>
([]);
const
[
tableData
,
setTableData
]
=
useState
<
goodsType
>
([]);
const
[
loading
,
setLoading
]
=
useState
<
boolean
>
(
false
);
//分页
//分页
const
[
pagination
,
setPagination
]
=
useState
<
PaginationProps
&
{
totalCount
:
number
}
>
({
const
[
pagination
,
setPagination
]
=
useState
<
PaginationProps
&
{
totalCount
:
number
}
>
({
pageNo
:
1
,
pageNo
:
1
,
...
@@ -127,12 +128,14 @@ const RentList = () => {
...
@@ -127,12 +128,14 @@ const RentList = () => {
};
};
//商品列表
//商品列表
const
getGoodsList
=
(
query
?:
goodsSearchParameters
)
=>
{
const
getGoodsList
=
(
query
?:
goodsSearchParameters
)
=>
{
setLoading
(
true
);
GoodsAPI
.
getGoodsList
({
GoodsAPI
.
getGoodsList
({
pageNo
:
pagination
.
pageNo
,
pageNo
:
pagination
.
pageNo
,
pageSize
:
pagination
.
pageSize
,
pageSize
:
pagination
.
pageSize
,
goodsType
:
1
,
goodsType
:
1
,
...
query
,
...
query
,
}).
then
(({
result
})
=>
{
}).
then
(({
result
})
=>
{
setLoading
(
false
);
setTableData
(
result
.
list
||
[]);
setTableData
(
result
.
list
||
[]);
pagination
.
totalCount
=
result
.
totalCount
;
pagination
.
totalCount
=
result
.
totalCount
;
setPagination
(
pagination
);
setPagination
(
pagination
);
...
@@ -250,6 +253,7 @@ const RentList = () => {
...
@@ -250,6 +253,7 @@ const RentList = () => {
selectedRowKeys
,
selectedRowKeys
,
onChange
:
onSelectChange
,
onChange
:
onSelectChange
,
}
}
}
}
loading=
{
loading
}
pagination=
{
{
pagination=
{
{
total
:
pagination
.
totalCount
,
total
:
pagination
.
totalCount
,
pageSize
:
pagination
.
pageSize
,
pageSize
:
pagination
.
pageSize
,
...
...
src/pages/orderManage/serviceOrder/index.tsx
浏览文件 @
97610a37
import
{
useState
}
from
'react'
;
import
{
use
Effect
,
use
State
}
from
'react'
;
import
SearchBox
from
'~/components/search-box'
;
import
SearchBox
from
'~/components/search-box'
;
import
{
Button
,
Table
}
from
'antd'
;
import
{
Button
,
Image
,
Table
}
from
'antd'
;
import
{
ColumnsType
}
from
'antd/es/table'
;
import
{
ColumnsType
}
from
'antd/es/table'
;
import
{
useNavigate
}
from
'react-router-dom'
;
import
{
useNavigate
}
from
'react-router-dom'
;
import
qs
from
'query-string'
;
import
qs
from
'query-string'
;
import
{
OrderManageAPI
}
from
'~/api'
;
import
{
InterDataType
,
InterReqType
,
PaginationProps
}
from
'~/api/interface'
;
import
{
serviceOrderStatusType
,
serviceOrderType
}
from
'~/api/interface/orderManageType'
;
import
{
filterObjAttr
}
from
'~/utils'
;
// 表格数据类型
// 表格数据类型
type
TableType
=
any
;
type
TableType
=
InterDataType
<
serviceOrderType
>
[
'list'
];
//服务-订单请求参数类型
type
serviceOrderTypeParameters
=
Omit
<
InterReqType
<
serviceOrderType
>
,
'pageSize'
|
'pageNo'
>
;
//字典返回类型
type
serviceStatusType
=
InterDataType
<
serviceOrderStatusType
>
;
// 订单状态搜索列表
// 订单状态搜索列表
const
statusCodeButtonList
=
[
const
statusCodeButtonList
=
[
{
value
:
-
1
,
label
:
'全部订单'
},
{
value
:
-
1
,
label
:
'全部订单'
},
{
value
:
0
,
label
:
'沟通意向'
},
{
value
:
0
,
label
:
'待付款'
},
{
value
:
1
,
label
:
'签约付款'
},
{
value
:
1
,
label
:
'待验收'
},
{
value
:
2
,
label
:
'待发货'
},
{
value
:
2
,
label
:
'已完成'
},
{
value
:
3
,
label
:
'待收货'
},
{
value
:
3
,
label
:
'已取消'
},
{
value
:
4
,
label
:
'已完成'
},
{
value
:
5
,
label
:
'已关闭'
},
];
];
function
ServiceOrderView
()
{
function
ServiceOrderView
()
{
...
@@ -25,123 +31,178 @@ function ServiceOrderView() {
...
@@ -25,123 +31,178 @@ function ServiceOrderView() {
// 当前选择的是第几个按钮
// 当前选择的是第几个按钮
const
[
statusCodeButtonIndex
,
setStatusCodeButtonIndex
]
=
useState
<
number
>
(
0
);
const
[
statusCodeButtonIndex
,
setStatusCodeButtonIndex
]
=
useState
<
number
>
(
0
);
// 表格分页配置
// 表格分页配置
const
[
pagination
]
=
useState
({
const
[
pagination
,
setPagination
]
=
useState
<
PaginationProps
&
{
totalCount
:
number
}
>
({
total
:
0
,
total
Count
:
0
,
pageSize
:
10
,
pageSize
:
10
,
current
:
1
,
pageNo
:
1
,
totalPage
:
0
,
});
});
// 表格数据
// 表格数据
const
[
tableData
]
=
useState
<
TableType
>
([{
id
:
1
}]);
const
[
tableData
,
setTableData
]
=
useState
<
TableType
>
([]);
// 订单状态筛选
//服务订单-字典
const
statusChangeEvent
=
(
i
:
number
)
=>
{
const
[
serviceStatusList
,
setServiceStatusList
]
=
useState
<
serviceStatusType
>
([]);
console
.
log
(
'订单状态筛选 --->'
,
i
);
setStatusCodeButtonIndex
(
i
);
};
// 跳转订单详情
const
handleDetail
=
(
record
:
TableType
[
0
])
=>
{
console
.
log
(
'跳转订单详情 --->'
,
record
.
id
);
navigate
(
`/orderManage/serviceOrder/detail?
${
qs
.
stringify
({
id
:
record
.
id
})}
`
);
};
// 表格结构
// 表格结构
const
columns
:
ColumnsType
<
TableType
[
0
]
>
=
[
const
columns
:
ColumnsType
<
TableType
[
0
]
>
=
[
{
{
title
:
'商品'
,
title
:
'商品'
,
dataIndex
:
'userName'
,
dataIndex
:
'userName'
,
align
:
'center'
,
align
:
'center'
,
render
:
(
_text
,
_record
)
=>
`--`
,
width
:
250
,
render
:
(
_text
,
record
)
=>
(
<
div
style=
{
{
display
:
'flex'
,
alignItems
:
'center'
}
}
>
{
/*<Image src={record.images[0]} style={{ width: 48, height: 48 }} />*/
}
<
div
style=
{
{
marginLeft
:
10
,
textAlign
:
'left'
,
lineHeight
:
'16px'
}
}
>
<
div
style=
{
{
color
:
'#1677ff'
}
}
>
{
record
.
orderName
}
</
div
>
<
div
>
订单编号:
{
record
.
orderNo
}
</
div
>
<
div
>
创建时间:
{
record
.
createdTime
}
</
div
>
</
div
>
</
div
>
),
},
},
{
{
title
:
'单价(元)'
,
title
:
'单价(元)'
,
dataIndex
:
'
userName
'
,
dataIndex
:
'
orderAmt
'
,
align
:
'center'
,
align
:
'center'
,
render
:
(
_text
,
_record
)
=>
`--
`
,
render
:
(
text
)
=>
`¥
${
text
.
toLocaleString
()}
`
,
},
},
{
{
title
:
'数量'
,
title
:
'数量'
,
dataIndex
:
'userName'
,
align
:
'center'
,
align
:
'center'
,
render
:
(
_text
,
_record
)
=>
`--`
,
render
:
(
_text
,
_record
)
=>
`--`
,
},
},
{
{
title
:
'买家'
,
title
:
'买家'
,
dataIndex
:
'userName'
,
align
:
'center'
,
align
:
'center'
,
render
:
(
_text
,
_record
)
=>
`--`
,
width
:
'130px'
,
render
:
(
_text
,
record
)
=>
(
<>
<
div
>
{
record
.
uid
}
</
div
>
<
div
>
{
record
.
userName
}
(
{
record
.
phoneNum
}
)
</
div
>
</>
),
},
},
{
{
title
:
'订单状态'
,
title
:
'订单状态'
,
dataIndex
:
'
userName
'
,
dataIndex
:
'
orderStatus
'
,
align
:
'center'
,
align
:
'center'
,
render
:
(
_text
,
_record
)
=>
`--`
,
render
:
(
text
)
=>
serviceStatusList
.
find
((
v
)
=>
v
.
orderStatus
===
text
)?.
managePort
||
''
,
},
},
{
{
title
:
'实收款'
,
title
:
'实收款'
,
dataIndex
:
'userName'
,
align
:
'center'
,
align
:
'center'
,
render
:
(
_text
,
_record
)
=>
`--`
,
render
:
(
_text
,
_record
)
=>
`--`
,
},
},
{
{
title
:
'相关运营'
,
title
:
'相关运营'
,
dataIndex
:
'userName'
,
align
:
'center'
,
align
:
'center'
,
render
:
(
_text
,
_record
)
=>
`--`
,
render
:
(
_text
,
_record
)
=>
`--`
,
},
},
{
{
title
:
'推荐人'
,
title
:
'推荐人'
,
dataIndex
:
'userName'
,
align
:
'center'
,
align
:
'center'
,
render
:
(
_text
,
_record
)
=>
`--`
,
render
:
(
_text
,
_record
)
=>
`--`
,
},
},
{
{
title
:
'订单交期'
,
title
:
'订单交期'
,
dataIndex
:
'userName'
,
align
:
'center'
,
align
:
'center'
,
render
:
(
_text
,
_record
)
=>
`--`
,
render
:
(
_text
,
_record
)
=>
`--`
,
},
},
{
{
title
:
'备注'
,
title
:
'备注'
,
dataIndex
:
'remark'
,
align
:
'center'
,
align
:
'center'
,
render
:
(
_text
,
_record
)
=>
`--`
,
render
:
(
_text
,
_record
)
=>
`--`
,
},
},
{
// {
title
:
'操作'
,
// title: '操作',
dataIndex
:
'action'
,
// align: 'center',
align
:
'center'
,
// fixed: 'right',
fixed
:
'right'
,
// render: (_text, record) => (
render
:
(
_text
,
record
)
=>
(
// <>
<>
// <Button type={'link'} onClick={() => handleDetail(record)}>
<
Button
type=
{
'link'
}
onClick=
{
()
=>
handleDetail
(
record
)
}
>
// 详情
详情
// </Button>
</
Button
>
// </>
</>
// ),
),
// },
},
];
];
//筛选数据
const
[
query
,
setQuery
]
=
useState
<
serviceOrderTypeParameters
>
();
// 订单状态筛选
const
statusChangeEvent
=
(
i
:
number
)
=>
{
setStatusCodeButtonIndex
(
i
);
pagination
.
pageNo
=
1
;
setQuery
({
...
query
,
orderStatus
:
statusCodeButtonList
[
i
].
value
===
-
1
?
undefined
:
statusCodeButtonList
[
i
].
value
,
});
getServiceOrderList
({
...
query
,
orderStatus
:
statusCodeButtonList
[
i
].
value
===
-
1
?
undefined
:
statusCodeButtonList
[
i
].
value
,
});
};
// 跳转订单详情
const
handleDetail
=
(
record
:
TableType
[
0
])
=>
{
navigate
(
`/orderManage/serviceOrder/detail?
${
qs
.
stringify
({
id
:
record
.
id
})}
`
);
};
//服务订单列表
const
getServiceOrderList
=
(
query
?:
serviceOrderTypeParameters
)
=>
{
OrderManageAPI
.
getServiceOrderList
({
pageNo
:
pagination
.
pageNo
,
pageSize
:
pagination
.
pageSize
,
...
query
,
}).
then
(({
result
})
=>
{
setTableData
(
result
.
list
||
[]);
pagination
.
totalCount
=
result
.
totalCount
;
setPagination
(
pagination
);
});
};
//服务-订单字典
const
getServiceStatusList
=
()
=>
{
OrderManageAPI
.
getServiceStatusList
().
then
(({
result
})
=>
{
setServiceStatusList
(
result
);
});
};
//分页
const
paginationChange
=
(
pageNo
:
number
,
pageSize
:
number
)
=>
{
pagination
.
pageNo
=
pageNo
;
pagination
.
pageSize
=
pageSize
;
getServiceOrderList
(
query
);
};
//筛选
const
searchSuccess
=
(
value
:
any
)
=>
{
setQuery
(
filterObjAttr
(
value
,
[
'time'
]));
pagination
.
pageNo
=
1
;
getServiceOrderList
(
filterObjAttr
(
value
,
[
'time'
]));
};
useEffect
(()
=>
{
getServiceStatusList
();
getServiceOrderList
();
},
[]);
return
(
return
(
<>
<>
<
SearchBox
<
SearchBox
search=
{
[
search=
{
[
{
{
label
:
'订单编号'
,
label
:
'订单编号'
,
name
:
'
keyword
'
,
name
:
'
orderNameOrNo
'
,
type
:
'input'
,
type
:
'input'
,
placeholder
:
'请输入订单编号'
,
placeholder
:
'请输入订单编号'
,
},
},
{
//
{
label
:
'买家账号'
,
//
label: '买家账号',
name
:
'keyword2'
,
//
name: 'keyword2',
type
:
'input'
,
//
type: 'input',
placeholder
:
'请输入用户账号'
,
//
placeholder: '请输入用户账号',
},
//
},
{
//
{
label
:
'相关销售'
,
//
label: '相关销售',
name
:
'saleId'
,
//
name: 'saleId',
type
:
'Select'
,
//
type: 'Select',
placeholder
:
'请选择相关销售'
,
//
placeholder: '请选择相关销售',
options
:
[],
//
options: [],
},
//
},
{
{
label
:
'时间'
,
label
:
'时间'
,
name
:
'time'
,
name
:
'time'
,
...
@@ -149,7 +210,7 @@ function ServiceOrderView() {
...
@@ -149,7 +210,7 @@ function ServiceOrderView() {
placeholder
:
'请选择创建时间'
,
placeholder
:
'请选择创建时间'
,
},
},
]
}
]
}
searchData=
{
(
e
:
any
)
=>
console
.
log
(
'提交数据 --->'
,
e
)
}
searchData=
{
searchSuccess
}
sufFixBtn=
{
sufFixBtn=
{
<>
<>
{
statusCodeButtonList
?.
map
((
i
,
j
)
=>
{
{
statusCodeButtonList
?.
map
((
i
,
j
)
=>
{
...
@@ -174,13 +235,12 @@ function ServiceOrderView() {
...
@@ -174,13 +235,12 @@ function ServiceOrderView() {
rowKey=
'id'
rowKey=
'id'
scroll=
{
{
x
:
1200
}
}
scroll=
{
{
x
:
1200
}
}
pagination=
{
{
pagination=
{
{
total
:
pagination
.
total
,
total
:
pagination
.
total
Count
,
pageSize
:
pagination
.
pageSize
,
pageSize
:
pagination
.
pageSize
,
current
:
pagination
.
current
,
current
:
pagination
.
pageNo
,
showSizeChanger
:
true
,
showSizeChanger
:
true
,
showQuickJumper
:
true
,
showQuickJumper
:
true
,
// onChange: (page: number, pageSize: number) =>
onChange
:
(
page
:
number
,
pageSize
:
number
)
=>
paginationChange
(
page
,
pageSize
),
// paginationChange(page, pageSize),
showTotal
:
(
total
,
range
)
=>
`当前 ${range[0]}-${range[1]} 条记录 / 共 ${total} 条数据`
,
showTotal
:
(
total
,
range
)
=>
`当前 ${range[0]}-${range[1]} 条记录 / 共 ${total} 条数据`
,
}
}
}
}
// rowSelection={{ selectedRowKeys, onChange: onSelectChange }}
// rowSelection={{ selectedRowKeys, onChange: onSelectChange }}
...
...
src/router/router.tsx
浏览文件 @
97610a37
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论