Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
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
黄庭坚
jinfa-platform
Commits
6214bcd7
Commit
6214bcd7
authored
Nov 11, 2020
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
售后换货处理静态开发汇总
parent
bfe005fa
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
352 additions
and
44 deletions
+352
-44
exchangeManageRoute.ts
config/routes/afterServiceRoute/exchangeManageRoute.ts
+38
-29
index.ts
config/routes/afterServiceRoute/index.ts
+2
-2
menu.ts
src/locales/zh-CN/menu.ts
+14
-13
index.less
...s/afterService/exchangeManage/exchangePrSubmit/index.less
+0
-0
index.tsx
...es/afterService/exchangeManage/exchangePrSubmit/index.tsx
+0
-0
detail.less
...ges/afterService/exchangeManage/exchangeQuery/detail.less
+0
-0
detail.tsx
...ages/afterService/exchangeManage/exchangeQuery/detail.tsx
+17
-0
index.less
...ages/afterService/exchangeManage/exchangeQuery/index.less
+0
-0
index.tsx
...pages/afterService/exchangeManage/exchangeQuery/index.tsx
+187
-0
index.ts
...afterService/exchangeManage/exchangeQuery/schema/index.ts
+94
-0
No files found.
config/routes/afterServiceRoute/exchange
Handl
eRoute.ts
→
config/routes/afterServiceRoute/exchange
Manag
eRoute.ts
View file @
6214bcd7
...
...
@@ -5,67 +5,76 @@
* @Last Modified by: ghua
* @Last Modified time: 2020-10-29 11:17:33
*/
import
{
RouterChild
}
from
'../../utils/index'
;
export
default
{
const
route
:
RouterChild
=
{
// 换货处理
path
:
'/memberCenter/afterService/
handleExchan
ge'
,
name
:
'
handleExchan
ge'
,
path
:
'/memberCenter/afterService/
exchangeMana
ge'
,
name
:
'
exchangeMana
ge'
,
routes
:
[
// 换货申请单查询
{
// 换货申请单查询
path
:
'/memberCenter/afterService/handleExchange/orderList
'
,
name
:
'orderList'
,
path
:
'/memberCenter/afterService/exchangeManage/exchangeQuery'
,
name
:
'exchangeQuery
'
,
component
:
'@/pages/afterService/exchangeManage/exchangeQuery/index'
,
},
// 换货申请单查询-详情
{
// 待提交审核换货申请单
path
:
'/memberCenter/afterService/handleExchange/waitAddExamineOrder'
,
path
:
'/memberCenter/afterService/exchangeManage/exchangeQuery/detail'
,
name
:
'exchangeQueryDetail'
,
component
:
'@/pages/afterService/exchangeManage/exchangeQuery/detail'
,
},
// 待提交审核换货申请单
{
path
:
'/memberCenter/afterService/exchangeManage/waitAddExamineOrder'
,
name
:
'waitAddExamineOrder'
,
},
// 待审核换货申请单(一级)
{
// 待审核换货申请单(一级)
path
:
'/memberCenter/afterService/handleExchange/waitExamineLevelOne'
,
path
:
'/memberCenter/afterService/exchangeManage/waitExamineLevelOne'
,
name
:
'waitExamineLevelOne'
,
},
// 待审核换货申请单(二级)
{
// 待审核换货申请单(二级)
path
:
'/memberCenter/afterService/handleExchange/waitExamineLevelTwo'
,
path
:
'/memberCenter/afterService/exchangeManage/waitExamineLevelTwo'
,
name
:
'waitExamineLevelTwo'
,
},
// 待确认换货申请单
{
// 待确认换货申请单
path
:
'/memberCenter/afterService/handleExchange/waitConfirmExchangeOrder'
,
path
:
'/memberCenter/afterService/exchangeManage/waitConfirmExchangeOrder'
,
name
:
'waitConfirmExchangeOrder'
},
// 待新增退货入库单
{
// 待新增退货入库单
path
:
'/memberCenter/afterService/handleExchange/waitAddReturnOrder'
,
path
:
'/memberCenter/afterService/exchangeManage/waitAddReturnOrder'
,
name
:
'waitAddReturnOrder'
,
},
// 待退货收货
{
// 待退货收货
path
:
'/memberCenter/afterService/handleExchange/waitReturnReceivingOrder'
,
path
:
'/memberCenter/afterService/exchangeManage/waitReturnReceivingOrder'
,
name
:
'waitReturnReceivingOrder'
,
},
// 待新增换货发货单
{
// 待新增换货发货单
path
:
'/memberCenter/afterService/handleExchange/waitSendOutOrder'
,
path
:
'/memberCenter/afterService/exchangeManage/waitSendOutOrder'
,
name
:
'waitSendOutOrder'
,
},
// 待新增物流单
{
// 待新增物流单
path
:
'/memberCenter/afterService/handleExchange/waitAddLogisticsOrder'
,
path
:
'/memberCenter/afterService/exchangeManage/waitAddLogisticsOrder'
,
name
:
'waitAddLogisticsOrder'
,
},
// 待换货发货
{
// 待换货发货
path
:
'/memberCenter/afterService/handleExchange/waitSendOut'
,
path
:
'/memberCenter/afterService/exchangeManage/waitSendOut'
,
name
:
'waitSendOut'
,
},
// 待确认换货回单
{
// 待确认换货回单
path
:
'/memberCenter/afterService/handleExchange/exchangeConfirmOrder'
,
path
:
'/memberCenter/afterService/exchangeManage/exchangeConfirmOrder'
,
name
:
'exchangeConfirmOrder'
,
},
]
}
\ No newline at end of file
};
export
default
route
;
\ No newline at end of file
config/routes/afterServiceRoute/index.ts
View file @
6214bcd7
...
...
@@ -7,7 +7,7 @@
*/
import
ExchangeRoute
from
'./exchangeRoute'
import
Exchange
HandleRoute
from
'./exchangeHandl
eRoute'
import
Exchange
ManageRoute
from
'./exchangeManag
eRoute'
import
ReturnRoute
from
'./returnRoute'
import
ReturnManageRoute
from
'./returnManageRoute'
import
RepairRoute
from
'./repairRoute'
...
...
@@ -19,7 +19,7 @@ const AfterServiceRoute = {
icon
:
'smile'
,
routes
:
[
ExchangeRoute
,
Exchange
Handl
eRoute
,
Exchange
Manag
eRoute
,
ReturnRoute
,
ReturnManageRoute
,
RepairRoute
,
...
...
src/locales/zh-CN/menu.ts
View file @
6214bcd7
...
...
@@ -498,19 +498,20 @@ export default {
'menu.afterService.exchange.waitReceiving'
:
'待换货收货'
,
'menu.afterService.exchange.waitConfirm'
:
'待确认售后完成'
,
'menu.afterService.handleExchange'
:
'换货处理'
,
'menu.afterService.handleExchange.orderList'
:
'换货申请单查询'
,
'menu.afterService.handleExchange.waitAddExamineOrder'
:
'待提交审核换货申请单'
,
'menu.afterService.handleExchange.waitExamineLevelOne'
:
'待审核换货申请单(一级)'
,
'menu.afterService.handleExchange.waitExamineLevelTwo'
:
'待审核换货申请单(二级)'
,
'menu.afterService.handleExchange.waitConfirmExchangeOrder'
:
'待确认换货申请单'
,
'menu.afterService.handleExchange.waitAddReturnOrder'
:
'待新增退货入库单'
,
'menu.afterService.handleExchange.waitAddReturnOrderToAdd'
:
'新增退货入库单'
,
'menu.afterService.handleExchange.waitReturnReceivingOrder'
:
'待退货收货'
,
'menu.afterService.handleExchange.waitSendOutOrder'
:
'待新增换货发货单'
,
'menu.afterService.handleExchange.waitAddLogisticsOrder'
:
'待新增物流单'
,
'menu.afterService.handleExchange.waitSendOut'
:
'待换货发货'
,
'menu.afterService.handleExchange.exchangeConfirmOrder'
:
'待确认换货回单'
,
'menu.afterService.exchangeManage'
:
'换货处理'
,
'menu.afterService.exchangeManage.exchangeQuery'
:
'换货申请单查询'
,
'menu.afterService.exchangeManage.exchangeQueryDetail'
:
'查看换货申请单'
,
'menu.afterService.exchangeManage.waitAddExamineOrder'
:
'待提交审核换货申请单'
,
'menu.afterService.exchangeManage.waitExamineLevelOne'
:
'待审核换货申请单(一级)'
,
'menu.afterService.exchangeManage.waitExamineLevelTwo'
:
'待审核换货申请单(二级)'
,
'menu.afterService.exchangeManage.waitConfirmExchangeOrder'
:
'待确认换货申请单'
,
'menu.afterService.exchangeManage.waitAddReturnOrder'
:
'待新增退货入库单'
,
'menu.afterService.exchangeManage.waitAddReturnOrderToAdd'
:
'新增退货入库单'
,
'menu.afterService.exchangeManage.waitReturnReceivingOrder'
:
'待退货收货'
,
'menu.afterService.exchangeManage.waitSendOutOrder'
:
'待新增换货发货单'
,
'menu.afterService.exchangeManage.waitAddLogisticsOrder'
:
'待新增物流单'
,
'menu.afterService.exchangeManage.waitSendOut'
:
'待换货发货'
,
'menu.afterService.exchangeManage.exchangeConfirmOrder'
:
'待确认换货回单'
,
'menu.afterService.returnApplication'
:
'退货申请'
,
'menu.afterService.returnApplication.returnQuery'
:
'退货申请单查询'
,
...
...
src/pages/afterService/exchangeManage/exchangePrSubmit/index.less
0 → 100644
View file @
6214bcd7
src/pages/afterService/exchangeManage/exchangePrSubmit/index.tsx
0 → 100644
View file @
6214bcd7
src/pages/afterService/exchangeManage/exchangeQuery/detail.less
0 → 100644
View file @
6214bcd7
src/pages/afterService/exchangeManage/exchangeQuery/detail.tsx
0 → 100644
View file @
6214bcd7
import
React
from
'react'
;
import
{
usePageStatus
}
from
'@/hooks/usePageStatus'
;
import
DetailInfo
from
'../components/DetailInfo'
;
const
ExchangeQueryDetail
:
React
.
FC
=
()
=>
{
const
{
id
,
creditId
}
=
usePageStatus
();
return
(
// <DetailInfo
// id={id}
// />
<
div
>
123
</
div
>
);
};
export
default
ExchangeQueryDetail
;
\ No newline at end of file
src/pages/afterService/exchangeManage/exchangeQuery/index.less
0 → 100644
View file @
6214bcd7
src/pages/afterService/exchangeManage/exchangeQuery/index.tsx
0 → 100644
View file @
6214bcd7
/*
* @Author: XieZhiXiong
* @Date: 2020-11-05 14:25:41
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-11-11 15:24:34
* @Description: 退货申请单查询
*/
import
React
,
{
useState
,
useRef
}
from
'react'
;
import
{
Card
,
Badge
,
Progress
,
Button
}
from
'antd'
;
import
{
ClockCircleOutlined
,
}
from
'@ant-design/icons'
;
import
{
StandardTable
}
from
'god'
;
import
moment
from
'moment'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
createFormActions
}
from
'@formily/antd'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
;
import
{
useAsyncInitSelect
}
from
'@/formSchema/effects/useAsyncInitSelect'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
coverColFiltersItem
}
from
'@/utils'
;
import
EyePreview
from
'@/components/EyePreview'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
StatusTag
from
'@/components/StatusTag'
;
import
{
listSearchSchema
}
from
'./schema'
;
import
{
CREDIT_OUTER_STATUS_TAG_MAP
,
CREDIT_INNER_STATUS_BADGE_MAP
,
}
from
'../../contants'
;
import
styles
from
'./index.less'
;
const
formActions
=
createFormActions
();
const
ExchangeQuery
:
React
.
FC
=
()
=>
{
const
ref
=
useRef
<
any
>
({});
const
defaultColumns
:
ColumnType
<
any
>
[]
=
[
{
title
:
'申请单号'
,
dataIndex
:
'applyNo'
,
align
:
'center'
,
render
:
(
text
,
record
)
=>
(
<>
<
EyePreview
url=
{
`/memberCenter/afterService/returnManage/returnQuery/detail?id=${record.id}`
}
>
{
text
}
</
EyePreview
>
</>
),
},
{
title
:
'申请单摘要'
,
dataIndex
:
'applyAbstract'
,
align
:
'center'
,
},
{
title
:
'采购会员'
,
dataIndex
:
'consumerName'
,
align
:
'center'
,
},
{
title
:
'单据时间'
,
dataIndex
:
'applyTime'
,
align
:
'center'
,
},
{
title
:
'外部状态'
,
dataIndex
:
'outerStatusName'
,
align
:
'center'
,
filters
:
[],
onFilter
:
(
value
,
record
)
=>
record
.
outerStatus
===
value
,
render
:
(
text
,
record
)
=>
(
<
StatusTag
type=
"success"
title=
"售后完成"
/>
),
},
{
title
:
'内部状态'
,
dataIndex
:
'innerStatusName'
,
align
:
'center'
,
filters
:
[],
onFilter
:
(
value
,
record
)
=>
record
.
innerStatus
===
value
,
render
:
(
text
,
record
)
=>
<
Badge
color=
{
'#6C9CEB'
}
text=
"待确认售后完成"
/>,
},
];
const
[
columns
,
setColumns
]
=
useState
<
any
[]
>
(
defaultColumns
);
const
fetchListData
=
(
params
:
any
)
=>
{
const
{
startTime
,
endTime
,
...
rest
}
=
params
;
// return new Promise((resolve, reject) => {
// PublicApi.getAsReturnGoodsPageBySupplier({
// startTime: startTime ? moment(startTime).format('YYYY-MM-DD') : null,
// endTime: startTime ? moment(startTime).format('YYYY-MM-DD') : null,
// ...rest,
// })
// .then(res => {
// if (res.code === 1000) {
// resolve(res.data);
// }
// reject();
// })
// .catch(() => {
// reject();
// });
// });
return
Promise
.
resolve
({
totalCount
:
10
,
data
:
{
applyNo
:
'123'
,
},
});
};
// 初始化高级筛选选项
const
fetchSearchItems
=
async
()
=>
{
// const res = await PublicApi.getPayCreditApplyPageItemsByConsumer();
// if (res.code === 1000) {
// const { data } = res;
// const {
// outerStatusList = [],
// innerStatusList = [],
// } = data;
// const newColumns = columns.slice();
// // filter 0 过滤掉全部选项
// coverColFiltersItem(
// newColumns,
// 'outerStatusName',
// outerStatusList.map(item => ({ text: item.name, value: item.status })).filter(item => item.value),
// );
// coverColFiltersItem(
// newColumns,
// 'innerStatusName',
// innerStatusList.map(item => ({ text: item.name, value: item.status })).filter(item => item.value),
// );
// setColumns(newColumns);
// return {
// outerStatus: outerStatusList.map(item => ({ label: item.name, value: item.status })).filter(item => item.value),
// innerStatus: innerStatusList.map(item => ({ label: item.name, value: item.status })).filter(item => item.value),
// };
// }
return
{};
};
return
(
<
PageHeaderWrapper
>
<
Card
>
<
StandardTable
tableProps=
{
{
rowKey
:
'id'
,
}
}
columns=
{
columns
}
currentRef=
{
ref
}
fetchTableData=
{
(
params
:
any
)
=>
fetchListData
(
params
)
}
controlRender=
{
<
NiceForm
actions=
{
formActions
}
onSubmit=
{
values
=>
ref
.
current
.
reload
(
values
)
}
effects=
{
(
$
,
actions
)
=>
{
useStateFilterSearchLinkageEffect
(
$
,
actions
,
'applyNo'
,
FORM_FILTER_PATH
,
);
useAsyncInitSelect
(
[
'innerStatus'
,
'outerStatus'
],
fetchSearchItems
,
);
}
}
schema=
{
listSearchSchema
}
/>
}
/>
</
Card
>
</
PageHeaderWrapper
>
);
};
export
default
ExchangeQuery
;
\ No newline at end of file
src/pages/afterService/exchangeManage/exchangeQuery/schema/index.ts
0 → 100644
View file @
6214bcd7
/*
* @Author: XieZhiXiong
* @Date: 2020-09-29 10:03:06
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-11-05 14:28:08
* @Description:
*/
import
{
ISchema
}
from
'@formily/antd'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
UPLOAD_TYPE
}
from
'@/constants'
;
export
const
listSearchSchema
:
ISchema
=
{
type
:
'object'
,
properties
:
{
megaLayout
:
{
type
:
'object'
,
'x-component'
:
'mega-layout'
,
properties
:
{
applyNo
:
{
type
:
'string'
,
'x-component'
:
'Search'
,
'x-component-props'
:
{
placeholder
:
'搜索'
,
align
:
'flex-left'
,
tip
:
'输入 申请单号 进行搜索'
,
},
},
[
FORM_FILTER_PATH
]:
{
type
:
'object'
,
'x-component'
:
'mega-layout'
,
'x-component-props'
:
{
grid
:
true
,
full
:
true
,
autoRow
:
true
,
columns
:
6
,
},
properties
:
{
applyAbstract
:
{
type
:
'string'
,
'x-component-props'
:
{
placeholder
:
'申请单摘要'
,
allowClear
:
true
,
},
},
consumerName
:
{
type
:
'string'
,
'x-component-props'
:
{
placeholder
:
'采购会员'
,
allowClear
:
true
,
},
},
'[startTime, endTime]'
:
{
type
:
'string'
,
default
:
''
,
'x-component'
:
'dateSelect'
,
'x-component-props'
:
{
placeholder
:
'单据时间(全部)'
,
allowClear
:
true
,
},
},
outerStatus
:
{
type
:
'string'
,
default
:
undefined
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
'外部状态(全部)'
,
allowClear
:
true
,
},
},
innerStatus
:
{
type
:
'string'
,
default
:
undefined
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
'内部状态(全部)'
,
allowClear
:
true
,
},
},
submit
:
{
'x-component'
:
'Submit'
,
'x-mega-props'
:
{
span
:
1
,
},
'x-component-props'
:
{
children
:
'查询'
,
},
},
},
},
},
},
},
};
\ 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