Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
precision-effect
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
耿迪迪
precision-effect
Commits
32154f62
Commit
32154f62
authored
Jun 13, 2023
by
纪泽龙
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jzl'
parents
a0e5855f
885c6b3c
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
325 additions
and
57 deletions
+325
-57
account.js
precision-effect-web/src/api/account/account.js
+17
-0
zehong.scss
precision-effect-web/src/assets/styles/zehong.scss
+3
-0
MoneyTable.vue
...ion-effect-web/src/views/account/component/MoneyTable.vue
+97
-0
index.vue
precision-effect-web/src/views/account/index.vue
+208
-57
No files found.
precision-effect-web/src/api/account/account.js
View file @
32154f62
/*
* @Author: 纪泽龙 jizelong@qq.com
* @Date: 2023-06-12 10:49:16
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 2023-06-13 16:19:48
* @FilePath: /precision-effect-web/src/api/account/account.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import
request
from
'@/utils/request'
import
request
from
'@/utils/request'
// 查询账户列表
// 查询账户列表
...
@@ -9,6 +17,15 @@ export function listAccount(query) {
...
@@ -9,6 +17,15 @@ export function listAccount(query) {
})
})
}
}
// 应收应付金额列表
export
function
getIncomeOrPayableList
(
query
)
{
return
request
({
url
:
'/trade/project/getIncomeOrPayableList'
,
method
:
'get'
,
params
:
query
})
}
// 查询账户详细
// 查询账户详细
export
function
getAccount
(
accountId
)
{
export
function
getAccount
(
accountId
)
{
return
request
({
return
request
({
...
...
precision-effect-web/src/assets/styles/zehong.scss
View file @
32154f62
...
@@ -324,3 +324,6 @@
...
@@ -324,3 +324,6 @@
.flex
{
.flex
{
display
:
flex
;
display
:
flex
;
}
}
.cup
{
cursor
:
pointer
;
}
\ No newline at end of file
precision-effect-web/src/views/account/component/MoneyTable.vue
0 → 100644
View file @
32154f62
<!--
* @Author: 纪泽龙 jizelong@qq.com
* @Date: 2023-06-13 15:40:04
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 2023-06-13 17:18:43
* @FilePath: /precision-effect-web/src/views/account/component/table.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<
template
>
<div>
<!-- 交易项目、卖方、申请人、买方、买方经办人、应付/应收金额 -->
<el-table
:data=
"tableData"
v-loading=
"moneyLoading"
>
<el-table-column
label=
"交易项目"
align=
"center"
prop=
"a"
:formatter=
"formatter"
/>
<el-table-column
label=
"卖方"
align=
"center"
prop=
"tradeTransactorName"
/>
<el-table-column
label=
"申请人"
align=
"center"
prop=
"applyName"
/>
<el-table-column
label=
"买方"
align=
"center"
prop=
"applyDeptName"
/>
<el-table-column
label=
"买方经办人"
align=
"center"
prop=
"tradeDeptName"
/>
<template
v-if=
"or === 'income'"
>
<el-table-column
label=
"应收金额"
align=
"center"
prop=
"pendingPayment"
/>
</
template
>
<
template
v-else
>
<el-table-column
label=
"应付金额"
align=
"center"
prop=
"pendingPayment"
/>
</
template
>
</el-table>
<pagination
v-show=
"tableData.length > 0"
:total=
"total"
:page
.
sync=
"queryAccountDetailParams.pageNum"
:limit
.
sync=
"queryAccountDetailParams.pageSize"
@
pagination=
"getOperateList"
/>
</div>
</template>
<
script
>
export
default
{
name
:
""
,
props
:
{
moneyLoading
:
{
type
:
Boolean
,
},
tableData
:
{
type
:
Array
,
default
:
()
=>
{
return
[];
},
},
or
:
{
type
:
String
,
default
:
"tableOr"
,
},
total
:
{
tyle
:
Number
,
},
deptId
:
{
tyle
:
Number
,
},
},
data
()
{
return
{
queryAccountDetailParams
:
{
pageNum
:
1
,
pageSize
:
10
,
},
};
},
methods
:
{
getOperateList
()
{
this
.
$parent
.
getIncomeOrPayableList
(
{
...
queryAccountDetailParams
,
deptId
:
this
.
deptId
,
},
or
);
},
formatter
(
row
,
column
,
cellValue
,
index
)
{
return
cellValue
?
cellValue
:
"-"
;
},
},
};
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
precision-effect-web/src/views/account/index.vue
View file @
32154f62
This diff is collapsed.
Click to expand it.
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