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
d37a0279
Commit
d37a0279
authored
May 30, 2023
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
cb91fa45
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1135 additions
and
1 deletion
+1135
-1
FinancialDocumentsDetail.vue
src/components/FinancialModule/FinancialDocumentsDetail.vue
+2
-1
editExchangeRate.vue
...omponents/FinancialModule/components/editExchangeRate.vue
+1133
-0
No files found.
src/components/FinancialModule/FinancialDocumentsDetail.vue
View file @
d37a0279
...
...
@@ -825,6 +825,7 @@
</div>
<div
class=
"_conten"
>
{{
GetDetail
.
Type
}}
<my-Bill
v-if=
"GetDetail.Type===2 && GetDetail.Type!==5"
:isPrintPage=
"false"
:ID=
"GetDetail.FrID"
:width=
"widthSon"
:color=
"colorSon"
></my-Bill>
<my-RVB-Bill
v-else-if=
"GetDetail.Type===1"
:ID=
"GetDetail.FrID"
:isPrintPage=
"false"
:width=
"widthSon"
...
...
@@ -912,7 +913,7 @@
<span
v-if=
"GetDetail.IsShowDiJieChargeUrl==1"
style=
"margin-left:10px;cursor:pointer;"
@
click=
"jumpHotelContract('HotelContract',o)"
>
手配费详情
</span>
</td>
<td
@
click=
"getQuotation(o)"
v-if=
"!GetDetail.OrderID"
>
<td
@
click=
"getQuotation(o)"
v-if=
"!GetDetail.OrderID
&&o.Config_OfferId>0
"
>
<span
class=
"_jump_page _font_bold"
>
查看报价单
</span>
</td>
<td
@
click=
"gotoTravelList(o)"
>
<span
class=
"_jump_page _font_bold"
>
查看团队
</span>
</td>
<td
@
click=
"jumpPage('RegistrationList',o.TCID,7)"
>
<span
class=
"_jump_page _font_bold"
>
查看报名
</span>
</td>
...
...
src/components/FinancialModule/components/editExchangeRate.vue
0 → 100644
View file @
d37a0279
<
style
scoped
>
@import
"../../../assets/css/financia/editRate.css"
;
</
style
>
<
template
>
<el-dialog
title=
"修改汇率"
:visible
.
sync=
"isShow"
@
closed=
"clickcancel"
width=
"100%"
>
<my-Bill
v-if=
"GetDetail.Type===2 && GetDetail.Type!==5"
:isPrintPage=
"false"
:ID=
"GetDetail.FrID"
:width=
"widthSon"
:color=
"colorSon"
></my-Bill>
</el-dialog>
</
template
>
<
script
>
import
myFlowChartModule
from
"../FinancialSubmodule/FlowChartModule.vue"
;
import
myBill
from
"../FinancialSubmodule/BillModule.vue"
;
import
myCBill
from
"../FinancialSubmodule/CashierBillModule.vue"
;
import
myrbvBill
from
"../FinancialSubmodule/ReceivablesModule.vue"
;
import
myhrBill
from
"../FinancialSubmodule/MergeBillModule.vue"
;
import
myGZBill
from
"../FinancialSubmodule/GZBillModule.vue"
;
import
teamProductModule
from
"../../commonPage/teamProductModule.vue"
;
import
TicketFinace
from
"../../commonPage/TicketFinace.vue"
;
import
SaleOrderModule
from
"../../commonPage/SaleOrderModule.vue"
;
import
TicketingModule
from
"../../commonPage/TicketingModule.vue"
;
import
ChongDiPage
from
"../../commonPage/ChongDiPage.vue"
;
import
myDJieBill
from
"../FinancialSubmodule/DjieMergeBillModule.vue"
;
import
myGuanBill
from
"../FinancialSubmodule/GuanBillModule.vue"
;
import
myJiPiaoBill
from
"../FinancialSubmodule/JiPiaoBillModule.vue"
;
import
huijiBill
from
"../FinancialSubmodule/huijiBill.vue"
;
import
HandFeeDetails
from
"../HandFee/HandFeeDetails.vue"
;
import
czBillModule
from
"../FinancialSubmodule/czBillModule.vue"
;
import
dmcTravelBill
from
'../FinancialSubmodule/DmcTravelBillModule'
;
//线路
export
default
{
data
()
{
return
{
isShow
:
true
,
tableShowHandFee
:
true
,
TeamShouZhi
:
false
,
F_Disbursement_Schedule
:
false
,
userInfo
:
{},
qjGroupId
:
-
1
,
OPState
:
false
,
LeadState
:
false
,
//驳回弹窗
finacialDialog
:
false
,
ZhiDanRen
:
-
1
,
imageOptions
:
{
navbar
:
false
,
title
:
false
},
images
:
[],
ID
:
0
,
GetDetail
:
{
AuditSteps
:
[{
AuditRecordList
:
[{
AuditName
:
''
}]
}],
TCIDList
:
[],
TCIDAndTCNUMList
:
[]
},
AuditOrRefundMsg
:
{
WorkFlowId
:
''
,
Description
:
''
},
AuditListData
:
{
AuditList
:
[]
},
imageUrl
:
''
,
uploadImgList
:
[],
FuImgList
:
[],
imgList
:
[],
picIsShow
:
false
,
picObj
:
''
,
initialIndex
:
0
,
widthSon
:
"100%"
,
colorSon
:
"#ffffff"
,
endDate
:
''
,
returnCode
:
''
,
pageIndex
:
1
,
OrderSource
:
null
,
OrderID
:
null
,
TCID
:
null
,
FrID
:
null
,
Callback
:
null
,
SourceID
:
null
,
tableShow
:
false
,
tableShowTeam
:
false
,
fujianShow
:
true
,
sonTCIDList
:
null
,
bossID
:
null
,
saveMsg
:
[],
GetFinancLogList
:
[],
LogLoading
:
false
,
IsBoHui
:
false
,
tuiDataList
:
[],
tableShowTuikuan
:
false
,
queryMsg
:
{
pageIndex
:
1
,
pageSize
:
10
,
FinanceId
:
''
,
Type
:
2
,
currentPage
:
1
,
total
:
0
,
},
isChongDi
:
false
,
ChongDiList
:
[],
danjuType
:
''
,
showModel
:
false
,
CostTypeState
:
false
,
huijiShow
:
false
,
}
},
components
:
{
HandFeeDetails
,
'my-FlowChartModule'
:
myFlowChartModule
,
'my-Bill'
:
myBill
,
'my-C-Bill'
:
myCBill
,
'my-RVB-Bill'
:
myrbvBill
,
'my-HB-Bill'
:
myhrBill
,
"my-GZ-Bill"
:
myGZBill
,
'teamProductModule'
:
teamProductModule
,
'TicketingModule'
:
TicketingModule
,
'SaleOrderModule'
:
SaleOrderModule
,
'TicketFinace'
:
TicketFinace
,
'myDJieBill'
:
myDJieBill
,
'ChongDiPage'
:
ChongDiPage
,
'myGuanBill'
:
myGuanBill
,
'myJiPiaoBill'
:
myJiPiaoBill
,
'huijiBill'
:
huijiBill
,
"czBillModule"
:
czBillModule
,
"dmcTravelBill"
:
dmcTravelBill
},
created
()
{
// // crm自动登陆传过来的参数
if
(
this
.
$route
.
query
.
crmOrderObj
)
{
let
data
=
JSON
.
parse
(
this
.
$route
.
query
.
crmOrderObj
)
this
.
ID
=
data
.
id
}
else
{
this
.
ID
=
this
.
$route
.
query
.
id
;
}
this
.
pageIndex
=
this
.
$route
.
query
.
pageIndex
;
let
userinfo
=
this
.
getLocalStorage
();
this
.
bossID
=
userinfo
.
EmployeeId
;
let
ActionMenuCode
=
userinfo
.
ActionMenuCode
;
if
(
ActionMenuCode
.
indexOf
(
'F_Update_KJCostType'
)
!=
-
1
)
{
this
.
huijiShow
=
true
;
}
},
methods
:
{
clickcancel
(){
// this.parameters.TradeWay = []
this
.
isShow
=
false
this
.
$emit
(
'cancel'
)
},
showUpLoadFile2
(
i
)
{
// 预览上传文件
if
(
i
.
substring
(
i
.
lastIndexOf
(
'.'
)
+
1
,
i
.
length
).
toUpperCase
()
==
'PDF'
)
{
this
.
previewPDF
(
i
)
}
else
{
window
.
open
(
"https://view.officeapps.live.com/op/view.aspx?src="
+
i
)
}
},
// 单项服务提成
ImpressionSingleCommissionDetails
(
path
,
type
)
{
this
.
$router
.
push
({
path
:
path
,
query
:
{
PeriodId
:
this
.
GetDetail
.
ReFinanceId
,
Type
:
type
,
blank
:
'y'
,
tab
:
'单项服务提现详情'
}
});
},
// 获取包车type
GetCarList
(
path
)
{
let
data
=
{
pageIndex
:
1
,
pageSize
:
5
,
OrderType
:
''
,
OrderId
:
this
.
GetDetail
.
ReFinanceId
,
OrderNo
:
''
,
SurName
:
''
,
Name
:
''
,
OrderStatus
:
0
,
StartTime
:
''
,
EndTime
:
''
,
OrderSTime
:
''
,
OrderETime
:
''
,
ProductName
:
''
,
Mobile
:
''
,
//电话
IsSelectSale
:
1
,
EnterID
:
0
,
//业务员
}
let
url
url
=
"CarSingle_post_GetAdminCarOrderPageList"
this
.
apipost
(
url
,
data
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
.
pageData
let
OrderType
if
(
data
&&
data
.
length
>
0
)
{
OrderType
=
data
[
0
].
OrderType
}
this
.
$router
.
push
({
path
:
path
,
query
:
{
OrderType
:
OrderType
?
OrderType
:
4
,
OrderId
:
this
.
GetDetail
.
ReFinanceId
,
blank
:
'y'
}
});
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{}
);
},
// 单项酒店订单
ImpressionSingleDetails
(
path
)
{
if
((
this
.
GetDetail
.
RelevanceFrId
==
''
||
this
.
GetDetail
.
RelevanceFrId
==
null
)
&&
this
.
GetDetail
.
OtherType
==
67
)
{
this
.
GetCarList
(
path
)
}
else
{
this
.
$router
.
push
({
path
:
path
,
query
:
{
OrderType
:
this
.
GetDetail
.
RelevanceFrId
==
null
||
!
this
.
GetDetail
.
RelevanceFrId
?
4
:
this
.
GetDetail
.
RelevanceFrId
,
//1接机 2送机 3包车
OrderId
:
this
.
GetDetail
.
ReFinanceId
,
blank
:
'y'
}
});
}
},
// 印象票务制单详情
ImpressionTicketDetails
(
path
)
{
this
.
$router
.
push
({
path
:
path
,
query
:
{
PeriodsId
:
this
.
GetDetail
.
ReFinanceId
,
EmpIds
:
this
.
GetDetail
.
RelevanceFrId
,
blank
:
'y'
,
tab
:
'期数详情'
}
});
},
// 点击机票订单跳转CRM自动登录
clickAirTicketOrder
()
{
let
href
let
url
if
(
this
.
isOnline
())
{
url
=
'http://fcrmyx.oytour.com/#/'
}
else
{
url
=
'http://localhost:8081/#/'
}
let
data
=
[{
path
:
'customerOrder'
,
OrderId
:
this
.
GetDetail
.
ReFinanceId
,
}]
href
=
url
+
'automaticLogin?token='
+
this
.
getLocalStorage
().
token
+
'&data='
+
JSON
.
stringify
(
data
)
window
.
open
(
href
);
},
GetAuth
()
{
var
actionCode
=
this
.
$AuthCode
.
TeamShouZhi
;
this
.
CheckUserAuth
(
actionCode
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
&&
res
.
data
.
data
==
1
)
{
this
.
TeamShouZhi
=
true
;
}
});
var
actionCodeNew
=
this
.
$AuthCode
.
F_Disbursement_Schedule
;
this
.
CheckUserAuth
(
actionCodeNew
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
&&
res
.
data
.
data
==
1
)
{
this
.
F_Disbursement_Schedule
=
true
;
}
});
},
goHand
(
type
,
GetDetail
)
{
if
(
type
==
1
)
{
this
.
$router
.
push
({
name
:
'TeamBalancePayment'
,
query
:
{
id
:
GetDetail
.
TCID
,
IsHaveAuth
:
true
,
blank
:
"y"
,
tab
:
"团队收支明细"
}
});
}
if
(
type
==
2
)
{
this
.
$router
.
push
({
name
:
'FinancialDocumentsDetail'
,
query
:
{
id
:
GetDetail
.
ReFinanceId
,
blank
:
"y"
,
tab
:
"单据详情"
}
});
}
if
(
type
==
3
)
{
this
.
$router
.
push
({
name
:
'HandFeeStatistics'
,
query
:
{
HandFeeFrId
:
GetDetail
.
FrID
,
blank
:
"y"
,
tab
:
"手配费详情"
}
});
}
},
//跳转至电商订单详情
goOrderDetails
(
id
)
{
this
.
$router
.
push
({
name
:
'EleBillDetail'
,
query
:
{
BillId
:
id
,
blank
:
"y"
,
tab
:
"账单详情"
}
});
},
goSigningCustomer
(
id
,
name
)
{
this
.
$router
.
push
({
name
:
'signedFinanceAll'
,
query
:
{
id
:
id
,
name
:
name
,
blank
:
"y"
,
tab
:
"签约客户管理"
}
});
},
GourlHotelZr
()
{
this
.
$router
.
push
({
name
:
'HotelDiscount'
,
query
:
{
FinanceId
:
this
.
ID
,
blank
:
"y"
,
tab
:
"酒店折让"
}
});
},
GourlCostType
(
path
,
num
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
blank
:
"y"
,
EmployeeId
:
this
.
GetDetail
.
CreateBy
,
}
});
},
GoOPurl
(
GetDetail
)
{
this
.
$router
.
push
({
name
:
'OPsalesCommissiondetails'
,
query
:
{
PeriodId
:
GetDetail
.
ReFinanceId
,
OutBranchId
:
String
(
GetDetail
.
RB_Branch_Id
),
blank
:
"y"
,
tab
:
"op提成明细"
}
});
},
Gourl
(
GetDetail
)
{
if
(
GetDetail
.
OtherType
==
43
)
{
//9月9号新增 如果是43 就跳转到国内的详情 反之按之前的来用
this
.
$router
.
push
({
name
:
'domesticCommissiondetails'
,
query
:
{
PeriodId
:
GetDetail
.
ReFinanceId
,
blank
:
"y"
,
tab
:
"国内销售提成详情"
}
});
}
else
if
(
GetDetail
.
OtherType
==
69
)
{
//跳转台湾提成的三级详情
this
.
$router
.
push
({
name
:
'domesticCommissiondetailsTW'
,
query
:
{
PeriodId
:
GetDetail
.
ReFinanceId
,
OutBranchId
:
GetDetail
.
RB_Branch_Id
,
blank
:
"y"
,
tab
:
"台湾销售提成详情"
}
});
}
else
if
(
GetDetail
.
OtherType
==
70
)
{
//跳转台湾提成的三级详情
let
urlName
if
(
GetDetail
.
ReFinanceId2
==
1
)
{
urlName
=
'domesticCommissiondetailsTW'
}
if
(
GetDetail
.
ReFinanceId2
==
2
)
{
urlName
=
'domesticCommissionUserTW'
}
this
.
$router
.
push
({
name
:
urlName
,
query
:
{
PeriodId
:
GetDetail
.
ReFinanceId
,
OutBranchId
:
GetDetail
.
RB_Branch_Id
,
blank
:
"y"
,
tab
:
"台湾销售提成详情"
}
});
}
else
if
(
GetDetail
.
OtherType
==
72
)
{
//同业提成详情
this
.
$router
.
push
({
name
:
'TradeTicketDetails'
,
query
:
{
PeriodId
:
GetDetail
.
ReFinanceId
,
// OutBranchId: GetDetail.RB_Branch_Id,
RB_Branch_Id
:
GetDetail
.
RB_Branch_Id
,
blank
:
"y"
,
tab
:
"同业提成详情"
}
});
}
else
if
(
GetDetail
.
OtherType
==
73
)
{
//OP提成详情
this
.
$router
.
push
({
name
:
'OpComPersonDetails'
,
query
:
{
PeriodId
:
GetDetail
.
ReFinanceId
,
OutBranchId
:
GetDetail
.
RB_Branch_Id
,
blank
:
"y"
,
tab
:
"同业提成明细"
}
});
}
else
{
this
.
$router
.
push
({
name
:
'CommissionDetail'
,
query
:
{
periods
:
GetDetail
.
Periods
,
companyID
:
GetDetail
.
RB_Branch_Id
,
blank
:
"y"
,
tab
:
"提成详情"
}
});
}
},
// 获取冲抵列表
getChongDiList
(
data
)
{
this
.
danjuType
=
data
.
Type
let
cmd
=
'Financial_post_GetHangingAccountList'
if
(
data
.
Type
===
7
)
{
cmd
=
'Financial_post_GetHangingMatchFinanceList'
}
this
.
apipost
(
cmd
,
{
FrID
:
data
.
FrID
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
;
this
.
ChongDiList
=
data
;
}
},
err
=>
{})
},
chongJudge
(
data
)
{
// 收支冲抵显示
let
p1
=
false
;
data
.
DetailList
.
map
(
item
=>
{
if
(
item
.
CostTypeName
===
'挂账单冲抵'
)
{
p1
=
true
}
})
if
(
p1
||
data
.
Type
===
7
)
{
this
.
isChongDi
=
true
;
this
.
getChongDiList
(
data
)
}
},
goUrl
(
path
,
id
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
id
:
id
,
blank
:
"y"
}
});
},
goComplain
(
path
,
id
,
OrderId
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
id
:
id
,
orderId
:
OrderId
,
blank
:
"y"
}
});
},
goInves
(
path
,
TCID
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
TCID
:
TCID
,
blank
:
'y'
}
});
},
goGuideAccount
(
path
,
ClientID
)
{
if
(
ClientID
==
0
)
{
this
.
Error
(
'临时导游,无往来'
);
return
;
}
this
.
$router
.
push
({
name
:
path
,
query
:
{
ClientID
:
ClientID
,
blank
:
'y'
}
});
},
inited
(
viewer
)
{
this
.
$viewer
=
viewer
},
Financial_post_GetFinancLogList
()
{
// 获取单据日志
if
(
this
.
checkboxShow
)
return
this
.
LogLoading
=
true
;
this
.
apipost
(
'Financial_post_GetFinancLogList'
,
{
ID
:
this
.
ID
,
Type
:
2
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
;
data
.
forEach
(
x
=>
{
x
.
UpdateDate
=
this
.
$commonUtils
.
formatMsgTime
(
x
.
UpdateDate
)
})
this
.
LogLoading
=
false
;
this
.
GetFinancLogList
=
data
;
}
},
err
=>
{})
},
upLoadFuJian
:
function
()
{
if
(
this
.
saveMsg
.
length
===
0
)
return
this
.
$message
.
error
(
'请上传文件!'
);
let
msg
=
{
FrID
:
this
.
ID
,
vorcherInos
:
this
.
saveMsg
};
this
.
apipost
(
'Financial_post_SetVoucher'
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
Financial_post_GetDetail
(
this
.
ID
)
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
}
},
null
)
},
bohui
()
{
this
.
finacialDialog
=
true
;
this
.
AuditOrRefundMsg
.
WorkFlowId
=
this
.
ID
;
},
//确定驳回
setBoHui
()
{
this
.
apipost
(
'Financial_post_PersonRefund'
,
this
.
AuditOrRefundMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
res
.
data
.
message
);
this
.
finacialDialog
=
false
;
this
.
Financial_post_GetDetail
(
this
.
ID
)
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{})
},
goPrintPageNew
(
type
,
id
,
Merge
,
OrderSource
)
{
if
(
type
===
1
)
{
let
routeData
=
this
.
$router
.
resolve
({
name
:
'PrintPageN'
,
query
:
{
type
:
type
,
id
:
id
,
isKehu
:
0
,
Merge
:
Merge
,
OrderSource
:
OrderSource
?
OrderSource
:
-
1
}
});
window
.
open
(
routeData
.
href
,
"_blank"
);
}
else
{
let
routeData
=
this
.
$router
.
resolve
({
name
:
'PrintPageN'
,
query
:
{
type
:
type
,
id
:
id
,
Merge
:
Merge
,
OrderSource
:
OrderSource
?
OrderSource
:
-
1
}
});
window
.
open
(
routeData
.
href
,
"_blank"
);
}
},
goPrintPage2
(
type
,
id
,
Merge
,
OrderSource
)
{
if
(
type
===
1
)
{
let
routeData
=
this
.
$router
.
resolve
({
name
:
'PrintPageH'
,
query
:
{
huiji
:
true
,
type
:
type
,
id
:
id
,
isKehu
:
0
,
Merge
:
Merge
,
OrderSource
:
OrderSource
?
OrderSource
:
-
1
}
});
window
.
open
(
routeData
.
href
,
"_blank"
);
}
else
{
let
routeData
=
this
.
$router
.
resolve
({
name
:
'PrintPageH'
,
query
:
{
huiji
:
true
,
type
:
type
,
id
:
id
,
Merge
:
Merge
,
OrderSource
:
OrderSource
?
OrderSource
:
-
1
}
});
window
.
open
(
routeData
.
href
,
"_blank"
);
}
},
goPrintPage
(
type
,
id
,
Merge
,
OrderSource
)
{
if
(
type
===
1
)
{
// this.$confirm('是否打印客户联?', '提示', {
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning'
// }).then(() => {
// let routeData = this.$router.resolve({
// name: 'PrintPage',
// query: { type: type,id:id,isKehu:1}
// });
// window.open(routeData.href, "_blank");
// }).catch(() => {
// let routeData = this.$router.resolve({
// name: 'PrintPage',
// query: { type: type,id:id,isKehu:0}
// });
// window.open(routeData.href, "_blank");
// });
let
routeData
=
this
.
$router
.
resolve
({
name
:
'PrintPage'
,
query
:
{
type
:
type
,
id
:
id
,
isKehu
:
0
,
Merge
:
Merge
,
OrderSource
:
OrderSource
?
OrderSource
:
-
1
}
});
window
.
open
(
routeData
.
href
,
"_blank"
);
}
else
{
let
routeData
=
this
.
$router
.
resolve
({
name
:
'PrintPage'
,
query
:
{
type
:
type
,
id
:
id
,
Merge
:
Merge
,
OrderSource
:
OrderSource
?
OrderSource
:
-
1
}
});
window
.
open
(
routeData
.
href
,
"_blank"
);
}
},
jumpCheZiPage
(
path
,
id
)
{
this
.
apipost
(
'bus_post_GetCarfareTravelInfo'
,
{
TCID
:
id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
num
:
res
.
data
.
data
,
blank
:
'y'
}
})
}
},
null
)
},
jumpPlanPage
(
path
,
id
)
{
this
.
apipost
(
'dmcstatistics_post_GetTCIDsByOneTCID'
,
{
TCID
:
id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
id
:
res
.
data
.
data
.
TCIDs
,
isUpdate
:
false
,
blank
:
'y'
}
})
}
},
null
)
},
// 查看报价单详情
getQuotation
(
item
)
{
this
.
$router
.
push
({
name
:
'QuotationAduit'
,
query
:
{
configId
:
item
.
ConfigID
,
Qtype
:
1
,
blank
:
'y'
,
tab
:
'报价单查看'
}
})
},
//跳转到团控列表
gotoTravelList
(
item
)
{
var
path
=
""
;
//小包团
if
(
item
.
TeamType
==
1
)
{
path
=
"/TravelControlListSale"
;
}
//一日游|多日游|当地游
else
if
(
item
.
TeamType
==
2
)
{
path
=
"/oneDayTrip"
;
}
//地接团
else
if
(
item
.
TeamType
==
3
)
{
path
=
"/TravelControlList2"
;
}
//包机
else
if
(
item
.
TeamType
==
4
)
{
path
=
"/TravelTeam"
;
}
else
{
path
=
"/TravelControlList"
;
}
var
params
=
{
tcmun
:
item
.
TCNUM
};
this
.
OpenNewPage
(
path
,
params
)
},
jumpPage
(
path
,
id
,
type
,
OrderID
)
{
if
(
type
==
1
)
{
// let routeData = this.$router.resolve({
// name: path,
// query: { TCIDList: id}
// });
// window.open(routeData.href, "_blank");
this
.
$router
.
push
({
name
:
path
,
query
:
{
tcmun
:
id
,
blank
:
'y'
}
})
}
else
if
(
type
==
2
)
{
// let routeData = this.$router.resolve({
// name: path,
// query: { OrderSource: id.OrderSource,SourceID: id.SourceID}
// });
// window.open(routeData.href, "_blank");
this
.
$router
.
push
({
name
:
path
,
query
:
{
OrderSource
:
id
.
OrderSource
,
SourceID
:
id
.
SourceID
,
blank
:
'y'
}
})
}
else
if
(
type
==
3
)
{
// let routeData = this.$router.resolve({
// name: path,
// query: { OrderSource: id.OrderSource,SourceID: id.SourceID}
// });
// window.open(routeData.href, "_blank");
this
.
$router
.
push
({
name
:
path
,
query
:
{
OrderSource
:
id
.
OrderSource
,
SourceID
:
id
.
SourceID
,
blank
:
'y'
}
})
}
else
if
(
type
==
4
)
{
// let routeData = this.$router.resolve({
// name: path,
// query: { OrderSource: id.OrderSource,SourceID: id.SourceID}
// });
// window.open(routeData.href, "_blank");
this
.
$router
.
push
({
name
:
path
,
query
:
{
OrderSource
:
id
.
OrderSource
,
SourceID
:
id
.
SourceID
,
blank
:
'y'
}
})
}
else
if
(
type
==
5
)
{
// let routeData = this.$router.resolve({
// name: path,
// query: { id:id,OutBranchId:id.RB_Branch_Id}
// });
// window.open(routeData.href, "_blank");
this
.
$router
.
push
({
name
:
path
,
query
:
{
id
:
id
,
OutBranchId
:
id
.
RB_Branch_Id
,
blank
:
'y'
}
})
}
else
if
(
type
==
6
)
{
// let routeData = this.$router.resolve({
// name: path,
// query: { id:id,OutBranchId:id.RB_Branch_Id,'CloseIncomeBtn':true}
// });
// window.open(routeData.href, "_blank");
this
.
$router
.
push
({
name
:
path
,
query
:
{
id
:
id
,
OutBranchId
:
id
.
RB_Branch_Id
,
'CloseIncomeBtn'
:
true
,
blank
:
'y'
}
})
}
else
if
(
type
==
7
)
{
// let routeData = this.$router.resolve({
// name: path,
// query: { id:id,isShow:false}
// });
// window.open(routeData.href, "_blank");
this
.
$router
.
push
({
name
:
path
,
query
:
{
id
:
id
,
isShow
:
false
,
blank
:
'y'
}
})
}
else
if
(
type
==
8
)
{
// let routeData = this.$router.resolve({
// name: path,
// query: {VisaID:id.SourceID,isFinacial:0}
// });
// window.open(routeData.href, "_blank");
if
(
OrderID
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
id
:
id
.
SourceID
,
isFinacial
:
0
,
blank
:
'y'
,
OrderId
:
OrderID
}
})
}
else
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
id
:
id
.
SourceID
,
isFinacial
:
0
,
blank
:
'y'
,
}
})
}
}
},
//跳转至手配详情
jumpHotelContract
(
path
,
item
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
id
:
item
.
TCID
,
TCNUM
:
item
.
TCNUM
,
blank
:
'y'
}
})
},
uploadFileBtn
(
file
)
{
//上传
if
(
file
.
file
.
size
>
1024
*
1024
*
10
)
{
this
.
$message
.
warning
(
'文件大小不能超过10M!'
)
return
}
// 1 文档 2 数据 3 图片
let
typeArr
=
[{
stringArr
:
'GIF|JPG|JPEG|PNG|BMP'
,
type
:
3
},
{
stringArr
:
'DOCX|DOC|XLSX|XLS|PPT|PPTX|PDF'
,
type
:
1
},
]
let
ft
=
file
.
file
.
name
.
substring
(
file
.
file
.
name
.
lastIndexOf
(
'.'
)
+
1
,
file
.
file
.
name
.
length
).
toUpperCase
();
let
fileTypeNumber
=
2
;
let
typeOk
=
false
;
typeArr
.
forEach
(
x
=>
{
if
(
x
.
stringArr
.
indexOf
(
ft
)
!=
'-1'
)
{
fileTypeNumber
=
x
.
type
;
typeOk
=
true
;
}
});
if
(
!
typeOk
)
return
this
.
$message
.
error
(
'请上传图片、word、excel类型的文件!'
);
let
newArr
=
[];
newArr
.
push
(
file
.
file
)
let
path
=
"/Upload/Temporary/"
this
.
$message
.
info
(
'上传中...'
)
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
let
fileSize
=
file
.
file
.
size
<
1024
?
file
.
file
.
size
:
(
file
.
file
.
size
/
1024
).
toFixed
(
0
);
this
.
saveMsg
.
push
({
Type
:
fileTypeNumber
,
Content
:
x
.
data
.
FilePath
,
Url
:
this
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
,
});
this
.
$message
.
success
(
'上传成功'
);
});
},
deleteUploadFile
(
i
)
{
// 删除上传文件
this
.
saveMsg
.
splice
(
i
,
1
);
},
showUpLoadFileT
(
i
)
{
// 预览上传文件
if
(
i
.
Type
==
3
)
{
this
.
picObj
.
push
(
i
.
Url
);
this
.
imgList
.
push
(
i
.
Url
);
this
.
picIsShow
=
true
;
// this.hideFlashMan = true;
}
else
{
if
(
i
.
Content
.
substring
(
i
.
Content
.
lastIndexOf
(
'.'
)
+
1
,
i
.
Content
.
length
).
toUpperCase
()
==
'PDF'
)
{
this
.
previewPDF
(
i
.
Url
)
}
else
{
let
dom
=
document
.
querySelector
(
"#groupTourOrder_DownLoad"
);
dom
.
href
=
i
.
Url
;
dom
.
click
();
// window.open("https://view.officeapps.live.com/op/view.aspx?src="+i.Url)
}
}
},
showUpLoadFile
(
i
)
{
// 预览上传文件
if
(
i
.
Content
.
substring
(
i
.
Content
.
lastIndexOf
(
'.'
)
+
1
,
i
.
Content
.
length
).
toUpperCase
()
==
'PDF'
)
{
this
.
previewPDF
(
i
.
Content
)
}
else
{
let
dom
=
document
.
querySelector
(
"#groupTourOrder_DownLoad"
);
dom
.
href
=
i
.
Content
;
dom
.
click
();
// window.open("https://view.officeapps.live.com/op/view.aspx?src="+i.Content)
}
},
FinancialFlowTemplate_post_GetProcessList
(
id
,
tid
)
{
this
.
apipost
(
'FinancialFlowTemplate_post_GetProcessList'
,
{
ID
:
0
,
WorkFlowID
:
id
,
TemplateType
:
tid
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
res
.
data
.
data
.
forEach
(
y
=>
{
y
.
contentTips
=
y
.
AuditDescription
+
(
y
.
AuditWay
==
'2'
?
'(会签)'
:
'(或签)'
)
})
this
.
AuditListData
.
AuditList
=
res
.
data
.
data
;
}
else
{}
},
err
=>
{})
},
AuditOrRefund
()
{
this
.
MsgBus
.
$emit
(
'msg'
);
// this.$router.push({name:'FinancialDocuments',query:{"returnCode":this.returnCode,"pageIndex":this.pageIndex,blank:'y'}});
},
deleteImg
(
i
)
{
// 删除
this
.
uploadImgList
.
splice
(
i
,
1
)
},
handleAvatarSuccess
(
res
,
file
)
{
//上传
if
(
res
.
resultCode
==
1
)
{
var
img_path
=
res
.
data
.
FullFilePath
this
.
imageUrl
=
img_path
let
obj
=
{
src
:
img_path
}
this
.
uploadImgList
.
push
(
obj
)
}
},
showImg
(
obj
,
type
)
{
let
isExsit
=
false
this
.
images
.
forEach
(
x
=>
{
if
(
x
==
obj
)
isExsit
=
true
})
if
(
!
isExsit
)
{
this
.
images
.
push
(
obj
)
}
else
{
this
.
$viewer
.
view
(
this
.
images
.
indexOf
(
obj
))
}
this
.
$viewer
.
show
()
// this.picObj= obj;
// this.picIsShow= true;
},
Financial_post_GetDetail
(
id
,
t
)
{
//获取单据详情
this
.
FuImgList
=
[];
this
.
saveMsg
=
[];
this
.
apipost
(
'Financial_post_GetDetail'
,
{
ID
:
id
,
Type
:
1
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
;
data
.
DetailList
.
forEach
(
x
=>
{
x
.
UnitPrice
=
this
.
$commonUtils
.
addCommas
(
Math
.
round
(
x
.
UnitPrice
*
100
)
/
100
)
x
.
Money
=
Math
.
round
(
x
.
Money
*
100
)
/
100
x
.
OriginalMoney
=
Math
.
round
(
x
.
OriginalMoney
*
100
)
/
100
})
data
.
ChineseMoney
=
this
.
$commonUtils
.
changeMoneyToChinese
(
data
.
Money
)
data
.
Money
=
this
.
$commonUtils
.
addCommas
(
Math
.
round
(
data
.
Money
*
100
)
/
100
)
if
(
data
.
Status
==
2
)
{
let
len
=
data
.
AuditSteps
.
length
-
1
;
let
sLen
=
data
.
AuditSteps
[
len
].
AuditRecordList
[
data
.
AuditSteps
[
len
].
AuditRecordList
.
length
-
1
];
let
begTime
=
data
.
AuditSteps
[
0
].
AuditRecordList
[
0
].
AduitDate
;
let
enTime
=
sLen
&&
sLen
.
AduitDate
?
sLen
.
AduitDate
:
begTime
;
let
newTime
=
this
.
$commonUtils
.
formatMsgTime2
(
begTime
,
enTime
);
this
.
endDate
=
newTime
.
replace
(
"前"
,
""
);
}
this
.
FinancialFlowTemplate_post_GetProcessList
(
data
.
FrID
,
data
.
TemplateType
)
if
(
data
.
VorcherInos
.
length
>
0
)
{
data
.
VorcherInos
.
forEach
(
x
=>
{
if
(
x
.
Type
==
3
)
{
let
Content
=
x
.
Content
.
replace
(
'http:'
,
'http:'
);
this
.
FuImgList
.
push
(
Content
);
this
.
images
.
push
(
Content
)
}
})
}
this
.
chongJudge
(
data
)
this
.
GetDetail
=
data
;
if
(
this
.
GetDetail
.
DetailList
)
{
this
.
GetDetail
.
DetailList
.
forEach
(
item
=>
{
if
(
item
.
CostTypeName
==
"领队导游资金池领款"
)
{
this
.
LeadState
=
true
;
}
})
}
this
.
showModel
=
true
// 截取掉驳回后面的审核步骤
this
.
ZhiDanRen
=
this
.
GetDetail
.
CreatBy
;
let
list
=
[];
for
(
let
i
=
0
;
i
<
this
.
GetDetail
.
AuditSteps
.
length
;
i
++
)
{
list
.
push
(
this
.
GetDetail
.
AuditSteps
[
i
]);
if
(
this
.
GetDetail
.
AuditSteps
[
i
].
Status
==
4
)
{
this
.
IsBoHui
=
true
;
break
;
}
}
this
.
GetDetail
.
AuditSteps
=
list
;
this
.
OrderID
=
this
.
GetDetail
.
OrderID
;
this
.
OrderSource
=
this
.
GetDetail
.
OrderSource
;
this
.
TCID
=
this
.
GetDetail
.
TCID
;
this
.
FrID
=
this
.
GetDetail
.
FrID
;
this
.
SourceID
=
this
.
GetDetail
.
SourceID
;
this
.
Callback
=
this
.
GetDetail
.
Callback
;
if
(
this
.
GetDetail
.
DetailList
.
length
>
0
)
{
this
.
GetDetail
.
DetailList
.
forEach
(
item
=>
{
if
(
item
.
CostTypeName
==
"差旅费"
)
{
this
.
CostTypeState
=
true
;
}
if
(
item
.
CostTypeName
==
"业务提成(操作)"
)
{
this
.
OPState
=
true
;
}
})
}
// 拼接团号显示团信息
let
str
=
''
;
if
(
data
.
TCIDList
.
length
>
0
)
{
data
.
TCIDList
.
forEach
(
x
=>
{
str
=
str
+
x
+
','
;
})
}
str
=
str
.
slice
(
0
,
str
.
length
-
1
);
this
.
sonTCIDList
=
str
==
''
?
null
:
str
;
if
(
data
.
URL
)
{
// if(this.OrderSource==9){ // 国内票务订单
// if(this.GetDetail.Type==2){
// this.$router.push({name:data.URL,query:{'FrID':this.FrID,id:this.ID}});
// }
// }else if(this.OrderSource==10){ //销售订单
// this.$router.push({name:data.URL,query:{'orderID':this.OrderID,'SourceID':this.SourceID}});
// }else if(this.OrderSource==4){ //机票订单
// this.$router.push({name:data.URL,query:{'SourceID':this.SourceID,'Callback':this.Callback,id:this.ID}});
// }
}
// if(data.URL){
// this.$router.push({name:})
// }
}
},
err
=>
{})
},
pushPage
()
{
Vue
.
component
(
this
.
name
+
this
.
z
,
this
.
componentTemp
)
this
.
c
=
this
.
name
+
this
.
z
},
//获取列表
getTuikuan
()
{
this
.
apipost
(
'OnlinePay_get_GetOrderPayMoneyInfo'
,
this
.
queryMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
tuiDataList
=
res
.
data
.
data
.
pageData
;
this
.
queryMsg
.
total
=
res
.
data
.
data
.
count
;
}
},
err
=>
{})
},
goassets
(
ID
,
OtherType
)
{
this
.
$router
.
replace
({
name
:
"InAndOutDdetails"
,
query
:
{
ID
:
ID
,
OtherType
:
OtherType
,
blank
:
'y'
},
})
},
lookbreakage
(
ID
)
{
this
.
$router
.
replace
({
name
:
"breakageSingle"
,
query
:
{
ID
:
ID
,
blank
:
'y'
},
})
}
},
mounted
()
{
// document.onkeydown = this.KeyDown
// document.onkeyup = this.KeyUp
// document.oncontextmenu = function(){return false;}
this
.
GetAuth
();
this
.
userInfo
=
this
.
getLocalStorage
();
this
.
qjGroupId
=
this
.
QjGroupId
();
this
.
Financial_post_GetDetail
(
this
.
ID
)
this
.
queryMsg
.
FinanceId
=
this
.
$route
.
query
.
id
;
if
(
this
.
$route
.
query
.
Conditon
)
{
this
.
returnCode
=
this
.
$route
.
query
.
Conditon
;
}
this
.
getTuikuan
();
}
}
</
script
>
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