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
c9bfdf02
Commit
c9bfdf02
authored
May 07, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增同步信息到车行
parent
241ed32e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
93 additions
and
39 deletions
+93
-39
dmcTotalTable.vue
src/components/dmc/manager/dmcTotalTable.vue
+93
-39
No files found.
src/components/dmc/manager/dmcTotalTable.vue
View file @
c9bfdf02
...
@@ -140,14 +140,14 @@
...
@@ -140,14 +140,14 @@
</li>
</li>
<li>
<li>
<input
type=
"button"
class=
"normalBtn"
:value=
"$t('pub.searchBtn')"
@
click=
"getList();resetPageIndex()"
/>
<input
type=
"button"
class=
"normalBtn"
:value=
"$t('pub.searchBtn')"
@
click=
"getList();resetPageIndex()"
/>
<input
type=
"button"
class=
"normalBtn"
:value=
"$t('adm.adm_download')"
@
click=
"DownLoad.ShowDownLoad=true"
/>
<input
type=
"button"
class=
"normalBtn"
:value=
"$t('adm.adm_download')"
@
click=
"DownLoad.ShowDownLoad=true"
/>
</li>
</li>
</ul>
</ul>
</div>
</div>
<div
class=
"mt10 fz14 color333 dmcTotalIconStyle"
>
<div
class=
"mt10 fz14 color333 dmcTotalIconStyle"
>
{{
$t
(
'ground.yiqueding'
)
}}
:
<span
style=
"color:#4BCA81 ;"
>
√
</span>
{{
$t
(
'ground.daiqueding'
)
}}
:
<span
{{
$t
(
'ground.yiqueding'
)
}}
:
<span
style=
"color:#4BCA81 ;"
>
√
</span>
{{
$t
(
'ground.daiqueding'
)
}}
:
<span
style=
"color: #E95252;"
>
O
</span>
{{
$t
(
'salesModule.NotDeal'
)
}}
:
<span
style=
"color:#E95252 ;"
>
X
</span>
style=
"color: #E95252;"
>
O
</span>
{{
$t
(
'salesModule.NotDeal'
)
}}
:
<span
style=
"color:#E95252 ;"
>
X
</span>
<span
style=
"font-size: 12px; float: right;"
>
*注意领队交接表一定要在出团日期前维护(需点击保存),否则此团所有操作无提成
</span>
<span
style=
"font-size: 12px; float: right;"
>
*注意领队交接表一定要在出团日期前维护(需点击保存),否则此团所有操作无提成
</span>
</div>
</div>
<div
style=
"width: 100%; overflow-x: auto;padding-bottom: 10px; margin-top: 10px; "
class=
"ownScrollbarStyle"
>
<div
style=
"width: 100%; overflow-x: auto;padding-bottom: 10px; margin-top: 10px; "
class=
"ownScrollbarStyle"
>
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
...
@@ -343,7 +343,8 @@
...
@@ -343,7 +343,8 @@
<span
style=
"color: #4BCA81;"
v-if=
"item.HotelResult==1"
>
√
</span>
<span
style=
"color: #4BCA81;"
v-if=
"item.HotelResult==1"
>
√
</span>
<span
class=
"colorE95252"
v-else
>
{{
item
.
HotelResult
==
'-1'
?
"x"
:
"O"
}}
</span>
<span
class=
"colorE95252"
v-else
>
{{
item
.
HotelResult
==
'-1'
?
"x"
:
"O"
}}
</span>
</div>
</div>
<p
v-if=
"item.LineId==14 && item.PriceHotelResult && item.PriceHotelResult.length>0"
>
<p
v-if=
"(item.LineId==14||item.LineId==118) && item.PriceHotelResult && item.PriceHotelResult.length>0"
>
<el-popover
width=
"1100"
trigger=
"click"
popper-class=
"DMC_HotelPop"
>
<el-popover
width=
"1100"
trigger=
"click"
popper-class=
"DMC_HotelPop"
>
<commonHotelInfo
:HotelObj=
"item.PriceHotelResult"
:showHotelObj=
"showHotelObj"
:TCID=
"item.TCID"
<commonHotelInfo
:HotelObj=
"item.PriceHotelResult"
:showHotelObj=
"showHotelObj"
:TCID=
"item.TCID"
:DMCNum=
"item.DMCNum"
:TCNUM=
"item.TCNUMS"
:DMCNum=
"item.DMCNum"
:TCNUM=
"item.TCNUMS"
...
@@ -376,6 +377,21 @@
...
@@ -376,6 +377,21 @@
v-else
>
{{
item
.
BusResult
==
'-1'
?
"x"
:
"O"
}}
</span>
v-else
>
{{
item
.
BusResult
==
'-1'
?
"x"
:
"O"
}}
</span>
<span
@
click=
"GoShoupei(outItem)"
<span
@
click=
"GoShoupei(outItem)"
style=
"cursor:pointer;text-decoration:underline;display:block;color:#666;font-size:12px;"
>
{{
$t
(
'ground.cheliangxinxi'
)
}}
</span>
style=
"cursor:pointer;text-decoration:underline;display:block;color:#666;font-size:12px;"
>
{{
$t
(
'ground.cheliangxinxi'
)
}}
</span>
<template
v-if=
"(item.LineId==14||item.LineId==118) &&(item.JapanBusOrder==0||item.JapanBusOrder==2)"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"同步车信息到印象车行"
placement=
"top-start"
>
<span
style=
"cursor:pointer;text-decoration:underline;display:block;color:#666;font-size:12px;padding-top:2px;"
@
click=
"SetBusOrder(outItem,item)"
>
同步
</span>
</el-tooltip>
</
template
>
<
template
v-else-if=
"(item.LineId==14||item.LineId==118) &&item.JapanBusOrder==1"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"取消印象车行订单"
placement=
"top-start"
>
<span
style=
"cursor:pointer;text-decoration:underline;display:block;color:#666;font-size:12px;padding-top:2px;"
@
click=
"CancelBusOrder(outItem,item)"
>
取消同步
</span>
</el-tooltip>
</
template
>
</div>
</div>
</td>
</td>
<td>
<td>
...
@@ -574,18 +590,23 @@
...
@@ -574,18 +590,23 @@
</el-dialog>
</el-dialog>
<el-dialog
:visible
.
sync=
"DownLoad.ShowDownLoad"
width=
"386px"
title=
"预计用款下载"
>
<el-dialog
:visible
.
sync=
"DownLoad.ShowDownLoad"
width=
"386px"
title=
"预计用款下载"
>
<div
style=
"height:120px;"
><ul>
<div
style=
"height:120px;"
>
<li><span><em>
{{$t('hotel.table_CheckInDate')}}
</em>
<ul>
<el-date-picker
v-model=
'DownLoad.StartDate'
class=
'w135'
value-format=
"yyyy-MM-dd"
type=
"date"
<li><span><em>
{{$t('hotel.table_CheckInDate')}}
</em>
:picker-options=
"pickerBeginDateBeforeDownLoad"
></el-date-picker>
<el-date-picker
v-model=
'DownLoad.StartDate'
class=
'w135'
value-format=
"yyyy-MM-dd"
type=
"date"
-
:picker-options=
"pickerBeginDateBeforeDownLoad"
></el-date-picker>
<el-date-picker
v-model=
'DownLoad.EndDate'
class=
'w135'
value-format=
"yyyy-MM-dd"
type=
"date"
-
:picker-options=
"pickerBeginDateAfterDownLoad"
></el-date-picker>
<el-date-picker
v-model=
'DownLoad.EndDate'
class=
'w135'
value-format=
"yyyy-MM-dd"
type=
"date"
</span>
:picker-options=
"pickerBeginDateAfterDownLoad"
></el-date-picker>
</li>
</span>
<li>
<input
style=
"margin-top:25px;float:right;"
type=
"button"
class=
"normalBtn"
:value=
"$t('adm.adm_download')"
@
click=
"DownLoadExpectedUsage()"
/>
<input
style=
"margin-top:25px;float:right;"
type=
"button"
class=
"normalBtn"
:value=
"$t('pub.cancelBtn')"
@
click=
"CancelDownLoad()"
/></li>
</li>
</ul></div>
<li>
<input
style=
"margin-top:25px;float:right;"
type=
"button"
class=
"normalBtn"
:value=
"$t('adm.adm_download')"
@
click=
"DownLoadExpectedUsage()"
/>
<input
style=
"margin-top:25px;float:right;"
type=
"button"
class=
"normalBtn"
:value=
"$t('pub.cancelBtn')"
@
click=
"CancelDownLoad()"
/></li>
</ul>
</div>
</el-dialog>
</el-dialog>
</div>
</div>
</template>
</template>
...
@@ -735,11 +756,11 @@
...
@@ -735,11 +756,11 @@
return
startTime
.
getTime
()
>=
time
.
getTime
()
return
startTime
.
getTime
()
>=
time
.
getTime
()
}
}
},
},
DownLoad
:{
DownLoad
:
{
ShowDownLoad
:
false
,
ShowDownLoad
:
false
,
StartDate
:
""
,
//开始日期
StartDate
:
""
,
//开始日期
EndDate
:
""
,
//结束日期
EndDate
:
""
,
//结束日期
EmployeeID
:
0
,
EmployeeID
:
0
,
}
}
}
}
},
},
...
@@ -750,38 +771,71 @@
...
@@ -750,38 +771,71 @@
priceDialog
priceDialog
},
},
methods
:
{
methods
:
{
CancelDownLoad
(){
//同步用车到车行订单
this
.
DownLoad
.
ShowDownLoad
=
false
;
SetBusOrder
(
rootItem
,
item
)
{
this
.
DownLoad
.
StartDate
=
""
;
this
.
DownLoad
.
EndDate
=
""
;
this
.
DownLoad
.
EmployeeID
=
0
;
},
DownLoadExpectedUsage
(
item
)
{
this
.
loading
=
true
;
this
.
loading
=
true
;
//导出报表
var
postMsg
=
{
TCIDS
:
rootItem
.
TCIDS
,
if
(
this
.
DownLoad
.
StartDate
==
""
||
this
.
DownLoad
.
EndDate
==
""
)
{
NewCombinationNum
:
rootItem
.
NewCombinationNum
,
this
.
Error
(
'请选择出团日期'
)
TCID
:
item
.
TCID
};
this
.
apipost
(
'dmcstatistics_get_SetBusJapanOrder'
,
postMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
getList
();
}
else
{
this
.
loading
=
false
;
this
.
loading
=
false
;
return
this
.
Error
(
res
.
data
.
message
);
}
}
if
(
new
Date
(
this
.
DownLoad
.
EndDate
)
-
new
Date
(
this
.
DownLoad
.
StartDate
)
>
1
*
24
*
60
*
60
*
1000
*
30
)
});
{
},
this
.
Error
(
"选择出团时间范围不能超过一个月"
)
//取消车行用车订单
CancelBusOrder
(
rootItem
,
item
)
{
this
.
loading
=
true
;
var
postMsg
=
{
TCIDS
:
rootItem
.
TCIDS
,
NewCombinationNum
:
rootItem
.
NewCombinationNum
,
TCID
:
item
.
TCID
};
this
.
apipost
(
'dmcstatistics_get_CancelBusJapanOrder'
,
postMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
getList
();
}
else
{
this
.
loading
=
false
;
this
.
loading
=
false
;
return
this
.
Error
(
res
.
data
.
message
);
}
}
});
this
.
DownLoad
.
EmployeeID
=
this
.
getLocalStorage
().
EmployeeId
;
},
CancelDownLoad
()
{
this
.
DownLoad
.
ShowDownLoad
=
false
;
this
.
DownLoad
.
StartDate
=
""
;
this
.
DownLoad
.
EndDate
=
""
;
this
.
DownLoad
.
EmployeeID
=
0
;
},
DownLoadExpectedUsage
(
item
)
{
this
.
loading
=
true
;
//导出报表
if
(
this
.
DownLoad
.
StartDate
==
""
||
this
.
DownLoad
.
EndDate
==
""
)
{
this
.
Error
(
'请选择出团日期'
)
this
.
loading
=
false
;
return
}
if
(
new
Date
(
this
.
DownLoad
.
EndDate
)
-
new
Date
(
this
.
DownLoad
.
StartDate
)
>
1
*
24
*
60
*
60
*
1000
*
30
)
{
this
.
Error
(
"选择出团时间范围不能超过一个月"
)
this
.
loading
=
false
;
return
}
this
.
DownLoad
.
EmployeeID
=
this
.
getLocalStorage
().
EmployeeId
;
var
fileName
=
"团预计用款下载.xls"
;
var
fileName
=
"团预计用款下载.xls"
;
this
.
GetLocalFile
(
"dmcstatistics_post_GetHotelPriceDownLoad"
,
this
.
DownLoad
,
fileName
,
this
.
GetLocalFile
(
"dmcstatistics_post_GetHotelPriceDownLoad"
,
this
.
DownLoad
,
fileName
,
res
=>
{
res
=>
{
this
.
DownLoad
.
ShowDownLoad
=
false
;
this
.
DownLoad
.
ShowDownLoad
=
false
;
this
.
loading
=
false
;
this
.
loading
=
false
;
this
.
DownLoad
.
StartDate
=
""
;
this
.
DownLoad
.
StartDate
=
""
;
this
.
DownLoad
.
EndDate
=
""
;
this
.
DownLoad
.
EndDate
=
""
;
this
.
DownLoad
.
EmployeeID
=
0
;
this
.
DownLoad
.
EmployeeID
=
0
;
});
});
},
},
showDialog
(
ConfigId
,
OfferId
)
{
showDialog
(
ConfigId
,
OfferId
)
{
...
@@ -1290,7 +1344,7 @@
...
@@ -1290,7 +1344,7 @@
this
.
loading
=
false
;
this
.
loading
=
false
;
});
});
},
},
goRoomTip
()
{
goRoomTip
()
{
this
.
Error
(
"请联系组团OP提供分房表文件!"
);
this
.
Error
(
"请联系组团OP提供分房表文件!"
);
},
},
...
...
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