Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
ops_2024_vue
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Administrator
ops_2024_vue
Commits
c1da8356
Commit
c1da8356
authored
Apr 03, 2024
by
limengyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(lmy):上传
parent
20ebfd87
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
src/views/regionalSpotManage/components/list.vue
src/views/regionalSpotManage/components/list.vue
+13
-7
No files found.
src/views/regionalSpotManage/components/list.vue
View file @
c1da8356
...
...
@@ -393,14 +393,20 @@
const
confirmImport
=
async
()
=>
{
if
(
!
productExcelList
.
value
.
length
)
return
message
.
error
(
'
请上传文件
'
);
if
(
!
impotrCheckboxValue
.
value
.
length
)
return
message
.
error
(
'
请选择现货区域
'
);
const
param
:
FormData
=
new
FormData
();
param
.
append
(
'
ghsCode
'
,
ghsCode
);
param
.
append
(
'
ghsName
'
,
ghsName
);
param
.
append
(
'
file
'
,
productExcelList
.
value
[
0
]);
param
.
append
(
'
areaIds
'
,
impotrCheckboxValue
.
value
.
join
(
'
,
'
)
as
any
);
//
const param: FormData = new FormData();
//
param.append('ghsCode', ghsCode);
//
param.append('ghsName', ghsName);
//
param.append('file', productExcelList.value[0]);
//
param.append('areaIds', impotrCheckboxValue.value.join(',') as any);
importLoading
.
value
=
true
;
const
res
:
any
=
await
regionalSpotManageUploadOpsProductApi
(
param
,
productExcelList
.
value
[
0
]);
console
.
log
(
res
);
const
res
:
any
=
await
regionalSpotManageUploadOpsProductApi
(
{
ghsCode
:
ghsCode
,
ghsName
:
ghsName
,
areaIds
:
impotrCheckboxValue
.
value
,
},
productExcelList
.
value
[
0
],
);
if
(
res
.
data
.
success
)
{
message
.
success
(
'
批量导入成功
'
);
importCancel
();
...
...
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