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
5bf0a9d0
Commit
5bf0a9d0
authored
Jun 17, 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
c34a51b9
8b6ed132
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
82 additions
and
85 deletions
+82
-85
index.tsx
...cation/exchangePrSubmit/components/ExchangeForm/index.tsx
+3
-2
index.tsx
...pplication/repairPrSubmit/components/RepairForm/index.tsx
+3
-2
index.tsx
...pplication/returnPrSubmit/components/ReturnForm/index.tsx
+3
-2
index.tsx
src/pages/member/components/QualitiesUpload/index.tsx
+9
-7
index.tsx
...pages/member/components/QualitiesUploadFormItem/index.tsx
+2
-1
index.tsx
src/pages/member/memberFlowRule/index.tsx
+7
-1
verify.tsx
src/pages/member/memberPrVerifyComingData/verify.tsx
+5
-5
index.tsx
src/pages/member/memberQuery/applyMember/index.tsx
+9
-9
index.tsx
...editApplication/components/QuotaApplicationInfo/index.tsx
+2
-1
index.tsx
...uotaMenage/detail/components/UploadVoucherModal/index.tsx
+4
-3
index.tsx
...transaction/purchaserEvaluation/received/detail/index.tsx
+7
-12
index.tsx
.../purchaserEvaluation/sent/components/DetailInfo/index.tsx
+6
-9
index.tsx
...action/purchaserEvaluation/unevaluated/evaluate/index.tsx
+5
-6
index.tsx
.../transaction/supplierEvaluation/received/detail/index.tsx
+6
-11
index.tsx
...n/supplierEvaluation/sent/components/DetailInfo/index.tsx
+6
-8
index.tsx
...saction/supplierEvaluation/unevaluated/evaluate/index.tsx
+5
-6
No files found.
src/pages/afterService/exchangeApplication/exchangePrSubmit/components/ExchangeForm/index.tsx
View file @
5bf0a9d0
import
React
,
{
useState
,
useEffect
,
useMemo
}
from
'react'
;
import
{
Button
,
Card
,
Spin
,
Badge
,
message
}
from
'antd'
;
import
{
Button
,
Card
,
Spin
,
Badge
,
message
,
Upload
}
from
'antd'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
ArrayTable
}
from
'@formily/antd-components'
;
import
{
history
,
Link
,
Prompt
}
from
'umi'
;
...
...
@@ -554,8 +554,9 @@ const ExchangeForm: React.FC<BillsFormProps> = ({
const
beforeUpload
=
file
=>
{
if
(
file
.
size
/
1024
/
1024
>
20
)
{
message
.
warning
(
'图片大小超过20M'
);
return
Promise
.
reject
()
;
return
Upload
.
LIST_IGNORE
;
}
return
Promise
.
resolve
();
};
const
handleGoodsConfirm
=
values
=>
{
...
...
src/pages/afterService/repairApplication/repairPrSubmit/components/RepairForm/index.tsx
View file @
5bf0a9d0
import
React
,
{
useState
,
useEffect
,
useMemo
}
from
'react'
;
import
{
Button
,
Card
,
Spin
,
Badge
,
message
}
from
'antd'
;
import
{
Button
,
Card
,
Spin
,
Badge
,
message
,
Upload
}
from
'antd'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
DeleteOutlined
}
from
'@ant-design/icons'
;
import
{
ArrayTable
}
from
'@formily/antd-components'
;
...
...
@@ -483,8 +483,9 @@ const RepairForm: React.FC<BillsFormProps> = ({
const
beforeUpload
=
file
=>
{
if
(
file
.
size
/
1024
/
1024
>
20
)
{
message
.
warning
(
'图片大小超过20M'
);
return
Promise
.
reject
()
;
return
Upload
.
LIST_IGNORE
;
}
return
Promise
.
resolve
();
};
const
handleGoodsConfirm
=
values
=>
{
...
...
src/pages/afterService/returnApplication/returnPrSubmit/components/ReturnForm/index.tsx
View file @
5bf0a9d0
import
React
,
{
useState
,
useEffect
,
useMemo
}
from
'react'
;
import
{
Button
,
Card
,
Spin
,
Badge
,
message
}
from
'antd'
;
import
{
Button
,
Card
,
Spin
,
Badge
,
message
,
Upload
}
from
'antd'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
ArrayTable
}
from
'@formily/antd-components'
;
import
{
history
,
Prompt
,
Link
}
from
'umi'
;
...
...
@@ -573,8 +573,9 @@ const ReturnForm: React.FC<BillsFormProps> = ({
const
beforeUpload
=
file
=>
{
if
(
file
.
size
/
1024
/
1024
>
20
)
{
message
.
warning
(
'图片大小超过20M'
);
return
Promise
.
reject
()
;
return
Upload
.
LIST_IGNORE
;
}
return
Promise
.
resolve
();
};
const
handleGoodsConfirm
=
values
=>
{
...
...
src/pages/member/components/QualitiesUpload/index.tsx
View file @
5bf0a9d0
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-06-04 17:26:51
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-06-
07 16:20:40
* @LastEditTime: 2021-06-
17 10:37:59
* @Description: 资质上传组件
*/
import
React
,
{
useState
}
from
'react'
;
...
...
@@ -22,7 +22,7 @@ const QualitiesUpload = (props) => {
}
=
props
;
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
arrValue
=
value
?
[
value
]
:
[];
const
arrValue
=
value
||
[];
const
handleChange
=
(
info
:
UploadChangeParam
)
=>
{
const
{
file
}
=
info
;
...
...
@@ -33,10 +33,12 @@ const QualitiesUpload = (props) => {
if
(
file
.
status
===
'done'
||
file
.
status
===
'error'
)
{
setLoading
(
false
);
}
mutators
.
change
({
...
rest
,
...(
response
.
data
||
{}),
});
mutators
.
change
([
{
...
rest
,
...(
response
.
data
||
{}),
}
]);
};
const
uploadButton
=
(
...
...
@@ -47,7 +49,7 @@ const QualitiesUpload = (props) => {
);
const
renderFile
=
()
=>
{
const
url
=
value
?.
url
||
''
;
const
url
=
value
[
0
]
?.
url
||
''
;
const
imgReg
=
/
\.(
png|jpg|gif|jpeg|webp
)
$/
;
const
isImg
=
imgReg
.
test
(
url
);
...
...
src/pages/member/components/QualitiesUploadFormItem/index.tsx
View file @
5bf0a9d0
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-06-01 16:13:35
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-06-1
5 11:53:20
* @LastEditTime: 2021-06-1
7 10:50:41
* @Description: 资质证明上传组件
*/
import
React
from
'react'
;
...
...
@@ -70,6 +70,7 @@ const schema = new Schema({
type
:
'string'
,
title
:
'有效期'
,
'x-component'
:
'CheckboxGroup'
,
default
:
[
1
],
enum
:
[
{
label
:
'长期有效'
,
value
:
1
},
]
...
...
src/pages/member/memberFlowRule/index.tsx
View file @
5bf0a9d0
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-05-27 16:01:23
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-06-
08 17:13:57
* @LastEditTime: 2021-06-
17 09:59:49
* @Description: 会员管理流程规则配置
*/
import
React
,
{
useState
,
useRef
}
from
'react'
;
...
...
@@ -89,6 +89,7 @@ const MemberFlowRule: React.FC<[]> = () => {
{
title
:
'ID'
,
dataIndex
:
'id'
,
align
:
'center'
,
},
{
title
:
'流程规则名称'
,
...
...
@@ -106,18 +107,22 @@ const MemberFlowRule: React.FC<[]> = () => {
{
title
:
'会员角色'
,
dataIndex
:
'roleName'
,
align
:
'center'
,
},
{
title
:
'角色类型'
,
dataIndex
:
'roleTypeName'
,
align
:
'center'
,
},
{
title
:
'会员类型'
,
dataIndex
:
'memberTypeName'
,
align
:
'center'
,
},
{
title
:
'业务类型'
,
dataIndex
:
'businessTypeName'
,
align
:
'center'
,
},
{
title
:
'操作时间'
,
...
...
@@ -127,6 +132,7 @@ const MemberFlowRule: React.FC<[]> = () => {
title
:
'状态'
,
dataIndex
:
'status'
,
filters
:
[],
align
:
'center'
,
render
:
(
_
,
record
)
=>
(
<
StatusSwitch
fieldNames=
"status"
...
...
src/pages/member/memberPrVerifyComingData/verify.tsx
View file @
5bf0a9d0
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-05-24 17:01:57
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-06-1
0 16:09:07
* @LastEditTime: 2021-06-1
7 10:43:24
* @Description: 审核入库资料
*/
import
React
,
{
useState
,
useEffect
}
from
'react'
;
...
...
@@ -88,10 +88,10 @@ const MemberPrVerifyComingDataVerify: React.FC<{}> = () => {
...
value
,
depositDetails
:
comingData
,
qualities
:
qualifications
.
map
((
item
)
=>
({
url
:
item
.
file
[
0
]
?
item
.
file
[
0
].
url
:
''
,
name
:
item
.
file
[
0
]
?
item
.
file
[
0
].
name
:
''
,
expireDay
:
item
.
expireDay
,
permanent
:
item
.
permanent
[
0
]
?
item
.
permanent
[
0
]
:
0
,
url
:
item
.
file
&&
item
.
file
[
0
]
?
item
.
file
[
0
].
url
:
''
,
name
:
item
.
file
&&
item
.
file
[
0
]
?
item
.
file
[
0
].
name
:
''
,
expireDay
:
item
.
expireDay
||
''
,
permanent
:
item
.
permanent
&&
item
.
permanent
[
0
]
?
item
.
permanent
[
0
]
:
0
,
})),
};
const
msg
=
message
.
loading
({
...
...
src/pages/member/memberQuery/applyMember/index.tsx
View file @
5bf0a9d0
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-05-26 16:52:48
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-06-1
0 16:06:5
1
* @LastEditTime: 2021-06-1
7 10:46:3
1
* @Description: 申请会员
*/
import
React
,
{
useState
,
useEffect
,
useRef
}
from
'react'
;
...
...
@@ -184,10 +184,10 @@ const MemberQueryApplyMember: React.FC = () => {
upperRoleId
,
depositDetails
:
step3
,
qualities
:
qualities
.
map
((
item
)
=>
({
expireDay
:
item
.
expireDay
,
permanent
:
item
.
permanent
[
0
]
||
0
,
url
:
item
.
file
.
url
,
name
:
item
.
file
.
name
,
expireDay
:
item
.
expireDay
||
''
,
permanent
:
item
.
permanent
&&
item
.
permanent
[
0
]
||
0
,
url
:
item
.
file
&&
item
.
file
[
0
]
?
item
.
file
[
0
].
url
:
''
,
name
:
item
.
file
&&
item
.
file
[
0
]
?
item
.
file
[
0
].
name
:
''
,
})),
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
...
...
@@ -204,10 +204,10 @@ const MemberQueryApplyMember: React.FC = () => {
validateId
,
detail
:
step3
,
qualities
:
qualities
.
map
((
item
)
=>
({
expireDay
:
item
.
expireDay
,
permanent
:
item
.
permanent
[
0
]
||
0
,
url
:
item
.
file
.
url
,
name
:
item
.
file
.
name
,
expireDay
:
item
.
expireDay
||
''
,
permanent
:
item
.
permanent
&&
item
.
permanent
[
0
]
||
0
,
url
:
item
.
file
&&
item
.
file
[
0
]
?
item
.
file
[
0
].
url
:
''
,
name
:
item
.
file
&&
item
.
file
[
0
]
?
item
.
file
[
0
].
name
:
''
,
})),
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
...
...
src/pages/payandSettle/creditApplication/components/QuotaApplicationInfo/index.tsx
View file @
5bf0a9d0
...
...
@@ -121,8 +121,9 @@ const QuotaApplicationInfo: React.FC<QuotaApplicationInfo> = ({
const
beforeUpload
=
file
=>
{
if
(
file
.
size
/
1024
/
1024
>
20
)
{
message
.
warning
(
'图片大小超过20M'
);
return
Promise
.
reject
()
;
return
Upload
.
LIST_IGNORE
;
}
return
Promise
.
resolve
();
};
return
(
...
...
src/pages/payandSettle/creditApplication/quotaMenage/detail/components/UploadVoucherModal/index.tsx
View file @
5bf0a9d0
...
...
@@ -2,11 +2,11 @@
* @Author: XieZhiXiong
* @Date: 2021-01-13 13:46:08
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-0
1-22 15:24:3
9
* @LastEditTime: 2021-0
6-17 10:22:5
9
* @Description: 上传凭证弹窗
*/
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
{
Modal
,
message
}
from
'antd'
;
import
{
Modal
,
message
,
Upload
}
from
'antd'
;
import
styled
from
'styled-components'
;
import
{
createFormActions
}
from
'@formily/antd'
;
import
NiceForm
from
'@/components/NiceForm'
;
...
...
@@ -101,8 +101,9 @@ const UploadVoucherModal: React.FC<UploadVoucherModalProps> = (props: UploadVouc
const
beforeUploadVoucher
=
file
=>
{
if
(
file
.
size
/
1024
>
200
)
{
message
.
warning
(
'图片大小超过200K'
);
return
Promise
.
reject
()
;
return
Upload
.
LIST_IGNORE
;
}
return
Promise
.
resolve
();
};
const
handleUploadVoucherSubmit
=
values
=>
{
...
...
src/pages/transaction/purchaserEvaluation/received/detail/index.tsx
View file @
5bf0a9d0
...
...
@@ -2,27 +2,21 @@ import React, { useState, useEffect } from 'react';
import
{
PageHeader
,
Descriptions
,
Card
,
Spin
,
Button
,
message
,
message
,
Upload
,
}
from
'antd'
;
import
{
FormOutlined
}
from
'@ant-design/icons'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
history
}
from
'umi'
;
import
moment
from
'moment'
;
import
{
createFormActions
,
FormEffectHooks
,
FormPath
}
from
'@formily/antd'
;
import
{
usePageStatus
,
PageStatus
}
from
'@/hooks/usePageStatus'
;
import
{
createFormActions
}
from
'@formily/antd'
;
import
{
usePageStatus
}
from
'@/hooks/usePageStatus'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
GetOrderPurchaseOrderDetailsResponse
}
from
'@/services/OrderApi'
;
import
{
normalizeFiledata
,
FileData
,
isJSONStr
}
from
'@/utils'
;
import
{
normalizeFiledata
,
FileData
}
from
'@/utils'
;
import
AvatarWrap
from
'@/components/AvatarWrap'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
{
normalizeUnevaluatedList
}
from
'../../utils'
;
import
{
evaluateSchema
}
from
'./schema'
;
import
{
createEffects
}
from
'./effects'
;
import
EvaluationList
from
'../../components/EvaluationList'
;
import
styles
from
'./index.less'
;
const
formActions
=
createFormActions
();
...
...
@@ -97,8 +91,9 @@ const ReceivedDetail: React.FC = () => {
const
beforeUpload
=
file
=>
{
if
(
file
.
size
/
1024
/
1024
>
10
)
{
message
.
warning
(
'图片大小超过10M'
);
return
Promise
.
reject
()
;
return
Upload
.
LIST_IGNORE
;
}
return
Promise
.
resolve
();
};
const
UploadTip
=
(
...
...
src/pages/transaction/purchaserEvaluation/sent/components/DetailInfo/index.tsx
View file @
5bf0a9d0
...
...
@@ -2,26 +2,22 @@ import React, { useState, useEffect } from 'react';
import
{
PageHeader
,
Descriptions
,
Card
,
Spin
,
Button
,
message
,
message
,
Upload
,
}
from
'antd'
;
import
{
FormOutlined
}
from
'@ant-design/icons'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
history
}
from
'umi'
;
import
{
createFormActions
,
FormEffectHooks
,
FormPath
}
from
'@formily/antd'
;
import
{
usePageStatus
,
PageStatus
}
from
'@/hooks/usePageStatus'
;
import
{
createFormActions
,
FormEffectHooks
}
from
'@formily/antd'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
GetOrderPurchaseOrderDetailsResponse
}
from
'@/services/OrderApi'
;
import
{
normalizeFiledata
,
FileData
,
isJSONStr
}
from
'@/utils'
;
import
{
normalizeFiledata
,
FileData
}
from
'@/utils'
;
import
AvatarWrap
from
'@/components/AvatarWrap'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
{
normalizeUnevaluatedList
}
from
'../../../utils'
;
import
{
evaluateSchema
}
from
'./schema'
;
import
{
createEffects
}
from
'./effects'
;
import
EvaluationList
from
'../../../components/EvaluationList'
;
import
styles
from
'./index.less'
;
const
formActions
=
createFormActions
();
const
{
...
...
@@ -143,8 +139,9 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
const
beforeUpload
=
file
=>
{
if
(
file
.
size
/
1024
/
1024
>
10
)
{
message
.
warning
(
'图片大小超过10M'
);
return
Promise
.
reject
()
;
return
Upload
.
LIST_IGNORE
;
}
return
Promise
.
resolve
();
};
const
UploadTip
=
(
...
...
src/pages/transaction/purchaserEvaluation/unevaluated/evaluate/index.tsx
View file @
5bf0a9d0
...
...
@@ -2,27 +2,25 @@ import React, { useState, useEffect } from 'react';
import
{
PageHeader
,
Descriptions
,
Card
,
Spin
,
Button
,
message
,
message
,
Upload
,
}
from
'antd'
;
import
{
FormOutlined
}
from
'@ant-design/icons'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
history
,
Prompt
}
from
'umi'
;
import
moment
from
'moment'
;
import
{
createFormActions
,
FormEffectHooks
,
FormPath
}
from
'@formily/antd'
;
import
{
createFormActions
,
FormEffectHooks
}
from
'@formily/antd'
;
import
{
usePageStatus
}
from
'@/hooks/usePageStatus'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
GetOrderPurchaseOrderDetailsResponse
}
from
'@/services/OrderApi'
;
import
{
normalizeFiledata
}
from
'@/utils'
;
import
AvatarWrap
from
'@/components/AvatarWrap'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
{
normalizeUnevaluatedList
}
from
'../../utils'
;
import
{
evaluateSchema
}
from
'./schema'
;
import
{
createEffects
}
from
'./effects'
;
import
EvaluationList
from
'../../components/EvaluationList'
;
import
styles
from
'./index.less'
;
const
formActions
=
createFormActions
();
const
{
...
...
@@ -129,8 +127,9 @@ const EvaluateOrder: React.FC = () => {
const
beforeUpload
=
file
=>
{
if
(
file
.
size
/
1024
/
1024
>
10
)
{
message
.
warning
(
'图片大小超过10M'
);
return
Promise
.
reject
()
;
return
Upload
.
LIST_IGNORE
;
}
return
Promise
.
resolve
();
};
const
UploadTip
=
(
...
...
src/pages/transaction/supplierEvaluation/received/detail/index.tsx
View file @
5bf0a9d0
...
...
@@ -2,27 +2,21 @@ import React, { useState, useEffect } from 'react';
import
{
PageHeader
,
Descriptions
,
Card
,
Spin
,
Button
,
message
,
message
,
Upload
,
}
from
'antd'
;
import
{
FormOutlined
}
from
'@ant-design/icons'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
history
}
from
'umi'
;
import
moment
from
'moment'
;
import
{
createFormActions
,
FormEffectHooks
,
FormPath
}
from
'@formily/antd'
;
import
{
usePageStatus
,
PageStatus
}
from
'@/hooks/usePageStatus'
;
import
{
createFormActions
}
from
'@formily/antd'
;
import
{
usePageStatus
}
from
'@/hooks/usePageStatus'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
GetOrderPurchaseOrderDetailsResponse
}
from
'@/services/OrderApi'
;
import
{
normalizeFiledata
,
FileData
,
isJSONStr
}
from
'@/utils'
;
import
AvatarWrap
from
'@/components/AvatarWrap'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
{
normalizeUnevaluatedList
}
from
'../../utils'
;
import
{
evaluateSchema
}
from
'./schema'
;
import
{
createEffects
}
from
'./effects'
;
import
EvaluationList
from
'../../components/EvaluationList'
;
import
styles
from
'./index.less'
;
const
formActions
=
createFormActions
();
...
...
@@ -100,8 +94,9 @@ const ReceivedDetail: React.FC = () => {
const
beforeUpload
=
file
=>
{
if
(
file
.
size
/
1024
/
1024
>
10
)
{
message
.
warning
(
'图片大小超过10M'
);
return
Promise
.
reject
()
;
return
Upload
.
LIST_IGNORE
;
}
return
Promise
.
resolve
();
};
const
UploadTip
=
(
...
...
src/pages/transaction/supplierEvaluation/sent/components/DetailInfo/index.tsx
View file @
5bf0a9d0
...
...
@@ -2,25 +2,22 @@ import React, { useState, useEffect } from 'react';
import
{
PageHeader
,
Descriptions
,
Card
,
Spin
,
Button
,
message
,
message
,
Upload
,
}
from
'antd'
;
import
{
FormOutlined
}
from
'@ant-design/icons'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
history
}
from
'umi'
;
import
{
createFormActions
,
FormEffectHooks
,
FormPath
}
from
'@formily/antd'
;
import
{
createFormActions
,
FormEffectHooks
}
from
'@formily/antd'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
GetOrderPurchaseOrderDetailsResponse
}
from
'@/services/OrderApi'
;
import
{
normalizeFiledata
,
FileData
,
isJSONStr
}
from
'@/utils'
;
import
{
normalizeFiledata
,
FileData
}
from
'@/utils'
;
import
AvatarWrap
from
'@/components/AvatarWrap'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
{
normalizeUnevaluatedList
}
from
'../../../utils'
;
import
{
evaluateSchema
}
from
'./schema'
;
import
{
createEffects
}
from
'./effects'
;
import
EvaluationList
from
'../../../components/EvaluationList'
;
import
styles
from
'./index.less'
;
const
formActions
=
createFormActions
();
const
{
...
...
@@ -142,8 +139,9 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
const
beforeUpload
=
file
=>
{
if
(
file
.
size
/
1024
/
1024
>
10
)
{
message
.
warning
(
'图片大小超过10M'
);
return
Promise
.
reject
()
;
return
Upload
.
LIST_IGNORE
;
}
return
Promise
.
resolve
();
};
const
UploadTip
=
(
...
...
src/pages/transaction/supplierEvaluation/unevaluated/evaluate/index.tsx
View file @
5bf0a9d0
...
...
@@ -2,27 +2,25 @@ import React, { useState, useEffect } from 'react';
import
{
PageHeader
,
Descriptions
,
Card
,
Spin
,
Button
,
message
,
message
,
Upload
,
}
from
'antd'
;
import
{
FormOutlined
}
from
'@ant-design/icons'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
history
,
Prompt
}
from
'umi'
;
import
moment
from
'moment'
;
import
{
createFormActions
,
FormEffectHooks
,
FormPath
}
from
'@formily/antd'
;
import
{
createFormActions
,
FormEffectHooks
}
from
'@formily/antd'
;
import
{
usePageStatus
}
from
'@/hooks/usePageStatus'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
GetOrderPurchaseOrderDetailsResponse
}
from
'@/services/OrderApi'
;
import
{
normalizeFiledata
}
from
'@/utils'
;
import
AvatarWrap
from
'@/components/AvatarWrap'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
{
normalizeUnevaluatedList
}
from
'../../utils'
;
import
{
evaluateSchema
}
from
'./schema'
;
import
{
createEffects
}
from
'./effects'
;
import
EvaluationList
from
'../../components/EvaluationList'
;
import
styles
from
'./index.less'
;
const
formActions
=
createFormActions
();
const
{
...
...
@@ -129,8 +127,9 @@ const EvaluateOrder: React.FC = () => {
const
beforeUpload
=
file
=>
{
if
(
file
.
size
/
1024
/
1024
>
10
)
{
message
.
warning
(
'图片大小超过10M'
);
return
Promise
.
reject
()
;
return
Upload
.
LIST_IGNORE
;
}
return
Promise
.
resolve
();
};
const
UploadTip
=
(
...
...
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