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
78c736d0
Commit
78c736d0
authored
Sep 09, 2019
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
5dff5bee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
OPRules.vue
src/components/FinancialModule/OPRules.vue
+12
-10
No files found.
src/components/FinancialModule/OPRules.vue
View file @
78c736d0
...
@@ -87,13 +87,14 @@
...
@@ -87,13 +87,14 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"参与人员"
>
<el-form-item
label=
"参与人员"
>
<el-select
class=
"multiple_input"
filterable
multiple
collapse-tags
v-model=
"form.EmployeeIdList"
>
<el-select
class=
"multiple_input"
filterable
multiple
collapse-tags
v-model=
"form.EmployeeIdList"
>
<el-option
label=
'全部'
:value=
'-1'
></el-option>
<el-option
v-for=
"item in EmployeeList"
:label=
"item.EmName"
<el-option
v-for=
"item in EmployeeList"
:label=
"item.EmName"
:value=
"item.EmployeeId"
:key=
"item.EmployeeId"
></el-option>
:value=
"item.EmployeeId"
:key=
"item.EmployeeId"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"部门"
>
<el-form-item
label=
"部门"
>
<el-select
filterable
v-model=
"form.DepartmentId"
>
<el-select
filterable
v-model=
"form.DepartmentId"
@
change=
'getDepart(form.DepartmentId)'
>
<el-option
label=
'全部'
:value=
'-1'
:key=
'-1'
></el-option>
<el-option
label=
'全部'
:value=
'-1'
></el-option>
<el-option
v-for=
"item in departmentList"
:label=
"item.DepartmentName"
<el-option
v-for=
"item in departmentList"
:label=
"item.DepartmentName"
:value=
"item.DepartmentID"
:key=
"item.DepartmentID"
></el-option>
:value=
"item.DepartmentID"
:key=
"item.DepartmentID"
></el-option>
</el-select>
</el-select>
...
@@ -147,7 +148,7 @@ export default {
...
@@ -147,7 +148,7 @@ export default {
ruleVisible
:
false
,
ruleVisible
:
false
,
form
:{
form
:{
BranchId
:
""
,
BranchId
:
""
,
DepartmentId
:
''
,
DepartmentId
:
-
1
,
Description
:
""
,
Description
:
""
,
EmployeeIdList
:[],
EmployeeIdList
:[],
LineIdList
:[],
LineIdList
:[],
...
@@ -222,7 +223,6 @@ export default {
...
@@ -222,7 +223,6 @@ export default {
}
}
},
},
SetRules
(
item
){
SetRules
(
item
){
console
.
log
(
item
);
this
.
ruleVisible
=
true
;
this
.
ruleVisible
=
true
;
this
.
form
=
{
this
.
form
=
{
Id
:
item
.
Id
,
Id
:
item
.
Id
,
...
@@ -235,13 +235,14 @@ export default {
...
@@ -235,13 +235,14 @@ export default {
ManagerMoney
:
item
.
ManagerMoney
,
ManagerMoney
:
item
.
ManagerMoney
,
DepartmentId
:
item
.
DepartmentId
DepartmentId
:
item
.
DepartmentId
}
}
// console.log("item",item);
// console.log("form",this.form);
this
.
departmentMsg
.
RB_Branch_Id
=
item
.
BranchId
;
this
.
departmentMsg
.
RB_Branch_Id
=
item
.
BranchId
;
this
.
getDepartment
();
this
.
getDepartment
();
this
.
getLineTeamList
();
this
.
getLineTeamList
();
},
},
RulesOk
(
formName
){
RulesOk
(
formName
){
if
(
this
.
form
.
EmployeeIdList
.
length
==
0
){
this
.
form
.
EmployeeIdList
.
push
(
-
1
)
}
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
apipost
(
this
.
apipost
(
...
@@ -300,11 +301,9 @@ export default {
...
@@ -300,11 +301,9 @@ export default {
let
msg
=
{
let
msg
=
{
lineID
:
this
.
form
.
LineIdList
[
0
],
lineID
:
this
.
form
.
LineIdList
[
0
],
}
}
console
.
log
(
" this.form.LineIdList[0]"
,
this
.
form
.
LineIdList
[
0
])
this
.
apipost
(
'team_post_GetList'
,
msg
,
res
=>
{
this
.
apipost
(
'team_post_GetList'
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
LineTeamList
=
res
.
data
.
data
;
this
.
LineTeamList
=
res
.
data
.
data
;
console
.
log
(
"this.LineTeamList"
,
this
.
LineTeamList
)
}
}
})
})
},
},
...
@@ -339,9 +338,14 @@ export default {
...
@@ -339,9 +338,14 @@ export default {
linkageDepartment
(){
linkageDepartment
(){
this
.
departmentMsg
.
RB_Branch_Id
=
this
.
form
.
BranchId
;
this
.
departmentMsg
.
RB_Branch_Id
=
this
.
form
.
BranchId
;
this
.
departmentList
=
[];
this
.
form
.
DepartmentId
=-
1
;
this
.
form
.
DepartmentId
=-
1
;
this
.
getDepartment
();
this
.
getDepartment
();
},
},
getDepart
(
id
){
this
.
form
.
DepartmentId
=
id
;
this
.
$forceUpdate
();
},
getDepartment
()
{
getDepartment
()
{
this
.
apipost
(
'admin_get_DepartmentGetList'
,
this
.
departmentMsg
,
res
=>
{
this
.
apipost
(
'admin_get_DepartmentGetList'
,
this
.
departmentMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
...
@@ -352,11 +356,9 @@ export default {
...
@@ -352,11 +356,9 @@ export default {
getList
(){
getList
(){
this
.
loading
=
true
;
this
.
loading
=
true
;
this
.
apipost
(
"sellcommission_GetOPCommissionRuleList"
,
this
.
obj
,
res
=>
{
this
.
apipost
(
"sellcommission_GetOPCommissionRuleList"
,
this
.
obj
,
res
=>
{
// console.log("ressfaf",res);
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
dataList
=
res
.
data
.
data
;
this
.
dataList
=
res
.
data
.
data
;
console
.
log
(
this
.
dataList
,
'dataList'
);
}
}
});
});
},
},
...
...
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