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
e08a5404
Commit
e08a5404
authored
Jul 09, 2021
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix: 修改采购询价上传
parent
8e53c628
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
13 deletions
+31
-13
uploadProps.ts
src/pages/transaction/common/uploadProps.ts
+22
-0
file.tsx
...tion/purchaseAbility/offter/addOffter/components/file.tsx
+3
-4
crossSellProducts.tsx
...chaseAbility/offter/addOffter/modal/crossSellProducts.tsx
+2
-3
file.tsx
...aseAbility/purchaseInquiry/addInquiry/components/file.tsx
+2
-3
drawerWrite.tsx
...eAbility/purchaseInquiry/addInquiry/modal/drawerWrite.tsx
+2
-3
No files found.
src/pages/transaction/common/uploadProps.ts
0 → 100644
View file @
e08a5404
import
{
UPLOAD_TYPE
}
from
'@/constants'
import
{
getAuth
}
from
'@/utils/auth'
;
import
{
GlobalConfig
}
from
'@/global/config'
;
const
{
userId
,
memberId
,
token
}
=
getAuth
()
||
{}
const
UploadProps
:
any
=
{
action
:
"/api/file/file/upload"
,
data
:
{
fileType
:
UPLOAD_TYPE
},
headers
:
{
userId
,
memberId
,
token
,
source
:
'1'
,
environment
:
'1'
,
site
:
GlobalConfig
.
global
.
siteInfo
.
id
.
toString
()
}
}
export
default
UploadProps
;
src/pages/transaction/purchaseAbility/offter/addOffter/components/file.tsx
View file @
e08a5404
import
React
,
{
useState
,
useEffect
,
useCallback
}
from
'react'
;
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
{
Form
,
Button
,
Upload
,
message
}
from
'antd'
;
import
{
UPLOAD_TYPE
}
from
'@/constants'
import
UploadProps
from
'@/pages/transaction/common/uploadProps'
;
import
styles
from
'./index.less'
;
import
{
UploadOutlined
,
DeleteOutlined
,
LinkOutlined
}
from
'@ant-design/icons'
;
import
{
isEmpty
}
from
'lodash'
;
...
...
@@ -120,8 +120,7 @@ const File: React.FC<IProps> = (props) => {
</
div
>
{
checkRound
===
round
&&
(
<
Upload
action=
"/api/file/file/upload"
data=
{
{
fileType
:
UPLOAD_TYPE
}
}
{
...
UploadProps
}
showUploadList=
{
false
}
accept=
'.doc,.docx,.pdf,.ppt,.pptx,.xls,.xlsx'
beforeUpload=
{
beforeDocUpload
}
...
...
src/pages/transaction/purchaseAbility/offter/addOffter/modal/crossSellProducts.tsx
View file @
e08a5404
...
...
@@ -16,7 +16,7 @@ import style from './index.less';
import
{
DeleteOutlined
,
LinkOutlined
,
PlusSquareOutlined
,
UploadOutlined
}
from
'@ant-design/icons'
;
import
SelectProduct
from
'./selectProduct'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
UPLOAD_TYPE
}
from
'@/constants'
import
UploadProps
from
'@/pages/transaction/common/uploadProps'
;
const
{
Sider
,
Content
}
=
Layout
;
const
{
Text
}
=
Typography
;
...
...
@@ -388,8 +388,7 @@ const CrossSellProducts: React.FC<IProps> = (props: any) => {
</
div
>
{
!
preview
&&
(
<
Upload
action=
"/api/file/file/upload"
data=
{
{
fileType
:
UPLOAD_TYPE
}
}
{
...
UploadProps
}
showUploadList=
{
false
}
accept=
'.doc,.docx,.pdf,.ppt,.pptx,.xls,.xlsx'
beforeUpload=
{
beforeDocUpload
}
...
...
src/pages/transaction/purchaseAbility/purchaseInquiry/addInquiry/components/file.tsx
View file @
e08a5404
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
{
Form
,
Button
,
Upload
,
message
}
from
'antd'
;
import
{
UPLOAD_TYPE
}
from
'@/constants'
import
styles
from
'./index.less'
;
import
{
UploadOutlined
,
DeleteOutlined
,
LinkOutlined
}
from
'@ant-design/icons'
;
import
UploadProps
from
'@/pages/transaction/common/uploadProps'
;
const
layout
:
any
=
{
colon
:
false
,
...
...
@@ -95,8 +95,7 @@ const File: React.FC<IProps> = (props) => {
))
}
</
div
>
<
Upload
action=
"/api/file/file/upload"
data=
{
{
fileType
:
UPLOAD_TYPE
}
}
{
...
UploadProps
}
showUploadList=
{
false
}
accept=
'.doc,.docx,.pdf,.ppt,.pptx,.xls,.xlsx'
beforeUpload=
{
beforeDocUpload
}
...
...
src/pages/transaction/purchaseAbility/purchaseInquiry/addInquiry/modal/drawerWrite.tsx
View file @
e08a5404
...
...
@@ -15,7 +15,6 @@ import {
InputNumber
}
from
'antd'
;
import
style
from
'./index.less'
;
import
{
UPLOAD_TYPE
}
from
'@/constants'
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
DeleteOutlined
,
LinkOutlined
,
UploadOutlined
}
from
'@ant-design/icons'
;
import
{
PublicApi
}
from
'@/services/api'
;
...
...
@@ -23,6 +22,7 @@ import { isEmpty } from 'lodash';
import
TableModal
from
'@/pages/transaction/components/TableModal'
;
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
UploadProps
from
'@/pages/transaction/common/uploadProps'
;
const
layout
:
any
=
{
colon
:
false
,
...
...
@@ -434,8 +434,7 @@ const DrawerWrite: React.FC<Iprops> = (props: any) => {
))
}
</
div
>
<
Upload
action=
"/api/file/file/upload"
data=
{
{
fileType
:
UPLOAD_TYPE
}
}
{
...
UploadProps
}
showUploadList=
{
false
}
accept=
'.doc,.docx,.pdf,.ppt,.pptx,.xls,.xlsx'
beforeUpload=
{
beforeDocUpload
}
...
...
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