Commit 69b76582 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix:

parent 917646cf
......@@ -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)
......
......@@ -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>,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment