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
9c6a44d4
Commit
9c6a44d4
authored
Sep 25, 2023
by
沈良进
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
93eca61e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
63 deletions
+65
-63
TicketManager.vue
src/components/Ticketing/TicketManager.vue
+64
-62
index.vue
src/components/index.vue
+1
-1
No files found.
src/components/Ticketing/TicketManager.vue
View file @
9c6a44d4
...
@@ -1846,10 +1846,10 @@
...
@@ -1846,10 +1846,10 @@
<div
class=
"_jztime"
>
<div
class=
"_jztime"
>
<p
class=
"PingFangSC"
>
{{item.TicketDeadlineStr}}
</p>
<p
class=
"PingFangSC"
>
{{item.TicketDeadlineStr}}
</p>
<p
class=
"_text"
>
{{$t('Airticket.Air_deadTicketTime')}}
</p>
<p
class=
"_text"
>
{{$t('Airticket.Air_deadTicketTime')}}
</p>
<p
class=
"_text cursor-p"
style=
"padding: 5px 0 0 0;"
<p
class=
"_text cursor-p"
style=
"padding: 5px 0 0 0;"
v-if=
"item.InvoicingPrice>0"
v-if=
"item.InvoicingPrice>0"
@
click=
"BillingCharge(item,1)"
>
@
click=
"BillingCharge(item,1)"
>
¥{{item.InvoicingPrice}}
¥{{item.InvoicingPrice}}
<br/>
开票收入
<br
/>
开票收入
</p>
</p>
</div>
</div>
</el-col>
</el-col>
...
@@ -2250,6 +2250,12 @@
...
@@ -2250,6 +2250,12 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"5"
>
<el-form-item
label=
"可售机票数量(同业/直客)"
>
<el-input
v-model=
"addMsg.B2BSellNum"
placeholder=
"可售机票数量(同业/直客)"
@
keyup
.
native=
"checkInteger(addMsg,'B2BSellNum')"
maxlength=
"2"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"5"
>
<el-col
:span=
"5"
>
<el-form-item
label=
"备注"
>
<el-form-item
label=
"备注"
>
<el-input
v-model=
"addMsg.Remark"
placeholder=
"备注"
type=
"textarea"
:rows=
"2"
></el-input>
<el-input
v-model=
"addMsg.Remark"
placeholder=
"备注"
type=
"textarea"
:rows=
"2"
></el-input>
...
@@ -2523,13 +2529,11 @@
...
@@ -2523,13 +2529,11 @@
<el-input
v-model=
"ticketMsg.NewAirId"
></el-input>
<el-input
v-model=
"ticketMsg.NewAirId"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"财务单据ID"
>
<el-form-item
label=
"财务单据ID"
>
<!-- <el-checkbox-group > -->
<
template
v-for=
"(item,index) in ticketMsg.FinalList"
>
<
template
v-for=
"(item,index) in ticketMsg.FinalList"
>
<el-checkbox
v-model=
"ckedArr"
@
change=
"handleChange(item)"
:label=
"item"
:key=
"index+5000"
>
{{
item
}}
<el-checkbox
v-model=
"ckedArr"
@
change=
"handleChange(item)"
:label=
"item"
:key=
"index+5000"
>
{{
item
}}
</el-checkbox>
</el-checkbox>
</
template
>
</
template
>
<span
v-show=
"ticketMsg.FinalList.length==0"
style=
"font-size:14px"
>
暂无数据
</span>
<span
v-show=
"ticketMsg.FinalList.length==0"
style=
"font-size:14px"
>
暂无数据
</span>
<!-- </el-checkbox-group> -->
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
...
@@ -2614,7 +2618,6 @@
...
@@ -2614,7 +2618,6 @@
</div>
</div>
<div
v-if=
"file.Type==2"
>
<div
v-if=
"file.Type==2"
>
<div
class=
"iconfont icon-excel"
@
click=
"showUpLoadFile(file)"
>
<div
class=
"iconfont icon-excel"
@
click=
"showUpLoadFile(file)"
>
</div>
</div>
<span
class=
"iconfont icon-guanbi1"
@
click=
"deleteUploadFile(fIndex)"
></span>
<span
class=
"iconfont icon-guanbi1"
@
click=
"deleteUploadFile(fIndex)"
></span>
</div>
</div>
...
@@ -2630,9 +2633,7 @@
...
@@ -2630,9 +2633,7 @@
<!-- 开票费用 -->
<!-- 开票费用 -->
<el-dialog
width=
"1000px"
:title=
"BillingChargeTitle"
:visible
.
sync=
"BillingChargeDialog"
center
>
<el-dialog
width=
"1000px"
:title=
"BillingChargeTitle"
:visible
.
sync=
"BillingChargeDialog"
center
>
<el-form
class=
"Rform"
ref=
"form"
:model=
"Ticketform"
label-width=
"67px"
<el-form
class=
"Rform"
ref=
"form"
:model=
"Ticketform"
label-width=
"67px"
:disabled=
"BillingChargeTitle=='开票费用详情'"
>
:disabled=
"BillingChargeTitle=='开票费用详情'"
>
<!-- <p>机位数:<span style="color: red;">{{BillingChargeObj.TicketNum}}</span> </p> -->
<div
style=
"color: red;font-size: 13px;text-align: right;padding: 0 0 5px 0;"
>
注:开票单价*开票数量+升舱增收=总开票金额
</div>
<div
style=
"color: red;font-size: 13px;text-align: right;padding: 0 0 5px 0;"
>
注:开票单价*开票数量+升舱增收=总开票金额
</div>
<table
class=
"po_content singeRowTable"
style=
"border:1px solid #E6E6E6;margin-bottom:15px"
cellspacing=
"0"
<table
class=
"po_content singeRowTable"
style=
"border:1px solid #E6E6E6;margin-bottom:15px"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
>
cellpadding=
"0"
v-loading=
"loading"
>
...
@@ -2652,29 +2653,20 @@
...
@@ -2652,29 +2653,20 @@
</td>
</td>
<td>
<td>
{{item.UnitPrice}}
{{item.UnitPrice}}
<!-- <el-input size="mini" style="width:150px" v-model="item.UnitPrice" @keyup.native="checkPrice(item,'UnitPrice'),computeBillingCharge()">
</el-input> -->
</td>
</td>
<td>
<td>
<el-input
size=
"small"
style=
"width:150px"
v-model=
"item.GuestNum"
<el-input
size=
"small"
style=
"width:150px"
v-model=
"item.GuestNum"
@
keyup
.
native=
"checkInteger(item,'GuestNum'),computeBillingCharge()"
></el-input>
@
keyup
.
native=
"checkInteger(item,'GuestNum'),computeBillingCharge()"
></el-input>
</td>
</td>
<td>
<td>
<el-input
size=
"mini"
style=
"width:150px"
v-model=
"item.IncreaseIncome"
@
keyup
.
native=
"checkPrice(item,'IncreaseIncome'),computeBillingCharge()"
>
<el-input
size=
"mini"
style=
"width:150px"
v-model=
"item.IncreaseIncome"
@
keyup
.
native=
"checkPrice(item,'IncreaseIncome'),computeBillingCharge()"
>
</el-input>
</el-input>
</td>
</td>
<td>
<td>
{{item.TotalPrice}}
{{item.TotalPrice}}
</td>
</td>
</tr>
</tr>
<!-- <tr>
<td>
开票数量合计
</td>
<td colspan="4">
{{TotalNum}}
</td>
</tr> -->
<tr
v-if=
"MsgRAirServiceList.length==0"
>
<tr
v-if=
"MsgRAirServiceList.length==0"
>
<td
colspan=
"5"
>
暂无数据
</td>
<td
colspan=
"5"
>
暂无数据
</td>
</tr>
</tr>
...
@@ -2699,9 +2691,9 @@
...
@@ -2699,9 +2691,9 @@
}
}
};
};
return
{
return
{
TotalNum
:
0
,
TotalNum
:
0
,
BillingChargeObj
:
{},
BillingChargeObj
:
{},
BillingChargeTitle
:
''
,
BillingChargeTitle
:
''
,
BillingChargeDialog
:
false
,
BillingChargeDialog
:
false
,
FinaceIdnum
:
""
,
FinaceIdnum
:
""
,
AirSeritem
:
[],
AirSeritem
:
[],
...
@@ -2788,12 +2780,20 @@
...
@@ -2788,12 +2780,20 @@
IsLimit
:
1
,
IsLimit
:
1
,
Departure_city
:
0
,
//出发地
Departure_city
:
0
,
//出发地
SellType
:
-
1
,
//售卖机票类型:0-团队机票,1-单卖机票
SellType
:
-
1
,
//售卖机票类型:0-团队机票,1-单卖机票
IsSelectInvoicing
:
'0'
,
//是否未维护开票金额1-未维护,2-已维护
IsSelectInvoicing
:
'0'
,
//是否未维护开票金额1-未维护,2-已维护
},
maintenanceList
:
[{
Name
:
'不限'
,
Id
:
'0'
},
{
Name
:
'未维护'
,
Id
:
'1'
},
{
Name
:
'已维护'
,
Id
:
'2'
},
},
maintenanceList
:[
{
Name
:
'不限'
,
Id
:
'0'
},
{
Name
:
'未维护'
,
Id
:
'1'
},
{
Name
:
'已维护'
,
Id
:
'2'
},
],
],
addMsg
:
{
addMsg
:
{
ID
:
"0"
,
ID
:
"0"
,
...
@@ -2818,6 +2818,7 @@
...
@@ -2818,6 +2818,7 @@
DayNum
:
0
,
//行程天数
DayNum
:
0
,
//行程天数
SellType
:
0
,
//售卖机票类型:0-团队机票,1-单卖机票
SellType
:
0
,
//售卖机票类型:0-团队机票,1-单卖机票
Remark
:
""
,
//备注信息
Remark
:
""
,
//备注信息
B2BSellNum
:
0
,
//可售机票数量
},
},
//去程
//去程
addGoFlight
:
{
addGoFlight
:
{
...
@@ -3014,34 +3015,35 @@
...
@@ -3014,34 +3015,35 @@
},
},
methods
:
{
methods
:
{
// 开票费用
// 开票费用
SumbitBillingCharge
(){
SumbitBillingCharge
()
{
for
(
let
i
=
0
;
i
<
this
.
MsgRAirServiceList
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
MsgRAirServiceList
.
length
;
i
++
)
{
if
(
this
.
MsgRAirServiceList
[
i
].
GuestNum
===
''
||
this
.
MsgRAirServiceList
[
i
].
IncreaseIncome
===
''
)
{
if
(
this
.
MsgRAirServiceList
[
i
].
GuestNum
===
''
||
this
.
MsgRAirServiceList
[
i
].
IncreaseIncome
===
''
)
{
this
.
Error
(
"请完善需开票费用信息!"
);
this
.
Error
(
"请完善需开票费用信息!"
);
return
;
return
;
}
}
if
(
this
.
MsgRAirServiceList
[
i
].
GuestNum
&&
this
.
MsgRAirServiceList
[
i
].
GuestNum
>
this
.
MsgRAirServiceList
[
i
].
SeatNum
){
if
(
this
.
MsgRAirServiceList
[
i
].
GuestNum
&&
this
.
MsgRAirServiceList
[
i
].
GuestNum
>
this
.
MsgRAirServiceList
[
i
]
.
SeatNum
)
{
this
.
Error
(
`开票数不能大于
${
this
.
MsgRAirServiceList
[
i
].
TCNUM
}
团机位使用数
${
this
.
MsgRAirServiceList
[
i
].
SeatNum
}
`
);
this
.
Error
(
`开票数不能大于
${
this
.
MsgRAirServiceList
[
i
].
TCNUM
}
团机位使用数
${
this
.
MsgRAirServiceList
[
i
].
SeatNum
}
`
);
return
;
return
;
}
}
}
}
this
.
computeBillingCharge
()
this
.
computeBillingCharge
()
let
msg
=
[]
let
msg
=
[]
this
.
MsgRAirServiceList
.
forEach
(
x
=>
{
this
.
MsgRAirServiceList
.
forEach
(
x
=>
{
let
obj
=
{
let
obj
=
{
TCID
:
x
.
TCID
,
TCID
:
x
.
TCID
,
ID
:
x
.
ID
,
ID
:
x
.
ID
,
GuestNum
:
x
.
GuestNum
?
x
.
GuestNum
:
0
,
GuestNum
:
x
.
GuestNum
?
x
.
GuestNum
:
0
,
UnitPrice
:
x
.
UnitPrice
,
UnitPrice
:
x
.
UnitPrice
,
TotalPrice
:
x
.
TotalPrice
,
TotalPrice
:
x
.
TotalPrice
,
IncreaseIncome
:
x
.
IncreaseIncome
?
x
.
IncreaseIncome
:
0
,
IncreaseIncome
:
x
.
IncreaseIncome
?
x
.
IncreaseIncome
:
0
,
AirticketId
:
x
.
AirticketId
,
AirticketId
:
x
.
AirticketId
,
}
}
msg
.
push
(
obj
)
msg
.
push
(
obj
)
})
})
this
.
Btnloading
=
true
;
this
.
Btnloading
=
true
;
this
.
apipost
(
this
.
apipost
(
"Invoicing_Get_SetInvoicingList"
,
msg
,
"Invoicing_Get_SetInvoicingList"
,
msg
,
res
=>
{
res
=>
{
this
.
Btnloading
=
false
;
this
.
Btnloading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
...
@@ -3057,18 +3059,18 @@
...
@@ -3057,18 +3059,18 @@
);
);
},
},
BillingCharge
(
item
,
type
)
{
BillingCharge
(
item
,
type
)
{
if
(
type
)
{
if
(
type
)
{
this
.
BillingChargeTitle
=
'开票费用详情'
this
.
BillingChargeTitle
=
'开票费用详情'
}
else
{
}
else
{
this
.
BillingChargeTitle
=
'编辑开票费用'
this
.
BillingChargeTitle
=
'编辑开票费用'
}
}
this
.
BillingChargeObj
=
item
this
.
BillingChargeObj
=
item
this
.
loading
=
true
this
.
loading
=
true
this
.
BillingChargeDialog
=
true
this
.
BillingChargeDialog
=
true
this
.
apipost
(
this
.
apipost
(
"Invoicing_Get_GetInvoicingList"
,{
"Invoicing_Get_GetInvoicingList"
,
{
airticketId
:
item
.
ID
airticketId
:
item
.
ID
},
},
res
=>
{
res
=>
{
this
.
loading
=
false
this
.
loading
=
false
...
@@ -3077,18 +3079,18 @@
...
@@ -3077,18 +3079,18 @@
list
=
res
.
data
.
data
list
=
res
.
data
.
data
this
.
MsgRAirServiceList
=
[];
this
.
MsgRAirServiceList
=
[];
item
.
PriceList
.
forEach
(
price
=>
{
item
.
PriceList
.
forEach
(
price
=>
{
list
.
forEach
(
x
=>
{
list
.
forEach
(
x
=>
{
if
(
x
.
TCID
==
price
.
TCID
)
{
if
(
x
.
TCID
==
price
.
TCID
)
{
let
obj
=
{
let
obj
=
{
AirticketId
:
x
.
AirticketId
,
AirticketId
:
x
.
AirticketId
,
OutBranchName
:
price
.
OutBranchName
,
OutBranchName
:
price
.
OutBranchName
,
TCID
:
x
.
TCID
,
TCID
:
x
.
TCID
,
TCNUM
:
price
.
TCNUM
,
TCNUM
:
price
.
TCNUM
,
ID
:
x
.
ID
,
ID
:
x
.
ID
,
GuestNum
:
x
.
GuestNum
,
//人数
GuestNum
:
x
.
GuestNum
,
//人数
UnitPrice
:
x
.
UnitPrice
,
//开票单价
UnitPrice
:
x
.
UnitPrice
,
//开票单价
TotalPrice
:
x
.
TotalPrice
,
//总开票金额(人数 * 单价)
TotalPrice
:
x
.
TotalPrice
,
//总开票金额(人数 * 单价)
IncreaseIncome
:
x
.
IncreaseIncome
,
//增收
IncreaseIncome
:
x
.
IncreaseIncome
,
//增收
SeatNum
:
x
.
SeatNum
,
SeatNum
:
x
.
SeatNum
,
};
};
this
.
MsgRAirServiceList
.
push
(
obj
);
this
.
MsgRAirServiceList
.
push
(
obj
);
...
@@ -3100,10 +3102,10 @@
...
@@ -3100,10 +3102,10 @@
}
}
})
})
},
},
computeBillingCharge
(){
computeBillingCharge
()
{
this
.
TotalNum
=
0
this
.
TotalNum
=
0
this
.
MsgRAirServiceList
.
forEach
(
x
=>
{
this
.
MsgRAirServiceList
.
forEach
(
x
=>
{
x
.
TotalPrice
=
(
x
.
GuestNum
*
x
.
UnitPrice
)
+
Number
(
x
.
IncreaseIncome
)
x
.
TotalPrice
=
(
x
.
GuestNum
*
x
.
UnitPrice
)
+
Number
(
x
.
IncreaseIncome
)
// this.TotalNum+=Number(x.GuestNum)
// this.TotalNum+=Number(x.GuestNum)
})
})
},
},
...
@@ -3528,7 +3530,7 @@
...
@@ -3528,7 +3530,7 @@
name
:
"ChoiceAddFinancialDocuments"
,
name
:
"ChoiceAddFinancialDocuments"
,
query
:
{
query
:
{
Type
:
nFeeType
,
Type
:
nFeeType
,
portTypeId
:
1
,
portTypeId
:
1
,
path
:
"TicketFinace"
,
path
:
"TicketFinace"
,
blank
:
"y"
,
blank
:
"y"
,
orderObj
:
JSON
.
stringify
(
orderObj
),
orderObj
:
JSON
.
stringify
(
orderObj
),
...
@@ -3559,7 +3561,7 @@
...
@@ -3559,7 +3561,7 @@
name
:
"ChoiceAddFinancialDocuments"
,
name
:
"ChoiceAddFinancialDocuments"
,
query
:
{
query
:
{
Type
:
nFeeType
,
Type
:
nFeeType
,
portTypeId
:
1
,
portTypeId
:
1
,
path
:
"TicketFinace"
,
path
:
"TicketFinace"
,
blank
:
"y"
,
blank
:
"y"
,
orderObj
:
JSON
.
stringify
(
orderObj
)
orderObj
:
JSON
.
stringify
(
orderObj
)
...
@@ -3622,16 +3624,16 @@
...
@@ -3622,16 +3624,16 @@
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
total
=
res
.
data
.
data
.
count
;
this
.
total
=
res
.
data
.
data
.
count
;
let
datas
=
res
.
data
.
data
.
pageData
let
datas
=
res
.
data
.
data
.
pageData
let
arrList
=
function
(
list
)
{
let
arrList
=
function
(
list
)
{
list
.
forEach
(
x
=>
{
list
.
forEach
(
x
=>
{
x
.
isBillingCharge
=
false
x
.
isBillingCharge
=
false
})
})
}
}
arrList
(
datas
)
arrList
(
datas
)
this
.
dataList
=
datas
;
this
.
dataList
=
datas
;
let
Time
=
this
.
getBeforeDate
(
0
,
new
Date
().
Format
(
"yyyy-MM-dd"
))
let
Time
=
this
.
getBeforeDate
(
0
,
new
Date
().
Format
(
"yyyy-MM-dd"
))
this
.
dataList
.
forEach
(
data
=>
{
this
.
dataList
.
forEach
(
data
=>
{
if
(
Time
>
data
.
TicketDeadlineStr
)
{
if
(
Time
>
data
.
TicketDeadlineStr
)
{
data
.
isBillingCharge
=
true
data
.
isBillingCharge
=
true
}
}
data
.
RAirServiceList
.
forEach
(
item
=>
{
data
.
RAirServiceList
.
forEach
(
item
=>
{
...
...
src/components/index.vue
View file @
9c6a44d4
...
@@ -1843,7 +1843,7 @@
...
@@ -1843,7 +1843,7 @@
this
.
allWindowWidth
=
allWindowWidth
-
50
-
220
-
60
;
this
.
allWindowWidth
=
allWindowWidth
-
50
-
220
-
60
;
let
maxLength
=
parseInt
(
allWindowWidth
/
110
);
let
maxLength
=
parseInt
(
allWindowWidth
/
110
);
this
.
maxLength
=
maxLength
;
this
.
maxLength
=
maxLength
;
this
.
testApi
();
//
this.testApi();
//this.testEmp();
//this.testEmp();
let
userinfo
=
this
.
getLocalStorage
();
let
userinfo
=
this
.
getLocalStorage
();
let
ActionMenuCode
=
userinfo
.
ActionMenuCode
;
let
ActionMenuCode
=
userinfo
.
ActionMenuCode
;
...
...
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