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
69b76582
Commit
69b76582
authored
May 17, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:
parent
917646cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
addProducts.tsx
src/pages/commodity/products/addProducts.tsx
+3
-1
index.tsx
src/pages/procurement/components/bidParticulars/index.tsx
+4
-4
No files found.
src/pages/commodity/products/addProducts.tsx
View file @
69b76582
...
...
@@ -87,7 +87,9 @@ const AddProducts: React.FC<{}> = (props) => {
isInvoice
:
data
.
isInvoice
,
marks
:
data
.
marks
,
packing
:
data
.
packing
,
afterService
:
data
.
afterService
afterService
:
data
.
afterService
,
isTax
:
true
,
taxRate
:
data
.
taxRate
,
})
setProductName
(
data
?.
name
)
setProductPriceType
(
data
?.
priceType
)
...
...
src/pages/procurement/components/bidParticulars/index.tsx
View file @
69b76582
...
...
@@ -20,7 +20,7 @@ const BidParticulars: React.FC<BidParticularsProps> = ({cardTitle}) => {
const
{
data
,
ctl
}
=
bidDetailContext
const
[
tableData
,
setTableData
]
=
useState
<
any
>
(()
=>
{
return
data
.
submitTender
.
submitTenderMateriel
.
map
(
item
=>
({
return
data
.
submitTender
?
data
.
submitTender
.
submitTenderMateriel
.
map
(
item
=>
({
file
:
item
.
file
,
id
:
item
.
id
,
inviteTenderMaterielId
:
item
.
inviteTenderMateriel
.
id
,
...
...
@@ -36,14 +36,14 @@ const BidParticulars: React.FC<BidParticularsProps> = ({cardTitle}) => {
name
:
item
.
inviteTenderMateriel
.
name
,
type
:
item
.
inviteTenderMateriel
.
type
,
unitName
:
item
.
inviteTenderMateriel
.
unitName
,
}))
}))
:
[]
})
const
[
tableColumn
,
setTableColumn
]
=
useState
<
any
>
(()
=>
{
let
totalMoney
=
0
;
data
.
submitTender
.
submitTenderMateriel
.
map
(
item
=>
{
data
.
submitTender
?
data
.
submitTender
.
submitTenderMateriel
.
map
(
item
=>
{
totalMoney
+=
item
.
price
*
item
.
inviteTenderMateriel
.
count
})
})
:
[]
let
tempCol
:
any
=
[...
columns
]
tempCol
[
tempCol
.
length
]
=
{
title
:
<
span
>
金额(含税)
<
br
/>
合计: ¥
{
totalMoney
}
</
span
>,
...
...
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