Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Z
zentao-view
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
zentao
zentao-view
Commits
50cf5a9a
Commit
50cf5a9a
authored
Apr 09, 2021
by
menglingjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 查询条件
parent
fce1a236
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
3 deletions
+43
-3
ProjectChargeList.vue
src/views/project/charge/ProjectChargeList.vue
+43
-3
No files found.
src/views/project/charge/ProjectChargeList.vue
View file @
50cf5a9a
...
...
@@ -24,6 +24,18 @@
</a-select>
</a-form-item>
</a-col>
<a-col
:span=
"6"
>
<a-form-item
label=
"是否统计"
:labelCol=
"
{span: 8}" :wrapperCol="{span: 16}">
<a-select
placeholder=
"请选择状态"
v-model=
"query.statisticsStatus"
:allowClear=
"true"
>
<a-select-option
value=
1
>
是
</a-select-option>
<a-select-option
value=
0
>
否
</a-select-option>
</a-select>
</a-form-item>
</a-col>
</a-row>
</div>
</a-form>
...
...
@@ -41,9 +53,6 @@
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: updateSelect}"
bordered
>
<!--
<template
v-for=
""
>
-->
<!--
</
template
>
-->
<div
slot=
"title"
slot-scope=
"data"
>
<span
class=
"cust-title"
>
<a-icon
type=
"hdd"
/>
工资管理列表
{{
data
.
none
}}
...
...
@@ -94,6 +103,13 @@
v-model=
'record.charge'
></a-input-number>
</span>
<span
slot=
"orderNumber"
slot-scope=
"text, record,index"
:key=
"record.id"
>
<a-input-number
style=
"width: 80px"
@
change=
"e=>handleOrderChange(e, index)"
v-model=
'record.orderNumber'
></a-input-number>
</span>
</a-table>
</div>
...
...
@@ -118,6 +134,13 @@ const columns = [
align
:
'center'
,
scopedSlots
:
{
customRender
:
'statisticsStatus'
}
},
{
title
:
'排序号'
,
width
:
100
,
dataIndex
:
'orderNumber'
,
align
:
'center'
,
scopedSlots
:
{
customRender
:
'orderNumber'
}
},
{
title
:
'项目款项(RMB)'
,
dataIndex
:
'charge'
,
align
:
'right'
,
scopedSlots
:
{
customRender
:
'wages'
}},
{
title
:
'操作'
,
key
:
'operation'
,
width
:
150
,
scopedSlots
:
{
customRender
:
'action'
},
align
:
'center'
}
]
...
...
@@ -131,6 +154,7 @@ export default {
query
:
{
name
:
""
,
status
:
""
,
statisticsStatus
:
""
,
order
:
""
,
sort
:
""
,
page
:
1
,
...
...
@@ -161,6 +185,7 @@ export default {
this
.
query
.
page
=
1
this
.
query
.
name
=
""
;
this
.
query
.
status
=
""
;
this
.
query
.
statisticsStatus
=
""
;
this
.
loadData
();
},
...
...
@@ -179,12 +204,17 @@ export default {
getPage
(
this
.
query
).
then
(
res
=>
{
if
(
res
&&
res
.
code
==
SYS_CONST
.
REQUEST
.
SUCCEED
)
{
let
respData
=
res
.
data
console
.
log
(
respData
)
let
list
=
respData
.
list
for
(
let
i
=
0
;
i
<
list
.
length
;
i
++
)
{
if
(
!
list
[
i
].
charge
)
{
list
[
i
].
charge
=
0
}
if
(
!
list
[
i
].
orderNumber
){
list
[
i
].
orderNumber
=
0
}
list
[
i
].
orgCharge
=
respData
.
list
[
i
].
charge
list
[
i
].
orgOrderNumber
=
respData
.
list
[
i
].
orderNumber
}
this
.
dataSource
=
list
;
this
.
total
=
respData
.
total
...
...
@@ -202,6 +232,15 @@ export default {
this
.
dataSource
=
newData
;
}
},
handleOrderChange
(
value
,
index
)
{
const
newData
=
[...
this
.
dataSource
];
const
target
=
newData
[
index
];
if
(
target
)
{
target
.
orderNumber
=
value
;
newData
[
index
].
changed
=
target
.
orgOrderNumber
!=
target
.
orderNumber
this
.
dataSource
=
newData
;
}
},
changeStatisticsStatus
(
record
,
index
)
{
updateStatus
(
record
.
id
).
then
(
response
=>
{
if
(
response
&&
response
.
code
==
SYS_CONST
.
REQUEST
.
SUCCEED
)
{
...
...
@@ -217,6 +256,7 @@ export default {
let
saveData
=
{
id
:
a
[
index
].
id
,
charge
:
a
[
index
].
charge
,
orderNumber
:
a
[
index
].
orderNumber
,
}
saveProjectCharge
(
saveData
).
then
(
resp
=>
{
if
(
resp
&&
resp
.
code
==
SYS_CONST
.
REQUEST
.
SUCCEED
)
{
...
...
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