Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-admin
Commits
b230f7cd
Commit
b230f7cd
authored
Dec 09, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 删除无用组件
parent
d09e4d13
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
0 additions
and
194 deletions
+0
-194
index.less
...fterService/returnManage/components/DetailInfo/index.less
+0
-0
index.tsx
...afterService/returnManage/components/DetailInfo/index.tsx
+0
-0
index.less
...terService/returnManage/components/FlowRecords/index.less
+0
-0
index.tsx
...fterService/returnManage/components/FlowRecords/index.tsx
+0
-140
index.less
...terService/returnManage/components/ProductList/index.less
+0
-0
index.tsx
...fterService/returnManage/components/ProductList/index.tsx
+0
-54
No files found.
src/pages/afterService/returnManage/components/DetailInfo/index.less
deleted
100644 → 0
View file @
d09e4d13
src/pages/afterService/returnManage/components/DetailInfo/index.tsx
deleted
100644 → 0
View file @
d09e4d13
This diff is collapsed.
Click to expand it.
src/pages/afterService/returnManage/components/FlowRecords/index.less
deleted
100644 → 0
View file @
d09e4d13
src/pages/afterService/returnManage/components/FlowRecords/index.tsx
deleted
100644 → 0
View file @
d09e4d13
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
{
Tabs
,
}
from
'antd'
;
import
PolymericTable
from
'@/components/PolymericTable'
;
import
{
EditableColumns
}
from
'@/components/PolymericTable/interface'
;
import
MellowCard
from
'@/components/MellowCard'
;
import
StatusTag
from
'@/components/StatusTag'
;
import
styles
from
'./index.less'
;
export
interface
OuterHistoryItem
{
roleName
:
string
;
status
:
string
;
operate
:
string
;
operateTime
:
string
;
opinion
:
string
;
};
export
interface
OuterHistoryData
{
data
:
OuterHistoryItem
[],
totalCount
:
number
,
};
export
interface
FlowRecordsProps
{
/**
* 获取外部流转记录
*/
fetchOuterHistory
?:
(
params
:
{
[
key
:
string
]:
any
})
=>
Promise
<
OuterHistoryData
>
;
/**
* 外部状态map
*/
outerStatusMap
:
{[
key
:
string
]:
any
};
};
const
PAGE_SIZE
=
10
;
const
FlowRecords
:
React
.
FC
<
FlowRecordsProps
>
=
({
fetchOuterHistory
,
outerStatusMap
=
{},
})
=>
{
const
[
outerPage
,
setOuterPage
]
=
useState
(
1
);
const
[
outerSize
,
setOuterSize
]
=
useState
(
PAGE_SIZE
);
const
[
outerLoading
,
setOuterLoading
]
=
useState
(
false
);
const
[
outerData
,
setOuterData
]
=
useState
<
OuterHistoryData
>
({
data
:
[],
totalCount
:
0
});
const
outerColumns
:
EditableColumns
[]
=
[
{
title
:
'序号'
,
dataIndex
:
'index'
,
align
:
'center'
,
render
:
(
_
,
record
,
index
)
=>
index
+
1
,
},
{
title
:
'操作角色'
,
dataIndex
:
'roleName'
,
align
:
'center'
,
},
{
title
:
'状态'
,
dataIndex
:
'status'
,
align
:
'center'
,
render
:
(
text
,
record
)
=>
(
<
StatusTag
type=
{
outerStatusMap
[
record
.
status
]
||
'default'
}
title=
{
text
}
/>
),
},
{
title
:
'操作'
,
dataIndex
:
'operate'
,
align
:
'center'
,
},
{
title
:
'操作时间'
,
dataIndex
:
'operateTime'
,
align
:
'center'
,
ellipsis
:
true
,
},
{
title
:
'审核意见'
,
dataIndex
:
'opinion'
,
align
:
'center'
,
ellipsis
:
true
,
},
];
const
getOuterHistory
=
params
=>
{
if
(
fetchOuterHistory
)
{
setOuterLoading
(
true
);
fetchOuterHistory
(
params
).
then
(
res
=>
{
if
(
res
)
{
setOuterData
(
res
);
}
}).
finally
(()
=>
{
setOuterLoading
(
false
);
});
}
};
useEffect
(()
=>
{
getOuterHistory
({
current
:
outerPage
,
pageSize
:
outerSize
,
});
}
,[]);
const
handleOuterPaginationChange
=
(
current
,
pageSize
)
=>
{
setOuterPage
(
current
);
setOuterSize
(
pageSize
);
getOuterHistory
({
current
,
pageSize
,
});
};
return
(
<
MellowCard
>
<
Tabs
onChange=
{
()
=>
{}
}
>
{
outerData
.
data
&&
outerData
.
data
.
length
>
0
?
(
<
Tabs
.
TabPane
tab=
"外部流转记录"
key=
"1"
>
<
PolymericTable
rowKey=
"step"
dataSource=
{
outerData
.
data
}
columns=
{
outerColumns
}
loading=
{
outerLoading
}
pagination=
{
{
current
:
outerPage
,
pageSize
:
outerSize
,
total
:
outerData
.
totalCount
,
}
}
onPaginationChange=
{
handleOuterPaginationChange
}
/>
</
Tabs
.
TabPane
>
)
:
null
}
</
Tabs
>
</
MellowCard
>
);
};
export
default
FlowRecords
;
\ No newline at end of file
src/pages/afterService/returnManage/components/ProductList/index.less
deleted
100644 → 0
View file @
d09e4d13
src/pages/afterService/returnManage/components/ProductList/index.tsx
deleted
100644 → 0
View file @
d09e4d13
/*
* @Author: XieZhiXiong
* @Date: 2020-11-03 11:38:09
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-08-11 16:52:13
* @Description: 商品列表
*/
import
React
from
'react'
;
import
MellowCard
from
'@/components/MellowCard'
;
import
PolymericTable
from
'@/components/PolymericTable'
;
import
{
EditableColumns
}
from
'@/components/PolymericTable/interface'
;
interface
HistoryListHistoryListProps
{
dataSource
:
{
[
key
:
string
]:
any
,
}[];
// 标题
title
?:
string
;
// 表格列
columns
:
EditableColumns
[];
// rowKey
rowKey
?:
string
;
// 目标路径
target
?:
string
;
// loading
loading
?:
boolean
;
};
const
ProductList
:
React
.
FC
<
HistoryListHistoryListProps
>
=
({
dataSource
=
[],
title
=
'标题'
,
columns
=
[],
rowKey
=
'id'
,
target
,
loading
=
false
,
})
=>
{
return
(
<
MellowCard
title=
{
title
}
>
<
PolymericTable
rowKey=
{
rowKey
}
dataSource=
{
dataSource
}
columns=
{
columns
}
loading=
{
loading
}
pagination=
{
null
}
/>
</
MellowCard
>
);
};
export
default
ProductList
;
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment