Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CRM
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
华国豪
CRM
Commits
1b3f93c2
Commit
1b3f93c2
authored
Apr 27, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
3938e9bc
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
308 additions
and
147 deletions
+308
-147
App.vue
src/App.vue
+1
-1
Agreement.vue
src/components/guestManagement/Agreement.vue
+180
-105
customerInfoBox.vue
src/components/guestManagement/customerInfoBox.vue
+0
-1
finance.vue
src/components/guestManagement/finance.vue
+49
-26
guestManagement.vue
src/components/guestManagement/guestManagement.vue
+34
-1
ticketOrder.vue
src/components/guestManagement/ticketOrder.vue
+38
-13
index.vue
src/views/index.vue
+6
-0
No files found.
src/App.vue
View file @
1b3f93c2
...
...
@@ -26,7 +26,7 @@ export default {
<
style
>
@import
"./assets/css/tablevoerride.css"
;
@import
"./assets/global/font.css"
;
@import
"//at.alicdn.com/t/font_1627123_
tcs57r3ak3a
.css"
;
@import
"//at.alicdn.com/t/font_1627123_
ipry94iiny
.css"
;
@import
url("//at.alicdn.com/t/font_1627123_grz80mbm3sv.css")
;
/* @import './assets/css/common.css'; */
@import
"./assets/css/init.css"
;
...
...
src/components/guestManagement/Agreement.vue
View file @
1b3f93c2
...
...
@@ -45,18 +45,21 @@
<
template
>
<div
class=
"Business"
>
<div
class=
"add-Enclosure"
>
<el-row
:gutter=
"1
2
"
>
<el-row
:gutter=
"1
4
"
>
<el-col
:span=
"8"
>
<el-input
size=
"mini"
placeholder=
"输入订单ID"
v-model=
"msg.OrderId"
label=
"订单ID"
@
keyup
.
enter
.
native=
"getList"
></el-input>
</el-col>
<el-col
:span=
"4"
>
<el-col
:span=
"6"
>
<div
style=
"display: flex;flex-direction: row;align-items: center;"
>
<span
class=
"font-size-12"
style=
"padding-right: 10px;flex-shrink: 0;"
>
状态:
</span>
<el-select
size=
"mini"
width=
"200"
v-model=
"msg.TicketStatus"
placeholder=
"请选择"
@
change=
"getList"
>
<el-option
v-for=
"item in ticketingStatusList"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
></el-option>
</el-select>
</div>
</el-col>
<el-col
:span=
"4"
>
<el-select
size=
"mini"
width=
"200"
v-model=
"msg.OrderStatus"
placeholder=
"请选择"
...
...
@@ -114,25 +117,23 @@
</el-table-column>
<el-table-column
label=
"实收"
show-overflow-tooltip
>
width=
"120"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
IncomeMoney
}}
<i
@
click=
"makeAdocument(scope.row,1)"
class=
"iconfont iconjia- numIcon"
></i>
{{
scope
.
row
.
IncomeMoney
}}
<i
v-if=
"scope.row.OrderStatus!=1"
@
click=
"makeAdocument(scope.row,1)"
class=
"iconfont iconjia- numIcon"
></i>
</
template
>
</el-table-column>
<el-table-column
label=
"退款"
show-overflow-tooltip
>
width=
"120"
>
<
template
slot-scope=
"scope"
>
<!-- v-if="scope.row.OrderStatus!=1" -->
{{
scope
.
row
.
BackMoney
}}
<i
@
click=
"makeAdocument(scope.row,2)"
class=
"iconfont iconjia- numIcon"
></i>
{{
scope
.
row
.
BackMoney
}}
<i
v-if=
"scope.row.OrderStatus!=1"
@
click=
"makeAdocument(scope.row,2)"
class=
"iconfont iconjia- numIcon"
></i>
</
template
>
</el-table-column>
<el-table-column
label=
"成本"
show-overflow-tooltip
>
width=
"120"
>
<
template
slot-scope=
"scope"
>
<!-- v-if="scope.row.OrderStatus!=1" -->
{{
scope
.
row
.
PayMoney
}}
<i
@
click=
"makeAdocument(scope.row,3)"
class=
"iconfont iconjia- numIcon"
></i>
{{
scope
.
row
.
PayMoney
}}
<i
v-if=
"scope.row.OrderStatus!=1"
@
click=
"makeAdocument(scope.row,3)"
class=
"iconfont iconjia- numIcon"
></i>
</
template
>
</el-table-column>
<el-table-column
...
...
@@ -175,31 +176,32 @@
label=
"客户需求"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
label=
"
成本
单据"
label=
"
收入
单据"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<p
v-for=
"(item,index) in scope.row.PayFinance"
:key=
"index"
>
{{
item
?
item
:
''
}}
<p
v-for=
"(item,index) in scope.row.IncomeFinance"
:key=
"index"
:class=
"item.Status==1?'income_1':'income_2'"
>
{{
item
.
FrID
}}
</p>
</
template
>
</el-table-column>
<el-table-column
label=
"
收入
单据"
label=
"
退款
单据"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<p
v-for=
"(item,index) in scope.row.IncomeFinance"
:key=
"index"
:class=
"item.Status==1?'income_1':'income_2'"
>
<p
v-for=
"(item,index) in scope.row.BackFinance"
:key=
"index"
>
{{
item
.
FrID
}}
</p>
</
template
>
</el-table-column>
<el-table-column
label=
"
退款
单据"
label=
"
成本
单据"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<p
v-for=
"(item,index) in scope.row.
Back
Finance"
:key=
"index"
>
{{
item
?
item
:
''
}}
<p
v-for=
"(item,index) in scope.row.
Pay
Finance"
:key=
"index"
>
{{
item
.
FrID
}}
</p>
</
template
>
</el-table-column>
...
...
@@ -211,11 +213,15 @@
<el-table-column
fixed=
"right"
label=
"操作"
show-overflow-tooltip
>
width=
"100"
>
<
template
slot-scope=
"scope"
>
<div
class=
"item-but-box"
>
<el-tooltip
v-if=
"scope.row.TicketStatus==1&&scope.row.OrderStatus==1"
class=
"item-but"
effect=
"dark"
content=
"编辑订单"
placement=
"top"
>
<i
class=
"iconfont iconwenbenbianji cp"
@
click=
"editOrder(scope.row)"
></i>
</el-tooltip>
<el-tooltip
v-if=
"scope.row.TicketStatus==1&&scope.row.OrderStatus==1&&!scope.row.IncomeFinance&&!scope.row.BackFinance&&!scope.row.PayFinance"
class=
"item-but"
effect=
"dark"
content=
"取消订单"
placement=
"top"
>
<i
class=
"iconfont iconquxiao cp"
@
click=
"cancelOrder(scope.row)"
></i>
</el-tooltip>
...
...
@@ -258,7 +264,8 @@ export default {
OrderStatus
:
"1"
,
StartCityName
:
""
,
EndCityName
:
""
,
EnterID
:
""
EnterID
:
""
,
userInfo
:{}
},
total
:
0
};
...
...
@@ -272,7 +279,7 @@ export default {
},
},
mounted
()
{
this
.
userInfo
=
this
.
getLocalStorage
();
this
.
getList
();
this
.
GetTicketStatusEnumList
()
let
$this
=
this
...
...
@@ -281,8 +288,24 @@ export default {
});
},
methods
:
{
// 验证操作员
ValidateOperator
(){
let
tips
=
'您没有操作权限'
this
.
$confirm
(
'此订单'
+
tips
+
'!'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
}).
catch
(()
=>
{
});
},
// 制作单据
makeAdocument
(
row
,
num
){
if
(
this
.
userInfo
.
EmName
!=
row
.
EnterName
){
this
.
ValidateOperator
()
}
else
{
let
type
type
=
num
==
1
?
1
:
2
// 1收款 2退款 3成本
let
href
...
...
@@ -304,6 +327,7 @@ export default {
]
href
=
url
+
'automaticLogin?token='
+
this
.
getLocalStorage
().
token
+
'&data='
+
JSON
.
stringify
(
data
)
window
.
open
(
href
);
}
},
// 操作日志
operationLog
(
row
){
...
...
@@ -312,6 +336,9 @@ export default {
},
// 修改出票状态
modifyStatus
(
row
){
if
(
this
.
userInfo
.
EmName
!=
row
.
EnterName
){
this
.
ValidateOperator
()
}
else
{
if
(
row
.
OrderStatus
==
2
){
let
tips
=
'该订单已取消,不能修改出票状态'
this
.
$confirm
(
tips
,
'提示'
,
{
...
...
@@ -324,17 +351,24 @@ export default {
});
}
else
{
if
(
row
.
TicketStatus
==
4
){
if
(
row
.
TicketStatus
==
3
){
return
}
else
if
(
row
.
TicketStatus
==
4
){
return
}
else
{
let
$this
=
this
;
this
.
MsgBus
.
$emit
(
"reviseTicketOrderBoxOpen"
,
$this
.
ID
,
row
,
true
);
}
}
}
},
// 取消订单
cancelOrder
(
row
){
if
(
this
.
userInfo
.
EmName
!=
row
.
EnterName
){
this
.
ValidateOperator
()
}
else
{
let
tips
=
'此操作将取消该订单,是否继续取消?'
this
.
$confirm
(
tips
,
'提示'
,
{
confirmButtonText
:
'确定'
,
...
...
@@ -356,9 +390,48 @@ export default {
message
:
'已取消'
});
});
}
},
// 编辑订单
editOrder
(
row
){
if
(
this
.
userInfo
.
EmName
!=
row
.
EnterName
){
this
.
ValidateOperator
()
}
else
{
if
(
row
.
TicketStatus
==
1
&&
row
.
OrderStatus
==
1
){
let
$this
=
this
;
this
.
MsgBus
.
$emit
(
"editOrderTicketOrderBoxOpen"
,
$this
.
ID
,
row
,
true
);
}
else
{
let
tips
=
''
if
(
row
.
TicketStatus
==
2
&&
row
.
OrderStatus
==
1
){
tips
=
'已出票'
}
if
(
row
.
TicketStatus
==
3
&&
row
.
OrderStatus
==
1
){
tips
=
'航班熔断'
}
if
(
row
.
TicketStatus
==
4
&&
row
.
OrderStatus
==
1
){
tips
=
'用户取消航班'
}
if
(
row
.
OrderStatus
==
2
){
tips
=
'已取消'
}
this
.
$confirm
(
'此订单'
+
tips
+
',无法编辑订单金额?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
}).
catch
(()
=>
{
});
}
}
},
// 编辑订单金额
editOrderAmount
(
row
){
if
(
this
.
userInfo
.
EmName
!=
row
.
EnterName
){
this
.
ValidateOperator
()
}
else
{
if
(
row
.
TicketStatus
==
1
&&
row
.
OrderStatus
==
1
){
let
$this
=
this
;
this
.
MsgBus
.
$emit
(
"editTicketOrderBoxOpen"
,
$this
.
ID
,
row
,
true
);
...
...
@@ -386,6 +459,8 @@ export default {
});
}
}
},
openDetails
(
scope
)
{
...
...
src/components/guestManagement/customerInfoBox.vue
View file @
1b3f93c2
...
...
@@ -82,7 +82,6 @@
<p>
{{
detailsData
.
SurName
+
detailsData
.
Name
}}
</p>
</div>
<div
class=
"right"
v-if=
"!hiddenMenu"
>
{{
detailsData
.
IsCreate
}}
<el-button
class=
"crm-btn query-btn"
@
click=
"editCust"
>
编辑
</el-button>
<el-dropdown
@
command=
"handleCommand"
style=
"top: 1px;"
v-if=
"detailsData.IsCreate==1"
>
<el-button
class=
"crm-btn crm-btn-more easy-btn margin-right0"
>
...
...
src/components/guestManagement/finance.vue
View file @
1b3f93c2
...
...
@@ -45,26 +45,32 @@
<
template
>
<div
class=
"Business"
>
<div
class=
"add-Enclosure"
>
<el-row
:gutter=
"1
2
"
>
<el-row
:gutter=
"1
4
"
>
<el-col
:span=
"8"
>
<el-input
size=
"mini"
placeholder=
"输入单号"
v-model=
"msg.FrID"
label=
"单号"
@
keyup
.
enter
.
native=
"getList"
></el-input>
</el-col>
<el-col
:span=
"4"
>
<el-col
:span=
"6"
>
<div
style=
"display: flex;flex-direction: row;align-items: center;"
>
<span
class=
"font-size-12"
style=
"padding-right: 10px;flex-shrink: 0;"
>
单据类型:
</span>
<el-select
size=
"mini"
width=
"200"
v-model=
"msg.Type"
placeholder=
"请选择"
@
change=
"getList"
>
<el-option
v-for=
"item in DocumentTypeList"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
></el-option>
</el-select>
</div>
</el-col>
<el-col
:span=
"4"
>
<el-col
:span=
"6"
>
<div
style=
"display: flex;flex-direction: row;align-items: center;"
>
<span
class=
"font-size-12"
style=
"padding-right: 10px;flex-shrink: 0;"
>
订单状态:
</span>
<el-select
size=
"mini"
width=
"200"
v-model=
"msg.Status"
placeholder=
"请选择"
@
change=
"getList"
>
<el-option
v-for=
"item in ApprovalStatusList"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
></el-option>
</el-select>
</div>
</el-col>
</el-row>
</div>
...
...
@@ -85,6 +91,13 @@
<p
@
click=
"openDetails(scope.row)"
class=
"font-color-link cp"
>
{{
scope
.
row
.
FrID
}}
</p>
</
template
>
</el-table-column>
<el-table-column
label=
"单据类型"
show-overflow-tooltip
:width=
"80"
>
<
template
slot-scope=
"scope"
>
<p>
{{
scope
.
row
.
Type
==
1
?
'收入'
:(
scope
.
row
.
Type
==
2
?
'支出'
:
'不限'
)
}}
</p>
</
template
>
</el-table-column>
<el-table-column
fixed
label=
"费用类型"
...
...
@@ -95,26 +108,36 @@
</p>
</
template
>
</el-table-column>
<el-table-column
label=
"单据类型"
show-overflow-tooltip
:width=
"80"
>
label=
"金额"
show-overflow-tooltip
width=
"120"
>
<
template
slot-scope=
"scope"
>
<p>
{{
scope
.
row
.
Type
==
1
?
'收入'
:(
scope
.
row
.
Type
==
2
?
'支出'
:
'不限'
)
}}
</p>
<p>
{{
scope
.
row
.
Type
==
1
?
'应收:'
:(
scope
.
row
.
Type
==
2
?
'应付:'
:
''
)
}}{{
scope
.
row
.
Money
}}
</p>
<p>
{{
scope
.
row
.
Type
==
1
?
'实收:'
:(
scope
.
row
.
Type
==
2
?
'实付:'
:
''
)
}}{{
scope
.
row
.
PayMoney
}}
</p>
</
template
>
</el-table-column>
<el-table-column
label=
"金额"
show-overflow-tooltip
>
label=
"付款对象"
show-overflow-tooltip
width=
"120"
>
<
template
slot-scope=
"scope"
>
<p>
应付:
{{
scope
.
row
.
Money
}}
</p>
<p>
实收:
{{
scope
.
row
.
PayMoney
}}
</p>
{{
scope
.
row
.
Type
==
2
?
scope
.
row
.
ClientTypeName
+
':'
:
'汇款人:'
}}{{
scope
.
row
.
RemitterName
}}
</
template
>
</el-table-column>
<el-table-column
label=
"
付款对象
"
show-overflow-tooltip
>
label=
"
交易方式
"
show-overflow-tooltip
:width=
"200"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
Type
==
2
?
scope
.
row
.
ClientTypeName
+
':'
:
'汇款人:'
}}{{
scope
.
row
.
RemitterName
}}
<div
class=
"_TradeWayList"
v-for=
"(item,index) in scope.row.TradeWayList"
:key=
"index"
style=
"line-height: normal !important;padding: 5px 10px;background-color: #EEEEEE;border-radius: 4px;margin: 10px 0;width:230px"
>
<p><span
style=
"font-weight: bold;color:#333333"
>
{{
item
.
Alias
}}
</span>
<span
class=
"_bank_name"
style=
"height:20px;;display: inline-block;background-color: #333333;color: white;padding: 2px 4px;border-radius: 4px;margin-left:10px;margin-letf:10px"
>
{{
scope
.
row
.
TradeWayList
[
0
].
TypeName
}}
</span><span
style=
"height:20px;display: inline-block;background-color: #333333;color: white;padding: 2px 4px;border-radius: 4px;margin-left:10px;"
:style=
"
{'background-color':item.AccountType=='私'?'#2AAEF2':'#FF9C01'}">
{{
item
.
AccountType
==
""
?
'无'
:
item
.
AccountType
}}
</span>
</p>
<p
style=
"color:#333333"
>
{{
item
.
BankNo
}}
</p>
</div>
</
template
>
</el-table-column>
<el-table-column
...
...
src/components/guestManagement/guestManagement.vue
View file @
1b3f93c2
...
...
@@ -60,6 +60,14 @@
</el-select>
</el-popover>
</el-col>
<el-col
:span=
"4"
>
<div
style=
"display: flex;flex-direction: row;align-items: center;"
>
<span
class=
"font-size-12"
style=
"padding-right: 10px;flex-shrink: 0;"
>
状态:
</span>
<el-select
size=
"mini"
width=
"100"
v-model=
"msg.Q_TOrderState"
@
change=
"getList"
>
<el-option
v-for=
"(item,index) in transactionStatusList"
:key=
"index"
:label=
"item.Name"
:value=
"item.Id"
>
</el-option>
</el-select>
</div>
</el-col>
<el-col
:span=
"4"
>
<el-button
icon=
"iconfont iconshaixuan"
class=
"crm-btn query-btn crm-btn-mini margin-right0"
@
click=
"MsgBus.$emit('sceneBoxShow', 5)"
>
高级筛选
</el-button>
...
...
@@ -115,12 +123,21 @@
</el-table-column>
<el-table-column
prop=
"TraveNum"
label=
"参团数"
sortable
v-if=
"queryType[4].show"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"TOrderNum"
label=
"机票数"
sortable
v-if=
"queryType[34].show"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"TOrderMoney"
label=
"机票金额"
sortable
v-if=
"queryType[35].show"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"OrderCount"
label=
"订单交易数"
sortable
v-if=
"queryType[24].show"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"OrderMoney"
label=
"交易金额"
sortable
v-if=
"queryType[25].show"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
label=
"状态"
sortable
v-if=
"queryType[36].show"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
TOrderState
==
1
?
"未成交"
:(
scope
.
row
.
TOrderState
==
2
?
"成交"
:
scope
.
row
.
TOrderState
==
3
?
"多次成交"
:
''
)
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"BirthdayAddress"
label=
"出生地点"
sortable
v-if=
"queryType[28].show"
show-overflow-tooltip
>
</el-table-column>
...
...
@@ -267,6 +284,12 @@
},
data
()
{
return
{
transactionStatusList
:[
{
Name
:
"全部"
,
Id
:
"0"
},
{
Name
:
"未成交"
,
Id
:
"1"
},
{
Name
:
"成交"
,
Id
:
"2"
},
{
Name
:
"多次成交"
,
Id
:
"3"
},
],
ruleList
:
[],
queryType2
:
[{
label
:
"客户名称"
,
...
...
@@ -464,7 +487,16 @@
},
{
label
:
"微信号"
,
show
:
true
,
},
],
},
{
label
:
"机票数"
,
show
:
true
,
},
{
label
:
"机票金额"
,
show
:
true
,
},
{
label
:
"状态"
,
show
:
true
,
},],
CustomerId
:
0
,
CustomerIdStr
:
""
,
transferVisible
:
false
,
...
...
@@ -490,6 +522,7 @@
WhereType
:
-
1
,
OrderBy
:
""
,
ID
:
36
,
Q_TOrderState
:
"0"
},
total
:
0
,
WhereTypeList
:
[{
...
...
src/components/guestManagement/ticketOrder.vue
View file @
1b3f93c2
...
...
@@ -190,7 +190,7 @@
<el-form
:model=
"form"
ref=
"form"
class=
"MyEditForm"
:rules=
"rules"
>
<p
class=
"form-box-tit"
v-if=
"name!='操作日志'"
><span
class=
"radius"
></span>
{{
name
!=
'修改出票状态'
?
' 基本信息'
:
' 上传'
+
text
+
'凭证'
}}
</p>
<el-row
:gutter=
"30"
v-if=
"name=='新建机票订单'"
>
<el-row
:gutter=
"30"
v-if=
"name=='新建机票订单'
||name=='编辑机票订单'
"
>
<el-col
:span=
"8"
>
<div
class=
"MyEditForm-item"
>
<el-form-item
label=
"预计人数"
prop=
"GuestCount"
>
...
...
@@ -214,7 +214,7 @@
</el-col>
</el-row>
<el-row
:gutter=
"30"
v-if=
"name=='新建机票订单'||name=='编辑订单金额'"
>
<el-row
:gutter=
"30"
v-if=
"name=='新建机票订单'||name=='编辑订单金额'
||name=='编辑机票订单'
"
>
<el-col
:span=
"8"
>
<div
class=
"MyEditForm-item"
>
<el-form-item
label=
"报价金额"
prop=
"Money"
>
...
...
@@ -223,10 +223,10 @@
</div>
</el-col>
</el-row>
<el-row
v-if=
"name=='新建机票订单'||name=='编辑订单金额'"
>
<el-row
v-if=
"name=='新建机票订单'||name=='编辑订单金额'
||name=='编辑机票订单'
"
>
<el-col
:span=
"24"
>
<div
class=
"MyEditForm-item label-pad-left"
>
<el-form-item
v-if=
"name=='新建机票订单'"
label=
"备注"
>
<el-form-item
v-if=
"name=='新建机票订单'
||name=='编辑机票订单'
"
label=
"备注"
>
<el-input
type=
"textarea"
placeholder=
"订单备注"
v-model=
"form.Remark"
></el-input>
</el-form-item>
<el-form-item
v-if=
"name=='编辑订单金额'"
label=
"备注"
prop=
"Remark"
>
...
...
@@ -432,6 +432,17 @@ export default {
},
mounted
()
{
this
.
form
.
GuestId
=
this
.
GuestId
if
(
this
.
name
==
"编辑机票订单"
){
this
.
form
=
{
GuestId
:
this
.
GuestId
,
OrderId
:
this
.
obj
.
OrderId
,
GuestCount
:
this
.
obj
.
GuestCount
,
StartCityName
:
this
.
obj
.
StartCityName
,
EndCityName
:
this
.
obj
.
EndCityName
,
Money
:
this
.
obj
.
Money
,
Remark
:
this
.
obj
.
Remark
,
}
}
if
(
this
.
obj
.
TicketStatus
==
1
){
this
.
text
=
'出票'
}
...
...
@@ -542,7 +553,20 @@ export default {
},
// 新增订单
addData
()
{
let
data
=
{
let
data
if
(
this
.
name
==
'新建机票订单'
){
data
=
{
OrderId
:
this
.
form
.
OrderId
,
GuestId
:
this
.
form
.
GuestId
,
GuestCount
:
this
.
form
.
GuestCount
,
StartCityName
:
this
.
form
.
StartCityName
,
EndCityName
:
this
.
form
.
EndCityName
,
Money
:
this
.
form
.
Money
,
Remark
:
this
.
form
.
Remark
,
}
}
if
(
this
.
name
==
'编辑机票订单'
){
data
=
{
OrderId
:
this
.
form
.
OrderId
,
GuestId
:
this
.
form
.
GuestId
,
GuestCount
:
this
.
form
.
GuestCount
,
...
...
@@ -551,6 +575,7 @@ export default {
Money
:
this
.
form
.
Money
,
Remark
:
this
.
form
.
Remark
,
}
}
this
.
apipost
(
"/api/Order/SetGuestOrderInfo"
,
data
,
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
dialogTableVisible
=
false
;
...
...
@@ -565,7 +590,7 @@ export default {
},
submitForm
(
addMsg
)
{
//提交创建、修改表单
if
(
this
.
name
==
'新建机票订单'
){
if
(
this
.
name
==
'新建机票订单'
||
this
.
name
==
'编辑机票订单'
){
this
.
$refs
[
addMsg
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
addData
();
...
...
src/views/index.vue
View file @
1b3f93c2
...
...
@@ -321,6 +321,12 @@
$this
.
obj
=
obj
;
$this
.
dialogTicketOrderVisible
=
true
;
});
this
.
MsgBus
.
$on
(
"editOrderTicketOrderBoxOpen"
,
function
(
GuestId
,
obj
)
{
$this
.
dialogTicketOrderVisibleName
=
"编辑机票订单"
;
$this
.
GuestId
=
GuestId
;
$this
.
obj
=
obj
;
$this
.
dialogTicketOrderVisible
=
true
;
});
this
.
MsgBus
.
$on
(
"reviseTicketOrderBoxOpen"
,
function
(
GuestId
,
obj
)
{
$this
.
dialogTicketOrderVisibleName
=
"修改出票状态"
;
$this
.
GuestId
=
GuestId
;
...
...
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