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
647a0851
Commit
647a0851
authored
Jan 07, 2025
by
许珑标
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发薪任务支付
parent
d6eee0bb
Changes
10
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
846 additions
and
19 deletions
+846
-19
src/api/business/payOutDetail.js
src/api/business/payOutDetail.js
+1
-1
src/api/business/payOutRecord.js
src/api/business/payOutRecord.js
+9
-0
src/layout/components/Navbar.vue
src/layout/components/Navbar.vue
+1
-1
src/router/index.js
src/router/index.js
+6
-5
src/views/business/outContract/index.vue
src/views/business/outContract/index.vue
+2
-1
src/views/business/outPersonal/index.vue
src/views/business/outPersonal/index.vue
+1
-1
src/views/business/payOutDetail/index.vue
src/views/business/payOutDetail/index.vue
+8
-4
src/views/business/payOutDetail/list.vue
src/views/business/payOutDetail/list.vue
+807
-0
src/views/business/payOutRecord/index.vue
src/views/business/payOutRecord/index.vue
+9
-4
vue.config.js
vue.config.js
+2
-2
No files found.
src/api/business/payOutDetail.js
View file @
647a0851
...
@@ -47,7 +47,7 @@ export function updatePayOutDetail(data) {
...
@@ -47,7 +47,7 @@ export function updatePayOutDetail(data) {
// 删除发薪详情
// 删除发薪详情
export
function
delPayOutDetail
(
id
)
{
export
function
delPayOutDetail
(
id
)
{
return
request
({
return
request
({
url
:
'
/business/payOut
D
etail/remove/
'
+
id
,
url
:
'
/business/payOut
Record/d
etail/remove/
'
+
id
,
method
:
'
get
'
method
:
'
get
'
})
})
}
}
src/api/business/payOutRecord.js
View file @
647a0851
...
@@ -53,6 +53,15 @@ export function updatePayOutRecord(data) {
...
@@ -53,6 +53,15 @@ export function updatePayOutRecord(data) {
})
})
}
}
// 发薪任务支付
export
function
pay
(
data
)
{
return
request
({
url
:
'
/business/payOutRecord/pay
'
,
method
:
'
post
'
,
data
:
data
})
}
// 删除发薪批次信息
// 删除发薪批次信息
export
function
delPayOutRecord
(
id
)
{
export
function
delPayOutRecord
(
id
)
{
return
request
({
return
request
({
...
...
src/layout/components/Navbar.vue
View file @
647a0851
...
@@ -98,7 +98,7 @@ export default {
...
@@ -98,7 +98,7 @@ export default {
type
:
'
warning
'
type
:
'
warning
'
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
$store
.
dispatch
(
'
LogOut
'
).
then
(()
=>
{
this
.
$store
.
dispatch
(
'
LogOut
'
).
then
(()
=>
{
location
.
href
=
'
/
ruoyi-vue-web/
index
'
;
location
.
href
=
'
/index
'
;
})
})
}).
catch
(()
=>
{});
}).
catch
(()
=>
{});
}
}
...
...
src/router/index.js
View file @
647a0851
...
@@ -171,8 +171,9 @@ Router.prototype.push = function push(location) {
...
@@ -171,8 +171,9 @@ Router.prototype.push = function push(location) {
}
}
export
default
new
Router
({
export
default
new
Router
({
base
:
"
/ruoyi-vue-web
"
,
mode
:
"
history
"
,
// 去掉url中的#
mode
:
'
history
'
,
// 去掉url中的#
scrollBehavior
:
()
=>
({
scrollBehavior
:
()
=>
({
y
:
0
}),
y
:
0
routes
:
constantRoutes
}),
})
routes
:
constantRoutes
,
});
src/views/business/outContract/index.vue
View file @
647a0851
...
@@ -515,6 +515,7 @@ export default {
...
@@ -515,6 +515,7 @@ export default {
this
.
$refs
[
"
bcoForm
"
].
validate
(
valid
=>
{
this
.
$refs
[
"
bcoForm
"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
// console.log(this.bcoForm);
// console.log(this.bcoForm);
this
.
bcoForm
.
salaryMonth
=
this
.
bcoForm
.
salaryMonth
+
'
-01
'
buildPayOutRecord
(
this
.
bcoForm
).
then
(
resp
=>
{
buildPayOutRecord
(
this
.
bcoForm
).
then
(
resp
=>
{
if
(
resp
.
code
==
200
)
{
if
(
resp
.
code
==
200
)
{
this
.
bcoOpen
=
false
this
.
bcoOpen
=
false
...
...
src/views/business/outPersonal/index.vue
View file @
647a0851
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
<el-table-column
label=
"收款账号"
align=
"center"
prop=
"payeeAccNo"
>
<el-table-column
label=
"收款账号"
align=
"center"
prop=
"payeeAccNo"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
payeeAccNo
}}
{{
scope
.
row
.
payeeAccNo
}}
<dict-tag
:options=
"dict.type.payee_acc_type"
:value=
"scope.row.
bear
Type"
/>
<dict-tag
:options=
"dict.type.payee_acc_type"
:value=
"scope.row.
payeeAcc
Type"
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"性别"
align=
"center"
prop=
"gender"
/>
<el-table-column
label=
"性别"
align=
"center"
prop=
"gender"
/>
...
...
src/views/business/payOutDetail/index.vue
View file @
647a0851
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
<
el
-
table
-
column
label
=
"
收款账号
"
align
=
"
center
"
prop
=
"
payeeAccNo
"
>
<
el
-
table
-
column
label
=
"
收款账号
"
align
=
"
center
"
prop
=
"
payeeAccNo
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
template
slot
-
scope
=
"
scope
"
>
{{
scope
.
row
.
payeeAccNo
}}
{{
scope
.
row
.
payeeAccNo
}}
<
dict
-
tag
:
options
=
"
dict.type.payee_acc_type
"
:
value
=
"
scope.row.
bear
Type
"
/>
<
dict
-
tag
:
options
=
"
dict.type.payee_acc_type
"
:
value
=
"
scope.row.
payeeAcc
Type
"
/>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"
岗位名称
"
align
=
"
center
"
prop
=
"
postName
"
/>
<
el
-
table
-
column
label
=
"
岗位名称
"
align
=
"
center
"
prop
=
"
postName
"
/>
...
@@ -180,13 +180,16 @@
...
@@ -180,13 +180,16 @@
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"
操作
"
align
=
"
center
"
fixed
=
"
right
"
class
-
name
=
"
small-padding fixed-width
"
>
<
el
-
table
-
column
label
=
"
操作
"
align
=
"
center
"
fixed
=
"
right
"
class
-
name
=
"
small-padding fixed-width
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
icon
=
"
el-icon-edit
"
@
click
=
"
handleUpdate(scope.row)
"
<
el
-
button
v
-
if
=
"
scope.row.payStatus && 3 != scope.row.payStatus && 2 != scope.row.payStatus
"
size
=
"
mini
"
type
=
"
text
"
icon
=
"
el-icon-edit
"
@
click
=
"
handleUpdate(scope.row)
"
v
-
hasPermi
=
"
['business:payOutDetail:edit']
"
>
修改
v
-
hasPermi
=
"
['business:payOutDetail:edit']
"
>
修改
<
/el-button
>
<
/el-button
>
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
icon
=
"
el-icon-edit
"
@
click
=
"
checkWork(scope.row)
"
<
el
-
button
v
-
if
=
"
scope.row.payStatus && 1 == scope.row.payStatus
"
size
=
"
mini
"
type
=
"
text
"
icon
=
"
el-icon-edit
"
@
click
=
"
checkWork(scope.row)
"
v
-
hasPermi
=
"
['business:payOutDetail:edit']
"
>
考勤核对
v
-
hasPermi
=
"
['business:payOutDetail:edit']
"
>
考勤核对
<
/el-button
>
<
/el-button
>
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
icon
=
"
el-icon-delete
"
@
click
=
"
handleDelete(scope.row)
"
<
el
-
button
v
-
if
=
"
scope.row.payStatus && 3 != scope.row.payStatus && 2 != scope.row.payStatus
"
size
=
"
mini
"
type
=
"
text
"
icon
=
"
el-icon-delete
"
@
click
=
"
handleDelete(scope.row)
"
v
-
hasPermi
=
"
['business:payOutDetail:remove']
"
>
删除
v
-
hasPermi
=
"
['business:payOutDetail:remove']
"
>
删除
<
/el-button
>
<
/el-button
>
<
/template
>
<
/template
>
...
@@ -630,6 +633,7 @@ export default {
...
@@ -630,6 +633,7 @@ export default {
// this.getList();
// this.getList();
}
,
}
,
mounted
()
{
mounted
()
{
this
.
reset
()
this
.
queryParams
.
batchNo
=
this
.
$route
.
query
.
batchNo
this
.
queryParams
.
batchNo
=
this
.
$route
.
query
.
batchNo
this
.
batchName
=
this
.
$route
.
query
.
batchName
this
.
batchName
=
this
.
$route
.
query
.
batchName
this
.
getList
()
this
.
getList
()
...
...
src/views/business/payOutDetail/list.vue
0 → 100644
View file @
647a0851
This diff is collapsed.
Click to expand it.
src/views/business/payOutRecord/index.vue
View file @
647a0851
...
@@ -70,8 +70,7 @@
...
@@ -70,8 +70,7 @@
<!--
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
<!--
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
v-if=
"scope.row.payStatus && scope.row.payStatus > 0"
v-if=
"scope.row.payStatus && scope.row.payStatus > 0"
v-hasPermi=
"['business:payOutRecord:edit']"
>
修改
</el-button>
-->
v-hasPermi=
"['business:payOutRecord:edit']"
>
修改
</el-button>
-->
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
<el-button
v-if=
"scope.row.payStatus && 3 != scope.row.payStatus && 2 != scope.row.payStatus"
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
v-if=
"scope.row.payStatus && scope.row.payStatus > 0"
v-hasPermi=
"['business:payOutRecord:remove']"
>
删除
</el-button>
v-hasPermi=
"['business:payOutRecord:remove']"
>
删除
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-money"
@
click=
"paySalary(scope.row)"
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-money"
@
click=
"paySalary(scope.row)"
v-if=
"scope.row.payStatus && 1 == scope.row.payStatus"
v-if=
"scope.row.payStatus && 1 == scope.row.payStatus"
...
@@ -168,7 +167,7 @@
...
@@ -168,7 +167,7 @@
</template>
</template>
<
script
>
<
script
>
import
{
listPayOutRecord
,
getPayOutRecord
,
delPayOutRecord
,
addPayOutRecord
,
updatePayOutRecord
}
from
"
@/api/business/payOutRecord
"
;
import
{
listPayOutRecord
,
getPayOutRecord
,
delPayOutRecord
,
addPayOutRecord
,
updatePayOutRecord
,
pay
}
from
"
@/api/business/payOutRecord
"
;
import
{
listPayAccInfo
}
from
'
@/api/business/payAcc
'
import
{
listPayAccInfo
}
from
'
@/api/business/payAcc
'
export
default
{
export
default
{
...
@@ -401,7 +400,13 @@ export default {
...
@@ -401,7 +400,13 @@ export default {
this
.
getPayAccList
();
this
.
getPayAccList
();
},
},
confirmPay
()
{
confirmPay
()
{
console
.
log
(
this
.
payForm
)
pay
(
this
.
payForm
).
then
(
resp
=>
{
if
(
resp
.
code
==
200
)
{
this
.
payOpen
=
false
this
.
$modal
.
alertSuccess
(
"
操作成功,请等待支付结果
"
)
this
.
getList
()
}
})
}
}
},
},
};
};
...
...
vue.config.js
View file @
647a0851
...
@@ -18,9 +18,9 @@ module.exports = {
...
@@ -18,9 +18,9 @@ module.exports = {
// 部署生产环境和开发环境下的URL。
// 部署生产环境和开发环境下的URL。
// 默认情况下,Vue CLI 会假设你的应用是被部署在一个域名的根路径上
// 默认情况下,Vue CLI 会假设你的应用是被部署在一个域名的根路径上
// 例如 https://www.ruoyi.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.ruoyi.vip/admin/,则设置 baseUrl 为 /admin/。
// 例如 https://www.ruoyi.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.ruoyi.vip/admin/,则设置 baseUrl 为 /admin/。
publicPath
:
process
.
env
.
NODE_ENV
===
"
production
"
?
"
/
ruoyi-vue-web
"
:
"
/
"
,
publicPath
:
process
.
env
.
NODE_ENV
===
"
production
"
?
"
/
"
:
"
/
"
,
// 在npm run build 或 yarn build 时 ,生成文件的目录名称(要和baseUrl的生产环境路径一致)(默认dist)
// 在npm run build 或 yarn build 时 ,生成文件的目录名称(要和baseUrl的生产环境路径一致)(默认dist)
outputDir
:
'
ruoyi-vue-web
'
,
outputDir
:
'
xrt
'
,
// 用于放置生成的静态资源 (js、css、img、fonts) 的;(项目打包之后,静态资源会放在这个文件夹下)
// 用于放置生成的静态资源 (js、css、img、fonts) 的;(项目打包之后,静态资源会放在这个文件夹下)
assetsDir
:
'
static
'
,
assetsDir
:
'
static
'
,
// 是否开启eslint保存检测,有效值:ture | false | 'error'
// 是否开启eslint保存检测,有效值:ture | false | 'error'
...
...
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