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
e14974a8
Commit
e14974a8
authored
Aug 06, 2024
by
吴春
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
954d7c17
c5c58c29
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
175 additions
and
59 deletions
+175
-59
BasicDocuments.vue
src/components/FinancialModule/BasicDocuments.vue
+24
-1
corporation.vue
...s/FinancialModule/DataAnalysis/components/corporation.vue
+17
-1
index.vue
src/components/FinancialModule/DataAnalysis/index.vue
+65
-2
FinancialDocuments.vue
src/components/FinancialModule/FinancialDocuments.vue
+1
-1
FinancialDocumentsDetail.vue
src/components/FinancialModule/FinancialDocumentsDetail.vue
+24
-1
TeamRevenueReport.vue
...mponents/FinancialModule/ReportForm/TeamRevenueReport.vue
+5
-6
VisaInformation.vue
src/components/LeaveGroupDownload/VisaInformation.vue
+1
-1
confirmationOrderDownLoadNew.vue
src/components/confirmationOrderDownLoadNew.vue
+38
-46
No files found.
src/components/FinancialModule/BasicDocuments.vue
View file @
e14974a8
...
@@ -905,6 +905,9 @@
...
@@ -905,6 +905,9 @@
<div
v-if=
"GetDetail.OtherType==80"
class=
"illustrate-right fygsbumen-box-right"
<div
v-if=
"GetDetail.OtherType==80"
class=
"illustrate-right fygsbumen-box-right"
@
click=
"ImpressionSingleDetails(isOrderOP?'CarDealerOrderOP':'CarDealerOrder')"
>
@
click=
"ImpressionSingleDetails(isOrderOP?'CarDealerOrderOP':'CarDealerOrder')"
>
{{$t('objFill.chdd')+':'+GetDetail.TCNUM}}
</div>
{{$t('objFill.chdd')+':'+GetDetail.TCNUM}}
</div>
<div
v-if=
"GetDetail.OtherType==83"
class=
"illustrate-right fygsbumen-box-right"
@
click=
"ImpressionSingleDetails(isOrderOP?'CarDealerOrderOP':'CarDealerOrder')"
>
{{'车行包月订单'+':'+GetDetail.ReFinanceId}}
</div>
<!-- <div v-if="GetDetail.OtherType==63" class="illustrate-right fygsbumen-box-right"
<!-- <div v-if="GetDetail.OtherType==63" class="illustrate-right fygsbumen-box-right"
@click="ImpressionSingleCommissionDetails('ServiceCommissiondetails',1)">{{$t('objFill.dxxstcxq')}}</div>
@click="ImpressionSingleCommissionDetails('ServiceCommissiondetails',1)">{{$t('objFill.dxxstcxq')}}</div>
...
@@ -2661,7 +2664,27 @@ else if (Type==2) {
...
@@ -2661,7 +2664,27 @@ else if (Type==2) {
}
}
});
});
}
}
}
else
{
}
else
if
(
this
.
GetDetail
.
OtherType
==
83
){
if
(
this
.
typeSystem
==
1
)
{
let
href
=
this
.
domainManager
().
CarUrl
window
.
parent
.
postMessage
({
event_id
:
'CarDealerOrder'
,
data
:
{
MainId
:
this
.
GetDetail
.
ReFinanceId
,
}
},
`
${
href
}
`
)
}
else
{
this
.
$router
.
push
({
path
:
path
,
query
:
{
MainId
:
this
.
GetDetail
.
ReFinanceId
,
blank
:
'y'
}
});
}
}
else
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
path
,
path
:
path
,
query
:
{
query
:
{
...
...
src/components/FinancialModule/DataAnalysis/components/corporation.vue
View file @
e14974a8
...
@@ -71,12 +71,28 @@
...
@@ -71,12 +71,28 @@
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
""
prop=
""
label=
"
最终
利润"
label=
"
营业
利润"
min-width=
"120"
align=
"center"
>
min-width=
"120"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
DetailList
[
i
].
FinalProfit
.
toFixed
(
2
)
}}
{{
scope
.
row
.
DetailList
[
i
].
FinalProfit
.
toFixed
(
2
)
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
""
label=
"管销费用"
min-width=
"120"
align=
"center"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
DetailList
[
i
].
GXFY
.
toFixed
(
2
)
}}
</
template
>
</el-table-column>
<el-table-column
prop=
""
label=
"净利润"
min-width=
"120"
align=
"center"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
DetailList
[
i
].
JLR
.
toFixed
(
2
)
}}
</
template
>
</el-table-column>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
</div>
</div>
...
...
src/components/FinancialModule/DataAnalysis/index.vue
View file @
e14974a8
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<el-select
<el-select
filterable
filterable
v-model=
"msg.OutBranchId"
v-model=
"msg.OutBranchId"
@
change=
"get
Statement
"
@
change=
"get
Change
"
clearable
clearable
>
>
<el-option
<el-option
...
@@ -29,6 +29,19 @@
...
@@ -29,6 +29,19 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"4"
>
<el-form-item
:label=
"$t('fnc.bweibi')"
>
<el-select
:disabled=
"coinGetShow"
filterable
v-model=
"msg.StandardCurrencyId"
class
@
change=
"getChange"
>
<el-option
:value=
"-1"
:label=
"$t('pub.unlimitedSel')"
></el-option>
<el-option
v-for=
"item in coinGetList"
:label=
"item.Name"
:value=
"item.ID"
:key=
"item.ID"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-col
:span=
"4"
>
<el-form-item
label=
"线路"
>
<el-form-item
label=
"线路"
>
<el-select
filterable
v-model=
"msg.LineId"
@
change=
"getStatement"
<el-select
filterable
v-model=
"msg.LineId"
@
change=
"getStatement"
...
@@ -63,6 +76,26 @@
...
@@ -63,6 +76,26 @@
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"4"
v-if=
"msg.Type==2"
>
<el-form-item
label=
"数据类别:"
>
<el-select
v-model=
"msg.DataType"
filterable
class=
"w150"
@
change=
"getStatement"
>
<el-option
value=
"-1"
:label=
"$t('pub.unlimitedSel')"
></el-option>
<el-option
value=
"1"
label=
"团队营收"
></el-option>
<el-option
value=
"3"
label=
"单办签证"
></el-option>
<el-option
value=
"15"
label=
"手配费收入"
></el-option>
<el-option
value=
"16"
label=
"单项机票"
></el-option>
<el-option
value=
"17"
label=
"单项酒店"
></el-option>
<el-option
value=
"18"
label=
"单项包车"
></el-option>
<el-option
value=
"19"
label=
"单项门票"
></el-option>
<el-option
value=
"20"
label=
"开票收入"
></el-option>
<el-option
value=
"21"
label=
"日本手配费收入"
></el-option>
<el-option
value=
"22"
label=
"车行收入"
></el-option>
<el-option
value=
"23"
label=
"欧洲单团分润收入"
></el-option>
<el-option
value=
"24"
label=
"欧洲损失分摊"
></el-option>
<el-option
value=
"25"
label=
"CRM直客部外丟團"
></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-row>
</el-form>
</el-form>
<ul
class=
"clearfix"
>
<ul
class=
"clearfix"
>
...
@@ -98,8 +131,10 @@ export default {
...
@@ -98,8 +131,10 @@ export default {
startDate
:
''
,
startDate
:
''
,
endDate
:
''
,
endDate
:
''
,
OutBranchId
:
-
1
,
OutBranchId
:
-
1
,
StandardCurrencyId
:
0
,
LineId
:
0
,
LineId
:
0
,
Type
:
'1'
Type
:
'1'
,
DataType
:
'-1'
},
},
dateTime
:
[],
dateTime
:
[],
CompanyList
:
[],
CompanyList
:
[],
...
@@ -109,6 +144,7 @@ export default {
...
@@ -109,6 +144,7 @@ export default {
Status
:
"0"
,
Status
:
"0"
,
},
},
LineList
:
[],
LineList
:
[],
coinGetList
:
[],
pickerOptions
:
{
pickerOptions
:
{
shortcuts
:
[{
shortcuts
:
[{
text
:
'本月'
,
text
:
'本月'
,
...
@@ -143,10 +179,37 @@ export default {
...
@@ -143,10 +179,37 @@ export default {
this
.
dateTime
=
[
this
.
$commonUtils
.
getFormatDateM
(
start
),
this
.
$commonUtils
.
getFormatDateM
(
end
)]
this
.
dateTime
=
[
this
.
$commonUtils
.
getFormatDateM
(
start
),
this
.
$commonUtils
.
getFormatDateM
(
end
)]
this
.
msg
.
startDate
=
this
.
dateTime
[
0
]
this
.
msg
.
startDate
=
this
.
dateTime
[
0
]
this
.
msg
.
endDate
=
this
.
dateTime
[
1
]
this
.
msg
.
endDate
=
this
.
dateTime
[
1
]
this
.
financeinfo_post_GetList
()
this
.
getQueryData
()
this
.
getQueryData
()
this
.
getStatement
()
this
.
getStatement
()
},
},
methods
:
{
methods
:
{
getChange
(
val
){
if
(
this
.
msg
.
OutBranchId
==
-
1
){
this
.
coinGetShow
=
false
this
.
msg
.
StandardCurrencyId
=
val
>-
1
?
val
:
this
.
coinGetList
[
0
].
ID
}
else
{
this
.
coinGetShow
=
true
this
.
msg
.
StandardCurrencyId
=
-
1
}
this
.
getStatement
();
},
financeinfo_post_GetList
(){
// 获取币种
this
.
apipost
(
'financeinfo_post_GetAllStandardCurrencyList'
,{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
coinGetList
=
res
.
data
.
data
;
if
(
this
.
msg
.
OutBranchId
==
-
1
){
this
.
coinGetShow
=
false
this
.
msg
.
StandardCurrencyId
=
this
.
coinGetList
[
0
].
ID
this
.
msg
.
StandardCurrencyId
=
this
.
$route
.
query
.
StandardCurrencyId
?
Number
(
this
.
$route
.
query
.
StandardCurrencyId
):
this
.
msg
.
StandardCurrencyId
;
}
else
{
this
.
coinGetShow
=
true
this
.
msg
.
StandardCurrencyId
=
-
1
}
this
.
getPageList
();
}
})
},
getStatement
(){
getStatement
(){
this
.
loading
=
true
this
.
loading
=
true
this
.
apipost
(
this
.
apipost
(
...
...
src/components/FinancialModule/FinancialDocuments.vue
View file @
e14974a8
...
@@ -729,7 +729,7 @@
...
@@ -729,7 +729,7 @@
<button
v-if=
"HandShow"
class=
"hollowFixedBtn"
<button
v-if=
"HandShow"
class=
"hollowFixedBtn"
@
click=
"Handwithfee"
>
{{
$t
(
'objFill.handdistributionfeeincome'
)
}}
</button>
@
click=
"Handwithfee"
>
{{
$t
(
'objFill.handdistributionfeeincome'
)
}}
</button>
<button
class=
"hollowFixedBtn"
@
click=
"ZhiDanChongDi"
>
{{
$t
(
'objFill.precharge'
)
}}
</button>
<button
class=
"hollowFixedBtn"
@
click=
"ZhiDanChongDi"
>
{{
$t
(
'objFill.precharge'
)
}}
</button>
<button
v-if=
"this.userId==2739 || this.userId==3038"
class=
"hollowFixedBtn"
@
click=
"openMarkDialog"
>
<button
v-if=
"this.userId==2739 || this.userId==3038
|| this.userId==2604
"
class=
"hollowFixedBtn"
@
click=
"openMarkDialog"
>
PIC优先付款记录
</button>
PIC优先付款记录
</button>
<!-- v-if="F_Advance_Match" -->
<!-- v-if="F_Advance_Match" -->
<button
class=
"hollowFixedBtn"
@
click=
"BOSSBtn = !BOSSBtn, checkList = [], getPageList(1), BOSSBtn2 = false"
<button
class=
"hollowFixedBtn"
@
click=
"BOSSBtn = !BOSSBtn, checkList = [], getPageList(1), BOSSBtn2 = false"
...
...
src/components/FinancialModule/FinancialDocumentsDetail.vue
View file @
e14974a8
...
@@ -934,6 +934,9 @@
...
@@ -934,6 +934,9 @@
<div
v-if=
"GetDetail.OtherType==80"
class=
"illustrate-right fygsbumen-box-right"
<div
v-if=
"GetDetail.OtherType==80"
class=
"illustrate-right fygsbumen-box-right"
@
click=
"ImpressionSingleDetails(isOrderOP?'CarDealerOrderOP':'CarDealerOrder')"
>
@
click=
"ImpressionSingleDetails(isOrderOP?'CarDealerOrderOP':'CarDealerOrder')"
>
{{
$t
(
'objFill.chdd'
)
+
':'
+
GetDetail
.
TCNUM
}}
</div>
{{
$t
(
'objFill.chdd'
)
+
':'
+
GetDetail
.
TCNUM
}}
</div>
<div
v-if=
"GetDetail.OtherType==83"
class=
"illustrate-right fygsbumen-box-right"
@
click=
"ImpressionSingleDetails(isOrderOP?'CarDealerOrderOP':'CarDealerOrder')"
>
{{
'车行包月订单'
+
':'
+
GetDetail
.
ReFinanceId
}}
</div>
<!--
<div
v-if=
"GetDetail.OtherType==63"
class=
"illustrate-right fygsbumen-box-right"
<!--
<div
v-if=
"GetDetail.OtherType==63"
class=
"illustrate-right fygsbumen-box-right"
@
click=
"ImpressionSingleCommissionDetails('ServiceCommissiondetails',1)"
>
{{
$t
(
'objFill.dxxstcxq'
)
}}
</div>
@
click=
"ImpressionSingleCommissionDetails('ServiceCommissiondetails',1)"
>
{{
$t
(
'objFill.dxxstcxq'
)
}}
</div>
<div
v-if=
"GetDetail.OtherType==64"
class=
"illustrate-right fygsbumen-box-right"
<div
v-if=
"GetDetail.OtherType==64"
class=
"illustrate-right fygsbumen-box-right"
...
@@ -1897,7 +1900,27 @@
...
@@ -1897,7 +1900,27 @@
}
}
});
});
}
}
}
else
if
(
this
.
GetDetail
.
OtherType
==
83
){
if
(
this
.
typeSystem
==
1
)
{
let
href
=
this
.
domainManager
().
CarUrl
window
.
parent
.
postMessage
({
event_id
:
'CarDealerOrder'
,
data
:
{
MainId
:
this
.
GetDetail
.
ReFinanceId
,
}
},
`
${
href
}
`
)
}
else
{
}
else
{
this
.
$router
.
push
({
path
:
path
,
query
:
{
MainId
:
this
.
GetDetail
.
ReFinanceId
,
blank
:
'y'
}
});
}
}
else
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
path
,
path
:
path
,
query
:
{
query
:
{
...
...
src/components/FinancialModule/ReportForm/TeamRevenueReport.vue
View file @
e14974a8
...
@@ -2389,18 +2389,18 @@ export default {
...
@@ -2389,18 +2389,18 @@ export default {
{
{
field
:
"TicketFee"
,
field
:
"TicketFee"
,
formatter
:
this
.
moneyFormat
,
formatter
:
this
.
moneyFormat
,
title
:
"过路停车费"
,
title
:
"过路停车费
收入
"
,
width
:
9
0
,
width
:
10
0
,
titleAlign
:
"left"
,
titleAlign
:
"left"
,
columnAlign
:
"right"
,
columnAlign
:
"right"
,
isResize
:
true
,
isResize
:
true
,
componentName
:
"TCIDJumpWang"
componentName
:
"TCIDJumpWang"
},
},
{
{
field
:
"
YingFu
"
,
field
:
"
JiPiao
"
,
formatter
:
this
.
moneyFormat
,
formatter
:
this
.
moneyFormat
,
title
:
"
应付金额
"
,
title
:
"
过路停车费支出
"
,
width
:
9
0
,
width
:
10
0
,
titleAlign
:
"left"
,
titleAlign
:
"left"
,
columnAlign
:
"right"
,
columnAlign
:
"right"
,
isResize
:
true
,
isResize
:
true
,
...
@@ -2418,7 +2418,6 @@ export default {
...
@@ -2418,7 +2418,6 @@ export default {
},
},
{
{
field
:
"MaoLiRate"
,
field
:
"MaoLiRate"
,
// formatter: this.moneyFormat,
title
:
"毛利率"
,
title
:
"毛利率"
,
width
:
90
,
width
:
90
,
titleAlign
:
"left"
,
titleAlign
:
"left"
,
...
...
src/components/LeaveGroupDownload/VisaInformation.vue
View file @
e14974a8
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<div
class=
"expense"
v-if=
"feature.importantTip != '' && vshowG"
>
<div
class=
"expense"
v-if=
"feature.importantTip != '' && vshowG"
>
<div
class=
"left"
>
<div
class=
"left"
>
<div
style=
"font-size:28px;margin-bottom:20px;"
>
<div
style=
"font-size:28px;margin-bottom:20px;"
>
签
字
须知
签
证
须知
</div>
</div>
</div>
</div>
<div
class=
"right"
>
<div
class=
"right"
>
...
...
src/components/confirmationOrderDownLoadNew.vue
View file @
e14974a8
...
@@ -111,25 +111,42 @@
...
@@ -111,25 +111,42 @@
<el-col
:span=
"14"
class=
"row-aic"
>
<el-col
:span=
"14"
class=
"row-aic"
>
<a
id=
"pdfDownLoad"
style=
"display:none;"
target=
"_blank"
href=
"http://www.baidu.com"
download=
"xx.pdf"
>
页面跳转
</a>
<a
id=
"pdfDownLoad"
style=
"display:none;"
target=
"_blank"
href=
"http://www.baidu.com"
download=
"xx.pdf"
>
页面跳转
</a>
<template
v-if=
"orderId>0"
>
<template
v-if=
"orderId>0"
>
<el-button
type=
"primary"
size=
"medium"
@
click=
"toPDF_2023()"
>
<el-button
type=
"primary"
@
click=
"toPDF_2023()"
>
出团通知书下载
</el-button>
出团通知书下载
</el-button>
<el-button
type=
"primary"
size=
"medium"
@
click=
"ToWord_2023()"
>
<template
v-if=
"lineId==119||lineId==168"
>
<el-dropdown
style=
"padding-left:20px;"
>
<el-button
type=
"primary"
>
出团通知书
<i
class=
"el-icon-arrow-down el-icon--right"
></i>
</el-button>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
@
click
.
native=
"ToWord_2023()"
>
出团通知书WORD
</el-dropdown-item>
<el-dropdown-item
@
click
.
native=
"OuZhouPdf2024()"
>
出团通知书(欧洲PDF)
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</
template
>
<
template
v-else
>
<el-button
type=
"primary"
@
click=
"ToWord_2023()"
>
出团通知书下载WROD
</el-button>
出团通知书下载WROD
</el-button>
</
template
>
<el-button
type=
"primary"
size=
"medium"
@
click=
"OuZhouPdf2024()"
v-if=
"lineId==119||lineId==168"
style=
"display:none;"
>
欧洲出团通知书PDF
</el-button>
</template>
</template>
<
template
v-else
>
<
template
v-else
>
<el-button
type=
"primary"
size=
"medium"
@
click=
"toPDF_2023(1)"
>
<el-button
type=
"primary"
@
click=
"toPDF_2023(1)"
>
行程下载
</el-button>
行程下载
</el-button>
<el-button
v-if=
"isShowAllDownLoad"
type=
"primary"
size=
"medium"
@
click=
"toPDF_2023()"
<template
v-if=
"lineId==119||lineId==168"
>
style=
"margin-left:20px;"
>
<el-dropdown
style=
"padding-left:20px;"
>
行程下载(N)
</el-button>
<el-button
type=
"primary"
>
<el-button
type=
"primary"
size=
"medium"
@
click=
"ToWord_2023()"
style=
"margin-left:20px;"
>
行程下载WORD
<i
class=
"el-icon-arrow-down el-icon--right"
></i>
</el-button>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
@
click
.
native=
"ToWord_2023()"
>
行程下载WORD
</el-dropdown-item>
<el-dropdown-item
@
click
.
native=
"OuZhouPdf2024()"
>
行程下载(欧洲PDF)
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</
template
>
<
template
v-else
>
<el-button
type=
"primary"
@
click=
"ToWord_2023()"
style=
"margin-left:20px;"
>
行程下载WORD
</el-button>
行程下载WORD
</el-button>
<el-button
type=
"primary"
size=
"medium"
@
click=
"OuZhouPdf2024()"
style=
"margin-left:20px; display:none;"
</
template
>
v-if=
"lineId==119||lineId==168"
>
欧洲行程PDF
</el-button>
</template>
</template>
<!-- 可以让销售修改基本信息-->
<!-- 可以让销售修改基本信息-->
<el-button
v-if=
"orderId>0"
type=
"primary"
size=
"medium"
value=
"修改信息"
@
click=
"editMsgShow=true"
>
<el-button
v-if=
"orderId>0"
type=
"primary"
size=
"medium"
value=
"修改信息"
@
click=
"editMsgShow=true"
>
...
@@ -355,14 +372,10 @@
...
@@ -355,14 +372,10 @@
pdfLoading
:
false
,
pdfLoading
:
false
,
loadingText
:
""
,
//加载文字
loadingText
:
""
,
//加载文字
download_timer
:
null
,
download_timer
:
null
,
isShowAllDownLoad
:
false
,
//是否显示实时下载行程按钮
}
}
},
},
mounted
()
{
mounted
()
{
this
.
orderId
=
this
.
$route
.
query
.
orderId
;
this
.
orderId
=
this
.
$route
.
query
.
orderId
;
if
(
this
.
$route
.
query
.
isda
&&
this
.
$route
.
query
.
isda
==
1
)
{
this
.
isShowAllDownLoad
=
true
;
}
this
.
getWxCode
();
this
.
getWxCode
();
this
.
getTripDetail
();
this
.
getTripDetail
();
this
.
getAirlines
();
this
.
getAirlines
();
...
@@ -672,36 +685,15 @@
...
@@ -672,36 +685,15 @@
if
(
res
.
data
.
resultCode
===
1
)
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
loadingText
=
"正在下载pdf文件..."
;
this
.
loadingText
=
"正在下载pdf文件..."
;
let
path
=
res
.
data
.
data
;
let
path
=
res
.
data
.
data
;
var
ocrUrl
=
""
;
that
.
downLoadUrl
=
path
;
that
.
pdfLoading
=
true
;
that
.
pdfLoading
=
true
;
ocrUrl
=
urlObj
.
ocrUrl
+
"/Home/CreateTYPdf?url="
+
encodeURIComponent
(
path
);
this
.
download_timer
=
setInterval
(
function
()
{
that
.
$http
({
that
.
checkFile
(
msg
.
configId
,
fileName
)
headers
:
{
},
2000
);
'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
=
""
;
}).
catch
(
err
=>
{
that
.
pdfLoading
=
false
})
this
.
loadingText
=
""
;
}
else
{
}
else
{
this
.
Error
(
'WORD获取失败'
);
this
.
Error
(
'WORD获取失败'
);
}
}
this
.
pdfLoading
=
false
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
})
})
...
@@ -737,7 +729,7 @@
...
@@ -737,7 +729,7 @@
this
.
pdfDownLoad
(
fileName
,
msg
);
this
.
pdfDownLoad
(
fileName
,
msg
);
}
else
if
(
command
&&
command
==
1
)
{
}
else
if
(
command
&&
command
==
1
)
{
this
.
pdfLoading
=
true
;
this
.
pdfLoading
=
true
;
objFileKey
+=
"/"
+
msg
.
configId
+
"_"
+
msg
.
tcid
+
"_B2B.pdf
"
;
objFileKey
+=
"/"
+
msg
.
configId
+
"_"
+
msg
.
tcid
+
"_B2B.pdf
?d="
+
Math
.
random
()
;
that
.
downloadChengDuFileRename
(
objFileKey
,
fileName
,
res
=>
{
that
.
downloadChengDuFileRename
(
objFileKey
,
fileName
,
res
=>
{
this
.
pdfLoading
=
false
;
this
.
pdfLoading
=
false
;
if
(
res
.
resultCode
==
0
)
{
if
(
res
.
resultCode
==
0
)
{
...
...
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