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
c7c0bc08
Commit
c7c0bc08
authored
Jul 14, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-srm' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
into dev-srm
parents
babd2bca
dfcb0b3f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
161 additions
and
194 deletions
+161
-194
index.tsx
src/pages/handling/components/EnterPrise/index.tsx
+2
-1
index.tsx
src/pages/member/memberEvaluate/tobeSubmitSummary/index.tsx
+1
-1
verify.tsx
src/pages/member/memberPrVerifyComingData/verify.tsx
+10
-1
index.tsx
src/pages/member/memberQuery/applyMember/index.tsx
+2
-2
index.tsx
...saction/purchaseAbility/components/modalOperate/index.tsx
+0
-2
index.tsx
...bility/purchaseBid/components/submitResultModal/index.tsx
+110
-115
basic.tsx
...purchaseAbility/purchaseBid/readyAdd/components/basic.tsx
+0
-0
bidRequirement.tsx
...bility/purchaseBid/readyAdd/components/bidRequirement.tsx
+0
-0
condition.tsx
...haseAbility/purchaseBid/readyAdd/components/condition.tsx
+27
-72
index.ts
...ransaction/purchaseAbility/purchaseBid/validator/index.ts
+9
-0
No files found.
src/pages/handling/components/EnterPrise/index.tsx
View file @
c7c0bc08
...
...
@@ -10,6 +10,7 @@ const actions = createAsyncFormActions();
const
{
onFieldInit$
,
onFieldMount$
}
=
FormEffectHooks
const
EnterPrise
=
({
visible
,
cancel
,
rowSelection
,
...
restProps
})
=>
{
// const [selectRow, memberRowCtl] = useRowSelectionTable({ customKey: 'id', type: 'radio'});
const
fetchData
=
useCallback
(
async
(
params
:
any
)
=>
{
let
res
=
await
PublicApi
.
getMemberManageLowerPageBynamerole
(
params
);
...
...
@@ -19,7 +20,7 @@ const EnterPrise = ({visible, cancel, rowSelection, ...restProps}) => {
code
:
res
.
code
,
data
:
{
data
:
res
.
data
.
data
.
map
((
v
)
=>
({...
v
,
uniqueId
:
v
.
memberId
+
"_"
+
v
.
roleId
})),
total
:
res
.
data
.
code
total
Count
:
res
.
data
.
totalCount
,
}
};
},
[]);
...
...
src/pages/member/memberEvaluate/tobeSubmitSummary/index.tsx
View file @
c7c0bc08
...
...
@@ -28,7 +28,7 @@ const List: React.FC<Iprops> = (props: Iprops) => {
_record
.
submitOrUpdate
&&
(
<
Space
>
<
Link
to=
{
`/memberCenter/memberAbility/memberEvaluate/tobeSubmitSummary/detail?id=${_record.id}`
}
>
提交
</
Link
>
<
Link
to=
{
`/memberCenter/memberAbility/memberEvaluate/tobeSubmitSummary/detail?id=${_record.id}`
}
>
修改
</
Link
>
{
/* <Link to={`/memberCenter/memberAbility/memberEvaluate/tobeSubmitSummary/detail?id=${_record.id}`}>修改</Link> */
}
</
Space
>
)
)
...
...
src/pages/member/memberPrVerifyComingData/verify.tsx
View file @
c7c0bc08
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-05-24 17:01:57
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-07-1
2 17:47:44
* @LastEditTime: 2021-07-1
4 11:43:28
* @Description: 审核入库资料
*/
import
React
,
{
useState
,
useRef
}
from
'react'
;
...
...
@@ -111,6 +111,15 @@ const MemberPrVerifyComingDataVerify: React.FC<{}> = () => {
}),
fetchCallback
:
(
info
)
=>
{
// 要手动将旧数据带过去
const
depositDetails
=
{};
info
.
depositDetails
.
forEach
((
item
)
=>
{
if
(
item
.
elements
)
{
item
.
elements
.
forEach
((
ele
)
=>
{
depositDetails
[
ele
.
fieldName
]
=
ele
.
fieldValue
;
});
}
});
setComingData
(
depositDetails
);
setQualifications
(
info
.
qualities
.
map
((
item
)
=>
({
file
:
item
.
url
?
[
normalizeFiledata
(
item
.
url
)]
:
[],
expireDay
:
item
.
expireDay
,
...
...
src/pages/member/memberQuery/applyMember/index.tsx
View file @
c7c0bc08
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-05-26 16:52:48
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-07-
06 10:22:59
* @LastEditTime: 2021-07-
14 11:46:08
* @Description: 申请会员
*/
import
React
,
{
useState
,
useEffect
,
useRef
}
from
'react'
;
...
...
@@ -140,7 +140,7 @@ const MemberQueryApplyMember: React.FC<RouteComponentProps> = (props: any) => {
setLoading
(
false
);
};
// 修改操作
//
变更、
修改操作
// 根据审核id 获取入库资料
const
getDepositInfoByValidateId
=
async
()
=>
{
if
(
!
validateId
)
{
...
...
src/pages/transaction/purchaseAbility/components/modalOperate/index.tsx
View file @
c7c0bc08
...
...
@@ -303,8 +303,6 @@ const ModalOperate: React.FC<IProps> = (props: any) => {
placeholder
:
`在此输入你的内容,最多${maxNumber}个汉字`
}
}
x
-
rules=
{
{
max
:
maxNumber
,
message
:
`原因最多${maxNumber}个汉字`
,
validator
:
(
value
)
=>
{
let
_str
=
value
;
_str
=
_str
.
replace
(
/
[\u
4E00-
\u
9FA5
]
/g
,
"AA"
);
...
...
src/pages/transaction/purchaseAbility/purchaseBid/components/submitResultModal/index.tsx
View file @
c7c0bc08
...
...
@@ -5,132 +5,128 @@ import { UploadOutlined, DeleteOutlined, LinkOutlined } from '@ant-design/icons'
import
{
getAuth
}
from
'@/utils/auth'
import
{
validatorByte
}
from
'../../validator'
;
import
styles
from
'./index.less'
;
interface
SubmitResultModalProps
{
title
:
string
,
visible
:
boolean
,
onCancel
:
()
=>
void
,
onOk
:
(
signUpIdea
:
string
,
urls
:
any
)
=>
void
,
confirmLoading
:
boolean
title
:
string
,
visible
:
boolean
,
onCancel
:
()
=>
void
,
onOk
:
(
signUpIdea
:
string
,
urls
:
any
)
=>
void
,
confirmLoading
:
boolean
}
const
SubmitResultModal
:
React
.
FC
<
SubmitResultModalProps
>
=
(
props
:
any
)
=>
{
const
{
title
,
visible
,
onCancel
,
onOk
,
confirmLoading
}
=
props
;
const
[
form
]
=
Form
.
useForm
();
const
[
files
,
setFiles
]
=
useState
([]);
const
[
loading
,
setloading
]
=
useState
(
false
);
const
{
token
}
=
getAuth
()
||
{}
const
{
title
,
visible
,
onCancel
,
onOk
,
confirmLoading
}
=
props
;
const
[
form
]
=
Form
.
useForm
();
const
[
files
,
setFiles
]
=
useState
([]);
const
[
loading
,
setloading
]
=
useState
(
false
);
const
{
token
}
=
getAuth
()
||
{}
/**判断文件类型和大小 */
const
beforeDocUpload
=
(
file
:
any
)
=>
{
const
isLt20M
=
file
.
size
/
1024
/
1024
<
20
;
if
(
!
isLt20M
)
{
message
.
error
(
'上传文件大小不超过 20M!'
);
}
return
isLt20M
;
}
// 上传回调
const
handleChange
=
({
file
})
=>
{
const
arr
:
any
=
files
;
setloading
(
true
);
if
(
file
.
response
)
{
if
(
file
.
response
.
code
===
1000
)
{
arr
.
push
({
name
:
file
.
name
,
url
:
file
.
response
.
data
})
setloading
(
false
);
}
}
setFiles
([...
arr
])
form
.
setFieldsValue
({
upload
:
'ok'
})
/**判断文件类型和大小 */
const
beforeDocUpload
=
(
file
:
any
)
=>
{
const
isLt20M
=
file
.
size
/
1024
/
1024
<
20
;
if
(
!
isLt20M
)
{
message
.
error
(
'上传文件大小不超过 20M!'
);
}
// 删除附件
const
removeFiles
=
(
index
:
any
)
=>
{
const
arr
=
[...
files
];
arr
.
splice
(
index
,
1
);
setFiles
(
arr
)
;
arr
.
length
<=
0
&&
form
.
setFieldsValue
({
upload
:
''
})
}
const
formSubmit
=
()
=>
{
form
.
validateFields
().
then
(
res
=>
{
onOk
&&
onOk
(
res
.
opinion
,
files
);
return
isLt20M
;
}
// 上传回调
const
handleChange
=
({
file
})
=>
{
const
arr
:
any
=
files
;
setloading
(
true
);
if
(
file
.
response
)
{
if
(
file
.
response
.
code
===
1000
)
{
arr
.
push
(
{
name
:
file
.
name
,
url
:
file
.
response
.
data
})
setloading
(
false
);
}
}
setFiles
([...
arr
])
form
.
setFieldsValue
({
upload
:
'ok'
})
}
// 删除附件
const
removeFiles
=
(
index
:
any
)
=>
{
const
arr
=
[...
files
];
arr
.
splice
(
index
,
1
);
setFiles
(
arr
);
arr
.
length
<=
0
&&
form
.
setFieldsValue
({
upload
:
''
})
}
return
(
<
Modal
width=
{
600
}
title=
{
title
}
visible=
{
visible
}
onCancel=
{
onCancel
}
onOk=
{
()
=>
{
formSubmit
()
}
}
afterClose=
{
()
=>
{
form
.
resetFields
()
setFiles
([])
}
}
confirmLoading=
{
confirmLoading
}
const
formSubmit
=
()
=>
{
form
.
validateFields
().
then
(
res
=>
{
onOk
&&
onOk
(
res
.
opinion
,
files
);
})
}
return
(
<
Modal
width=
{
600
}
title=
{
title
}
visible=
{
visible
}
onCancel=
{
onCancel
}
onOk=
{
()
=>
{
formSubmit
()
}
}
afterClose=
{
()
=>
{
form
.
resetFields
()
setFiles
([])
}
}
confirmLoading=
{
confirmLoading
}
>
<
Form
form=
{
form
}
layout=
{
'vertical'
}
className=
{
styles
.
revise_style
}
>
<
Form
.
Item
label=
'授标意见'
name=
'opinion'
rules=
{
[
{
required
:
true
,
message
:
'请输入授标意见'
},
{
validator
:
(
r
,
v
)
=>
validatorByte
(
v
,
200
)
}
]
}
>
<
Form
form=
{
form
}
layout=
{
'vertical'
}
className=
{
styles
.
revise_style
}
>
<
Form
.
Item
label=
'授标意见'
name=
'opinion'
rules=
{
[
{
required
:
true
,
message
:
'请输入授标意见'
},
()
=>
({
validator
(
_
,
value
)
{
let
_str
=
value
;
_str
=
_str
.
replace
(
/
[\u
4E00-
\u
9FA5
]
/g
,
"AA"
);
if
(
_str
.
length
>
200
)
{
return
Promise
.
reject
(
new
Error
(
'最长200个字符,100个汉字'
));
}
else
{
return
Promise
.
resolve
();
}
},
})
]
}
>
<
Input
.
TextArea
rows=
{
3
}
maxLength=
{
200
}
placeholder=
"最长200个字符,100个汉字"
/>
</
Form
.
Item
>
<
Form
.
Item
label=
'附件'
name=
'upload'
rules=
{
[{
required
:
true
,
message
:
'请上传附件'
}]
}
>
<
div
className=
{
styles
.
upload_data
}
>
{
files
.
length
>
0
&&
files
.
map
((
v
,
index
)
=>
(
<
div
key=
{
index
}
className=
{
styles
.
upload_item
}
>
<
div
className=
{
styles
.
upload_left
}
>
<
LinkOutlined
/>
<
span
>
{
v
.
name
}
</
span
>
</
div
>
<
div
className=
{
styles
.
upload_right
}
onClick=
{
()
=>
removeFiles
(
index
)
}
>
<
DeleteOutlined
/>
</
div
>
</
div
>
))
}
</
div
>
<
Upload
action=
"/api/file/file/upload"
data=
{
{
fileType
:
UPLOAD_TYPE
}
}
showUploadList=
{
false
}
accept=
'.doc,.docx,.pdf,.ppt,.pptx,.xls,.xlsx'
beforeUpload=
{
beforeDocUpload
}
onChange=
{
handleChange
}
headers=
{
{
token
}
}
>
<
Button
loading=
{
loading
}
icon=
{
<
UploadOutlined
/>
}
>
上传文件
</
Button
>
<
div
style=
{
{
marginTop
:
'8px'
}
}
>
一次上传一个文件,每个附件大小不能超过 20M
</
div
>
</
Upload
>
</
Form
.
Item
>
</
Form
>
</
Modal
>
)
<
Input
.
TextArea
rows=
{
3
}
maxLength=
{
200
}
placeholder=
"最长200个字符,100个汉字"
/>
</
Form
.
Item
>
<
Form
.
Item
label=
'附件'
name=
'upload'
rules=
{
[{
required
:
true
,
message
:
'请上传附件'
}]
}
>
<
div
className=
{
styles
.
upload_data
}
>
{
files
.
length
>
0
&&
files
.
map
((
v
,
index
)
=>
(
<
div
key=
{
index
}
className=
{
styles
.
upload_item
}
>
<
div
className=
{
styles
.
upload_left
}
>
<
LinkOutlined
/>
<
span
>
{
v
.
name
}
</
span
>
</
div
>
<
div
className=
{
styles
.
upload_right
}
onClick=
{
()
=>
removeFiles
(
index
)
}
>
<
DeleteOutlined
/>
</
div
>
</
div
>
))
}
</
div
>
<
Upload
action=
"/api/file/file/upload"
data=
{
{
fileType
:
UPLOAD_TYPE
}
}
showUploadList=
{
false
}
accept=
'.doc,.docx,.pdf,.ppt,.pptx,.xls,.xlsx'
beforeUpload=
{
beforeDocUpload
}
onChange=
{
handleChange
}
headers=
{
{
token
}
}
>
<
Button
loading=
{
loading
}
icon=
{
<
UploadOutlined
/>
}
>
上传文件
</
Button
>
<
div
style=
{
{
marginTop
:
'8px'
}
}
>
一次上传一个文件,每个附件大小不能超过 20M
</
div
>
</
Upload
>
</
Form
.
Item
>
</
Form
>
</
Modal
>
)
}
export
default
SubmitResultModal
;
\ No newline at end of file
export
default
SubmitResultModal
;
src/pages/transaction/purchaseAbility/purchaseBid/readyAdd/components/basic.tsx
View file @
c7c0bc08
This diff is collapsed.
Click to expand it.
src/pages/transaction/purchaseAbility/purchaseBid/readyAdd/components/bidRequirement.tsx
View file @
c7c0bc08
This diff is collapsed.
Click to expand it.
src/pages/transaction/purchaseAbility/purchaseBid/readyAdd/components/condition.tsx
View file @
c7c0bc08
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
{
Form
,
Row
,
Col
,
Input
,
DatePicker
,
Select
}
from
'antd'
;
import
{
Form
,
Input
,
DatePicker
,
Select
}
from
'antd'
;
import
moment
from
'moment'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
validatorByte
}
from
'../../validator'
;
import
style
from
'./index.less'
;
const
{
TextArea
}
=
Input
;
...
...
@@ -143,17 +145,10 @@ const Condition: React.FC<Iprops> = (props: any) => {
label=
"报价要求"
name=
"offer"
rules=
{
[
{
required
:
true
,
message
:
'请输入报价要求'
},
()
=>
({
validator
(
_
,
value
)
{
let
_str
=
value
;
_str
=
_str
.
replace
(
/
[\u
4E00-
\u
9FA5
]
/g
,
"AA"
);
if
(
_str
.
length
>
100
)
{
return
Promise
.
reject
(
new
Error
(
'最长100个字符,50个汉字'
));
}
else
{
return
Promise
.
resolve
();
}
},
})
{
required
:
true
,
message
:
'请输入报价要求'
},
{
validator
:
(
r
,
v
)
=>
validatorByte
(
v
,
100
)
}
]
}
>
<
TextArea
rows=
{
3
}
maxLength=
{
100
}
placeholder=
"最长100个字符,50个汉字"
/>
...
...
@@ -162,19 +157,11 @@ const Condition: React.FC<Iprops> = (props: any) => {
label=
"付款方式"
name=
"paymentType"
rules=
{
[
{
required
:
true
,
message
:
'请输入付款方式'
},
()
=>
({
validator
(
_
,
value
)
{
let
_str
=
value
;
_str
=
_str
.
replace
(
/
[\u
4E00-
\u
9FA5
]
/g
,
"AA"
);
if
(
_str
.
length
>
100
)
{
return
Promise
.
reject
(
new
Error
(
'最长100个字符,50个汉字'
));
}
else
{
return
Promise
.
resolve
();
}
},
})
{
required
:
true
,
message
:
'请输入付款方式'
},
{
validator
:
(
r
,
v
)
=>
validatorByte
(
v
,
100
)
}
]
}
>
<
TextArea
rows=
{
3
}
maxLength=
{
100
}
placeholder=
"最长100个字符,50个汉字"
/>
</
Form
.
Item
>
...
...
@@ -182,19 +169,11 @@ const Condition: React.FC<Iprops> = (props: any) => {
label=
"税费要求"
name=
"taxes"
rules=
{
[
{
required
:
true
,
message
:
'请输入税费要求'
},
()
=>
({
validator
(
_
,
value
)
{
let
_str
=
value
;
_str
=
_str
.
replace
(
/
[\u
4E00-
\u
9FA5
]
/g
,
"AA"
);
if
(
_str
.
length
>
100
)
{
return
Promise
.
reject
(
new
Error
(
'最长100个字符,50个汉字'
));
}
else
{
return
Promise
.
resolve
();
}
},
})
{
required
:
true
,
message
:
'请输入税费要求'
},
{
validator
:
(
r
,
v
)
=>
validatorByte
(
v
,
100
)
}
]
}
>
<
TextArea
rows=
{
3
}
maxLength=
{
100
}
placeholder=
"最长100个字符,50个汉字"
/>
</
Form
.
Item
>
...
...
@@ -202,19 +181,11 @@ const Condition: React.FC<Iprops> = (props: any) => {
label=
"物流要求"
name=
"logistics"
rules=
{
[
{
required
:
true
,
message
:
'请输入物流要求'
},
()
=>
({
validator
(
_
,
value
)
{
let
_str
=
value
;
_str
=
_str
.
replace
(
/
[\u
4E00-
\u
9FA5
]
/g
,
"AA"
);
if
(
_str
.
length
>
100
)
{
return
Promise
.
reject
(
new
Error
(
'最长100个字符,50个汉字'
));
}
else
{
return
Promise
.
resolve
();
}
},
})
{
required
:
true
,
message
:
'请输入物流要求'
},
{
validator
:
(
r
,
v
)
=>
validatorByte
(
v
,
100
)
}
]
}
>
<
TextArea
rows=
{
3
}
maxLength=
{
100
}
placeholder=
"最长100个字符,50个汉字"
/>
</
Form
.
Item
>
...
...
@@ -222,19 +193,11 @@ const Condition: React.FC<Iprops> = (props: any) => {
label=
"包装要求"
name=
"packRequire"
rules=
{
[
{
required
:
true
,
message
:
'请输入包装要求'
},
()
=>
({
validator
(
_
,
value
)
{
let
_str
=
value
;
_str
=
_str
.
replace
(
/
[\u
4E00-
\u
9FA5
]
/g
,
"AA"
);
if
(
_str
.
length
>
100
)
{
return
Promise
.
reject
(
new
Error
(
'最长100个字符,50个汉字'
));
}
else
{
return
Promise
.
resolve
();
}
},
})
{
required
:
true
,
message
:
'请输入包装要求'
},
{
validator
:
(
r
,
v
)
=>
validatorByte
(
v
,
100
)
}
]
}
>
<
TextArea
rows=
{
3
}
maxLength=
{
100
}
placeholder=
"最长100个字符,50个汉字"
/>
</
Form
.
Item
>
...
...
@@ -242,19 +205,11 @@ const Condition: React.FC<Iprops> = (props: any) => {
label=
"其他要求"
name=
"otherRequire"
rules=
{
[
{
required
:
true
,
message
:
'请输入其他要求'
},
()
=>
({
validator
(
_
,
value
)
{
let
_str
=
value
;
_str
=
_str
.
replace
(
/
[\u
4E00-
\u
9FA5
]
/g
,
"AA"
);
if
(
_str
.
length
>
100
)
{
return
Promise
.
reject
(
new
Error
(
'最长100个字符,50个汉字'
));
}
else
{
return
Promise
.
resolve
();
}
},
})
{
required
:
true
,
message
:
'请输入其他要求'
},
{
validator
:
(
r
,
v
)
=>
validatorByte
(
v
,
100
)
}
]
}
>
<
TextArea
rows=
{
3
}
maxLength=
{
100
}
placeholder=
"最长100个字符,50个汉字"
/>
</
Form
.
Item
>
...
...
src/pages/transaction/purchaseAbility/purchaseBid/validator/index.ts
0 → 100644
View file @
c7c0bc08
export
const
validatorByte
=
(
value
:
any
,
limitNumber
:
number
)
=>
{
let
_str
=
value
;
_str
=
_str
.
replace
(
/
[\u
4E00-
\u
9FA5
]
/g
,
"AA"
);
if
(
_str
.
length
>
limitNumber
)
{
return
Promise
.
reject
(
new
Error
(
`最长
${
limitNumber
}
个字符,
${
limitNumber
/
2
}
个汉字`
));
}
else
{
return
Promise
.
resolve
();
}
}
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