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
b703e691
Commit
b703e691
authored
May 28, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 招标报名/资格审核筛选状态回退,处理地址切换省级没有清空市级的问题
parent
5fdba405
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
16 deletions
+10
-16
MultAddress.tsx
src/components/NiceForm/components/MultAddress.tsx
+5
-11
addAttribute.tsx
src/pages/classAndProperty/attribute/addAttribute.tsx
+2
-2
index.tsx
...es/procurement/callForBids/readyCheckedRegister/index.tsx
+1
-1
index.ts
...ages/procurement/callForBids/readyPassBid/schema/index.ts
+1
-1
index.tsx
...s/procurement/callForBids/readyQualifityChecked/index.tsx
+1
-1
No files found.
src/components/NiceForm/components/MultAddress.tsx
View file @
b703e691
...
...
@@ -61,7 +61,6 @@ const MultAddress = (props) => {
const
[
province
,
setprovince
]
=
useState
<
any
>
([]);
// 省列表
const
[
city
,
setcity
]
=
useState
<
any
>
([]);
// 市列表
const
flag
=
useRef
<
boolean
>
(
true
)
const
cityAfterRef
=
useRef
<
boolean
>
(
true
)
useEffect
(()
=>
{
PublicApi
.
getManageAreaAll
().
then
(
res
=>
{
...
...
@@ -106,6 +105,10 @@ const MultAddress = (props) => {
})
setcode
([...
cityCode
]);
if
(
num
===
1
)
{
// @ 省份切换 清空之前选的市
result
[
idx
][
'city'
]
=
null
result
[
idx
][
'cityCode'
]
=
null
result
[
idx
][
'cityName'
]
=
null
renderProvice
(
result
,
val
,
idx
)
}
else
if
(
num
===
2
)
{
renderCity
(
result
,
val
,
idx
)
...
...
@@ -115,22 +118,13 @@ const MultAddress = (props) => {
// 渲染省份option
const
renderProvice
=
async
(
result
,
val
,
idx
)
=>
{
console
.
log
(
result
,
val
,
idx
,
result
[
idx
])
//
console.log(result, val, idx, result[idx])
await
province
.
forEach
(
item
=>
{
if
(
item
.
code
===
val
)
{
PublicApi
.
getManageAreaByPcodeAll
({
pcode
:
val
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
===
1000
)
{
result
[
idx
].
provinceCode
=
val
;
result
[
idx
].
province
=
item
.
name
;
// @todo 编辑情况下 result[idx]存在id ?第一次渲染回填值的时候不清空
// if(result[idx]?.id&& ) {
// console.log(cityAfterRef.current, 1, item)
// result[idx].cityCode = null;
// result[idx].city = null;
// } else {
// console.log(cityAfterRef.current, 2, item)
// cityAfterRef.current = false;
// }
city
[
idx
]
=
{
citydata
:
res
.
data
}
setcity
([...
city
])
}
...
...
src/pages/classAndProperty/attribute/addAttribute.tsx
View file @
b703e691
...
...
@@ -276,7 +276,7 @@ const AddAtttribute: React.FC<{}> = () => {
</
Tooltip
>
</
Col
>
{
/* 日期 地区属性 */
}
<
Col
span=
{
24
}
>
{
/*
<Col span={24}>
<Form.Item name="isDate" valuePropName="checked" initialValue={false} noStyle>
<Checkbox onChange={(e) => onChangeSpecial(e, 'isDate')} disabled={isSee}>日期属性</Checkbox>
</Form.Item>
...
...
@@ -291,7 +291,7 @@ const AddAtttribute: React.FC<{}> = () => {
<Tooltip title="勾选后此属性作为地区属性,地区属性的属性值无需手工在属性值管理中设置,系统自动取地区数据作为属性值">
<InfoCircleOutlined />
</Tooltip>
</
Col
>
</Col>
*/
}
</
Row
>
</
Form
.
Item
>
</
Col
>
...
...
src/pages/procurement/callForBids/readyCheckedRegister/index.tsx
View file @
b703e691
...
...
@@ -19,7 +19,7 @@ export interface ReadyCheckedRegisterProps {}
const
fetchTableData
=
async
(
params
)
=>
{
const
{
data
}
=
await
PublicApi
.
postPurchaseInviteTenderGetSubmitTenderList
({
...
params
,
inviteTenderOutStatusList
:
[
BidOuter
WorkState
.
Not_Check_Register_Check
]
submitTenderOutStatusList
:
[
TenderOut
WorkState
.
Not_Check_Register_Check
]
},
{
ctlType
:
"none"
})
return
data
}
...
...
src/pages/procurement/callForBids/readyPassBid/schema/index.ts
View file @
b703e691
...
...
@@ -25,7 +25,7 @@ export const tableListSchema: ISchema = {
}
},
properties
:
{
inviteTenderP
rojectName
:
{
p
rojectName
:
{
type
:
'string'
,
'x-component-props'
:
{
placeholder
:
'请输入招标项目'
,
...
...
src/pages/procurement/callForBids/readyQualifityChecked/index.tsx
View file @
b703e691
...
...
@@ -19,7 +19,7 @@ export interface ReadyQualifityCheckedProps {}
const
fetchTableData
=
async
(
params
)
=>
{
const
{
data
}
=
await
PublicApi
.
postPurchaseInviteTenderGetSubmitTenderList
({
...
params
,
inviteTenderOutStatusList
:
[
BidOuter
WorkState
.
Not_Qualifications_Check
],
submitTenderOutStatusList
:
[
TenderOut
WorkState
.
Not_Qualifications_Check
],
},
{
ctlType
:
"none"
})
return
data
}
...
...
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