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
2f02e513
Commit
2f02e513
authored
Jan 02, 2024
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
20d3373e
bdc892bd
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
295 additions
and
303 deletions
+295
-303
ElectronicContract.vue
src/components/Contract/ElectronicContract.vue
+1
-1
index.vue
src/components/FinancialModule/HelpBranch/index.vue
+55
-26
TravelContractConfirm.vue
src/components/TravelContractConfirm.vue
+7
-5
TravelContractDetail.vue
src/components/TravelContractDetail.vue
+6
-4
TravelContractNew.vue
src/components/TravelContractNew.vue
+13
-9
confirmationOrderDownLoadNew.vue
src/components/confirmationOrderDownLoadNew.vue
+201
-256
ExpectedCommission.vue
src/components/sale/ExpectedCommission.vue
+6
-1
operation.vue
src/components/temp/operation.vue
+6
-1
No files found.
src/components/Contract/ElectronicContract.vue
View file @
2f02e513
...
...
@@ -798,8 +798,8 @@
<div
class=
"EC_ComTitle"
style=
"margin-bottom:40px;"
>
投诉信息
</div>
<p>
出境社监督、投诉电话:
<span>
{{
dataList
.
companyComplainCall
}}
</span></p>
<p>
四川省成都市旅游质监执法机构:
<span>
{{
dataList
.
regulatorName
}}
</span></p>
<p>
投诉电话:
<span>
{{
dataList
.
regulatorComplainCall
}}
</span></p>
<p>
成都市旅游质监执法监督网:
<span>
{{
dataList
.
regulatorWebsite
}}
</span></p>
<p>
投诉电话:
<span>
{{
dataList
.
regulatorComplainCall
}}
</span></p>
<p>
地址:
<span>
{{
dataList
.
regulatorAddress
}}
</span></p>
<p>
邮编:
<span>
{{
dataList
.
regulatorPostCode
}}
</span></p>
</div>
...
...
src/components/FinancialModule/HelpBranch/index.vue
View file @
2f02e513
...
...
@@ -22,11 +22,7 @@
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item
label=
"团队编号:"
>
<el-input
v-model=
"msg.TCNUM"
class=
""
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item
label=
"结算状态:"
>
<el-select
v-model=
'msg.IsSelectAduiting'
>
...
...
@@ -93,6 +89,31 @@
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"制单日期:"
>
<el-date-picker
class=
"h34"
@
change=
"timeAdd(1)"
v-model=
"productionDate"
type=
"daterange"
value-format=
"yyyy-MM-dd"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"交易日期:"
>
<el-date-picker
class=
"h34"
v-model=
"transactionDate"
@
change=
"timeAdd(3)"
type=
"daterange"
value-format=
"yyyy-MM-dd"
>
</el-date-picker>
</el-form-item>
</el-col>
<template
v-if=
"heightQueryBox"
>
<el-col
:span=
"4"
>
<el-form-item
label=
"团队编号:"
>
<el-input
v-model=
"msg.TCNUM"
class=
""
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item
label=
"付款对象:"
>
<el-select
...
...
@@ -101,8 +122,7 @@
remote
reserve-keyword
placeholder=
"请输入关键词"
:remote-method=
"GetClientAccountListByKeyWord"
>
:remote-method=
"GetClientAccountListByKeyWord"
>
<el-option
value=
""
:label=
"$t('pub.unlimitedSel')"
></el-option>
<el-option
v-for=
'item in ClientAccountList'
:label=
'`$
{item.AccountAlias}(${item.AccountHolder}/${item.CardNum})`'
...
...
@@ -118,18 +138,6 @@
<
/el-select
>
<
/el-form-item
>
<
/el-col
>
<
el
-
col
:
span
=
"6"
>
<
el
-
form
-
item
label
=
"制单日期:"
>
<
el
-
date
-
picker
class
=
"h34"
@
change
=
"timeAdd(1)"
v
-
model
=
"productionDate"
type
=
"daterange"
value
-
format
=
"yyyy-MM-dd"
>
<
/el-date-picker
>
<
/el-form-item
>
<
/el-col
>
<
template
v
-
if
=
"heightQueryBox"
>
<
el
-
col
:
span
=
"4"
>
<
el
-
form
-
item
label
=
"费用部门:"
>
<
el
-
select
filterable
v
-
model
=
'msg.RB_Depart_Id'
@
change
=
"employeeMsg.DepartmentId=msg.RB_Depart_Id,getEmployee(),msg.UpdateBy=''"
class
=
""
>
...
...
@@ -231,26 +239,27 @@
<
div
style
=
"display: flex;flex-wrap: wrap;color:red;"
>
<
span
>
财务单据信息:
<
/span
>
<
template
>
<
p
size
=
"mini"
closable
style
=
"margin-right: 5px;margin-bottom: 5px;"
<
p
size
=
"mini"
closable
style
=
"margin-right: 5px;margin-bottom: 5px;
width:99%;
"
v
-
for
=
"(x,index) in financeDataList"
:
key
=
"x.FrID"
:
type
=
"danger"
>
(
{{
x
.
CurrencyName
}}
)
总收入:
{{
x
.
totalMoneyI
}}
总支出:
{{
x
.
totalMoneyO
}}
,关联调拨单总金额:
{{
x
.
totalMoneyA
}}
已冲抵金额:
{{
x
.
totalMoneyU
}}
,剩余金额:
{{
x
.
totalMoneyS
}}
(
{{
x
.
CurrencyName
}}
)
总收入:
{{
x
.
totalMoneyI
}}
总支出:
{{
x
.
totalMoneyO
}}
,关联调拨单总金额:
{{
x
.
totalMoneyA
}}
已冲抵金额:
{{
x
.
totalMoneyU
}}
,剩余金额:
{{
x
.
totalMoneyS
}}
<
/p
>
<
/template
>
<
/div
>
<
/div
>
<
div
style
=
"display: flex;flex-wrap: nowrap; padding: 10px;"
v
-
if
=
"allotDataList.length>0"
><
div
style
=
"display: flex;flex-wrap: wrap;color:red;"
>
<
div
style
=
"display: flex;flex-wrap: nowrap; padding: 10px;"
v
-
if
=
"allotDataList.length>0"
>
<
div
style
=
"display: flex;flex-wrap: wrap;color:red;"
>
<
span
>
资金调拨信息:
<
/span
>
<
template
>
<
p
size
=
"mini"
closable
style
=
"margin-right: 5px;margin-bottom: 5px;"
style
=
"margin-right: 5px;margin-bottom: 5px;
width:99%;
"
v
-
for
=
"(x,index) in allotDataList"
:
key
=
"x.FrID"
:
type
=
"success"
>
(
{{
x
.
CurrencyName
}}
)
总收款:
{{
x
.
totalMoneyA
}}
总支出金额:
{{
x
.
totalMoneyU
}}
,剩余金额:
{{
x
.
totalMoneyS
}}
(
{{
x
.
CurrencyName
}}
)
总收款:
{{
x
.
totalMoneyA
}}
总支出金额:
{{
x
.
totalMoneyU
}}
,剩余金额:
{{
x
.
totalMoneyS
}}
<
br
/>
<
/p
>
<
/template
>
<
/div></
div
>
...
...
@@ -675,6 +684,9 @@ export default {
this
.
msg
.
sTradeDate
=
this
.
$route
.
query
.
StartDate
;
this
.
msg
.
eTradeDate
=
this
.
$route
.
query
.
StartDate
;
if
(
this
.
$route
.
query
.
BankID
==
''
){
// 费用类型:机票折让费
this
.
msg
.
CostTypeID
=
197
;
...
...
@@ -698,6 +710,13 @@ export default {
if
(
this
.
$route
.
query
.
NewFinanceId
){
this
.
msg
.
NewFinanceId
=
this
.
$route
.
query
.
NewFinanceId
;
}
let
STime
=
this
.
getBeforeDate
(
31
,
this
.
getBeforeDate
(
0
,
new
Date
().
Format
(
"yyyy-MM-dd"
)))
let
ETime
=
this
.
getBeforeDate
(
0
,
this
.
getBeforeDate
(
0
,
new
Date
().
Format
(
"yyyy-MM-dd"
)))
if
(
!
this
.
msg
.
startDate
){
this
.
productionDate
=
[
STime
,
ETime
]
this
.
msg
.
sDate
=
this
.
productionDate
[
0
];
this
.
msg
.
eDate
=
this
.
productionDate
[
1
];
}
//this.financeinfo_post_GetClientAccountList()
this
.
financeinfo_post_GetList
();
this
.
financeinfo_post_GetCostTypeList
();
...
...
@@ -1145,7 +1164,17 @@ export default {
}
this
.
msg
.
sDate
=
this
.
productionDate
[
0
];
this
.
msg
.
eDate
=
this
.
productionDate
[
1
];
}
if
(
t
==
4
){
//发团日期
}
if
(
t
==
3
)
{
//交易日期
if
(
!
this
.
transactionDate
)
{
this
.
msg
.
sTradeDate
=
''
;
this
.
msg
.
eTradeDate
=
''
;
return
}
this
.
msg
.
sTradeDate
=
this
.
transactionDate
[
0
];
this
.
msg
.
eTradeDate
=
this
.
transactionDate
[
1
];
}
if
(
t
==
4
){
//发团日期
if
(
!
this
.
missionDate
){
this
.
dateStart
=
''
;
this
.
dateEnd
=
''
;
...
...
src/components/TravelContractConfirm.vue
View file @
2f02e513
...
...
@@ -3170,12 +3170,14 @@
<label
id=
"l4"
>
投诉信息
</label>
<p>
出境社监督、投诉电话:
<font>
{{dataList.companyComplainCall}}
</font>
</p>
<p>
四川省成都市旅游质监执法机构:
<font>
{{dataList.regulatorName}}
</font>
</p>
<
template
v-if=
"CtObj.SignType==0"
>
<p>
四川省成都市旅游质监执法机构:
<font>
{{
dataList
.
regulatorName
}}
</font>
</p>
<p>
成都市旅游质监执法监督网:
<font>
{{
dataList
.
regulatorWebsite
}}
</font>
</p>
</
template
>
<p>
投诉电话:
<font>
{{dataList.regulatorComplainCall}}
</font>
</p>
<p>
成都市旅游质监执法监督网:
<font>
{{dataList.regulatorWebsite}}
</font>
</p>
<p>
地址:
<font>
{{dataList.regulatorAddress}}
</font>
</p>
<p>
邮编:
<font>
{{dataList.regulatorPostCode}}
</font>
...
...
@@ -4231,7 +4233,7 @@
number_chinese
(
str
)
{
var
num
=
parseFloat
(
str
);
var
strUnit
=
'仟佰拾亿仟佰拾万仟佰拾元角分'
;
var
strOutput
=
""
;
var
strOutput
=
""
;
if
(
this
.
CtObj
.
SignType
==
1
)
{
strUnit
=
'仟佰拾亿仟佰拾万仟佰拾円角分'
;
}
...
...
src/components/TravelContractDetail.vue
View file @
2f02e513
...
...
@@ -824,10 +824,12 @@
<td>
出境社监督、投诉电话:
</td>
<td
colspan=
"3"
>
{{dataList.regulatorComplainCall}}
</td>
</tr>
<tr>
<td>
四川省 成都市旅游质监执法机构:
</td>
<td
colspan=
"3"
>
{{dataList.regulatorName}}
</td>
</tr>
<
template
v-if=
"dataList.signType==0"
>
<tr>
<td>
四川省 成都市旅游质监执法机构:
</td>
<td
colspan=
"3"
>
{{
dataList
.
regulatorName
}}
</td>
</tr>
</
template
>
<tr>
<td>
投诉电话:
</td>
<td
colspan=
"3"
>
{{dataList.companyComplainCall}}
</td>
...
...
src/components/TravelContractNew.vue
View file @
2f02e513
...
...
@@ -582,7 +582,8 @@
<tr>
<td>
<el-form-item
label=
"儿童(不满14岁的)"
>
<el-input
type=
"text"
class=
"w300"
v-model=
"CtObj.childPrice"
></el-input>
<
template
v-if=
"CtObj.signType==0"
>
<el-input
type=
"text"
class=
"w300"
v-model=
"CtObj.childPrice"
></el-input>
<
template
v-if=
"CtObj.signType==0"
>
元
</
template
>
<
template
v-else
>
...
...
@@ -594,7 +595,8 @@
<tr>
<td>
<el-form-item
label=
"导游服务费"
prop=
"servicePrice"
>
<el-input
type=
"text"
class=
"w300"
v-model=
"CtObj.servicePrice"
></el-input>
<
template
v-if=
"CtObj.signType==0"
>
<el-input
type=
"text"
class=
"w300"
v-model=
"CtObj.servicePrice"
></el-input>
<
template
v-if=
"CtObj.signType==0"
>
元
</
template
>
<
template
v-else
>
...
...
@@ -1099,12 +1101,12 @@
<th
width=
"10%"
>
具体时间
</th>
<th
width=
"15%"
>
地点
</th>
<th
width=
"12%"
>
项目名称和内容
</th>
<th
width=
"12%"
>
费用(
<
template
v-if=
"CtObj.signType==0"
>
元
</
template
>
<
template
v-else
>
円
</
template
>
)
</th>
<th
width=
"12%"
>
费用(
<
template
v-if=
"CtObj.signType==0"
>
元
</
template
>
<
template
v-else
>
円
</
template
>
)
</th>
<th
width=
"12%"
>
项目时长(分钟)
</th>
<th
width=
"12%"
>
其他说明
</th>
<th
width=
"12%"
>
旅游者签名同意
</th>
...
...
@@ -1476,10 +1478,12 @@
this
.
CtObj
.
company
=
"四川和平国际旅行社有限公司"
;
this
.
CtObj
.
companyAddress
=
"成都市锦江区青和里南段55号1栋2310、2311、2312号 "
this
.
CtObj
.
businessCertificate
=
'L-SC-CJ00015'
;
this
.
CtObj
.
regulatorName
=
'四川省成都市旅游质监执法机构'
;
}
else
{
this
.
CtObj
.
company
=
"(株)ピースインターナショナル"
;
this
.
CtObj
.
companyAddress
=
""
;
this
.
CtObj
.
businessCertificate
=
''
;
this
.
CtObj
.
regulatorName
=
''
;
}
},
goContract
()
{
...
...
@@ -1556,7 +1560,7 @@
this
.
CtObj
.
company
=
'四川和平国际旅行社有限公司'
;
this
.
CtObj
.
businessCertificate
=
'L-SC-CJ00015'
;
this
.
CtObj
.
companyAddress
=
'成都市锦江区青和里南段55号1栋2310、2311、2312号 '
;
this
.
CtObj
.
regulatorName
=
'四川省成都市旅游质监执法机构'
;
this
.
CtObj
.
regulatorComplainCall
=
'17708046437'
;
this
.
CtObj
.
companyComplainCall
=
'028-96927'
;
...
...
src/components/confirmationOrderDownLoadNew.vue
View file @
2f02e513
<
style
>
@import
url('../assets/css/tripIndex.css')
;
@import
url("../assets/css/UpgradedVersion.css")
;
@import
url("../assets/css/tripIndexNew2.css")
;
@import
url('../assets/css/detail.css')
;
@import
url('../assets/css/tripIndexNewHV.css')
;
.confirmOrder
{
width
:
950px
;
}
...
...
@@ -14,39 +20,114 @@
top
:
55px
;
}
.edit_form_box
{
display
:
flex
;
justify-content
:
space-around
;
}
.edit_form_box_tit
{
color
:
#000000
;
text-align
:
left
;
margin-top
:
0
;
border-left
:
2px
solid
#e95252
;
padding-left
:
25px
;
}
.TravelFlightList
{
width
:
100%
;
background-color
:
#fff
;
}
.TravelFlightList
table
{
width
:
100%
;
}
.guoneiLine
tbody
td
{
font-size
:
17px
;
.TFTable
.el-button.is-circle
{
padding
:
5px
;
}
</
style
>
.TFTable
.el-form-item
{
margin
:
10px
;
}
.TFTable
i
{
font-size
:
14px
;
}
.TFTable
.el-input--prefix
.el-input__inner
{
padding-right
:
0
;
}
.TFAddFlight
{
width
:
100%
;
height
:
40px
;
text-align
:
center
;
line-height
:
40px
;
color
:
#333
;
margin-top
:
5px
;
background-color
:
#f1f1f1
;
font-size
:
12px
;
border
:
1px
dashed
#dcdcdc
;
cursor
:
pointer
;
}
.w110
{
width
:
110px
!important
;
}
.w120
{
width
:
120px
!important
;
}
.normalBtn
{
color
:
#fff
;
padding
:
0
15px
;
height
:
30px
;
background
:
#E95252
;
border
:
1px
solid
#E95252
;
cursor
:
pointer
;
border-radius
:
15px
;
margin-left
:
10px
;
}
.hollowFixedBtn
{
background
:
#fff
;
color
:
#E95252
;
padding
:
0
15px
;
height
:
30px
;
border
:
1px
solid
#E95252
;
cursor
:
pointer
;
border-radius
:
15px
;
margin-left
:
10px
;
}
</
style
>
<
template
>
<div
class=
"travelControlTrip"
:style=
"
{'width':dataAll
&&
dataAll.featurePageType==2?'1240px':'1754px'}"
:class="[dataAll
&&
dataAll.feature
&&
dataAll.feature.featureType==9?'VerticalBjNew':'']">
<div
class=
"trip_cover"
v-show=
"pdfLoading"
v-loading=
"pdfLoading"
></div>
<div
class=
"trip_cover"
v-show=
"pdfLoading"
v-loading=
"pdfLoading"
:element-loading-text=
"loadingText"
></div>
<el-row
style=
"padding: 0 0 20px 0;box-shadow: 1px 10px 10px#e6e6e6;"
>
<el-col
:span=
"14"
class=
"row-aic"
>
<a
id=
"pdfDownLoad"
style=
"display:none;"
target=
"_blank"
href=
"http://www.baidu.com"
download=
"xx.pdf"
>
页面跳转
</a>
<template
v-if=
"orderId>0"
>
<el-button
type=
"primary"
size=
"medium"
@
click=
"toPDF_2023()"
>
出团通知书下载
</el-button>
<el-button
type=
"primary"
size=
"medium"
@
click=
"
gernalFeature(1
)"
>
<el-button
type=
"primary"
size=
"medium"
@
click=
"
ToWord_2023(
)"
>
出团通知书下载WROD
</el-button>
</
template
>
<
template
v-else
>
<el-button
type=
"primary"
size=
"medium"
@
click=
"toPDF_2023()"
>
<el-button
type=
"primary"
size=
"medium"
@
click=
"toPDF_2023(
1
)"
>
行程下载
</el-button>
<el-button
type=
"primary"
size=
"medium"
@
click=
"toPDF_2023(1)"
style=
"margin-left:20px;"
>
行程下载(云盘)
</el-button>
<el-button
type=
"primary"
size=
"medium"
@
click=
"gernalFeature(1)"
style=
"margin-left:20px;"
>
<el-button
v-if=
"isShowAllDownLoad"
type=
"primary"
size=
"medium"
@
click=
"toPDF_2023()"
style=
"margin-left:20px;"
>
行程下载(N)
</el-button>
<el-button
type=
"primary"
size=
"medium"
@
click=
"ToWord_2023()"
style=
"margin-left:20px;"
>
行程下载WORD
</el-button>
</
template
>
<!-- 可以让销售修改基本信息-->
<el-button
v-if=
"orderId>0"
type=
"primary"
size=
"medium"
value=
"修改信息"
@
click=
"editMsgShow=true"
>
修改信息
</el-button>
<el-checkbox
class=
"marginL11"
style=
"display:none;"
v-model=
"isShowTime"
>
显示行程日期
</el-checkbox>
</el-col>
<el-col
v-if=
"orderId<=0"
>
<span
style=
"color:red;padding-left:10px;"
>
温馨提示:OP保存行程后请等待1-2分钟后再下载行程。
</span>
...
...
@@ -197,7 +278,8 @@
import
OrderNotice
from
'./LeaveGroupDownload/OrderNotice'
import
VisaInformation
from
'./LeaveGroupDownload/VisaInformation'
import
{
setTimeout
setInterval
,
clearInterval
}
from
'timers'
;
export
default
{
...
...
@@ -213,14 +295,6 @@
data
()
{
return
{
dataAll
:
null
,
isShowTime
:
true
,
CurrentUserInfo
:
{},
//当前用户信息
Typevalue
:
-
1
,
titleList
:
[],
listMsg
:
{
pageSize
:
1000
,
pageIndex
:
1
,
},
//微信分享图片
WeiXinShareImgSrc
:
""
,
//下拉框默认值
...
...
@@ -229,10 +303,7 @@
airLineList
:
[],
//orderId和是否op操作控制按钮显示
orderId
:
0
,
isopOperation
:
''
,
editForm
:
{
},
editForm
:
{},
//团源基础数据
SourceData
:
{
orderId
:
0
,
...
...
@@ -246,7 +317,6 @@
travelOrderFlightList
:
[]
},
editMsgShow
:
false
,
pdfLoading
:
true
,
vshowA
:
this
.
$route
.
query
.
vshowA
===
undefined
?
true
:
this
.
$route
.
query
.
vshowA
===
'true'
,
vshowB
:
this
.
$route
.
query
.
vshowB
===
undefined
?
true
:
this
.
$route
.
query
.
vshowB
===
'true'
,
vshowC
:
this
.
$route
.
query
.
vshowC
===
undefined
?
true
:
this
.
$route
.
query
.
vshowC
===
'true'
,
...
...
@@ -269,26 +339,27 @@
feature
:
{},
dataList
:
{},
showType
:
-
1
,
loadNone
:
false
,
orderMsg
:
{},
//订单不同数据
orderTripdiff
:
{},
title
:
''
,
isDirect
:
1
,
//是否是直采 0:否,1:是
isClick
:
this
.
$route
.
query
.
isClick
===
undefined
?
0
:
1
,
//不算统计
lineId
:
0
lineId
:
0
,
downLoadUrl
:
""
,
//文件下载
pdfLoading
:
false
,
loadingText
:
""
,
//加载文字
download_timer
:
null
,
isShowAllDownLoad
:
false
,
//是否显示实时下载行程按钮
}
},
mounted
()
{
this
.
CurrentUserInfo
=
this
.
getLocalStorage
();;
this
.
orderId
=
this
.
$route
.
query
.
orderId
;
this
.
isopOperation
=
this
.
$route
.
query
.
isopOperation
;
if
(
this
.
$route
.
query
.
isda
&&
this
.
$route
.
query
.
isda
==
1
)
{
this
.
isShowAllDownLoad
=
true
;
}
this
.
getWxCode
();
this
.
init
();
this
.
initAirlines
();
setTimeout
(()
=>
{
this
.
appendParent
()
},
2000
)
this
.
getTripDetail
();
this
.
getAirlines
();
},
methods
:
{
//获取微信二维码
...
...
@@ -299,7 +370,7 @@
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
WeiXinShareImgSrc
=
res
.
data
.
data
;
}
}
,
err
=>
{}
)
})
},
//还原表单
backForm
()
{
...
...
@@ -351,9 +422,7 @@
if
(
res
.
data
.
resultCode
==
1
)
{
item
.
airportNameList
=
res
.
data
.
data
;
}
},
err
=>
{}
)
})
this
.
$forceUpdate
();
},
flightSelectChange
(
flightId
,
item
)
{
...
...
@@ -368,16 +437,13 @@
});
},
//初始化航空公司下拉
initAirlines
:
function
()
{
this
.
apipost
(
'airline_post_GetList'
,
{},
getAirlines
()
{
this
.
apipost
(
'airline_post_GetList'
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
airLineList
=
res
.
data
.
data
}
},
err
=>
{}
)
})
},
addFlight
:
function
()
{
let
obj
=
{
...
...
@@ -419,17 +485,68 @@
}
}
},
appendParent
()
{
var
lables
=
document
.
querySelectorAll
(
'#pdf_2 .zidingyi img'
);
if
(
lables
!=
null
&&
lables
.
length
>
0
)
{
let
parent
=
lables
[
0
].
parentElement
;
lables
.
forEach
(
function
(
lable
,
index
)
{
var
ele
=
document
.
createElement
(
'div'
)
ele
.
className
=
'u-box'
;
ele
.
appendChild
(
lable
)
parent
.
appendChild
(
ele
)
});
}
//检查文件是否生成
checkFile
(
configId
,
fileName
)
{
var
that
=
this
;
let
urlObj
=
this
.
domainManager
();
var
checkUrl
=
urlObj
.
ocrUrl
+
"/Home/CheckFile?configId="
+
configId
+
"&url="
+
encodeURIComponent
(
this
.
downLoadUrl
);
this
.
loadingText
=
"正在生成PDF文件..."
;
this
.
$http
({
headers
:
{
'Content-Type'
:
'application/json'
},
method
:
'get'
,
url
:
checkUrl
,
data
:
{}
}).
then
(
res
=>
{
if
(
res
.
data
==
1
)
{
clearInterval
(
this
.
download_timer
);
this
.
loadingText
=
"正在下载PDF文件..."
;
var
ocrUrl
=
""
;
ocrUrl
=
urlObj
.
ocrUrl
+
"/Home/DownloadFileForPdfERP?configId="
+
configId
+
"&url="
+
encodeURIComponent
(
that
.
downLoadUrl
);
that
.
$http
({
headers
:
{
'Content-Type'
:
'application/json'
},
method
:
'get'
,
url
:
ocrUrl
,
data
:
{},
responseType
:
'arraybuffer'
}).
then
(
res
=>
{
that
.
pdfLoading
=
false
;
let
blob
=
new
Blob
([
res
.
data
],
{
type
:
"application/pdf"
})
let
fileUrl
=
URL
.
createObjectURL
(
blob
);
let
link
=
document
.
getElementById
(
'pdfDownLoad'
);
link
.
href
=
fileUrl
;
link
.
setAttribute
(
"download"
,
fileName
);
link
.
click
();
that
.
loadingText
=
""
;
//删除缓存的Key
var
deleteUrl
=
urlObj
.
ocrUrl
+
"/Home/DeteleKey?configId="
+
configId
+
"&url="
+
encodeURIComponent
(
this
.
downLoadUrl
);
that
.
$http
({
headers
:
{
'Content-Type'
:
'application/json'
},
method
:
'get'
,
url
:
deleteUrl
,
data
:
{},
}).
then
(
dRes
=>
{
console
.
log
(
"dRes"
,
dRes
);
});
}).
catch
(
err
=>
{
that
.
pdfLoading
=
false
})
}
}).
catch
(
err
=>
{
that
.
loadingText
=
""
;
that
.
pdfLoading
=
false
;
clearInterval
(
that
.
download_timer
);
})
},
//获取参数
getPostMsg
()
{
...
...
@@ -478,16 +595,10 @@
}
return
postData
;
},
gernalFeature
(
isPc
)
{
ToWord_2023
:
function
(
title
)
{
var
title
=
this
.
orderMsg
.
startDate
+
this
.
orderMsg
.
lineteamName
+
this
.
orderMsg
.
dayNum
+
'日游'
if
(
this
.
showType
>=
4
)
{
// 判断是否为行程特色
this
.
ToWord_2023
(
title
,
isPc
)
}
else
{
this
.
ToWord_2023
(
title
,
isPc
)
}
},
ToWord_2023
:
function
(
title
,
isPc
)
{
this
.
pdfLoading
=
true
this
.
pdfLoading
=
true
;
this
.
loadingText
=
"正在生成Word文件..."
;
let
msg
=
this
.
getPostMsg
();
let
urlObj
=
this
.
domainManager
();
this
.
$http
({
...
...
@@ -501,12 +612,14 @@
}
}).
then
(
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
let
sign
=
title
+
"V2"
this
.
loadingText
=
"正在下载Word文件..."
;
let
sign
=
title
;
const
a
=
document
.
createElement
(
'a'
);
a
.
setAttribute
(
'download'
,
''
);
a
.
setAttribute
(
'href'
,
urlObj
.
DomainUrl
+
'/api/file/DownloadFileForPdf?fileName='
+
sign
+
'.doc&&fPath='
+
res
.
data
.
data
);
a
.
click
();
this
.
loadingText
=
""
;
}
else
{
this
.
Error
(
'WORD获取失败'
);
}
...
...
@@ -517,9 +630,7 @@
},
// 生成pdf
toPDF_2023
:
function
(
command
)
{
this
.
pdfLoading
=
true
;
var
that
=
this
;
let
urlObj
=
this
.
domainManager
();
let
msg
=
this
.
getPostMsg
();
var
title
=
""
;
if
(
this
.
priceList
&&
this
.
priceList
.
length
>
0
&&
this
.
priceList
[
0
].
priceFlight
&&
this
.
priceList
[
0
]
...
...
@@ -539,37 +650,31 @@
}
else
{
title
+=
this
.
orderMsg
.
lineteamName
+
this
.
orderMsg
.
dayNum
+
'日游'
;
}
//阿里云行程下载
var
objFileKey
=
"TripDownLoad"
objFileKey
+=
"/"
+
msg
.
configId
+
"_"
+
msg
.
tcid
;
var
fileName
=
title
+
".pdf"
;
if
(
this
.
orderId
&&
this
.
orderId
>
0
)
{
//出团通知书下载
this
.
pdfDownLoad
(
fileName
,
msg
);
}
else
if
(
urlObj
.
IsOnline
==
0
)
{
//本地行程下载
this
.
pdfDownLoad
(
fileName
,
msg
);
}
else
if
(
command
&&
command
==
1
)
{
//阿里云行程下载
var
objFileKey
=
"TripDownLoad"
objFileKey
+=
"/"
+
msg
.
configId
+
"_"
+
msg
.
tcid
;
this
.
pdfLoading
=
true
;
objFileKey
+=
"/"
+
msg
.
configId
+
"_"
+
msg
.
tcid
+
"_B2B.pdf"
;
that
.
downloadChengDuFileRename
(
objFileKey
,
fileName
,
res
=>
{
this
.
pdfLoading
=
false
;
if
(
res
.
resultCode
==
0
)
{
msg
.
isShowB2B
=
1
;
that
.
pdfDownLoad
(
fileName
,
msg
);
}
else
{
that
.
pdfLoading
=
false
;
}
})
}
else
if
(
command
&&
command
==
2
)
{
//阿里云行程下载
var
objFileKey
=
"TripDownLoad"
objFileKey
+=
"/"
+
msg
.
configId
+
"_"
+
msg
.
tcid
;
objFileKey
+=
"/"
+
msg
.
configId
+
"_"
+
msg
.
tcid
+
".pdf"
;
this
.
pdfLoading
=
true
;
that
.
downloadChengDuFileRename
(
objFileKey
,
fileName
,
res
=>
{
this
.
pdfLoading
=
false
;
if
(
res
.
resultCode
==
0
)
{
msg
.
isShowB2B
=
0
;
that
.
pdfDownLoad
(
fileName
,
msg
);
}
else
{
that
.
pdfLoading
=
false
;
}
})
}
else
{
...
...
@@ -577,6 +682,7 @@
}
},
pdfDownLoad
:
function
(
fileName
,
msg
)
{
var
that
=
this
;
let
urlObj
=
this
.
domainManager
();
this
.
$http
({
headers
:
{
...
...
@@ -590,36 +696,14 @@
}).
then
(
res
=>
{
if
(
res
.
data
.
resultCode
===
1
&&
res
.
data
.
data
)
{
let
path
=
res
.
data
.
data
;
this
.
pdfLoading
=
false
;
this
.
pdfLoading
=
true
;
let
urlObj
=
this
.
domainManager
();
var
ocrUrl
=
""
;
ocrUrl
=
urlObj
.
ocrUrl
+
"/Home/DownloadFileForPdfERP?configId="
+
msg
.
configId
+
"&url="
+
encodeURIComponent
(
path
);
this
.
$http
({
headers
:
{
'Content-Type'
:
'application/json'
},
method
:
'get'
,
url
:
ocrUrl
,
data
:
{},
responseType
:
'arraybuffer'
}).
then
(
res
=>
{
this
.
pdfLoading
=
false
;
let
blob
=
new
Blob
([
res
.
data
],
{
type
:
"application/pdf"
})
let
url
=
URL
.
createObjectURL
(
blob
);
let
link
=
document
.
getElementById
(
'pdfDownLoad'
);
link
.
href
=
url
;
link
.
setAttribute
(
"download"
,
fileName
);
link
.
click
();
}).
catch
(
err
=>
{
this
.
pdfLoading
=
false
})
that
.
downLoadUrl
=
path
;
that
.
pdfLoading
=
true
;
this
.
download_timer
=
setInterval
(
function
()
{
that
.
checkFile
(
msg
.
configId
,
fileName
)
},
2000
);
}
else
{
th
is
.
pdfLoading
=
false
th
is
.
$message
.
error
(
'PDF获取失败'
);
th
at
.
pdfLoading
=
false
th
at
.
$message
.
error
(
'PDF获取失败'
);
}
}).
catch
(
err
=>
{
...
...
@@ -638,13 +722,11 @@
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
res
.
data
.
message
);
this
.
editMsgShow
=
false
;
this
.
init
();
this
.
getTripDetail
();
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{}
)
});
},
DateDiff
(
sDate1
,
sDate2
)
{
//sDate1和sDate2是2002-12-18格式
var
aDate
,
oDate1
,
oDate2
,
iDays
...
...
@@ -655,11 +737,13 @@
iDays
=
parseInt
(
Math
.
abs
(
oDate1
-
oDate2
)
/
1000
/
60
/
60
/
24
)
//把相差的毫秒数转换为天数
return
iDays
},
init
()
{
getTripDetail
()
{
var
unionfid
=
0
;
if
(
this
.
$route
.
query
.
unionfid
)
{
unionfid
=
this
.
$route
.
query
.
unionfid
;
}
this
.
pdfLoading
=
true
;
this
.
loadingText
=
"正在获取行程信息..."
;
this
.
apipost
(
'b2b_get_GetB2BTravelInfoNoDes'
,
{
configId
:
this
.
$route
.
query
.
configId
,
cityId
:
this
.
$route
.
query
.
cityId
,
...
...
@@ -668,6 +752,8 @@
isClick
:
this
.
isClick
,
//不算统计
unionfid
:
unionfid
,
},
res
=>
{
this
.
pdfLoading
=
false
;
this
.
loadingText
=
""
;
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
(
res
.
data
.
data
);
this
.
dataAll
=
data
;
...
...
@@ -716,7 +802,6 @@
airportNameList
:
[],
});
});
}
if
(
this
.
orderTripdiff
)
{
this
.
editForm
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
orderTripdiff
));
...
...
@@ -736,14 +821,7 @@
//初始化行程
this
.
initTrip
(
res
,
data
);
}
this
.
$nextTick
(
function
()
{
this
.
pdfLoading
=
false
;
let
imgs
=
document
.
getElementsByTagName
(
'img'
);
for
(
let
i
=
0
;
i
<
imgs
.
length
;
i
++
)
{
document
.
getElementsByTagName
(
'img'
)[
i
].
removeAttribute
(
'crossOrigin'
)
}
})
},
err
=>
{})
});
},
//上移下移(IsUp:0上移,1下移)
MoveItem
(
item
,
subIndex
,
IsUp
)
{
...
...
@@ -771,7 +849,6 @@
this
.
tripList
=
res
.
data
.
data
.
dayList
;
this
.
feature
=
res
.
data
.
data
.
feature
this
.
showType
=
this
.
feature
.
featureType
;
this
.
isDirect
=
res
.
data
.
data
.
isDirect
;
if
(
data
.
priceList
.
length
>
0
)
{
data
.
priceList
[
0
].
priceFlight
.
forEach
((
x
,
i
)
=>
{
if
(
i
==
0
)
{
...
...
@@ -1013,135 +1090,3 @@
}
</
script
>
<
style
>
@import
url('../assets/css/tripIndex.css')
;
@import
url("../assets/css/UpgradedVersion.css")
;
@import
url("../assets/css/tripIndexNew2.css")
;
@import
url('../assets/css/detail.css')
;
@import
url('../assets/css/tripIndexNewHV.css')
;
.edit_form_box
{
display
:
flex
;
justify-content
:
space-around
;
}
.edit_form_box_tit
{
color
:
#000000
;
text-align
:
left
;
margin-top
:
0
;
border-left
:
2px
solid
#e95252
;
padding-left
:
25px
;
}
.TravelFlightList
{
width
:
100%
;
background-color
:
#fff
;
}
.TravelFlightList
table
{
width
:
100%
;
}
.TFflightName
{
padding
:
3px
5px
;
display
:
inline-block
;
background-color
:
#ff9c00
;
color
:
#fff
;
border-radius
:
4px
;
margin-left
:
10px
;
}
.TFTable
.el-button.is-circle
{
padding
:
5px
;
}
.TFTable
.el-form-item
{
margin
:
10px
;
}
.TFTable
i
{
font-size
:
14px
;
}
.TFTable
.el-input--prefix
.el-input__inner
{
padding-right
:
0
;
}
.TFAddFlight
{
width
:
100%
;
height
:
40px
;
text-align
:
center
;
line-height
:
40px
;
color
:
#333
;
margin-top
:
5px
;
background-color
:
#f1f1f1
;
font-size
:
12px
;
border
:
1px
dashed
#dcdcdc
;
cursor
:
pointer
;
}
.w110
{
width
:
110px
!important
;
}
.w120
{
width
:
120px
!important
;
}
.normalBtn
{
color
:
#fff
;
padding
:
0
15px
;
height
:
30px
;
background
:
#E95252
;
border
:
1px
solid
#E95252
;
cursor
:
pointer
;
border-radius
:
15px
;
margin-left
:
10px
;
}
.hollowFixedBtn
{
background
:
#fff
;
color
:
#E95252
;
padding
:
0
15px
;
height
:
30px
;
border
:
1px
solid
#E95252
;
cursor
:
pointer
;
border-radius
:
15px
;
margin-left
:
10px
;
}
@media
print
{
html
,
sbody
{
background
:
none
!important
;
}
.travelControlTrip
{
margin
:
0px
!important
;
padding
:
0px
!important
;
}
.travelControlTripBtn
{
display
:
none
!important
;
}
.travelControlTripLayer
{
display
:
none
!important
;
}
#pdfNode
{
margin
:
0px
!important
;
}
.trip-block
{
border
:
none
!important
;
}
@page
{
margin
:
6.5mm
;
}
}
</
style
>
src/components/sale/ExpectedCommission.vue
View file @
2f02e513
...
...
@@ -567,6 +567,8 @@
CommissionInfor
:{},
OrderList
:
[],
loading
:
true
,
Year
:
""
,
Year2
:
""
,
YearTime
:
''
,
LastMonthTime
:
''
,
MonthTime
:
''
,
...
...
@@ -611,7 +613,9 @@
}
let
nowdays
=
new
Date
()
this
.
Year
=
new
Date
().
getFullYear
()
this
.
Year2
=
new
Date
().
getFullYear
()
-
1
this
.
LastMonthTime
=
new
Date
().
getMonth
()
this
.
LastMonthTime
=
this
.
LastMonthTime
==
0
?
12
:
this
.
LastMonthTime
this
.
MonthTime
=
new
Date
().
getMonth
()
+
1
this
.
msg
.
Month
=
this
.
Year
+
'-'
+
(
this
.
MonthTime
>=
10
?
this
.
MonthTime
:
'0'
+
this
.
MonthTime
)
this
.
MonthList
[
0
].
Name
=
this
.
MonthList
[
0
].
Name
+
'('
+
this
.
LastMonthTime
+
'月)'
...
...
@@ -640,7 +644,8 @@
if
(
item
.
Id
==
1
){
this
.
msg
.
Month
=
this
.
Year
+
'-'
+
(
this
.
MonthTime
>=
10
?
this
.
MonthTime
:
'0'
+
this
.
MonthTime
)
}
else
{
this
.
msg
.
Month
=
this
.
Year
+
'-'
+
(
this
.
LastMonthTime
>=
10
?
this
.
LastMonthTime
:
'0'
+
this
.
LastMonthTime
)
if
(
this
.
LastMonthTime
==
12
)
this
.
msg
.
Month
=
this
.
Year2
+
'-'
+
(
this
.
LastMonthTime
>=
10
?
this
.
LastMonthTime
:
'0'
+
this
.
LastMonthTime
)
else
this
.
msg
.
Month
=
this
.
Year
+
'-'
+
(
this
.
LastMonthTime
>=
10
?
this
.
LastMonthTime
:
'0'
+
this
.
LastMonthTime
)
}
this
.
getList
()
// this.getData()
...
...
src/components/temp/operation.vue
View file @
2f02e513
...
...
@@ -645,6 +645,8 @@
],
CommissionInfor
:
{},
OrderList
:
[],
Year
:
""
,
Year2
:
""
,
YearTime
:
''
,
LastMonthTime
:
''
,
MonthTime
:
''
,
...
...
@@ -716,7 +718,8 @@
if
(
item
.
Id
==
1
)
{
this
.
msg
.
Month
=
this
.
Year
+
'-'
+
(
this
.
MonthTime
>=
10
?
this
.
MonthTime
:
'0'
+
this
.
MonthTime
)
}
else
{
this
.
msg
.
Month
=
this
.
Year
+
'-'
+
(
this
.
LastMonthTime
>=
10
?
this
.
LastMonthTime
:
'0'
+
this
.
LastMonthTime
)
if
(
this
.
LastMonthTime
==
12
)
this
.
msg
.
Month
=
this
.
Year2
+
'-'
+
(
this
.
LastMonthTime
>=
10
?
this
.
LastMonthTime
:
'0'
+
this
.
LastMonthTime
)
else
this
.
msg
.
Month
=
this
.
Year
+
'-'
+
(
this
.
LastMonthTime
>=
10
?
this
.
LastMonthTime
:
'0'
+
this
.
LastMonthTime
)
}
this
.
getList
()
},
...
...
@@ -889,7 +892,9 @@
}
let
nowdays
=
new
Date
()
this
.
Year
=
new
Date
().
getFullYear
()
this
.
Year2
=
new
Date
().
getFullYear
()
-
1
this
.
LastMonthTime
=
new
Date
().
getMonth
()
this
.
LastMonthTime
=
this
.
LastMonthTime
==
0
?
12
:
this
.
LastMonthTime
this
.
MonthTime
=
new
Date
().
getMonth
()
+
1
this
.
msg
.
Month
=
this
.
Year
+
'-'
+
(
this
.
MonthTime
>=
10
?
this
.
MonthTime
:
'0'
+
this
.
MonthTime
)
this
.
MonthList
[
0
].
Name
=
this
.
MonthList
[
0
].
Name
+
'('
+
this
.
LastMonthTime
+
'月)'
...
...
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