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
6e6afb94
Commit
6e6afb94
authored
Mar 25, 2022
by
前端-许冠华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-v2' into 'v2'
fix: 修改新增询价报价BUG 报价单价提交为空的问题 See merge request linkseeks-design/pro-platform!40
parents
d5daf6bd
1e43943f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
addForm.tsx
...saction/dealAbility/inquiryOffer/waitAddOffer/addForm.tsx
+1
-1
productQuote.tsx
...ity/inquiryOffer/waitAddOffer/components/productQuote.tsx
+7
-5
No files found.
src/pages/transaction/dealAbility/inquiryOffer/waitAddOffer/addForm.tsx
View file @
6e6afb94
...
...
@@ -218,7 +218,7 @@ const AddedFormLayout: React.FC<AddedFormLayoutProps> = (props: any) => {
}
}
>
<
BasicInfoLayout
getInquiryInfo=
{
getInquiryInfo
}
inq=
{
inquiry
}
isEdit=
{
spam
}
/>
<
ProductQuoteLayout
setProductQuote=
{
productQuote
}
/>
<
ProductQuoteLayout
setProductQuote=
{
productQuote
}
form=
{
form
}
/>
<
OtherExplainLayout
getContacts=
{
getContacts
}
/>
<
AttachLayout
enclosureUrls=
{
enclosureUrls
}
getEnclosureUrls=
{
getEnclosureUrls
}
removeEnclosureUrls=
{
removeEnclosureUrls
}
/>
</
Form
>
...
...
src/pages/transaction/dealAbility/inquiryOffer/waitAddOffer/components/productQuote.tsx
View file @
6e6afb94
...
...
@@ -10,17 +10,20 @@ import moment from 'moment';
import
{
getAuth
}
from
'@/utils/auth'
import
{
getTransactionProductQuotationHistoryList
}
from
'@/services/TransactionV2Api'
;
import
{
getIntl
}
from
'umi'
;
import
{
FormInstance
}
from
'antd/es/form/Form'
;
interface
ProductQuoteLayoutProps
{
/** 回显 */
setProductQuote
?:
any
[],
/** FormInstance */
form
?:
FormInstance
}
const
intl
=
getIntl
();
const
ProductQuoteLayout
:
React
.
FC
<
ProductQuoteLayoutProps
>
=
(
props
:
any
)
=>
{
const
format
=
(
text
,
fmt
?:
string
)
=>
{
return
<>
{
moment
(
text
).
format
(
fmt
||
"YYYY-MM-DD HH:mm:ss"
)
}
</>
}
const
{
setProductQuote
}
=
props
;
const
{
setProductQuote
,
form
}
=
props
;
const
[
dataSource
,
setDataSource
]
=
useState
<
any
[]
>
([]);
const
[
commoditySkuId
,
setCommoditySkuId
]
=
useState
();
const
[
visible
,
setVisible
]
=
useState
<
boolean
>
(
false
);
...
...
@@ -37,7 +40,9 @@ const ProductQuoteLayout: React.FC<ProductQuoteLayoutProps> = (props: any) => {
v
.
money
=
count
(
v
.
purchaseCount
,
value
);
}
})
console
.
log
(
dataSource
)
form
.
setFieldsValue
({
"inquiryListProductRequests"
:
dataSource
,
})
setDataSource
([...
dataSource
]);
}
...
...
@@ -202,7 +207,6 @@ const ProductQuoteLayout: React.FC<ProductQuoteLayoutProps> = (props: any) => {
useEffect
(()
=>
{
if
(
!
isEmpty
(
setProductQuote
))
{
console
.
log
(
setProductQuote
)
setDataSource
([...
setProductQuote
])
}
},
[
setProductQuote
])
...
...
@@ -223,8 +227,6 @@ const ProductQuoteLayout: React.FC<ProductQuoteLayoutProps> = (props: any) => {
})
},
[
commoditySkuId
])
console
.
log
(
dataSource
)
return
(
<
Card
id=
"productQuoteLayout"
...
...
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