Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
薪
薪瑞通-前端
Project
Project
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
许珑标
薪瑞通-前端
Commits
c8981678
Commit
c8981678
authored
Mar 26, 2025
by
许珑标
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发薪任务增加导表批量调整薪资功能
parent
e507a34b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
3 deletions
+61
-3
public/导入薪资调整模板.xlsx
public/导入薪资调整模板.xlsx
+0
-0
src/views/business/payOutDetail/index.vue
src/views/business/payOutDetail/index.vue
+61
-3
No files found.
public/导入薪资调整模板.xlsx
0 → 100644
View file @
c8981678
File added
src/views/business/payOutDetail/index.vue
View file @
c8981678
...
@@ -44,6 +44,10 @@
...
@@ -44,6 +44,10 @@
<el-button
type=
"info"
icon=
"el-icon-upload2"
@
click=
"upload.open = true"
<el-button
type=
"info"
icon=
"el-icon-upload2"
@
click=
"upload.open = true"
v-hasPermi=
"['business:payOutDetail:add']"
>
导入考勤
</el-button>
v-hasPermi=
"['business:payOutDetail:add']"
>
导入考勤
</el-button>
</el-col>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"info"
icon=
"el-icon-upload2"
@
click=
"adjustUpload.open = true"
v-hasPermi=
"['business:payOutDetail:add']"
>
调整薪资
</el-button>
</el-col>
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
</el-row>
...
@@ -222,7 +226,7 @@
...
@@ -222,7 +226,7 @@
<
/div
>
<
/div
>
<
/el-dialog
>
<
/el-dialog
>
<!--
用户
导入对话框
-->
<!--
考勤
导入对话框
-->
<
el
-
dialog
title
=
"
导入考勤信息
"
:
visible
.
sync
=
"
upload.open
"
width
=
"
400px
"
append
-
to
-
body
>
<
el
-
dialog
title
=
"
导入考勤信息
"
:
visible
.
sync
=
"
upload.open
"
width
=
"
400px
"
append
-
to
-
body
>
<
el
-
upload
ref
=
"
upload
"
:
limit
=
"
1
"
accept
=
"
.xlsx, .xls
"
:
headers
=
"
upload.headers
"
<
el
-
upload
ref
=
"
upload
"
:
limit
=
"
1
"
accept
=
"
.xlsx, .xls
"
:
headers
=
"
upload.headers
"
:
action
=
"
upload.url + '?templateType=' + upload.uploadRadio
"
:
disabled
=
"
upload.isUploading
"
:
action
=
"
upload.url + '?templateType=' + upload.uploadRadio
"
:
disabled
=
"
upload.isUploading
"
...
@@ -240,6 +244,33 @@
...
@@ -240,6 +244,33 @@
<
el
-
button
@
click
=
"
upload.open = false
"
>
取
消
<
/el-button
>
<
el
-
button
@
click
=
"
upload.open = false
"
>
取
消
<
/el-button
>
<
/div
>
<
/div
>
<
/el-dialog
>
<
/el-dialog
>
<!--
薪资调整导入对话框
-->
<
el
-
dialog
title
=
"
薪资调整导入
"
:
visible
.
sync
=
"
adjustUpload.open
"
width
=
"
400px
"
append
-
to
-
body
>
<
el
-
form
label
-
width
=
"
150px
"
>
<
el
-
form
-
item
label
=
"
是否删除原记录
"
>
<
el
-
radio
-
group
v
-
model
=
"
adjustUpload.uploadRadio
"
>
<
el
-
radio
:
label
=
"
1
"
>
是
<
/el-radio
>
<
el
-
radio
:
label
=
"
2
"
>
否
<
/el-radio
>
<
/el-radio-group
>
<
/el-form-item
>
<
/el-form
>
<
el
-
upload
ref
=
"
adjustUpload
"
:
limit
=
"
1
"
accept
=
"
.xlsx, .xls
"
:
headers
=
"
adjustUpload.headers
"
:
action
=
"
adjustUpload.url + '?cover=' + adjustUpload.uploadRadio
"
:
disabled
=
"
adjustUpload.isUploading
"
:
on
-
progress
=
"
handleFileUploadProgressAdjust
"
:
on
-
success
=
"
handleFileSuccessAdjust
"
:
auto
-
upload
=
"
false
"
drag
>
<
i
class
=
"
el-icon-upload
"
><
/i
>
<
div
class
=
"
el-upload__text
"
>
将文件拖到此处,或
<
em
>
点击上传
<
/em></
div
>
<
div
class
=
"
el-upload__tip text-center
"
slot
=
"
tip
"
>
<
span
>
仅允许导入
xls
、
xlsx
格式文件。
<
/span
>
<
a
style
=
"
color:#1890ff;margin:0px;line-height:14px
"
class
=
"
download
"
download
=
"
薪资调整导入模板
"
href
=
"
/导入薪资调整模板.xlsx
"
target
=
"
_blank
"
>
下载模板
<
/a
>
<
/div
>
<
/el-upload
>
<
div
slot
=
"
footer
"
class
=
"
dialog-footer
"
>
<
el
-
button
type
=
"
primary
"
@
click
=
"
importByExcelAdjust
"
>
确
定
<
/el-button
>
<
el
-
button
@
click
=
"
adjustUpload.open = false
"
>
取
消
<
/el-button
>
<
/div
>
<
/el-dialog
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
...
@@ -275,6 +306,20 @@ export default {
...
@@ -275,6 +306,20 @@ export default {
// 上传的地址
// 上传的地址
url
:
process
.
env
.
VUE_APP_BASE_API
+
"
/business/payOutRecord/attendance/importByExcel/
"
+
this
.
$route
.
query
.
batchNo
url
:
process
.
env
.
VUE_APP_BASE_API
+
"
/business/payOutRecord/attendance/importByExcel/
"
+
this
.
$route
.
query
.
batchNo
}
,
}
,
adjustUpload
:
{
// 是否显示弹出层(用户导入)
open
:
false
,
// 弹出层标题(用户导入)
title
:
""
,
// 是否禁用上传
isUploading
:
false
,
// 是否更新已经存在的用户数据
uploadRadio
:
2
,
// 设置上传的请求头部
headers
:
{
Authorization
:
"
Bearer
"
+
getToken
()
}
,
// 上传的地址
url
:
process
.
env
.
VUE_APP_BASE_API
+
"
/business/payOutRecord/adjust/calculateByExcel/
"
+
this
.
$route
.
query
.
batchNo
}
,
adjustItem
:
[],
adjustItem
:
[],
preForm
:
{
preForm
:
{
payableNormal
:
0
,
payableNormal
:
0
,
...
@@ -719,9 +764,22 @@ export default {
...
@@ -719,9 +764,22 @@ export default {
}
,
}
,
importByExcel
()
{
importByExcel
()
{
this
.
$refs
.
upload
.
submit
();
this
.
$refs
.
upload
.
submit
();
}
}
,
handleFileUploadProgressAdjust
(
event
,
file
,
fileList
)
{
this
.
adjustUpload
.
isUploading
=
true
;
}
,
// 文件上传成功处理
handleFileSuccessAdjust
(
response
,
file
,
fileList
)
{
this
.
adjustUpload
.
open
=
false
;
this
.
adjustUpload
.
isUploading
=
false
;
this
.
$refs
.
adjustUpload
.
clearFiles
();
this
.
$alert
(
"
<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>
"
+
response
.
msg
+
"
</div>
"
,
"
导入结果
"
,
{
dangerouslyUseHTMLString
:
true
}
);
this
.
getList
();
}
,
importByExcelAdjust
()
{
this
.
$refs
.
adjustUpload
.
submit
();
}
}
}
}
}
<
/script
>
<
/script
>
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