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
fbb5e29e
Commit
fbb5e29e
authored
Jun 25, 2023
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
b245d5da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
145 additions
and
3 deletions
+145
-3
AirTicketLoss.vue
src/components/FinancialModule/ReportForm/AirTicketLoss.vue
+5
-2
TicketManager.vue
src/components/Ticketing/TicketManager.vue
+140
-1
No files found.
src/components/FinancialModule/ReportForm/AirTicketLoss.vue
View file @
fbb5e29e
...
...
@@ -21,12 +21,15 @@
<button
class=
"normalBtn"
@
click=
"getList"
>
查询
</button>
<button
class=
"hollowFixedBtn"
@
click=
"Export"
>
导出
</button>
</div>
<div
v-if=
"LossIncomeList&&LossIncomeList.length>0"
style=
"display: flex;flex-
wrap: wrap;
flex-grow: 1;margin-left: 20px;justify-content: end;"
>
<div>
<div
v-if=
"LossIncomeList&&LossIncomeList.length>0"
style=
"display: flex;flex-
direction: column;
flex-grow: 1;margin-left: 20px;justify-content: end;"
>
<div
style=
"display: flex;flex-wrap: wrap;"
>
<span
style=
"line-height: 60px;font-size: 14px;"
>
机损增收:
</span>
<el-tag
size=
"small"
v-for=
"(x,index) in LossIncomeList"
:key=
"index"
@
click=
"goUrl(x)"
style=
"margin-left: 5px;margin-top: 2px;margin-bottom: 2px; cursor: pointer;"
>
{{
x
.
LineName
}}
/
{{
x
.
AirLossIncome
}}
</el-tag>
</div>
<div
style=
"font-size: 14px;color: red;margin-top: 3px;"
>
注: 韩国线与日本自由行是统计团队亏损其他线路为机票损失
</div>
</div>
</div>
<table
class=
"singeRowTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
>
...
...
src/components/Ticketing/TicketManager.vue
View file @
fbb5e29e
...
...
@@ -1936,6 +1936,12 @@
<el-button
type=
"primary"
class=
"iconfont icon-duigou"
@
click=
"UpdateTicketState(item.ID,1)"
>
</el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"开票费用"
placement=
"top-start"
v-if=
"item.isBillingCharge"
>
<el-button
type=
"primary"
class=
"el-icon-coin"
@
click=
"BillingCharge(item)"
style=
"font-size: 16px;"
>
</el-button>
</el-tooltip>
</el-button-group>
</div>
</el-col>
...
...
@@ -2628,6 +2634,46 @@
<el-button
:loading=
"Btnloading"
size=
"small"
type=
"danger"
@
click=
"RSumbit"
>
确 定
</el-button>
</span>
</el-dialog>
<!-- 开票费用 -->
<el-dialog
width=
"1000px"
title=
"开票费用"
:visible
.
sync=
"BillingChargeDialog"
center
>
<el-form
class=
"Rform"
ref=
"form"
:model=
"Ticketform"
label-width=
"67px"
>
<table
class=
"po_content singeRowTable"
style=
"border:1px solid #E6E6E6;margin-bottom:15px"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
>
<tr>
<th>
团号
</th>
<th>
开票人数
</th>
<th>
升舱增收
</th>
<th>
开票单价
</th>
<th>
总开票金额
</th>
</tr>
<tr
v-for=
"(item,index) in MsgRAirServiceList"
:key=
"index"
>
<td>
<!-- <input style="position: relative;top: 3px;display: inline-block;width: 15px;height: 15px;"
type="checkbox" :value="item.TCID" v-model="customerList" /> -->
{{item.TCNUM}}({{item.TCID}}){{item.OutBranchName}}
</td>
<td>
<el-input
size=
"small"
style=
"width:150px"
v-model=
"item.GuestNum"
@
keyup
.
native=
"checkInteger(item,'GuestNum'),computeBillingCharge()"
></el-input>
</td>
<td>
<el-input
size=
"mini"
style=
"width:150px"
v-model=
"item.IncreaseIncome"
@
keyup
.
native=
"checkPrice(item,'IncreaseIncome')"
>
</el-input>
</td>
<td>
{{item.UnitPrice}}
</td>
<td>
{{item.TotalPrice}}
</td>
</tr>
<tr
v-if=
"MsgRAirServiceList.length==0"
>
<td
colspan=
"5"
>
暂无数据
</td>
</tr>
</table>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"BillingChargeDialog = false"
>
取 消
</el-button>
<el-button
:loading=
"Btnloading"
size=
"small"
type=
"danger"
@
click=
"SumbitBillingCharge"
>
确 定
</el-button>
</span>
</el-dialog>
</div>
</template>
<
script
>
...
...
@@ -2641,6 +2687,7 @@
}
};
return
{
BillingChargeDialog
:
false
,
FinaceIdnum
:
""
,
AirSeritem
:
[],
fklxStr
:
"虚拟结算"
,
...
...
@@ -2945,6 +2992,87 @@
};
},
methods
:
{
// 开票费用
SumbitBillingCharge
(){
for
(
let
i
=
0
;
i
<
this
.
MsgRAirServiceList
.
length
;
i
++
){
if
(
this
.
MsgRAirServiceList
[
i
].
GuestNum
===
''
||
this
.
MsgRAirServiceList
[
i
].
IncreaseIncome
===
''
)
{
this
.
Error
(
"请完善需开票费用信息!"
);
return
;
}
}
this
.
computeBillingCharge
()
let
msg
=
[]
this
.
MsgRAirServiceList
.
forEach
(
x
=>
{
let
obj
=
{
TCID
:
x
.
TCID
,
ID
:
x
.
ID
,
GuestNum
:
x
.
GuestNum
?
x
.
GuestNum
:
0
,
UnitPrice
:
x
.
UnitPrice
,
TotalPrice
:
x
.
TotalPrice
,
IncreaseIncome
:
x
.
IncreaseIncome
?
x
.
IncreaseIncome
:
0
,
AirticketId
:
x
.
AirticketId
,
}
msg
.
push
(
obj
)
})
this
.
Btnloading
=
true
;
this
.
apipost
(
"Invoicing_Get_SetInvoicingList"
,
msg
,
res
=>
{
this
.
Btnloading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
res
.
data
.
message
);
// this.initMsg();
this
.
BillingChargeDialog
=
false
// this.getList();
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{}
);
},
BillingCharge
(
item
){
this
.
loading
=
true
this
.
BillingChargeDialog
=
true
this
.
apipost
(
"Invoicing_Get_GetInvoicingList"
,{
airticketId
:
item
.
ID
},
res
=>
{
this
.
loading
=
false
if
(
res
.
data
.
resultCode
==
1
)
{
let
list
list
=
res
.
data
.
data
this
.
MsgRAirServiceList
=
[];
item
.
PriceList
.
forEach
(
price
=>
{
list
.
forEach
(
x
=>
{
if
(
x
.
AirticketId
==
price
.
AirTicketId
){
let
obj
=
{
AirticketId
:
x
.
AirticketId
,
OutBranchName
:
price
.
OutBranchName
,
TCID
:
x
.
TCID
,
TCNUM
:
price
.
TCNUM
,
ID
:
x
.
ID
,
GuestNum
:
x
.
GuestNum
,
//人数
UnitPrice
:
x
.
UnitPrice
,
//开票单价
TotalPrice
:
x
.
TotalPrice
,
//总开票金额(人数 * 单价)
IncreaseIncome
:
x
.
IncreaseIncome
,
//增收
};
this
.
MsgRAirServiceList
.
push
(
obj
);
}
})
});
this
.
computeBillingCharge
()
}
})
},
computeBillingCharge
(){
this
.
MsgRAirServiceList
.
forEach
(
x
=>
{
x
.
TotalPrice
=
x
.
GuestNum
*
x
.
UnitPrice
})
},
SelectFinaceId
(
val
,
index
)
{
this
.
MsgRAirServiceList
[
index
].
Remark
=
`关联单据:
${
val
}
`
;
},
...
...
@@ -3457,8 +3585,19 @@
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
total
=
res
.
data
.
data
.
count
;
this
.
dataList
=
res
.
data
.
data
.
pageData
;
let
datas
=
res
.
data
.
data
.
pageData
let
arrList
=
function
(
list
){
list
.
forEach
(
x
=>
{
x
.
isBillingCharge
=
false
})
}
arrList
(
datas
)
this
.
dataList
=
datas
;
let
Time
=
this
.
getBeforeDate
(
0
,
new
Date
().
Format
(
"yyyy-MM-dd"
))
this
.
dataList
.
forEach
(
data
=>
{
if
(
Time
>
data
.
TicketDeadlineStr
){
data
.
isBillingCharge
=
true
}
data
.
RAirServiceList
.
forEach
(
item
=>
{
data
.
PriceList
.
forEach
(
price
=>
{
if
(
price
.
TCID
==
item
.
TCID
)
{
...
...
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