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
黄庭坚
jinfa-platform
Commits
69f46193
Commit
69f46193
authored
Nov 03, 2020
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改需求发布查看详情显示审核按钮的问题
parent
7e8cfbbf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
29 deletions
+27
-29
index.tsx
src/pages/transaction/enquiryOffer/schema/index.tsx
+19
-25
detail.tsx
src/pages/transaction/enquirySubmit/components/detail.tsx
+8
-4
No files found.
src/pages/transaction/enquiryOffer/schema/index.tsx
View file @
69f46193
import
{
ISchema
}
from
'@formily/antd'
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
import
{
TimeList
,
demandQuoteExternalState
}
from
'../../common/statusList'
import
{
TimeList
,
demandQuoteExternalState
,
demandQuoteInteriorState
}
from
'../../common/statusList'
import
TranactionRoute
from
'config/routes/tranactionRoute'
/**
...
...
@@ -250,7 +250,7 @@ export const enquieryOfferSearchSchema: ISchema = {
},
"x-component-props"
:{
placeholder
:
'
搜索
'
,
placeholder
:
'
报价单号
'
,
align
:
'flex-left'
,
}
}
...
...
@@ -282,43 +282,37 @@ export const enquieryOfferSearchSchema: ISchema = {
requisitionFormNo
:{
type
:
'string'
,
"x-component-props"
:{
placeholder
:
'
对应
需求单号'
placeholder
:
'需求单号'
}
},
quotationSummary
:{
type
:
'string'
,
"x-component-props"
:{
placeholder
:
'摘要'
placeholder
:
'
报价单
摘要'
}
},
demandMembers
:{
type
:
'string'
,
"x-component-props"
:{
placeholder
:
'
报价
会员'
placeholder
:
'
需求
会员'
}
},
// category:{
// type:'string',
// 'x-component': 'CustomInputSearch',
// 'x-component-props': {
// placeholder: '商品品类',
// showSearch: true,
// showArrow: true,
// defaultActiveFirstOption: false,
// filterOption: false,
// notFoundContent: null,
// style: { width: '174px', lineHeight: '32px' },
// searchValue: null,
// dataoption: []
// }
// // "x-component-props":{
// // placeholder:'请选择品类'
// // },
// // enum:[]
// },
voucherTime
:{
type
:
'string'
,
default
:
0
,
"x-component-props"
:{
placeholder
:
'外部状态'
},
enum
:
demandQuoteExternalState
},
externalState
:{
type
:
'string'
,
"x-component-props"
:{
placeholder
:
'内部状态'
},
enum
:
demandQuoteInteriorState
},
interiorState
:{
type
:
'string'
,
"x-component-props"
:{
placeholder
:
'请选择单据时间'
},
...
...
src/pages/transaction/enquirySubmit/components/detail.tsx
View file @
69f46193
...
...
@@ -51,13 +51,15 @@ interface parmas {
freightPrice
:
number
,
settlementWay
:
string
,
pagetype
?:
any
,
operation
?:
number
operation
?:
any
}
const
detailInfo
:
React
.
FC
<
parmas
>
=
(
props
)
=>
{
const
ref
=
useRef
<
any
>
({})
const
{
pagetype
,
operation
}
=
props
;
// const [pagetype, setpagetype] = useState(history.location.query.page_type)
const
{
pagetype
}
=
props
;
const
{
pathname
}
=
history
.
location
;
const
type
=
pathname
.
split
(
'/'
)[
pathname
.
split
(
'/'
).
length
-
1
];
const
[
operation
,
setoperation
]
=
useState
<
Number
>
(
0
)
let
interiorStateList
=
[]
let
[
isextraOption
,
setIsextraOption
]
=
useState
(
false
)
const
[
platType
,
setplatType
]
=
useState
(
1
)
//需求对接类型
...
...
@@ -293,8 +295,10 @@ const detailInfo: React.FC<parmas> = (props) => {
//在这做逻辑判断 判断路由 是由哪个页面进来的
useEffect
(()
=>
{
let
pathname
=
history
.
location
.
pathname
init
()
if
(
type
===
'detail'
)
{
setoperation
(
1
)
}
},
[])
const
init
=
()
=>
{
PublicApi
.
getOrderRequisitionFormDetails
({
id
:
id
}).
then
(
res
=>
{
...
...
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