Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
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
罗超
confucius
Commits
26c187f3
Commit
26c187f3
authored
Nov 17, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
ba9045f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
107 deletions
+67
-107
accountingWork.vue
src/pages/financial/accountingWork.vue
+6
-21
addFinancialProcess.vue
src/pages/financial/addFinancialProcess.vue
+61
-86
No files found.
src/pages/financial/accountingWork.vue
View file @
26c187f3
...
...
@@ -443,31 +443,16 @@
});
},
remoteMethod
(
query
)
{
console
.
log
(
'搜索'
);
let
msg
=
{
EmployeeName
:
query
}
queryEmployee
(
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
){
this
.
searchList
=
res
.
Data
;
}
}).
catch
(()
=>
{
queryEmployee
(
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
){
this
.
searchList
=
res
.
Data
;
}
}).
catch
(()
=>
{
})
// if (query !== '' || this.addShow) {
// this.loading2 = true;
// this.apipost("admin_Get_Chat_All_SelectEmpName", {
// EmName: query
// }, res => {
// if (res.data.resultCode == 1) {
// this.searchList = res.data.data;
// this.loading2 = false;
// }
// }, err => {});
// } else {
// this.searchList = [];
// this.loading2 = false;
// }
})
},
getList
()
{
this
.
loading
=
true
;
...
...
src/pages/financial/addFinancialProcess.vue
View file @
26c187f3
...
...
@@ -239,10 +239,10 @@
<div
class=
"approval_layer_info"
v-if=
"approvalType==2"
>
<div
class=
"normalMember"
>
<ul>
<li
v-for=
"item in showMember"
>
{{
item
.
Department
Name
}}
</li>
<li
v-for=
"item in showMember"
>
{{
item
.
Employee
Name
}}
</li>
</ul>
</div>
<input
type=
"button"
class=
"normalBtn"
@
click=
"getMember()
,mySetCheckedKeys(-1)
"
<input
type=
"button"
class=
"normalBtn"
@
click=
"getMember()"
:value=
"$t('fnc.tjchengyuan')"
/>
<div
style=
"margin: 10px 0;"
v-if=
"showMember.length>1"
>
<el-radio-group
v-model=
"AuditWay"
>
...
...
@@ -442,14 +442,14 @@
</el-input>
</p>
<el-tree
class=
'ApprovalProcessBg'
:data=
"memberList"
show-checkbox
:filter-node-method=
"filterNode"
ref=
"tree"
:props=
"defaultProps"
:render-after-expand=
"false"
node-key=
"
DepartmentId
"
@
check-change=
"handleNodeChange"
>
:props=
"defaultProps"
:render-after-expand=
"false"
node-key=
"
Id"
:check-on-click-node=
"true
"
@
check-change=
"handleNodeChange"
>
</el-tree>
</div>
<div
class=
"fl"
>
<p
style=
"margin: 0 0 20px 0;"
>
{{
$t
(
'fnc.yixuan'
)
}}
:
</p>
<div
class=
"Approval_yxList"
>
<li
v-for=
"
item in showMember"
>
{{
item
.
Department
Name
}}
<i
@
click=
"mySetCheckedKeys(item.
DepartmentId
)"
class=
"el-icon-circle-close showMemberIcon"
></i>
<li
v-for=
"
(item,index) in showMember"
>
{{
item
.
Employee
Name
}}
<i
@
click=
"mySetCheckedKeys(item.
Id,index
)"
class=
"el-icon-circle-close showMemberIcon"
></i>
</li>
</div>
</div>
...
...
@@ -531,6 +531,10 @@
import
Treeselect
from
'@riophae/vue-treeselect'
import
'@riophae/vue-treeselect/dist/vue-treeselect.css'
import
{
queryEmployee
}
from
'../../api/users/user'
export
default
{
components
:
{
Treeselect
...
...
@@ -656,7 +660,7 @@
defaultCheckedArr
:
[],
defaultProps
:
{
children
:
'ChildList'
,
label
:
'
Department
Name'
,
label
:
'
Employee
Name'
,
},
defaultProps1
:
{
// children: 'ChildList',
...
...
@@ -983,6 +987,7 @@
}
else
{
this
.
addMsg
.
list
=
this
.
accListMsg
}
this
.
addMsg
.
FinancialInstitutions
=
[];
if
(
this
.
BranchIdS
.
length
!=
0
)
{
//适用公司
this
.
BranchIdS
.
forEach
(
x
=>
{
if
(
x
==
-
1
)
{
...
...
@@ -1162,15 +1167,23 @@
}
},
addAuditUser
()
{
// 抄送人
let
_arr
=
this
.
sysUserKeys
.
concat
(
this
.
memberSetCheckedUserKeys
)
this
.
dialogTitle
=
this
.
$t
(
'fnc.xzrenyuan'
);
this
.
outerVisible2
=
true
;
let
_this
=
this
;
this
.
apipost
(
'WorkFlow_get_GetTempLateDepartMentEmployee'
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
userList
=
res
.
data
.
data
// let _arr = this.sysUserKeys.concat(this.memberSetCheckedUserKeys)
// this.dialogTitle = this.$t('fnc.xzrenyuan');
// this.outerVisible2 = true;
// let _this = this;
// this.apipost('WorkFlow_get_GetTempLateDepartMentEmployee', {}, res => {
// if (res.data.resultCode == 1) {
// this.userList = res.data.data
// }
// }, err => {})
queryEmployee
(
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
){
this
.
searchList
=
res
.
Data
;
}
},
err
=>
{})
}).
catch
(()
=>
{
})
},
checkedRole
(
data
,
checked
)
{
// 岗位选择+
if
(
data
.
DepartmentId
==
0
)
return
...
...
@@ -1439,62 +1452,42 @@
},
handleNodeChange
(
data
,
checked
)
{
data
.
IsCheck
=
checked
;
if
(
data
.
Type
==
2
&&
data
.
IsCheck
)
{
//是员工且选中
let
isExsit
=
false
this
.
showMember
.
forEach
(
x
=>
{
if
(
x
.
DepartmentId
==
data
.
DepartmentId
)
{
isExsit
=
true
return
false
}
})
if
(
!
isExsit
)
{
this
.
showMember
.
push
({
DepartmentName
:
data
.
DepartmentName
,
DepartmentId
:
data
.
DepartmentId
})
if
(
data
.
DepartmentId
!=
0
)
this
.
memberSetCheckedKeys
.
push
(
data
.
DepartmentId
)
}
}
else
if
(
data
.
Type
==
2
&&
!
data
.
IsCheck
)
{
if
(
this
.
showMember
.
findIndex
(
item
=>
item
.
DepartmentId
===
data
.
DepartmentId
)
!=
-
1
)
{
this
.
showMember
.
splice
(
this
.
showMember
.
findIndex
(
item
=>
item
.
DepartmentId
===
data
.
DepartmentId
),
1
)
this
.
memberSetCheckedKeys
.
splice
(
this
.
memberSetCheckedKeys
.
findIndex
(
item
=>
item
===
data
.
DepartmentId
),
1
)
if
(
this
.
showMember
.
findIndex
(
item
=>
item
.
DepartmentId
===
data
.
ParentId
)
!=
-
1
)
{
this
.
memberSetCheckedKeys
.
splice
(
this
.
memberSetCheckedKeys
.
findIndex
(
item
=>
item
===
data
.
ParentId
),
1
)
}
}
}
if
(
data
.
Type
!=
2
&&
data
.
IsCheck
)
{
if
(
this
.
memberSetCheckedKeys
.
findIndex
(
item
=>
item
===
data
.
DepartmentId
)
==
-
1
)
{
if
(
data
.
DepartmentId
!=
0
)
this
.
memberSetCheckedKeys
.
push
(
data
.
DepartmentId
)
}
}
else
if
(
data
.
Type
==
2
&&
!
data
.
IsCheck
)
{
if
(
this
.
memberSetCheckedKeys
.
findIndex
(
item
=>
item
===
data
.
DepartmentId
)
!=
-
1
)
{
this
.
memberSetCheckedKeys
.
splice
(
this
.
memberSetCheckedKeys
.
findIndex
(
item
=>
item
===
data
.
DepartmentId
),
1
)
if
(
this
.
showMember
.
findIndex
(
item
=>
item
.
DepartmentId
===
data
.
ParentId
)
!=
-
1
)
{
this
.
memberSetCheckedKeys
.
splice
(
this
.
memberSetCheckedKeys
.
findIndex
(
item
=>
item
===
data
.
ParentId
),
1
)
}
}
var
obj
=
{
EmployeeName
:
data
.
EmployeeName
,
Id
:
data
.
Id
}
let
res
=
this
.
$refs
.
tree
.
getCheckedNodes
(
true
,
true
);
this
.
showMember
=
res
;
},
mySetCheckedKeys
(
id
)
{
if
(
this
.
memberSetCheckedKeys
.
length
==
0
)
return
if
(
id
==
-
1
)
{
this
.
$refs
.
tree
.
setCheckedKeys
(
this
.
memberSetCheckedKeys
)
return
mySetCheckedKeys
(
id
,
index
)
{
var
arr
=
[];
this
.
showMember
.
splice
(
index
,
1
);
this
.
showMember
.
forEach
(
x
=>
{
arr
.
push
(
x
.
Id
);
})
if
(
this
.
$refs
.
tree
){
this
.
$refs
.
tree
.
setCheckedKeys
(
arr
);
}
this
.
showMember
.
splice
(
this
.
showMember
.
findIndex
(
item
=>
item
.
DepartmentId
===
id
),
1
)
this
.
memberSetCheckedKeys
.
splice
(
this
.
memberSetCheckedKeys
.
findIndex
(
item
=>
item
===
id
),
1
)
this
.
$refs
.
tree
.
setCheckedKeys
(
this
.
memberSetCheckedKeys
);
},
getMember
()
{
// 获取指定成员列表
console
.
log
(
this
.
showMember
,
'this.showMember'
);
this
.
outerVisible
=
true
;
this
.
dialogTitle
=
this
.
$t
(
'fnc.xzrenyuan'
);
this
.
apipost
(
'WorkFlow_get_GetTempLateDepartMentEmployee'
,
{},
res
=>
{
this
.
memberList
=
res
.
data
.
data
},
err
=>
{})
queryEmployee
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
){
this
.
memberList
=
res
.
Data
;
}
}).
catch
(()
=>
{
})
// console.log(this.showMember,'this.showMember');
var
arr
=
[];
this
.
showMember
.
forEach
(
x
=>
{
arr
.
push
(
x
.
Id
);
})
if
(
this
.
$refs
.
tree
){
this
.
$refs
.
tree
.
setCheckedKeys
(
arr
);
}
},
deleteItem
(
sort
)
{
// 删除已添加审批人
this
.
myAuditList
.
splice
(
this
.
myAuditList
.
findIndex
(
item
=>
item
.
Sort
===
sort
),
1
)
...
...
@@ -1503,7 +1496,7 @@
let
AuditList
=
{};
let
type
=
this
.
approvalType
if
(
this
.
AuditDescription
==
''
)
{
return
this
.
$message
.
error
(
this
.
$t
(
'tips.qtxjdmiaoshu'
)
)
return
this
.
$message
.
error
(
'请填写节点描述!'
)
}
if
(
type
==
1
)
{
AuditList
.
AuditType
=
type
;
...
...
@@ -1532,8 +1525,8 @@
let
Auu
=
[];
Au
.
forEach
((
item
,
index
)
=>
{
Auu
.
push
({
EmployeeId
:
item
.
Department
Id
,
emName
:
item
.
Department
Name
,
EmployeeId
:
item
.
Id
,
emName
:
item
.
Employee
Name
,
Sort
:
index
+
1
})
})
...
...
@@ -1546,10 +1539,10 @@
AuditList
.
AuditUserList
=
Auu
;
AuditList
.
SpecialNode
=
this
.
GetNodeValue
;
if
(
Auu
.
length
==
0
)
{
this
.
$message
.
error
(
this
.
$t
(
'tips.cybnweikong'
)
)
this
.
$message
.
error
(
'成员不能为空'
)
return
}
else
if
(
Auu
.
length
>
10
)
{
this
.
$message
.
error
(
this
.
$t
(
'tips.rsbncgtr'
)
)
this
.
$message
.
error
(
'rsbncgtr'
)
return
}
this
.
myAuditList
.
push
(
AuditList
);
...
...
@@ -1678,24 +1671,6 @@
},
clearValue
(
t
)
{
// 选择会计出纳窗口获取对应下拉
this
.
SpecialNodeSelectType
=
''
;
// 选择普通节点初始化 特殊节点 值
// if(t==5){
// this.WindowList = [];
// this.apipost('Window_post_GetWindowList',{Type:1},res=>{
// if(res.data.resultCode==1){
// let data = res.data.data;
// this.WindowList = data;
// }else{}
// },null)
// }
// if(t==6){
// this.WindowList = [];
// this.apipost('Window_post_GetWindowList',{Type:2},res=>{
// if(res.data.resultCode==1){
// let data = res.data.data;
// this.WindowList = data;
// }else{}
// },null)
// }
},
changeValue
(
value
)
{
...
...
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