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
shenshaokai
jinfa-platform
Commits
0088ee7c
Commit
0088ee7c
authored
Oct 22, 2020
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改需求发布bug
parent
cce8b4ea
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
101 additions
and
48 deletions
+101
-48
index.ts
config/routes/tranactionRoute/index.ts
+3
-3
add.tsx
...pages/transaction/electronicContracts/addContract/add.tsx
+16
-0
details.tsx
...s/transaction/electronicContracts/addContract/details.tsx
+15
-0
edit.tsx
...ages/transaction/electronicContracts/addContract/edit.tsx
+16
-0
index.tsx
...ges/transaction/electronicContracts/addContract/index.tsx
+8
-3
index.tsx
src/pages/transaction/electronicContracts/template/index.tsx
+2
-5
detail.tsx
src/pages/transaction/enquirySubmit/components/detail.tsx
+6
-4
index.tsx
...ges/transaction/enquirySubmit/enquiryOne/detail/index.tsx
+5
-4
index.tsx
...ges/transaction/enquirySubmit/enquiryTwo/detail/index.tsx
+5
-4
index.tsx
...pages/transaction/enquirySubmit/toSubmit/detail/index.tsx
+4
-4
index.tsx
src/pages/transaction/goodsOffer/enquiryOrder/index.tsx
+21
-21
No files found.
config/routes/tranactionRoute/index.ts
View file @
0088ee7c
...
@@ -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
'
,
},
},
]
]
},
},
...
...
src/pages/transaction/electronicContracts/addContract/add.tsx
0 → 100644
View file @
0088ee7c
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
src/pages/transaction/electronicContracts/addContract/details.tsx
0 → 100644
View file @
0088ee7c
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
src/pages/transaction/electronicContracts/addContract/edit.tsx
0 → 100644
View file @
0088ee7c
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
src/pages/transaction/electronicContracts/addContract/index.tsx
View file @
0088ee7c
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
>
({});
...
...
src/pages/transaction/electronicContracts/template/index.tsx
View file @
0088ee7c
...
@@ -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'
,
},
});
});
};
};
...
...
src/pages/transaction/enquirySubmit/components/detail.tsx
View file @
0088ee7c
...
@@ -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
)
//需求对接类型
...
...
src/pages/transaction/enquirySubmit/enquiryOne/detail/index.tsx
View file @
0088ee7c
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
>
/
>
);
);
};
};
...
...
src/pages/transaction/enquirySubmit/enquiryTwo/detail/index.tsx
View file @
0088ee7c
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
>
/
>
);
);
};
};
...
...
src/pages/transaction/enquirySubmit/toSubmit/detail/index.tsx
View file @
0088ee7c
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
>
/
>
);
);
};
};
...
...
src/pages/transaction/goodsOffer/enquiryOrder/index.tsx
View file @
0088ee7c
...
@@ -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)
})
})
}
}
// 搜索
// 搜索
...
...
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