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
274bbd7a
Commit
274bbd7a
authored
May 16, 2024
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
065c2aac
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
5 deletions
+36
-5
project.vue
src/components/FinancialModule/Kingdee/project.vue
+36
-5
No files found.
src/components/FinancialModule/Kingdee/project.vue
View file @
274bbd7a
...
...
@@ -81,7 +81,7 @@
style=
"border:1px solid #E6E6E6;"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
>
<tr>
<th
width=
"260px"
>
{{
titleType
==
1
?
'公司名称'
:
'员工名称
'
}}
</th>
<th
width=
"260px"
>
{{
titleType
==
1
?
'公司名称'
:
titleType
==
2
?
'员工名称'
:
'预存客户
'
}}
</th>
<th>
项目名称
</th>
<th>
代码
</th>
<th
width=
"150px"
>
{{
$t
(
'hotel.table_operat'
)
}}
</th>
...
...
@@ -135,11 +135,16 @@
<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-form-item
v-
if=
"titleType==2"
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-form-item
v-if=
"titleType==4"
label=
"预存客户"
prop=
"TargetId"
>
<el-select
filterable
v-model=
'addMsg.TargetId'
@
change=
"getType"
>
<el-option
v-for=
"item in YCClientList"
:key=
"item.CustomerId"
:value=
"item.CustomerId"
:label=
"item.CustomerName+'/'+item.Contact"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item
label=
"代码"
prop=
"ItemCode"
>
...
...
@@ -204,6 +209,10 @@
{
Name
:
'职员'
,
Id
:
2
},
{
Name
:
'预存客户'
,
Id
:
4
}
],
msg
:
{
...
...
@@ -223,7 +232,8 @@
PostId
:
0
,
IsLeave
:
0
,
},
EmployeeList
:[]
EmployeeList
:[],
YCClientList
:[],
}
},
created
()
{
...
...
@@ -232,6 +242,7 @@
this
.
getList
();
this
.
getCompanyList
()
this
.
getEmployee
()
this
.
getYCClient
()
},
mounted
()
{
...
...
@@ -291,6 +302,13 @@
}
},
err
=>
{})
},
getYCClient
()
{
//预存客户
this
.
apipost
(
'Financial_post_GetFinanceDepositPageList'
,
{
ClientIdStr
:
""
,
QEndDate
:
""
,
QStartDate
:
""
,
RB_Branch_Id
:
-
1
,
RemitterName
:
""
,
pageIndex
:
1
,
pageSize
:
1000
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
YCClientList
=
res
.
data
.
data
.
pageData
;
}
},
err
=>
{})
},
// 获取金蝶项目名称
getType
(
ID
){
// 1公司 2职员
...
...
@@ -300,21 +318,28 @@
this
.
addMsg
.
TargetName
=
item
.
BName
}
})
}
else
{
}
else
if
(
this
.
titleType
==
2
)
{
this
.
EmployeeList
.
forEach
(
item
=>
{
if
(
item
.
EmployeeId
==
ID
){
this
.
addMsg
.
TargetName
=
item
.
EmName
}
})
}
else
{
this
.
YCClientList
.
forEach
(
item
=>
{
if
(
item
.
CustomerId
==
ID
){
this
.
addMsg
.
TargetName
=
item
.
CustomerName
+
'/'
+
item
.
Contact
}
})
}
},
submitForm
(
addMsg
)
{
//提交创建、修改表单
let
that
=
this
;
if
(
this
.
titleType
==
1
){
this
.
rules
.
TargetId
[
0
].
message
=
'请选择公司名称'
}
else
{
}
else
if
(
this
.
titleType
==
2
)
{
this
.
rules
.
TargetId
[
0
].
message
=
'请选择职员名称'
}
else
{
this
.
rules
.
TargetId
[
0
].
message
=
'请选择预存名称'
}
that
.
$refs
[
addMsg
].
validate
((
valid
)
=>
{
if
(
valid
)
{
that
.
addFlightmodule
()
...
...
@@ -376,6 +401,9 @@
if
(
this
.
titleType
==
2
)
{
this
.
text
=
'编辑金蝶职员项目'
}
if
(
this
.
titleType
==
4
)
{
this
.
text
=
'编辑金蝶预存客户项目'
}
this
.
addMsg
=
JSON
.
parse
(
JSON
.
stringify
(
item
))
}
else
{
if
(
this
.
titleType
==
1
)
{
...
...
@@ -384,6 +412,9 @@
if
(
this
.
titleType
==
2
)
{
this
.
text
=
'新增金蝶职员项目'
}
if
(
this
.
titleType
==
4
)
{
this
.
text
=
'新增金蝶预存客户项目'
}
}
this
.
addShow
=
true
},
...
...
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