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
linweijiong
jinfa-platform
Commits
7db42675
Commit
7db42675
authored
Jul 10, 2021
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix(): 修改采购询价BUG
parent
ca0419ba
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
12 deletions
+18
-12
basic.tsx
...ion/purchaseAbility/offter/addOffter/components/basic.tsx
+11
-8
index.tsx
...ages/transaction/purchaseAbility/offter/inquiry/index.tsx
+1
-1
add.tsx
...action/purchaseAbility/purchaseInquiry/addInquiry/add.tsx
+1
-0
basic.tsx
...seAbility/purchaseInquiry/addInquiry/components/basic.tsx
+1
-1
drawerWrite.tsx
...eAbility/purchaseInquiry/addInquiry/modal/drawerWrite.tsx
+3
-1
selectMenber.tsx
...Ability/purchaseInquiry/addInquiry/modal/selectMenber.tsx
+1
-1
No files found.
src/pages/transaction/purchaseAbility/offter/addOffter/components/basic.tsx
View file @
7db42675
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
React
,
{
use
Callback
,
use
Effect
,
useState
}
from
'react'
;
import
{
Form
,
Input
,
...
...
@@ -47,20 +47,23 @@ const BasicInfo: React.FC<IProps> = (props: any) => {
}
=
props
;
const
[
telCode
,
setTelCode
]
=
useState
<
any
>
([])
const
handleGetTelCode
=
useCallback
(
async
()
=>
{
await
PublicApi
.
getManageCountryAreaGetTelCode
().
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
setTelCode
(
res
.
data
)
}
});
},
[])
useEffect
(()
=>
{
if
(
fetchdata
)
{
handleGetTelCode
();
form
.
setFieldsValue
({
quotedDetails
:
fetchdata
.
quotedDetails
,
contacts
:
fetchdata
.
contacts
,
telPrefix
:
fetchdata
.
telPrefix
,
telPrefix
:
fetchdata
.
telPrefix
?
fetchdata
.
telPrefix
:
'86'
,
tel
:
fetchdata
.
tel
,
})
PublicApi
.
getManageCountryAreaGetTelCode
().
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
setTelCode
(
res
.
data
)
}
});
}
},
[
fetchdata
])
...
...
src/pages/transaction/purchaseAbility/offter/inquiry/index.tsx
View file @
7db42675
...
...
@@ -58,7 +58,7 @@ const Inquiry = () => {
dataIndex
:
'operate'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
Button
disabled=
{
!!
record
.
isQuotedPrice
}
//
disabled={!!record.isQuotedPrice}
onClick=
{
()
=>
history
.
push
(
`/memberCenter/procurementAbility/offter/quote?id=${record.id}&number=${record.purchaseInquiryNo}`
)
}
type=
'link'
>
...
...
src/pages/transaction/purchaseAbility/purchaseInquiry/addInquiry/add.tsx
View file @
7db42675
...
...
@@ -123,6 +123,7 @@ const AddForm = () => {
cityCode
:
''
,
city
:
''
}];
basicInfo
.
createMemberName
=
params
.
createMemberName
;
basicInfo
.
memberName
=
params
.
memberName
;
basicInfo
.
purchaseInquiryNo
=
params
.
purchaseInquiryNo
;
basicInfo
.
createTime
=
params
.
createTime
;
...
...
src/pages/transaction/purchaseAbility/purchaseInquiry/addInquiry/components/basic.tsx
View file @
7db42675
...
...
@@ -342,7 +342,7 @@ const BasicInfo: React.FC<Iprops> = (props: any) => {
label=
'会员名称'
name=
'memberName'
>
<
Text
strong
>
{
(
fetchdata
&&
fetchdata
.
memberName
)
&&
fetchdata
.
m
emberName
}
</
Text
>
<
Text
strong
>
{
(
fetchdata
&&
fetchdata
.
createMemberName
)
&&
fetchdata
.
createM
emberName
}
</
Text
>
</
Form
.
Item
>
<
Form
.
Item
label=
'单据时间'
...
...
src/pages/transaction/purchaseAbility/purchaseInquiry/addInquiry/modal/drawerWrite.tsx
View file @
7db42675
...
...
@@ -134,6 +134,7 @@ const DrawerWrite: React.FC<Iprops> = (props: any) => {
/** 取消提交 */
const
handleClose
=
()
=>
{
form
.
resetFields
();
setFiles
([])
onClose
()
}
...
...
@@ -169,6 +170,7 @@ const DrawerWrite: React.FC<Iprops> = (props: any) => {
useEffect
(()
=>
{
form
.
resetFields
();
setFiles
([])
searchCategoryTree
(
null
);
if
(
!
isEmpty
(
edit
))
{
console
.
log
(
edit
)
...
...
@@ -435,7 +437,7 @@ const DrawerWrite: React.FC<Iprops> = (props: any) => {
{
v
.
name
}
</
Typography
.
Link
>
</
div
>
{
!
preview
&&
<
div
className=
{
style
.
upload_right
}
>
{
!
preview
&&
<
div
className=
{
style
.
upload_right
}
onClick=
{
()
=>
removeFiles
(
index
)
}
>
<
DeleteOutlined
/>
</
div
>
}
</
div
>
...
...
src/pages/transaction/purchaseAbility/purchaseInquiry/addInquiry/modal/selectMenber.tsx
View file @
7db42675
...
...
@@ -72,7 +72,7 @@ const SelectMenber: React.FC<Iprops> = (props: any) => {
<
Drawer
visible=
{
visible
}
onClose=
{
onclose
}
title=
'选择
货品
'
title=
'选择
会员
'
width=
{
900
}
footer=
{
<
div
...
...
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