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
4ae6bbb5
Commit
4ae6bbb5
authored
Apr 29, 2019
by
huangyuanyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
1becd9f4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
439 additions
and
0 deletions
+439
-0
SalesTravelCoupomPlanList.vue
...ts/TravelManager/TravelList/SalesTravelCoupomPlanList.vue
+113
-0
TravelCoupomPlanList.vue
src/components/activity/TravelCoupomPlanList.vue
+113
-0
TravelInfoSalesList.vue
src/components/activity/TravelInfoSalesList.vue
+213
-0
No files found.
src/components/TravelManager/TravelList/SalesTravelCoupomPlanList.vue
0 → 100644
View file @
4ae6bbb5
<
style
>
.user_time_picker
.el-date-editor--date
>
.el-input__inner
{
padding
:
0
10px
;
font-size
:
13px
;
}
.user_time_picker
.el-date-editor--date
>
span
.el-input__prefix
{
display
:
none
;
}
.user_time_picker
.el-date-editor--date
>
span
.el-input__suffix
{
top
:
-4px
;
right
:
2px
;
}
.zidingyiFz
i
{
font-size
:
14px
!important
;}
.TravelInfoList
.choose_form
.el-form-item
{
display
:
inline-block
;
}
.TravelInfoList
.info_details
p
{
padding
:
4px
0
;
}
</
style
>
<
template
>
<div
class=
"TravelInfoList flexOne"
>
<div
class=
"query-box"
>
<div
style=
"overflow:auto"
>
<!--
<input
type=
"button"
class=
"normalBtn"
value=
"查询"
style=
"float:right"
@
click=
"getList"
/>
-->
</div>
</div>
<div
class=
"clearfix"
></div>
<!--
<div
style=
"margin: 10px 0;"
class=
"fz14 color333"
>
{{
$t
(
'adm.adm_Validaccount'
)
}}
:
<span
class=
"colorE95252"
>
{{
UseNum
}}
</span>
账号限额:
<span
class=
"colorE95252"
>
{{
TotalNum
}}
</span></div>
-->
<table
class=
"singeRowTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
<tr>
<th>
团期ID
</th>
<th>
部门名称
</th>
<th>
销售姓名
</th>
<th>
公司名称
</th>
<th>
采用状态
</th>
</tr>
<tr
v-for=
"(item,index) in DataList"
:key=
"index"
v-loading=
'loading'
>
<td>
{{
item
.
tcid
}}
</td>
<td>
{{
item
.
departmentName
}}
</td>
<td>
{{
item
.
salseName
}}
</td>
<td>
{{
item
.
companyName
}}
</td>
<td>
<span
v-if=
"item.planUseStatus==1"
>
未采用
</span>
<span
v-if=
"item.planUseStatus==2"
>
采用
</span>
<span
v-if=
"item.planUseStatus==3"
>
不合适
</span>
</td>
</tr>
</table>
<div
class=
"noData"
v-if=
"DataList.length==0"
>
暂无数据
</div>
<!--
<el-pagination
background
@
current-change=
"handleCurrentChange"
layout=
"total,prev, pager, next, jumper"
:page-size=
form.pageSize
:total=
total
>
</el-pagination>
-->
</div>
</
template
>
<
script
>
import
moment
from
"moment"
export
default
{
data
()
{
return
{
total
:
0
,
DataList
:[],
loading
:
false
,
customId
:
0
,
}
},
mounted
()
{
this
.
customId
=
this
.
$route
.
query
.
customId
;
let
userInfo
=
this
.
getLocalStorage
();
this
.
getList
();
},
filters
:{
YearMD
(
val
){
let
str
=
""
;
if
(
val
){
str
=
moment
(
val
).
format
(
"YYYY-MM-DD"
)
}
return
str
;
},
},
methods
:
{
getList
()
{
//获取数据
this
.
loading
=
true
,
this
.
apiJavaPost
(
"/api/dmc/travelCoupom/getSalesTravelCoupomPlanList"
,{
customId
:
this
.
customId
},
res
=>
{
console
.
log
(
"res"
,
res
);
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
DataList
=
res
.
data
.
data
.
pageData
;
this
.
total
=
res
.
data
.
data
.
count
;
}
else
{
this
.
Error
(
res
.
data
.
message
)
}
},
null
);
},
// handleCurrentChange(val){
// this.form.pageIndex=val;
// this.getList();
// },
}
}
</
script
>
\ No newline at end of file
src/components/activity/TravelCoupomPlanList.vue
0 → 100644
View file @
4ae6bbb5
<
style
>
.user_time_picker
.el-date-editor--date
>
.el-input__inner
{
padding
:
0
10px
;
font-size
:
13px
;
}
.user_time_picker
.el-date-editor--date
>
span
.el-input__prefix
{
display
:
none
;
}
.user_time_picker
.el-date-editor--date
>
span
.el-input__suffix
{
top
:
-4px
;
right
:
2px
;
}
.zidingyiFz
i
{
font-size
:
14px
!important
;}
.TravelInfoList
.choose_form
.el-form-item
{
display
:
inline-block
;
}
.TravelInfoList
.info_details
p
{
padding
:
4px
0
;
}
</
style
>
<
template
>
<div
class=
"TravelInfoList flexOne"
>
<div
class=
"query-box"
>
<div
style=
"overflow:auto"
>
<!--
<input
type=
"button"
class=
"normalBtn"
value=
"查询"
style=
"float:right"
@
click=
"getList"
/>
-->
</div>
</div>
<div
class=
"clearfix"
></div>
<!--
<div
style=
"margin: 10px 0;"
class=
"fz14 color333"
>
{{
$t
(
'adm.adm_Validaccount'
)
}}
:
<span
class=
"colorE95252"
>
{{
UseNum
}}
</span>
账号限额:
<span
class=
"colorE95252"
>
{{
TotalNum
}}
</span></div>
-->
<table
class=
"singeRowTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
<tr>
<th>
团期ID
</th>
<th>
部门名称
</th>
<th>
销售姓名
</th>
<th>
公司名称
</th>
<th>
采用状态
</th>
</tr>
<tr
v-for=
"(item,index) in DataList"
:key=
"index"
v-loading=
'loading'
>
<td>
{{
item
.
tcid
}}
</td>
<td>
{{
item
.
departmentName
}}
</td>
<td>
{{
item
.
salseName
}}
</td>
<td>
{{
item
.
companyName
}}
</td>
<td>
<span
v-if=
"item.planUseStatus==1"
>
未采用
</span>
<span
v-if=
"item.planUseStatus==2"
>
采用
</span>
<span
v-if=
"item.planUseStatus==3"
>
不合适
</span>
</td>
</tr>
</table>
<div
class=
"noData"
v-if=
"DataList.length==0"
>
暂无数据
</div>
<!--
<el-pagination
background
@
current-change=
"handleCurrentChange"
layout=
"total,prev, pager, next, jumper"
:page-size=
form.pageSize
:total=
total
>
</el-pagination>
-->
</div>
</
template
>
<
script
>
import
moment
from
"moment"
export
default
{
data
()
{
return
{
total
:
0
,
DataList
:[],
loading
:
false
,
customId
:
0
,
}
},
mounted
()
{
this
.
customId
=
this
.
$route
.
query
.
customId
;
let
userInfo
=
this
.
getLocalStorage
();
this
.
getList
();
},
filters
:{
YearMD
(
val
){
let
str
=
""
;
if
(
val
){
str
=
moment
(
val
).
format
(
"YYYY-MM-DD"
)
}
return
str
;
},
},
methods
:
{
getList
()
{
//获取数据
this
.
loading
=
true
,
this
.
apiJavaPost
(
"/api/dmc/travelCoupom/getTravelCoupomPlanList"
,{
customId
:
this
.
customId
},
res
=>
{
console
.
log
(
"res"
,
res
);
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
DataList
=
res
.
data
.
data
.
pageData
;
this
.
total
=
res
.
data
.
data
.
count
;
}
else
{
this
.
Error
(
res
.
data
.
message
)
}
},
null
);
},
// handleCurrentChange(val){
// this.form.pageIndex=val;
// this.getList();
// },
}
}
</
script
>
\ No newline at end of file
src/components/activity/TravelInfoSalesList.vue
0 → 100644
View file @
4ae6bbb5
<
style
>
.user_time_picker
.el-date-editor--date
>
.el-input__inner
{
padding
:
0
10px
;
font-size
:
13px
;
}
.user_time_picker
.el-date-editor--date
>
span
.el-input__prefix
{
display
:
none
;
}
.user_time_picker
.el-date-editor--date
>
span
.el-input__suffix
{
top
:
-4px
;
right
:
2px
;
}
.zidingyiFz
i
{
font-size
:
14px
!important
;}
.TravelInfoList
.choose_form
.el-form-item
{
display
:
inline-block
;
}
.TravelInfoList
.info_details
p
{
padding
:
4px
0
;
}
</
style
>
<
template
>
<div
class=
"TravelInfoList flexOne"
>
<div
class=
"query-box"
>
<div
style=
"overflow:auto"
>
<input
type=
"button"
class=
"normalBtn"
value=
"新增"
style=
"float:right"
@
click=
"Visible=true"
/>
</div>
</div>
<div
class=
"clearfix"
></div>
<!--
<div
style=
"margin: 10px 0;"
class=
"fz14 color333"
>
{{
$t
(
'adm.adm_Validaccount'
)
}}
:
<span
class=
"colorE95252"
>
{{
UseNum
}}
</span>
账号限额:
<span
class=
"colorE95252"
>
{{
TotalNum
}}
</span></div>
-->
<table
class=
"singeRowTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
<tr>
<th>
销售姓名
</th>
<th>
方案总量
</th>
<th>
采用方案数量
</th>
<th>
分配日期
</th>
<th>
操作
</th>
</tr>
<tr
v-for=
"(item,index) in DataList"
:key=
"index"
v-loading=
'loading'
>
<td>
{{
item
.
salseName
}}
</td>
<td>
{{
item
.
planCount
}}
</td>
<td>
{{
item
.
usePlanCount
}}
</td>
<td>
{{
item
.
createDate
|
YearMD
}}
</td>
<td>
<!--
<el-tooltip
class=
"item"
effect=
"dark"
content=
"查看详情"
placement=
"top"
>
<el-button
type=
"success"
icon=
"el-icon-star-off"
circle
@
click=
"travel=true,GetDes(item)"
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"分配定制师"
placement=
"top"
>
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
@
click=
"Visible=true,Edit(item)"
></el-button>
</el-tooltip>
-->
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top"
>
<el-button
@
click=
"Delete(item)"
type=
"danger"
class=
'zidingyiFz'
icon=
"el-icon-delete"
circle
></el-button>
</el-tooltip>
</td>
</tr>
</table>
<el-pagination
background
@
current-change=
"handleCurrentChange"
layout=
"total,prev, pager, next, jumper"
:page-size=
form.pageSize
:total=
total
>
</el-pagination>
<el-dialog
custom-class=
'w400'
title=
"分配定制师"
:visible
.
sync=
"Visible"
>
<el-form
:model=
"pwdMsg"
label-width=
"80px"
>
<el-form-item
label=
"销售"
>
<el-select
v-model=
"pwdMsg.salesId"
filterable
placeholder=
"请选择销售"
>
<el-option
label=
"不限"
:value=
"0"
></el-option>
<el-option
v-for=
"item in saleList"
:label=
"`$
{item.bName} ${item.departmentName}(${item.name})`"
:value="item.employeeId"
:key="item.employeeId"
>
</el-option>
</el-select>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<button
class=
"hollowFixedBtn"
@
click=
"Visible=false"
>
取消
</button>
<button
class=
"normalBtn"
@
click=
"submitForm1"
>
确定
</button>
</div>
</el-dialog>
</div>
</
template
>
<
script
>
import
moment
from
"moment"
export
default
{
data
()
{
return
{
travelLoading
:
false
,
total
:
0
,
ruleForm
:{},
travel
:
false
,
form
:{
customId
:
0
,
pageIndex
:
1
,
pageSize
:
15
},
Visible
:
false
,
total
:
0
,
DataList
:[],
loading
:
false
,
pwdMsg
:{
salesId
:
0
,
customId
:
0
,
},
employee
:[],
saleList
:[],
}
},
created
(){
this
.
form
.
customId
=
this
.
$route
.
query
.
customId
;
this
.
pwdMsg
.
customId
=
this
.
$route
.
query
.
customId
;
},
mounted
()
{
let
userInfo
=
this
.
getLocalStorage
();
this
.
getList
();
this
.
getSaleList
();
},
filters
:{
YearMD
(
val
){
let
str
=
""
;
if
(
val
){
str
=
moment
(
val
).
format
(
"YYYY-MM-DD"
)
}
return
str
;
},
},
methods
:
{
Gourl
(
item
){
console
.
log
(
item
);
this
.
$router
.
push
({
name
:
'TravelInfoList'
,
query
:
{
customId
:
item
.
customId
,
blank
:
"y"
,
tab
:
"行程定制分配销售"
}
});
},
getSaleList
(){
this
.
apiJavaPost
(
"/api/user/employee/getAllSalesList"
,{},
res
=>
{
// console.log(res);
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
saleList
=
res
.
data
.
data
;
}
else
{
this
.
Error
(
res
.
data
.
message
)
}
},
null
);
},
ResetPwdForm
(){
this
.
pwdMsg
=
{
customId
:
-
1
,
}
},
submitForm1
()
{
if
(
this
.
pwdMsg
.
sales
==
0
){
this
.
Error
(
"请选择销售!"
);
return
;
}
this
.
apiJavaPost
(
"/api/dmc/travelCoupom/travelCoupomAllotSales"
,
this
.
pwdMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
Success
(
res
.
data
.
message
)
this
.
Visible
=
false
;
this
.
getList
();
}
else
{
this
.
Error
(
res
.
data
.
message
)
}
},
null
);
},
Delete
(
item
){
// cosnoe
this
.
$confirm
(
'是否删除?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
apiJavaPost
(
"/api/dmc/travelCoupom/cancelTravelCoupomAllotSales"
,{
allotId
:
item
.
allotId
},
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
Success
(
res
.
data
.
message
)
this
.
getList
();
}
else
{
this
.
Error
(
res
.
data
.
message
)
}
},
null
);
}).
catch
(()
=>
{
});
},
getList
()
{
//获取数据
this
.
loading
=
true
,
this
.
apiJavaPost
(
"/api/dmc/travelCoupom/getTravelCoupomSalesList"
,
this
.
form
,
res
=>
{
console
.
log
(
"res"
,
res
);
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
DataList
=
res
.
data
.
data
.
pageData
;
this
.
total
=
res
.
data
.
data
.
count
;
}
else
{
this
.
Error
(
res
.
data
.
message
)
}
},
null
);
},
handleCurrentChange
(
val
){
this
.
form
.
pageIndex
=
val
;
this
.
getList
();
},
}
}
</
script
>
\ No newline at end of file
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