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

修改需求发布bug

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