提交 8da97540 作者: 龚洪江

功能:fdd实名认证

上级 c2e4da4b
...@@ -16,6 +16,7 @@ import { PilotTrainAPI } from './modules/pilotTrainAPI'; ...@@ -16,6 +16,7 @@ import { PilotTrainAPI } from './modules/pilotTrainAPI';
import { FlyerCenterAPI } from './modules/flyerCenterAPI'; import { FlyerCenterAPI } from './modules/flyerCenterAPI';
import { RentManageAPI } from './modules/rentManageAPI'; import { RentManageAPI } from './modules/rentManageAPI';
import { DepleteManageTypeAPI } from './modules/depleteManageTypeAPI'; import { DepleteManageTypeAPI } from './modules/depleteManageTypeAPI';
import { FddInterfaceAPI } from './modules/fddInterfaceAPI';
export { export {
CommonAPI, CommonAPI,
...@@ -36,4 +37,5 @@ export { ...@@ -36,4 +37,5 @@ export {
FlyerCenterAPI, FlyerCenterAPI,
RentManageAPI, RentManageAPI,
DepleteManageTypeAPI, DepleteManageTypeAPI,
FddInterfaceAPI,
}; };
import { InterFunction } from '~/api/interface';
// fdd-上传合同
export type uploadContractType = InterFunction<
{
/**
* 合同地址
*/
docUrl: string;
/**
* 订单编号
*/
orderNo: string;
/**
* 端口:0小程序 1后台
*/
port: number;
/**
* 合同标题
*/
title: string;
},
{
id: number;
unionId: string;
orderNo: string;
contractNo: string;
contractTitle: string;
signStatus: number;
singerTime: string;
createTime: string;
updateTime: string;
archiveDate: string;
aremark: string;
bremark: string;
atransactionId: number;
btransactionId: number;
}
>;
// fdd-签署合同
export type signContractType = InterFunction<
{
/**
* 合同编号
*/
contractId: string;
/**
* 小程序页面跳转地址
*/
pages?: string;
/**
* 端口:0小程序 1后台
*/
port: number;
},
string
>;
...@@ -933,7 +933,7 @@ type mallOrderType = { ...@@ -933,7 +933,7 @@ type mallOrderType = {
/** /**
* 订单编号 * 订单编号
*/ */
orderNo?: string; orderNo: string;
/** /**
* 订单实付总额 * 订单实付总额
*/ */
...@@ -1192,6 +1192,7 @@ export type mallOrderSendType = InterFunction< ...@@ -1192,6 +1192,7 @@ export type mallOrderSendType = InterFunction<
* 订单id * 订单id
*/ */
uavOrderId?: number; uavOrderId?: number;
id?: number;
}, },
any any
>; >;
...@@ -1209,3 +1210,25 @@ export type sellerRemarkType = InterFunction< ...@@ -1209,3 +1210,25 @@ export type sellerRemarkType = InterFunction<
}, },
any any
>; >;
// 商城订单-确认订单
export type confirmOrderType = InterFunction<
{
/**
* 订单交期
*/
deliveryTime: string;
/**
* 订单id
*/
id: number;
/**
* 订单实付总额
*/
orderTotalAmount: number;
/**
* 卖家备注
*/
sellerRemark?: string;
},
any
>;
...@@ -353,3 +353,8 @@ export type getUserAddressInfoType = InterFunction< ...@@ -353,3 +353,8 @@ export type getUserAddressInfoType = InterFunction<
id: number; id: number;
} }
>; >;
//fdd-企业实名认证
export type companyVerifyUrlType = InterFunction<{ port: number }, string>;
// fdd-企业实名认证信息
export type userFddInfoType = InterFunction<{ port: number }, any>;
import { signContractType, uploadContractType } from '~/api/interface/fddInterfaceType';
import axios from '../request';
export class FddInterfaceAPI {
// fdd-上传合同
static uploadContract: uploadContractType = (data) =>
axios.post('/userapp/fdd/contract/uploadContract', data);
// fdd-签署合同
static signContract: signContractType = (params) =>
axios.get('/userapp/fdd/contract/stamp', { params });
}
import axios from '../request'; import axios from '../request';
import { import {
confirmOrderType,
disputeType, disputeType,
flowDictionaryAndTimeType, flowDictionaryAndTimeType,
flowDictionaryType, flowDictionaryType,
...@@ -121,4 +122,6 @@ export class OrderManageAPI { ...@@ -121,4 +122,6 @@ export class OrderManageAPI {
// 商城订单-卖家备注 // 商城订单-卖家备注
static sellerRemark: sellerRemarkType = (params) => static sellerRemark: sellerRemarkType = (params) =>
axios.get('/oms/uav-order/sellerRemark', { params }); axios.get('/oms/uav-order/sellerRemark', { params });
// 商城订单-确认订单
static confirmOrder: confirmOrderType = (data) => axios.post('/oms/uav-order/confirmOrder', data);
} }
...@@ -2,6 +2,7 @@ import { ...@@ -2,6 +2,7 @@ import {
addressInsetType, addressInsetType,
addressListType, addressListType,
bindingCompanyMemberType, bindingCompanyMemberType,
companyVerifyUrlType,
deleteAddressType, deleteAddressType,
deleteRoleInfoType, deleteRoleInfoType,
editAddressType, editAddressType,
...@@ -26,6 +27,7 @@ import { ...@@ -26,6 +27,7 @@ import {
updatePasswordType, updatePasswordType,
updateRoleInfoType, updateRoleInfoType,
updateRoleMenuInfoType, updateRoleMenuInfoType,
userFddInfoType,
} from '../interface/systemManageType'; } from '../interface/systemManageType';
import axios from '../request'; import axios from '../request';
...@@ -123,4 +125,10 @@ export class SystemManageAPI { ...@@ -123,4 +125,10 @@ export class SystemManageAPI {
// 地址管理-根据地址id查找 // 地址管理-根据地址id查找
static getUserAddressInfo: getUserAddressInfoType = (params) => static getUserAddressInfo: getUserAddressInfoType = (params) =>
axios.get('/oms/user-address/getUserAddressInfo', { params }); axios.get('/oms/user-address/getUserAddressInfo', { params });
// fdd-企业实名认证
static getCompanyVerifyUrl: companyVerifyUrlType = (params) =>
axios.get('/userapp/fdd/auth/getCompanyVerifyUrl', { params });
// fdd-获取企业实名认证信息
static getAppUserFddInfo: userFddInfoType = (params) =>
axios.get('/userapp/fdd/auth/getAppUserFddInfo', { params });
} }
...@@ -7,7 +7,7 @@ interface selfProps { ...@@ -7,7 +7,7 @@ interface selfProps {
} }
const IframeModal: FC<ModalProps & selfProps> = ({ open, onCancel, title, url }) => { const IframeModal: FC<ModalProps & selfProps> = ({ open, onCancel, title, url }) => {
return ( return (
<Modal open={open} onCancel={onCancel} title={title}> <Modal open={open} onCancel={onCancel} title={title} width={1000} footer={null}>
<iframe src={url} title={title} style={{ width: '100%', height: '1000px' }} /> <iframe src={url} title={title} style={{ width: '100%', height: '1000px' }} />
</Modal> </Modal>
); );
......
...@@ -36,15 +36,17 @@ const ShipmentsOrder: FC<ModalProps & selfProps> = ({ onOk, onCancel, open, curr ...@@ -36,15 +36,17 @@ const ShipmentsOrder: FC<ModalProps & selfProps> = ({ onOk, onCancel, open, curr
const handleOk = () => { const handleOk = () => {
form.validateFields().then((value) => { form.validateFields().then((value) => {
OrderManageAPI.mallOrderSend({ ...value, uavOrderId: currentOrderItem?.id }).then( OrderManageAPI.mallOrderSend({
({ code }) => { ...value,
uavOrderId: currentOrderItem?.id,
id: currentOrderItem?.uavOrderExpressDTO.id,
}).then(({ code }) => {
if (code === '200') { if (code === '200') {
message.success('发货成功'); message.success('发货成功');
form.resetFields(); form.resetFields();
onOk(); onOk();
} }
}, });
);
}); });
}; };
const handleCancel = () => { const handleCancel = () => {
......
...@@ -10,4 +10,29 @@ ...@@ -10,4 +10,29 @@
margin-top: 10px; margin-top: 10px;
} }
} }
.mall-sku-item{
display: flex;
align-items: center;
margin-bottom: 10px;
.sku-img{
width: 48px;
height: 48px;
}
.sku-info{
margin-left: 10px;
line-height: 16px;
text-align: left;
.info-name{
color:#1677ff
}
.info-spec{
margin-top: 10px;
span:not(:last-child){
&:after{
content: ';';
}
}
}
}
}
} }
...@@ -33,20 +33,16 @@ function ProductOrderView() { ...@@ -33,20 +33,16 @@ function ProductOrderView() {
{ {
btnStr: '确认订单', btnStr: '确认订单',
status: 200, status: 200,
btnClick: (_record: TableType[0]) => { btnClick: (record: TableType[0]) => {
setCurrentOrderItem({ ...record });
setSureOrderShow(true); setSureOrderShow(true);
}, },
}, },
{ {
btnStr: '签署合同', btnStr: '凭证审批',
status: 300, status: 420,
btnClick: (_record: TableType[0]) => {}, btnClick: () => {},
}, },
// {
// btnStr: '凭证审批',
// status: 400,
// btnClick: () => {},
// },
{ {
btnStr: '发货', btnStr: '发货',
status: 500, status: 500,
...@@ -359,9 +355,19 @@ function ProductOrderView() { ...@@ -359,9 +355,19 @@ function ProductOrderView() {
{ {
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
align: 'center', // align: 'right',
fixed: 'right', fixed: 'right',
width: '10%', width: '10%',
onHeaderCell: () => ({
style: {
textAlign: 'center',
},
}),
onCell: () => ({
style: {
textAlign: 'right',
},
}),
render: (_text, record) => ( render: (_text, record) => (
<TableItem <TableItem
tr={ tr={
...@@ -440,7 +446,12 @@ function ProductOrderView() { ...@@ -440,7 +446,12 @@ function ProductOrderView() {
// rowSelection={{ selectedRowKeys, onChange: onSelectChange }} // rowSelection={{ selectedRowKeys, onChange: onSelectChange }}
/> />
{/*确认订单*/} {/*确认订单*/}
<SureOrder open={sureOrderShow} onCancel={sureOrderCancel} onOk={sureOrderOk} /> <SureOrder
open={sureOrderShow}
onCancel={sureOrderCancel}
onOk={sureOrderOk}
mallOrderItem={currentOrderItem}
/>
{/*凭证审批*/} {/*凭证审批*/}
<ApprovalOrder <ApprovalOrder
open={approvalOrderShow} open={approvalOrderShow}
......
import { useEffect, useState } from 'react';
import { SystemManageAPI } from '~/api';
import { decode } from 'js-base64';
const RealNameAuth = () => {
const [authUrl, setAuthUrl] = useState<string>('');
// 获取第三方认证连接
const getCompanyVerifyUrl = () => {
SystemManageAPI.getCompanyVerifyUrl({ port: 1 }).then(({ result }) => {
if (result) {
setAuthUrl(decode(result));
}
});
};
useEffect(() => {
getCompanyVerifyUrl();
}, []);
return (
<div className='real-name-auth'>
<iframe src={authUrl} title='实名认证' style={{ width: '100%', height: '1000px' }} />
</div>
);
};
export default RealNameAuth;
...@@ -168,6 +168,7 @@ import LimitInfo from '~/pages/systemManage/limitManage/limitInfo'; ...@@ -168,6 +168,7 @@ import LimitInfo from '~/pages/systemManage/limitManage/limitInfo';
import CustomListDetail from '~/pages/customManage/customList/detail'; import CustomListDetail from '~/pages/customManage/customList/detail';
import ServiceCategoryDetail from '~/pages/categoryManage/serviceCategoryList/detail'; import ServiceCategoryDetail from '~/pages/categoryManage/serviceCategoryList/detail';
const AddressManageView = React.lazy(() => import('~/pages/systemManage/addressManage')); const AddressManageView = React.lazy(() => import('~/pages/systemManage/addressManage'));
const RealNameAuthView = React.lazy(() => import('~/pages/systemManage/realNameAuth'));
// const IndustryListView = React.lazy(() => import('~/pages/mallManage/industryManage/industryList')); //行业列表 // const IndustryListView = React.lazy(() => import('~/pages/mallManage/industryManage/industryList')); //行业列表
// const IndustryDetailView = React.lazy( // const IndustryDetailView = React.lazy(
...@@ -1288,6 +1289,17 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -1288,6 +1289,17 @@ export const routerList: Array<RouteObjectType> = [
icon: <EnvironmentOutlined />, icon: <EnvironmentOutlined />,
}, },
}, },
{
path: '/systemManage/realNameAuth',
element: withLoadingComponent(<RealNameAuthView />),
errorElement: <ErrorPage />,
meta: {
id: 1460,
title: '实名认证',
icon: <VerifiedOutlined />,
develop: true,
},
},
], ],
}, },
]; ];
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论