Commit b6ec048a authored by XieZhiXiong's avatar XieZhiXiong

feat: 添加 新增退货发货单 页面

parent 4403c167
......@@ -86,6 +86,14 @@ const route: RouterChild = {
hideInMenu: true,
noMargin: true,
},
// 待新增退货发货单-新增
{
path: '/memberCenter/afterService/returnApplication/returnPrAddDeliver/add',
name: 'returnAddDeliverBill',
component: '@/pages/afterService/returnApplication/returnPrAddDeliver/addDeliverBill',
hideInMenu: true,
noMargin: true,
},
// 待新增退货发货单-订单详情
{
path: '/memberCenter/afterService/returnApplication/returnPrAddDeliver/orderDetail',
......
......@@ -591,6 +591,7 @@ export default {
'menu.afterService.returnApplication.addReturnPrSubmit': '新建退货申请单',
'menu.afterService.returnApplication.editReturnPrSubmit': '编辑退货申请单',
'menu.afterService.returnApplication.returnPrAddDeliver': '待新增退货发货单',
'menu.afterService.returnApplication.returnAddDeliverBill': '新增退货发货单',
'menu.afterService.returnApplication.returnPrAddLogistics': '待新增物流单',
'menu.afterService.returnApplication.returnPrDeliver': '待退货发货',
'menu.afterService.returnApplication.verifyReturnPrDeliver': '退货发货',
......
/*
* @Author: XieZhiXiong
* @Date: 2021-08-04 15:53:06
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-08-04 16:49:47
* @Description: 新增退货发货单
*/
import React from 'react';
import { DOC_TYPE_RETURN_INVOICE } from '@/constants/commodity';
import BillsFormPage, { RelatedInfoType } from '@/pages/transaction/stockSellStorage/bills/components/BillsFormPage';
import { PATTERN_MAPS } from '@/constants/regExp';
import { usePageStatus } from '@/hooks/usePageStatus';
const ReturnAddDeliverBill = () => {
const { id } = usePageStatus();
const fetchRelatedInfo = (): Promise<RelatedInfoType> => {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve({
relatedNo: 'FPTY12',
memberName: '温州龙昌手袋有限公司',
address: '张三 / 185 2929 6758 广东省广州市海珠区新港东路1068号中洲中心北塔6楼',
logisticsTypeName: '物流',
});
}, 2000);
});
};
return (
<BillsFormPage
billType={DOC_TYPE_RETURN_INVOICE}
fetchRelatedInfo={fetchRelatedInfo}
/>
);
};
export default ReturnAddDeliverBill;
/*
* @Author: XieZhiXiong
* @Date: 2021-01-06 11:36:34
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-08-04 11:29:53
* @Description:
*/
import React from 'react';
import { usePageStatus } from '@/hooks/usePageStatus';
import DetailInfo from '../components/DetailInfo';
const ReturnPrAddDeliverDetail: React.FC = () => {
const { id, creditId } = usePageStatus();
const { id } = usePageStatus();
return (
<DetailInfo
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment