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
1b6ed010
Commit
1b6ed010
authored
Feb 20, 2019
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改少价管理
parent
94ce4a74
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
LessPriceManagement.vue
src/components/systemManagement/LessPriceManagement.vue
+13
-11
No files found.
src/components/systemManagement/LessPriceManagement.vue
View file @
1b6ed010
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
<table
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
class=
"LP_table"
v-loading=
"this.loading"
>
<table
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
class=
"LP_table"
v-loading=
"this.loading"
>
<tr>
<tr>
<th
width=
"200"
>
公司
</th>
<th
width=
"200"
>
公司
</th>
<th
width=
"
40
0"
>
线路/系列
</th>
<th
width=
"
35
0"
>
线路/系列
</th>
<th>
所有人
</th>
<th>
所有人
</th>
<th>
部门主管
</th>
<th>
部门主管
</th>
<th>
分公司总经理
</th>
<th>
分公司总经理
</th>
...
@@ -88,17 +88,16 @@
...
@@ -88,17 +88,16 @@
</td>
</td>
<td>
<td>
<div
v-for=
"subItem in item.LessPriceList"
class=
"comLessDiv"
>
<div
v-for=
"subItem in item.LessPriceList"
class=
"comLessDiv"
>
<el-select
class=
'w150'
v-model=
"subItem.LineId"
filterable
:placeholder=
"$t('pub.pleaseSel')"
@
change=
"getLineTeamList(subItem)"
>
<el-select
class=
'w150'
v-model=
"subItem.LineId"
filterable
:placeholder=
"$t('pub.pleaseSel')"
@
change=
"getLineTeamList(subItem)
,resetLineTeamId(subItem)
"
>
<el-option
label=
"不限"
:value=
'commonSelect'
></el-option>
<el-option
label=
"不限"
:value=
'commonSelect'
></el-option>
<el-option
v-for=
"item in LineList"
:label=
'item.LineName'
:value=
'item.LineID'
:key=
'item.LineID'
>
<el-option
v-for=
"item in LineList"
:label=
'item.LineName'
:value=
'item.LineID'
:key=
'item.LineID'
>
</el-option>
</el-option>
</el-select>
</el-select>
{{
subItem
.
LineTeamList
}}
<el-select
class=
'w150'
v-model=
"subItem.LineTeamId"
filterable
:placeholder=
"$t('pub.pleaseSel')"
>
<!--
<el-select
class=
'w150'
v-model=
"subItem.LineTeamId"
filterable
:placeholder=
"$t('pub.pleaseSel')"
>
<el-option
label=
"不限"
:value=
'commonSelect'
></el-option>
<el-option
label=
"不限"
:value=
'commonSelect'
></el-option>
<el-option
v-for=
"sitem in subItem.LineTeamList"
:label=
'sitem.LtName'
:value=
'sitem.LtID'
:key=
'sitem.LtID'
>
<el-option
v-for=
"sitem in subItem.LineTeamList"
:label=
'sitem.LtName'
:value=
'sitem.LtID'
:key=
'sitem.LtID'
>
</el-option>
</el-option>
</el-select>
-->
</el-select>
</div>
</div>
</td>
</td>
<td>
<td>
...
@@ -152,12 +151,13 @@
...
@@ -152,12 +151,13 @@
methods
:
{
methods
:
{
//保存少价管理
//保存少价管理
SaveLessPrice
(
subItem
)
{
SaveLessPrice
(
subItem
)
{
subItem
.
LineTeamList
=
[];
this
.
apipost
(
this
.
apipost
(
"lessprice_post_Set"
,
subItem
,
"lessprice_post_Set"
,
subItem
,
res
=>
{
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
res
.
data
.
message
);
this
.
Success
(
res
.
data
.
message
);
//
this.getList();
this
.
getList
();
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
);
this
.
Error
(
res
.
data
.
message
);
}
}
...
@@ -166,7 +166,7 @@
...
@@ -166,7 +166,7 @@
);
);
},
},
//获取列表
//获取列表
GetLess
List
()
{
get
List
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
var
that
=
this
;
var
that
=
this
;
that
.
apipost
(
that
.
apipost
(
...
@@ -181,7 +181,6 @@
...
@@ -181,7 +181,6 @@
})
})
})
})
that
.
dataList
=
data
;
that
.
dataList
=
data
;
console
.
log
(
that
.
dataList
,
'resssss'
);
}
else
{
}
else
{
that
.
Error
(
res
.
data
.
message
);
that
.
Error
(
res
.
data
.
message
);
}
}
...
@@ -205,7 +204,7 @@
...
@@ -205,7 +204,7 @@
res
=>
{
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
Success
(
"操作成功!"
);
that
.
Success
(
"操作成功!"
);
//
that.getList();
that
.
getList
();
}
else
{
}
else
{
that
.
Error
(
res
.
data
.
message
);
that
.
Error
(
res
.
data
.
message
);
}
}
...
@@ -231,11 +230,14 @@
...
@@ -231,11 +230,14 @@
isTOOP
:
1
isTOOP
:
1
},
res
=>
{
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
//subItem.LineTeamId = 0;
subItem
.
LineTeamList
=
res
.
data
.
data
;
subItem
.
LineTeamList
=
res
.
data
.
data
;
}
}
});
});
},
},
//系列重置默认不限
resetLineTeamId
(
subItem
){
subItem
.
LineTeamId
=
0
;
},
//点击添加
//点击添加
addLessPrice
(
item
){
addLessPrice
(
item
){
var
obj
=
{
var
obj
=
{
...
@@ -260,7 +262,7 @@
...
@@ -260,7 +262,7 @@
},
},
mounted
()
{
mounted
()
{
this
.
getLineList
();
this
.
getLineList
();
this
.
GetLess
List
();
this
.
get
List
();
},
},
};
};
...
...
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