Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
3fcd6391
Commit
3fcd6391
authored
Nov 04, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
151a5169
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
10 deletions
+45
-10
project.vue
src/components/FinancialModule/Kingdee/project.vue
+45
-10
No files found.
src/components/FinancialModule/Kingdee/project.vue
View file @
3fcd6391
...
...
@@ -133,11 +133,16 @@
</el-form-item>
</el-col>
-->
<el-col
:span=
"4"
>
<el-form-item
label=
"公司"
prop=
"TargetId"
>
<el-form-item
v-if=
"titleType==1"
label=
"公司"
prop=
"TargetId"
>
<el-select
filterable
v-model=
'addMsg.TargetId'
@
change=
"getType"
>
<el-option
v-for=
"item in CompanyList"
:key=
"item.Id"
:value=
"item.Id"
:label=
"item.BName"
></el-option>
</el-select>
</el-form-item>
<el-form-item
v-else
label=
"职员"
prop=
"TargetId"
>
<el-select
filterable
v-model=
'addMsg.TargetId'
@
change=
"getType"
>
<el-option
v-for=
"item in EmployeeList"
:key=
"item.EmployeeId"
:value=
"item.EmployeeId"
:label=
"item.EmName"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item
label=
"代码"
prop=
"ItemCode"
>
...
...
@@ -171,7 +176,7 @@
rules
:
{
//表单必填验证
TargetId
:
[{
required
:
true
,
message
:
'
请选择公司名称
'
,
message
:
''
,
trigger
:
'change'
}],
ItemCode
:
[{
...
...
@@ -211,9 +216,17 @@
loading
:
false
,
CompanyList
:[],
getCompanyMsg
:{
// 公司
RB_Group_Id
:
'0'
,
Status
:
'0'
,
},
RB_Group_Id
:
'0'
,
Status
:
'0'
,
},
employeeMsg
:{
// 员工
GroupId
:
''
,
BranchId
:
-
1
,
DepartmentId
:
0
,
PostId
:
0
,
IsLeave
:
0
,
},
EmployeeList
:[]
}
},
created
()
{
...
...
@@ -221,6 +234,7 @@
this
.
getCompanyMsg
.
RB_Group_Id
=
userInfo
.
RB_Group_id
;
//集团ID
this
.
getList
();
this
.
getCompanyList
()
this
.
getEmployee
()
},
mounted
()
{
...
...
@@ -262,16 +276,37 @@
}
else
{}
},
err
=>
{})
},
getEmployee
()
{
//员工
this
.
apipost
(
'admin_get_EmployeeGetList'
,
this
.
employeeMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
EmployeeList
=
res
.
data
.
data
;
}
},
err
=>
{})
},
// 获取金蝶项目名称
getType
(
ID
){
this
.
CompanyList
.
forEach
(
item
=>
{
if
(
item
.
Id
==
ID
){
this
.
addMsg
.
TargetName
=
item
.
BName
}
})
// 1公司 2职员
if
(
this
.
titleType
==
1
){
this
.
CompanyList
.
forEach
(
item
=>
{
if
(
item
.
Id
==
ID
){
this
.
addMsg
.
TargetName
=
item
.
BName
}
})
}
else
{
this
.
EmployeeList
.
forEach
(
item
=>
{
if
(
item
.
EmployeeId
==
ID
){
this
.
addMsg
.
TargetName
=
item
.
EmName
}
})
}
},
submitForm
(
addMsg
)
{
//提交创建、修改表单
let
that
=
this
;
if
(
this
.
titleType
==
1
){
this
.
rules
.
TargetId
[
0
].
message
=
'请选择公司名称'
}
else
{
this
.
rules
.
TargetId
[
0
].
message
=
'请选择职员名称'
}
that
.
$refs
[
addMsg
].
validate
((
valid
)
=>
{
if
(
valid
)
{
that
.
addFlightmodule
()
...
...
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