Commit 0088ee7c authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

修改需求发布bug

parent cce8b4ea
......@@ -48,21 +48,21 @@ const TranactionRoute: RouterChild = {
path: '/memberCenter/tranactionAbility/electronicContracts/template/add',
name: 'addTemplate',
hideInMenu: true,
component: '@/pages/transaction/electronicContracts/addContract/index',
component: '@/pages/transaction/electronicContracts/addContract/add',
},
// 合同模板-编辑
{
path: '/memberCenter/tranactionAbility/electronicContracts/template/edit',
name: 'editTemplate',
hideInMenu: true,
component: '@/pages/transaction/electronicContracts/addContract/index',
component: '@/pages/transaction/electronicContracts/addContract/edit',
},
// 合同模板-详情
{
path: '/memberCenter/tranactionAbility/electronicContracts/template/detail',
name: 'templateDetail',
hideInMenu: true,
component: '@/pages/transaction/electronicContracts/addContract/index',
component: '@/pages/transaction/electronicContracts/addContract/details',
},
]
},
......
import React from 'react';
import { history } from 'umi';
import ContractComponents from './index';
const AddContract:React.FC<{}> = () => {
const { id } = history.location.query;
return(
<ContractComponents
page_type={'add'}
id={id}
/>
)
}
export default AddContract;
\ No newline at end of file
import React from 'react';
import { history } from 'umi';
import ContractComponents from './index';
const DetailsContract:React.FC<{}> = () => {
const { id } = history.location.query;
return(
<ContractComponents
id={id}
/>
)
}
export default DetailsContract;
\ No newline at end of file
import React from 'react';
import { history } from 'umi';
import ContractComponents from './index';
const EditContract:React.FC<{}> = () => {
const { id } = history.location.query;
return(
<ContractComponents
page_type={'edit'}
id={id}
/>
)
}
export default EditContract;
\ No newline at end of file
import React, { useEffect, useState } from 'react'
import { history } from 'umi'
import { history } from 'umi';
import { Form, Input, Upload, Card, Tooltip, Button, message, Badge, Popconfirm } from 'antd'
import { PageHeaderWrapper } from '@ant-design/pro-layout';
import ReutrnEle from '@/components/ReturnEle';
......@@ -9,8 +9,13 @@ import { UPLOAD_TYPE } from '@/constants'
import { QuestionCircleOutlined, StarOutlined, FileWordFilled, UploadOutlined, DeleteOutlined } from '@ant-design/icons';
import styles from './index.less'
const AddContract: React.FC<{}> = (props) => {
const { page_type, id } = history.location.query
export interface parmas {
page_type?: string,
id?: any
}
const AddContract: React.FC<parmas> = (props) => {
const { page_type, id } = props;
const { TextArea } = Input;
const [form] = Form.useForm();
const [fileExampleUrl, setFileExampleUrl] = useState<any>({});
......
......@@ -68,7 +68,7 @@ const Template: React.FC<{}> = () => {
let component: ReactNode = null
component = (
<>
<Button disabled={record.state === 1} style={{padding: '0px', marginRight: '24px'}} type='link'><Link to={`/memberCenter/tranactionAbility/electronicContracts/template/edit?page_type=edit&id=${record.id}`}>编辑</Link></Button>
<Button disabled={record.state === 1} style={{padding: '0px', marginRight: '24px'}} type='link'><Link to={`/memberCenter/tranactionAbility/electronicContracts/template/edit?id=${record.id}`}>编辑</Link></Button>
<Popconfirm
title="确定要执行这个操作?"
onConfirm={() => confirmDel(record)}
......@@ -102,10 +102,7 @@ const Template: React.FC<{}> = () => {
const handleJumpAdd = () => {
history.push({
pathname:
'/memberCenter/tranactionAbility/electronicContracts/template/add',
query: {
page_type: 'add',
},
'/memberCenter/tranactionAbility/electronicContracts/template/add'
});
};
......
......@@ -37,7 +37,7 @@ const data = [
status: 2,
},
];
interface dataInfoType {
interface parmas {
status: any;
digest?: any;
logisticsOrderNo: string;
......@@ -49,12 +49,14 @@ interface dataInfoType {
totalVolume: number,
totalWeight: number,
freightPrice: number,
settlementWay: string
settlementWay: string,
pagetype?: any
}
const detailInfo: React.FC<{}> = () => {
const detailInfo: React.FC<parmas> = (props) => {
const ref = useRef<any>({})
const [pagetype, setpagetype] = useState(history.location.query.page_type)
const { pagetype } = props;
// const [pagetype, setpagetype] = useState(history.location.query.page_type)
let interiorStateList = []
let [isextraOption, setIsextraOption] = useState(false)
const [platType, setplatType] = useState(1) //需求对接类型
......
import React from 'react';
import AuditComponents from '../../components/detail'
const EnquiryOneDetail: React.FC = () => {
const EnquiryOneDetail: React.FC<{}> = () => {
return (
<div>
待审核需求单(一级)详情
</div>
<AuditComponents
pagetype={1}
/>
);
};
......
import React from 'react';
import AuditComponents from '../../components/detail';
const EnquiryTwoDetail: React.FC = () => {
const EnquiryTwoDetail: React.FC<{}> = () => {
return (
<div>
待审核需求单(二级)详情
</div>
<AuditComponents
pagetype={2}
/>
);
};
......
import React from 'react';
import AuditComponents from '../../components/detail';
const ToSubmitDetail: React.FC = () => {
return (
<div>
待提交需求单详情
</div>
<AuditComponents
pagetype={3}
/>
);
};
......
......@@ -63,29 +63,29 @@ const EnquiryOrder: React.FC<{}> = (props) => {
quoteOrderInternalState(text)
}];
//交易能力 询价报价 询价单查询
const data = {
totalCount: 1,
data: [{
id: 91,
inquiryListNo: 'SD2015PPLJ',
details: '阿珍爱上阿强',
memberName: 'wutiaoren',
memberId: 5,
deliveryTime: '2020-10-14 15:37:00',
quotationAsTime: '2020-10-13 15:37:00',
voucherTime: '2020-10-13 15:37:00',
externalState: 1,
interiorState: 2
}]
}
// const data = {
// totalCount: 1,
// data: [{
// id: 91,
// inquiryListNo: 'SD2015PPLJ',
// details: '阿珍爱上阿强',
// memberName: 'wutiaoren',
// memberId: 5,
// deliveryTime: '2020-10-14 15:37:00',
// quotationAsTime: '2020-10-13 15:37:00',
// voucherTime: '2020-10-13 15:37:00',
// externalState: 1,
// interiorState: 2
// }]
// }
const fetchData = (params?: any) => {
return new Promise((resolve, reject) => {
// PublicApi.getOrderProductInquiryList({...params}).then(res => {
// resolve(res.data)
// })
setTimeout(() => {
resolve(data)
}, 1000)
PublicApi.getOrderProductInquiryList({...params}).then(res => {
resolve(res.data)
})
// setTimeout(() => {
// resolve(data)
// }, 1000)
})
}
// 搜索
......
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