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
2832c0cb
Commit
2832c0cb
authored
Jul 09, 2021
by
Bill
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-srm' of 10.0.0.22:lingxi/lingxi-business-paltform into dev-srm
parents
90a20fef
c17dfd35
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
111 additions
and
44 deletions
+111
-44
index.tsx
...s/readyCheckedConfirmFirst/components/basicInfo/index.tsx
+1
-1
index.tsx
.../readyCheckedConfirmSecond/components/basicInfo/index.tsx
+1
-1
index.tsx
...allForBids/readyConfirmBid/components/basicInfo/index.tsx
+1
-1
index.tsx
...t/callForBids/readyPassBid/components/basicInfo/index.tsx
+1
-1
index.tsx
src/pages/procurement/components/descriptionsInfo/index.tsx
+4
-4
index.ts
src/pages/procurement/tender/addTender/schema/index.ts
+3
-0
index.tsx
...bility/components/detail/components/basicLayout/index.tsx
+1
-1
index.tsx
...lity/components/detail/components/bidInfoLayout/index.tsx
+8
-1
index.tsx
...eAbility/components/detail/components/bidLayout/index.tsx
+0
-1
index.tsx
...ty/components/detail/components/bidResultLayout/index.tsx
+2
-1
index.tsx
...bility/components/detail/components/otherLayout/index.tsx
+0
-1
index.tsx
...ansaction/purchaseAbility/confirmOffer/contrast/index.tsx
+1
-1
index.tsx
...transaction/purchaseAbility/confirmOffer/demand/index.tsx
+10
-8
index.tsx
...ransaction/purchaseAbility/confirmOffer/preview/index.tsx
+9
-1
index.tsx
.../transaction/purchaseAbility/confirmOffer/quote/index.tsx
+21
-1
crossSellProducts.tsx
...chaseAbility/offter/addOffter/modal/crossSellProducts.tsx
+2
-0
index.tsx
...pages/transaction/purchaseAbility/offter/demand/index.tsx
+10
-8
index.tsx
...pages/transaction/purchaseAbility/offter/detail/index.tsx
+25
-3
store.tsx
...urchaseAbility/purchaseInquiry/addInquiry/modal/store.tsx
+1
-1
index.tsx
...nsaction/purchaseAbility/purchaseInquiry/detail/index.tsx
+10
-8
No files found.
src/pages/procurement/callForBids/readyCheckedConfirmFirst/components/basicInfo/index.tsx
View file @
2832c0cb
...
@@ -39,7 +39,7 @@ const BasicInfo: React.FC<IBasicInfo> = ({ title }) => {
...
@@ -39,7 +39,7 @@ const BasicInfo: React.FC<IBasicInfo> = ({ title }) => {
span
:
8
,
span
:
8
,
fieldList
:
[
fieldList
:
[
{
title
:
'招标项目:'
,
name
:
'projectName'
},
{
title
:
'招标项目:'
,
name
:
'projectName'
},
{
title
:
'项目预算:'
,
name
:
'budget'
},
{
title
:
'项目预算:'
,
name
:
'budget'
,
render
:
(
t
)
=>
`¥
${
t
}
`
},
{
title
:
'采购类型:'
,
name
:
'purchaseType'
,
render
:
(
text
)
=>
PURCHASE_TYPE
[
text
]
},
{
title
:
'采购类型:'
,
name
:
'purchaseType'
,
render
:
(
text
)
=>
PURCHASE_TYPE
[
text
]
},
{
title
:
'招标会员:'
,
name
:
'memberName'
},
{
title
:
'招标会员:'
,
name
:
'memberName'
},
]
]
...
...
src/pages/procurement/callForBids/readyCheckedConfirmSecond/components/basicInfo/index.tsx
View file @
2832c0cb
...
@@ -39,7 +39,7 @@ const BasicInfo: React.FC<IBasicInfo> = ({ title }) => {
...
@@ -39,7 +39,7 @@ const BasicInfo: React.FC<IBasicInfo> = ({ title }) => {
span
:
8
,
span
:
8
,
fieldList
:
[
fieldList
:
[
{
title
:
'招标项目:'
,
name
:
'projectName'
},
{
title
:
'招标项目:'
,
name
:
'projectName'
},
{
title
:
'项目预算:'
,
name
:
'budget'
},
{
title
:
'项目预算:'
,
name
:
'budget'
,
render
:
(
t
)
=>
`¥
${
t
}
`
},
{
title
:
'采购类型:'
,
name
:
'purchaseType'
,
render
:
(
text
)
=>
PURCHASE_TYPE
[
text
]
},
{
title
:
'采购类型:'
,
name
:
'purchaseType'
,
render
:
(
text
)
=>
PURCHASE_TYPE
[
text
]
},
{
title
:
'招标会员:'
,
name
:
'memberName'
},
{
title
:
'招标会员:'
,
name
:
'memberName'
},
]
]
...
...
src/pages/procurement/callForBids/readyConfirmBid/components/basicInfo/index.tsx
View file @
2832c0cb
...
@@ -39,7 +39,7 @@ const BasicInfo: React.FC<IBasicInfo> = ({ title }) => {
...
@@ -39,7 +39,7 @@ const BasicInfo: React.FC<IBasicInfo> = ({ title }) => {
span
:
8
,
span
:
8
,
fieldList
:
[
fieldList
:
[
{
title
:
'招标项目:'
,
name
:
'projectName'
},
{
title
:
'招标项目:'
,
name
:
'projectName'
},
{
title
:
'项目预算:'
,
name
:
'budget'
},
{
title
:
'项目预算:'
,
name
:
'budget'
,
render
:
(
t
)
=>
`¥
${
t
}
`
},
{
title
:
'采购类型:'
,
name
:
'purchaseType'
,
render
:
(
text
)
=>
PURCHASE_TYPE
[
text
]
},
{
title
:
'采购类型:'
,
name
:
'purchaseType'
,
render
:
(
text
)
=>
PURCHASE_TYPE
[
text
]
},
{
title
:
'招标会员:'
,
name
:
'memberName'
},
{
title
:
'招标会员:'
,
name
:
'memberName'
},
]
]
...
...
src/pages/procurement/callForBids/readyPassBid/components/basicInfo/index.tsx
View file @
2832c0cb
...
@@ -39,7 +39,7 @@ const BasicInfo: React.FC<IBasicInfo> = ({ title }) => {
...
@@ -39,7 +39,7 @@ const BasicInfo: React.FC<IBasicInfo> = ({ title }) => {
span
:
8
,
span
:
8
,
fieldList
:
[
fieldList
:
[
{
title
:
'招标项目:'
,
name
:
'projectName'
},
{
title
:
'招标项目:'
,
name
:
'projectName'
},
{
title
:
'项目预算:'
,
name
:
'budget'
},
{
title
:
'项目预算:'
,
name
:
'budget'
,
render
:
(
t
)
=>
`¥
${
t
}
`
},
{
title
:
'采购类型:'
,
name
:
'purchaseType'
,
render
:
(
text
)
=>
PURCHASE_TYPE
[
text
]
},
{
title
:
'采购类型:'
,
name
:
'purchaseType'
,
render
:
(
text
)
=>
PURCHASE_TYPE
[
text
]
},
{
title
:
'招标会员:'
,
name
:
'memberName'
},
{
title
:
'招标会员:'
,
name
:
'memberName'
},
]
]
...
...
src/pages/procurement/components/descriptionsInfo/index.tsx
View file @
2832c0cb
...
@@ -57,7 +57,7 @@ const DescriptionsInfo: React.FC<BasicInfoProps> = ({cardTitle, type}) => {
...
@@ -57,7 +57,7 @@ const DescriptionsInfo: React.FC<BasicInfoProps> = ({cardTitle, type}) => {
span
:
8
,
span
:
8
,
fieldList
:
[
fieldList
:
[
{
title
:
'招标项目:'
,
name
:
'projectName'
},
{
title
:
'招标项目:'
,
name
:
'projectName'
},
{
title
:
'项目预算:'
,
name
:
'budget'
},
{
title
:
'项目预算:'
,
name
:
'budget'
,
render
:
(
t
)
=>
`¥
${
t
}
`
},
{
title
:
'采购类型:'
,
name
:
'purchaseType'
,
render
:
(
text
)
=>
PURCHASE_TYPE
[
text
]
},
{
title
:
'采购类型:'
,
name
:
'purchaseType'
,
render
:
(
text
)
=>
PURCHASE_TYPE
[
text
]
},
{
title
:
'招标会员:'
,
name
:
'memberName'
},
{
title
:
'招标会员:'
,
name
:
'memberName'
},
{
title
:
'招标摘要:'
,
name
:
'remark'
},
{
title
:
'招标摘要:'
,
name
:
'remark'
},
...
@@ -157,7 +157,7 @@ const DescriptionsInfo: React.FC<BasicInfoProps> = ({cardTitle, type}) => {
...
@@ -157,7 +157,7 @@ const DescriptionsInfo: React.FC<BasicInfoProps> = ({cardTitle, type}) => {
span
:
8
,
span
:
8
,
fieldList
:
[
fieldList
:
[
{
title
:
'期望交付日期:'
,
name
:
'hopeDate'
,
render
:
(
text
)
=>
formatTimeString
(
text
)
},
{
title
:
'期望交付日期:'
,
name
:
'hopeDate'
,
render
:
(
text
)
=>
formatTimeString
(
text
)
},
{
title
:
'目标价:'
,
name
:
'targetPrice'
},
{
title
:
'目标价:'
,
name
:
'targetPrice'
,
render
:
(
t
)
=>
`¥
${
t
}
`
},
]
]
},
},
{
{
...
@@ -440,8 +440,8 @@ const DescriptionsInfo: React.FC<BasicInfoProps> = ({cardTitle, type}) => {
...
@@ -440,8 +440,8 @@ const DescriptionsInfo: React.FC<BasicInfoProps> = ({cardTitle, type}) => {
/** 类型数据映射 */
/** 类型数据映射 */
const
Type_Data_Map
=
{
const
Type_Data_Map
=
{
//
当详情模式为投标详情并且投标外部状态投完标才有对应的投标基本信息显示
//
招标大类显示招标信息 投标大类显示投标信息
'basicInfo'
:
apiType
[
apiType
.
length
-
1
]
===
'r'
?
basicTenderColumnList
:
basic
ColumnList
,
'basicInfo'
:
apiType
[
0
]
===
'c'
?
basicColumnList
:
basicTender
ColumnList
,
'bidNeed'
:
callForNeedList
,
'bidNeed'
:
callForNeedList
,
'registerNeed'
:
registerNeedList
,
'registerNeed'
:
registerNeedList
,
'checkNeed'
:
checkNeedList
,
'checkNeed'
:
checkNeedList
,
...
...
src/pages/procurement/tender/addTender/schema/index.ts
View file @
2832c0cb
...
@@ -115,6 +115,9 @@ export const formSchema: ISchema = {
...
@@ -115,6 +115,9 @@ export const formSchema: ISchema = {
type
:
'string'
,
type
:
'string'
,
title
:
'目标价'
,
title
:
'目标价'
,
readOnly
:
true
,
readOnly
:
true
,
'x-component-props'
:
{
addonBefore
:
"¥"
,
},
},
},
inviteTenderRequirement
:
{
inviteTenderRequirement
:
{
type
:
'string'
,
type
:
'string'
,
...
...
src/pages/transaction/purchaseAbility/components/detail/components/basicLayout/index.tsx
View file @
2832c0cb
...
@@ -23,7 +23,7 @@ const BasicLayout: React.FC<BasicInfoProps> = (props: any) => {
...
@@ -23,7 +23,7 @@ const BasicLayout: React.FC<BasicInfoProps> = (props: any) => {
<
Col
key=
{
`effect_${index + 1}`
}
span=
{
8
}
>
<
Col
key=
{
`effect_${index + 1}`
}
span=
{
8
}
>
{
item
.
col
.
map
((
it
,
idx
)
=>
(
{
item
.
col
.
map
((
it
,
idx
)
=>
(
<
div
className=
{
style
.
cell
}
key=
{
`effect_col_${idx + 1}`
}
>
<
div
className=
{
style
.
cell
}
key=
{
`effect_col_${idx + 1}`
}
>
<
h5
className=
{
style
.
label
}
>
{
it
.
label
}
:
</
h5
>
<
h5
className=
{
style
.
label
}
>
{
it
.
label
}
{
!
it
.
colon
&&
':'
}
</
h5
>
<
h5
className=
{
style
.
content
}
>
{
it
.
extra
}
</
h5
>
<
h5
className=
{
style
.
content
}
>
{
it
.
extra
}
</
h5
>
</
div
>
</
div
>
))
}
))
}
...
...
src/pages/transaction/purchaseAbility/components/detail/components/bidInfoLayout/index.tsx
View file @
2832c0cb
...
@@ -15,6 +15,8 @@ export type effectType = {
...
@@ -15,6 +15,8 @@ export type effectType = {
export
interface
BidInfoProps
{
export
interface
BidInfoProps
{
fetch
?:
()
=>
Promise
<
unknown
>
,
fetch
?:
()
=>
Promise
<
unknown
>
,
effect
?:
effectType
,
effect
?:
effectType
,
/** 获取报价轮次 */
getKey
?:
(
e
)
=>
void
,
}
}
const
chNum
:
{
[
key
:
number
]:
string
}
=
{
const
chNum
:
{
[
key
:
number
]:
string
}
=
{
...
@@ -30,7 +32,7 @@ const chNum: { [key: number]: string } = {
...
@@ -30,7 +32,7 @@ const chNum: { [key: number]: string } = {
}
}
const
BidInfoLayout
:
React
.
FC
<
BidInfoProps
>
=
(
props
:
any
)
=>
{
const
BidInfoLayout
:
React
.
FC
<
BidInfoProps
>
=
(
props
:
any
)
=>
{
const
{
effect
,
fetch
}
=
props
const
{
effect
,
fetch
,
getKey
}
=
props
const
context
=
useContext
(
Context
);
const
context
=
useContext
(
Context
);
const
[
dataSource
,
setDataSource
]
=
useState
<
any
>
([]);
const
[
dataSource
,
setDataSource
]
=
useState
<
any
>
([]);
const
[
turn
,
setTurn
]
=
useState
<
Array
<
number
>>
([]);
const
[
turn
,
setTurn
]
=
useState
<
Array
<
number
>>
([]);
...
@@ -138,6 +140,8 @@ const BidInfoLayout: React.FC<BidInfoProps> = (props: any) => {
...
@@ -138,6 +140,8 @@ const BidInfoLayout: React.FC<BidInfoProps> = (props: any) => {
current
:
'1'
,
current
:
'1'
,
pageSize
:
'10'
,
pageSize
:
'10'
,
})
})
/** 返回给兄弟 */
getKey
(
key
)
}
}
const
splitProductAttributeJson
=
(
name
:
string
,
num
:
number
)
=>
{
const
splitProductAttributeJson
=
(
name
:
string
,
num
:
number
)
=>
{
...
@@ -153,6 +157,8 @@ const BidInfoLayout: React.FC<BidInfoProps> = (props: any) => {
...
@@ -153,6 +157,8 @@ const BidInfoLayout: React.FC<BidInfoProps> = (props: any) => {
})
})
}
}
console
.
log
(
turn
,
123
)
return
(
return
(
<
Card
<
Card
id=
'bidInfoLayout'
id=
'bidInfoLayout'
...
@@ -202,6 +208,7 @@ const BidInfoLayout: React.FC<BidInfoProps> = (props: any) => {
...
@@ -202,6 +208,7 @@ const BidInfoLayout: React.FC<BidInfoProps> = (props: any) => {
</
Row
>
</
Row
>
</
div
>
</
div
>
),
),
rowExpandable
:
record
=>
!!
record
.
productId
,
expandIcon
:
({
expanded
,
onExpand
,
record
})
=>
expandIcon
:
({
expanded
,
onExpand
,
record
})
=>
expanded
?
(
expanded
?
(
<
CaretDownOutlined
onClick=
{
e
=>
onExpand
(
record
,
e
)
}
/>
<
CaretDownOutlined
onClick=
{
e
=>
onExpand
(
record
,
e
)
}
/>
...
...
src/pages/transaction/purchaseAbility/components/detail/components/bidLayout/index.tsx
View file @
2832c0cb
...
@@ -6,7 +6,6 @@ import { ExclamationCircleFilled } from '@ant-design/icons';
...
@@ -6,7 +6,6 @@ import { ExclamationCircleFilled } from '@ant-design/icons';
const
BidLayout
=
()
=>
{
const
BidLayout
=
()
=>
{
const
context
=
useContext
(
Context
);
const
context
=
useContext
(
Context
);
console
.
log
(
context
.
awardResults
)
const
title
=
context
.
isPrize
===
1
?
'中标通知'
:
'授标结果'
const
title
=
context
.
isPrize
===
1
?
'中标通知'
:
'授标结果'
return
(
return
(
<
Card
<
Card
...
...
src/pages/transaction/purchaseAbility/components/detail/components/bidResultLayout/index.tsx
View file @
2832c0cb
...
@@ -148,7 +148,8 @@ const BidResultLayout: React.FC<BidResultProps> = (props: any) => {
...
@@ -148,7 +148,8 @@ const BidResultLayout: React.FC<BidResultProps> = (props: any) => {
<
CaretDownOutlined
onClick=
{
e
=>
onExpand
(
record
,
e
)
}
/>
<
CaretDownOutlined
onClick=
{
e
=>
onExpand
(
record
,
e
)
}
/>
)
:
(
)
:
(
<
CaretRightOutlined
onClick=
{
e
=>
onExpand
(
record
,
e
)
}
/>
<
CaretRightOutlined
onClick=
{
e
=>
onExpand
(
record
,
e
)
}
/>
)
),
rowExpandable
:
(
record
)
=>
record
.
productId
}
}
}
}
dataSource=
{
dataSource
}
dataSource=
{
dataSource
}
pagination=
{
{
size
:
"small"
}
}
pagination=
{
{
size
:
"small"
}
}
...
...
src/pages/transaction/purchaseAbility/components/detail/components/otherLayout/index.tsx
View file @
2832c0cb
...
@@ -12,7 +12,6 @@ const count = 0;
...
@@ -12,7 +12,6 @@ const count = 0;
const
OtherLayout
:
React
.
FC
<
OtherInfoProps
>
=
(
props
:
any
)
=>
{
const
OtherLayout
:
React
.
FC
<
OtherInfoProps
>
=
(
props
:
any
)
=>
{
const
{
effect
}
=
props
;
const
{
effect
}
=
props
;
return
(
return
(
<
Card
<
Card
id=
'otherLayout'
id=
'otherLayout'
...
...
src/pages/transaction/purchaseAbility/confirmOffer/contrast/index.tsx
View file @
2832c0cb
...
@@ -88,7 +88,7 @@ const ContrastPrice = () => {
...
@@ -88,7 +88,7 @@ const ContrastPrice = () => {
{
{
label
:
'适用地市'
,
extra
:
(
label
:
'适用地市'
,
extra
:
(
<
div
>
<
div
>
{
data
.
areas
.
map
((
it
:
any
,
idx
:
number
)
=>
(
{
data
.
areas
&&
data
.
areas
.
map
((
it
:
any
,
idx
:
number
)
=>
(
<
p
key=
{
`areas${idx + 1}`
}
>
{
`${it.province}/${it.city}`
}
</
p
>
<
p
key=
{
`areas${idx + 1}`
}
>
{
`${it.province}/${it.city}`
}
</
p
>
))
}
))
}
</
div
>
</
div
>
...
...
src/pages/transaction/purchaseAbility/confirmOffer/demand/index.tsx
View file @
2832c0cb
...
@@ -65,20 +65,22 @@ const DemandDetailed = () => {
...
@@ -65,20 +65,22 @@ const DemandDetailed = () => {
col
:
[
col
:
[
{
label
:
'需求摘要'
,
extra
:
data
.
details
},
{
label
:
'需求摘要'
,
extra
:
data
.
details
},
{
{
label
:
'采购类型'
,
extra
:
(
label
:
(
<
Tooltip
placement=
"top"
title=
'有固定采购金额:采购金额固定,合同期内不可超过采购金额,无固定采购金额:采购金额不固定,可在合同期内按需采购'
>
<
Tooltip
placement=
"top"
title=
'有固定采购金额:采购金额固定,合同期内不可超过采购金额,无固定采购金额:采购金额不固定,可在合同期内按需采购'
>
{
data
.
purchaseType
===
1
?
'有固定采购金额'
:
'无固定采购金额'
}
<
QuestionCircleOutlined
style=
{
ICON_STYLE
}
/>
采购类型:
<
QuestionCircleOutlined
style=
{
ICON_STYLE
}
/>
</
Tooltip
>
</
Tooltip
>
)
),
extra
:
data
.
purchaseType
===
1
?
'有固定采购金额'
:
'无固定采购金额'
,
colon
:
true
},
},
{
{
label
:
'比价方式'
,
extra
:
(
label
:
(
<
Tooltip
placement=
"top"
title=
'密封比价:只能看到供应商是否有报价,不能看到供应商的报价明细,只能解封后才能看到报价明细,非密封比价:可以在供应商报完价后立即看到报价明细,无须解封'
>
<
Tooltip
placement=
"top"
title=
'密封比价:只能看到供应商是否有报价,不能看到供应商的报价明细,只能解封后才能看到报价明细,非密封比价:可以在供应商报完价后立即看到报价明细,无须解封'
>
{
data
.
priceContrast
===
1
?
'密封比价'
:
'非密封比价'
}
<
QuestionCircleOutlined
style=
{
ICON_STYLE
}
/>
比价方式:
<
QuestionCircleOutlined
style=
{
ICON_STYLE
}
/>
</
Tooltip
>
</
Tooltip
>
)
),
extra
:
data
.
priceContrast
===
1
?
'密封比价'
:
'非密封比价'
,
colon
:
true
},
},
{
label
:
'会员名称'
,
extra
:
data
.
m
emberName
},
{
label
:
'会员名称'
,
extra
:
data
.
createM
emberName
},
]
]
},
},
{
{
...
@@ -107,7 +109,7 @@ const DemandDetailed = () => {
...
@@ -107,7 +109,7 @@ const DemandDetailed = () => {
{
{
label
:
'附件'
,
label
:
'附件'
,
extra
:
<>
extra
:
<>
{
data
.
transactionUurls
.
map
((
item
:
any
,
index
:
number
)
=>
(
{
data
.
transactionUurls
&&
data
.
transactionUurls
.
map
((
item
:
any
,
index
:
number
)
=>
(
<
Typography
.
Link
<
Typography
.
Link
style=
{
{
display
:
'block'
,
paddingBottom
:
'8px'
}
}
style=
{
{
display
:
'block'
,
paddingBottom
:
'8px'
}
}
key=
{
`link_${index + 1}`
}
key=
{
`link_${index + 1}`
}
...
...
src/pages/transaction/purchaseAbility/confirmOffer/preview/index.tsx
View file @
2832c0cb
...
@@ -75,7 +75,15 @@ const ContrastPreview = () => {
...
@@ -75,7 +75,15 @@ const ContrastPreview = () => {
{
{
col
:
[
col
:
[
{
label
:
'单据时间'
,
extra
:
format
(
data
.
createTime
)
},
{
label
:
'单据时间'
,
extra
:
format
(
data
.
createTime
)
},
{
label
:
'适用地市'
,
extra
:
'-'
},
{
label
:
'适用地市'
,
extra
:
(
<
div
>
{
data
.
areas
&&
data
.
areas
.
map
((
it
:
any
,
idx
:
number
)
=>
(
<
p
key=
{
`areas${idx + 1}`
}
>
{
`${it.province}/${it.city}`
}
</
p
>
))
}
</
div
>
)
},
]
]
},
},
])
])
...
...
src/pages/transaction/purchaseAbility/confirmOffer/quote/index.tsx
View file @
2832c0cb
...
@@ -30,6 +30,16 @@ const QuoteDetails = () => {
...
@@ -30,6 +30,16 @@ const QuoteDetails = () => {
const
[
basicEffect
,
setBasicEffect
]
=
useState
<
any
>
([]);
const
[
basicEffect
,
setBasicEffect
]
=
useState
<
any
>
([]);
const
[
otherEffect
,
setOtherEffect
]
=
useState
<
any
>
([]);
const
[
otherEffect
,
setOtherEffect
]
=
useState
<
any
>
([]);
const
forEachQuotedPriceTurnList
=
(
data
:
any
,
key
:
number
)
=>
{
let
params
:
any
=
{}
data
.
forEach
(
item
=>
{
if
(
Number
(
item
.
turn
)
===
Number
(
key
))
{
params
=
{...
item
}
}
})
return
params
}
const
handleBasicEffect
=
(
data
:
any
)
=>
{
const
handleBasicEffect
=
(
data
:
any
)
=>
{
setBasicEffect
([
setBasicEffect
([
{
{
...
@@ -95,6 +105,10 @@ const QuoteDetails = () => {
...
@@ -95,6 +105,10 @@ const QuoteDetails = () => {
])
])
}
}
const
handleOtherCallBack
=
useCallback
((
data
:
any
,
key
:
number
)
=>
{
handleOtherEffect
(
forEachQuotedPriceTurnList
(
data
,
key
))
},
[])
const
fetchDataSource
=
useCallback
(
async
()
=>
{
const
fetchDataSource
=
useCallback
(
async
()
=>
{
await
PublicApi
.
getPurchaseConfirmQuotedPriceOrderDetails
({
id
,
number
,
current
:
'1'
,
pageSize
:
'1'
}).
then
(
res
=>
{
await
PublicApi
.
getPurchaseConfirmQuotedPriceOrderDetails
({
id
,
number
,
current
:
'1'
,
pageSize
:
'1'
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
!==
1000
)
{
...
@@ -103,7 +117,7 @@ const QuoteDetails = () => {
...
@@ -103,7 +117,7 @@ const QuoteDetails = () => {
const
{
data
}
=
res
;
const
{
data
}
=
res
;
setDataSource
(
data
);
setDataSource
(
data
);
handleBasicEffect
(
data
);
handleBasicEffect
(
data
);
handleOther
Effect
(
data
)
handleOther
CallBack
(
data
.
quotedPriceTurnList
,
turn
);
})
})
},
[])
},
[])
...
@@ -111,6 +125,11 @@ const QuoteDetails = () => {
...
@@ -111,6 +125,11 @@ const QuoteDetails = () => {
fetchDataSource
()
fetchDataSource
()
},
[])
},
[])
/** 获取报价信息当前点击的轮次 */
const
handleGetKey
=
(
count
:
number
)
=>
{
handleOtherCallBack
(
dataSource
.
quotedPriceTurnList
,
count
)
}
return
(
return
(
<
Context
.
Provider
value=
{
dataSource
}
>
<
Context
.
Provider
value=
{
dataSource
}
>
<
PeripheralLayout
<
PeripheralLayout
...
@@ -121,6 +140,7 @@ const QuoteDetails = () => {
...
@@ -121,6 +140,7 @@ const QuoteDetails = () => {
<
Fragment
>
<
Fragment
>
<
BasicLayout
effect=
{
basicEffect
}
/>
<
BasicLayout
effect=
{
basicEffect
}
/>
<
BidInfoLayout
<
BidInfoLayout
getKey=
{
handleGetKey
}
fetch=
{
PublicApi
.
getPurchaseConfirmQuotedPriceMaterielDetailed
}
fetch=
{
PublicApi
.
getPurchaseConfirmQuotedPriceMaterielDetailed
}
effect=
{
{
turn
,
id
}
}
effect=
{
{
turn
,
id
}
}
/>
/>
...
...
src/pages/transaction/purchaseAbility/offter/addOffter/modal/crossSellProducts.tsx
View file @
2832c0cb
...
@@ -72,8 +72,10 @@ const CrossSellProducts: React.FC<IProps> = (props: any) => {
...
@@ -72,8 +72,10 @@ const CrossSellProducts: React.FC<IProps> = (props: any) => {
/**选择报价商品回调 */
/**选择报价商品回调 */
const
handleSelectPrduct
=
(
params
:
any
)
=>
{
const
handleSelectPrduct
=
(
params
:
any
)
=>
{
if
(
params
)
{
setProduct
(
params
);
setProduct
(
params
);
GetCommodityAttribute
(
params
.
id
);
GetCommodityAttribute
(
params
.
id
);
}
setFlag
(
false
);
setFlag
(
false
);
}
}
...
...
src/pages/transaction/purchaseAbility/offter/demand/index.tsx
View file @
2832c0cb
...
@@ -59,20 +59,22 @@ const DemandDetailed = () => {
...
@@ -59,20 +59,22 @@ const DemandDetailed = () => {
col
:
[
col
:
[
{
label
:
'需求摘要'
,
extra
:
data
.
details
},
{
label
:
'需求摘要'
,
extra
:
data
.
details
},
{
{
label
:
'采购类型'
,
extra
:
(
label
:
(
<
Tooltip
placement=
"top"
title=
'有固定采购金额:采购金额固定,合同期内不可超过采购金额,无固定采购金额:采购金额不固定,可在合同期内按需采购'
>
<
Tooltip
placement=
"top"
title=
'有固定采购金额:采购金额固定,合同期内不可超过采购金额,无固定采购金额:采购金额不固定,可在合同期内按需采购'
>
{
data
.
purchaseType
===
1
?
'有固定采购金额'
:
'无固定采购金额'
}
<
QuestionCircleOutlined
style=
{
ICON_STYLE
}
/>
采购类型:
<
QuestionCircleOutlined
style=
{
ICON_STYLE
}
/>
</
Tooltip
>
</
Tooltip
>
)
),
extra
:
data
.
purchaseType
===
1
?
'有固定采购金额'
:
'无固定采购金额'
,
colon
:
true
},
},
{
{
label
:
'比价方式'
,
extra
:
(
label
:
(
<
Tooltip
placement=
"top"
title=
'密封比价:只能看到供应商是否有报价,不能看到供应商的报价明细,只能解封后才能看到报价明细,非密封比价:可以在供应商报完价后立即看到报价明细,无须解封'
>
<
Tooltip
placement=
"top"
title=
'密封比价:只能看到供应商是否有报价,不能看到供应商的报价明细,只能解封后才能看到报价明细,非密封比价:可以在供应商报完价后立即看到报价明细,无须解封'
>
{
data
.
priceContrast
===
1
?
'密封比价'
:
'非密封比价'
}
<
QuestionCircleOutlined
style=
{
ICON_STYLE
}
/>
比价方式:
<
QuestionCircleOutlined
style=
{
ICON_STYLE
}
/>
</
Tooltip
>
</
Tooltip
>
)
),
extra
:
data
.
priceContrast
===
1
?
'密封比价'
:
'非密封比价'
,
colon
:
true
},
},
{
label
:
'会员名称'
,
extra
:
data
.
m
emberName
},
{
label
:
'会员名称'
,
extra
:
data
.
createM
emberName
},
]
]
},
},
{
{
...
@@ -80,7 +82,7 @@ const DemandDetailed = () => {
...
@@ -80,7 +82,7 @@ const DemandDetailed = () => {
{
{
label
:
'适用地市'
,
extra
:
(
label
:
'适用地市'
,
extra
:
(
<
div
>
<
div
>
{
data
.
areas
.
map
((
it
:
any
,
idx
:
number
)
=>
(
{
data
.
areas
&&
data
.
areas
.
map
((
it
:
any
,
idx
:
number
)
=>
(
<
p
key=
{
`areas${idx + 1}`
}
>
{
`${it.province}/${it.city}`
}
</
p
>
<
p
key=
{
`areas${idx + 1}`
}
>
{
`${it.province}/${it.city}`
}
</
p
>
))
}
))
}
</
div
>
</
div
>
...
...
src/pages/transaction/purchaseAbility/offter/detail/index.tsx
View file @
2832c0cb
...
@@ -21,6 +21,7 @@ import {
...
@@ -21,6 +21,7 @@ import {
import
{
CheckCircleOutlined
,
LinkOutlined
}
from
'@ant-design/icons'
;
import
{
CheckCircleOutlined
,
LinkOutlined
}
from
'@ant-design/icons'
;
import
BidLayout
from
'../../components/detail/components/bidLayout'
;
import
BidLayout
from
'../../components/detail/components/bidLayout'
;
import
BidResultLayout
from
'../../components/detail/components/bidResultLayout'
;
import
BidResultLayout
from
'../../components/detail/components/bidResultLayout'
;
import
{
isEmpty
}
from
'lodash'
;
const
TABLINK1
=
[
const
TABLINK1
=
[
{
id
:
'progressLayout'
,
title
:
'流转进度'
},
{
id
:
'progressLayout'
,
title
:
'流转进度'
},
...
@@ -60,7 +61,17 @@ const QuoteDetails = () => {
...
@@ -60,7 +61,17 @@ const QuoteDetails = () => {
const
[
dataSource
,
setDataSource
]
=
useState
<
any
>
({});
const
[
dataSource
,
setDataSource
]
=
useState
<
any
>
({});
const
[
basicEffect
,
setBasicEffect
]
=
useState
<
any
>
([]);
const
[
basicEffect
,
setBasicEffect
]
=
useState
<
any
>
([]);
const
[
otherEffect
,
setOtherEffect
]
=
useState
<
any
>
([]);
const
[
otherEffect
,
setOtherEffect
]
=
useState
<
any
>
([]);
const
[
visible
,
setVisible
]
=
useState
<
boolean
>
(
false
)
const
[
visible
,
setVisible
]
=
useState
<
boolean
>
(
false
);
const
forEachQuotedPriceTurnList
=
(
data
:
any
,
key
:
number
)
=>
{
let
params
:
any
=
{}
data
.
forEach
(
item
=>
{
if
(
Number
(
item
.
turn
)
===
Number
(
key
))
{
params
=
{...
item
}
}
})
return
params
}
const
handleBasicEffect
=
(
data
:
any
)
=>
{
const
handleBasicEffect
=
(
data
:
any
)
=>
{
setBasicEffect
([
setBasicEffect
([
...
@@ -90,6 +101,7 @@ const QuoteDetails = () => {
...
@@ -90,6 +101,7 @@ const QuoteDetails = () => {
}
}
const
handleOtherEffect
=
(
data
:
any
)
=>
{
const
handleOtherEffect
=
(
data
:
any
)
=>
{
console
.
log
(
data
)
setOtherEffect
([
setOtherEffect
([
{
{
col
:
[
col
:
[
...
@@ -110,7 +122,7 @@ const QuoteDetails = () => {
...
@@ -110,7 +122,7 @@ const QuoteDetails = () => {
{
{
label
:
'附件'
,
label
:
'附件'
,
extra
:
<>
extra
:
<>
{
data
.
enclosureUrls
.
map
((
item
:
any
,
index
:
number
)
=>
(
{
data
.
enclosureUrls
&&
data
.
enclosureUrls
.
map
((
item
:
any
,
index
:
number
)
=>
(
<
Typography
.
Link
<
Typography
.
Link
target=
"_blank"
target=
"_blank"
key=
{
`link_${index + 1}`
}
key=
{
`link_${index + 1}`
}
...
@@ -127,6 +139,10 @@ const QuoteDetails = () => {
...
@@ -127,6 +139,10 @@ const QuoteDetails = () => {
])
])
}
}
const
handleOtherCallBack
=
useCallback
((
data
:
any
,
key
:
number
)
=>
{
handleOtherEffect
(
forEachQuotedPriceTurnList
(
data
,
key
))
},
[])
const
fetchDataSource
=
useCallback
(
async
()
=>
{
const
fetchDataSource
=
useCallback
(
async
()
=>
{
await
PublicApi
.
getPurchaseQuotedPriceDetails
({
id
,
number
,
current
:
'1'
,
pageSize
:
'1'
}).
then
(
res
=>
{
await
PublicApi
.
getPurchaseQuotedPriceDetails
({
id
,
number
,
current
:
'1'
,
pageSize
:
'1'
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
!==
1000
)
{
...
@@ -135,7 +151,7 @@ const QuoteDetails = () => {
...
@@ -135,7 +151,7 @@ const QuoteDetails = () => {
const
{
data
}
=
res
;
const
{
data
}
=
res
;
setDataSource
(
data
);
setDataSource
(
data
);
handleBasicEffect
(
data
);
handleBasicEffect
(
data
);
handleOther
Effect
(
data
)
handleOther
CallBack
(
data
.
quotedPriceTurnList
,
turn
)
})
})
},
[])
},
[])
...
@@ -156,6 +172,11 @@ const QuoteDetails = () => {
...
@@ -156,6 +172,11 @@ const QuoteDetails = () => {
return
fetchSoure
return
fetchSoure
}
}
/** 获取报价信息当前点击的轮次 */
const
handleGetKey
=
(
count
:
number
)
=>
{
handleOtherCallBack
(
dataSource
.
quotedPriceTurnList
,
count
)
}
return
(
return
(
<
Context
.
Provider
value=
{
dataSource
}
>
<
Context
.
Provider
value=
{
dataSource
}
>
<
PeripheralLayout
<
PeripheralLayout
...
@@ -191,6 +212,7 @@ const QuoteDetails = () => {
...
@@ -191,6 +212,7 @@ const QuoteDetails = () => {
</>
</>
)
}
)
}
<
BidInfoLayout
<
BidInfoLayout
getKey=
{
handleGetKey
}
fetch=
{
PublicApi
.
getPurchaseQuotedPriceMaterielDetailed
}
fetch=
{
PublicApi
.
getPurchaseQuotedPriceMaterielDetailed
}
effect=
{
{
turn
,
id
}
}
effect=
{
{
turn
,
id
}
}
/>
/>
...
...
src/pages/transaction/purchaseAbility/purchaseInquiry/addInquiry/modal/store.tsx
View file @
2832c0cb
...
@@ -41,7 +41,7 @@ const Store: React.FC<IProps> = (props: any) => {
...
@@ -41,7 +41,7 @@ const Store: React.FC<IProps> = (props: any) => {
>
>
<
Row
gutter=
{
[
8
,
24
]
}
>
<
Row
gutter=
{
[
8
,
24
]
}
>
<
Col
span=
{
24
}
>
<
Col
span=
{
24
}
>
<
Tooltip
placement=
"topRight"
title=
{
<>
已发布的
商城为已勾选的商城,不可选择,只可以选择未勾选的商城。
</>
}
>
请选择需要上架的商城
<
QuestionCircleOutlined
style=
{
{
marginLeft
:
'5px'
}
}
/></
Tooltip
>
<
Tooltip
placement=
"topRight"
title=
{
<>
已发布的
采购门户为已勾选的采购门户,不可选择,只可以选择未勾选的采购门户。
</>
}
>
请选择需要发布的采购门户
<
QuestionCircleOutlined
style=
{
{
marginLeft
:
'5px'
}
}
/></
Tooltip
>
</
Col
>
</
Col
>
{
storeList
.
map
((
item
:
any
)
=>
(
{
storeList
.
map
((
item
:
any
)
=>
(
<
Col
span=
{
8
}
key=
{
item
.
id
}
>
<
Col
span=
{
8
}
key=
{
item
.
id
}
>
...
...
src/pages/transaction/purchaseAbility/purchaseInquiry/detail/index.tsx
View file @
2832c0cb
...
@@ -68,20 +68,22 @@ const DemandDetailed = () => {
...
@@ -68,20 +68,22 @@ const DemandDetailed = () => {
col
:
[
col
:
[
{
label
:
'需求摘要'
,
extra
:
data
.
details
},
{
label
:
'需求摘要'
,
extra
:
data
.
details
},
{
{
label
:
'采购类型'
,
extra
:
(
label
:
(
<
Tooltip
placement=
"top"
title=
'有固定采购金额:采购金额固定,合同期内不可超过采购金额,无固定采购金额:采购金额不固定,可在合同期内按需采购'
>
<
Tooltip
placement=
"top"
title=
'有固定采购金额:采购金额固定,合同期内不可超过采购金额,无固定采购金额:采购金额不固定,可在合同期内按需采购'
>
{
data
.
purchaseType
===
1
?
'有固定采购金额'
:
'无固定采购金额'
}
<
QuestionCircleOutlined
style=
{
ICON_STYLE
}
/>
采购类型:
<
QuestionCircleOutlined
style=
{
ICON_STYLE
}
/>
</
Tooltip
>
</
Tooltip
>
)
),
extra
:
data
.
purchaseType
===
1
?
'有固定采购金额'
:
'无固定采购金额'
,
colon
:
true
},
},
{
{
label
:
'比价方式'
,
extra
:
(
label
:
(
<
Tooltip
placement=
"top"
title=
'密封比价:只能看到供应商是否有报价,不能看到供应商的报价明细,只能解封后才能看到报价明细,非密封比价:可以在供应商报完价后立即看到报价明细,无须解封'
>
<
Tooltip
placement=
"top"
title=
'密封比价:只能看到供应商是否有报价,不能看到供应商的报价明细,只能解封后才能看到报价明细,非密封比价:可以在供应商报完价后立即看到报价明细,无须解封'
>
{
data
.
priceContrast
===
1
?
'密封比价'
:
'非密封比价'
}
<
QuestionCircleOutlined
style=
{
ICON_STYLE
}
/>
比价方式:
<
QuestionCircleOutlined
style=
{
ICON_STYLE
}
/>
</
Tooltip
>
</
Tooltip
>
)
),
extra
:
data
.
priceContrast
===
1
?
'密封比价'
:
'非密封比价'
,
colon
:
true
},
},
{
label
:
'会员名称'
,
extra
:
data
.
m
emberName
},
{
label
:
'会员名称'
,
extra
:
data
.
createM
emberName
},
]
]
},
},
{
{
...
@@ -89,7 +91,7 @@ const DemandDetailed = () => {
...
@@ -89,7 +91,7 @@ const DemandDetailed = () => {
{
{
label
:
'适用地市'
,
extra
:
(
label
:
'适用地市'
,
extra
:
(
<
div
>
<
div
>
{
data
.
areas
.
map
((
it
:
any
,
idx
:
number
)
=>
(
{
data
.
areas
&&
data
.
areas
.
map
((
it
:
any
,
idx
:
number
)
=>
(
<
p
key=
{
`areas${idx + 1}`
}
>
{
`${it.province}/${it.city}`
}
</
p
>
<
p
key=
{
`areas${idx + 1}`
}
>
{
`${it.province}/${it.city}`
}
</
p
>
))
}
))
}
</
div
>
</
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