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
c3375518
Commit
c3375518
authored
Apr 29, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
eefe4c5e
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
202 additions
and
222 deletions
+202
-222
App.vue
src/App.vue
+2
-4
orderList.vue
src/components/customerManage/orderList.vue
+61
-96
Agreement.vue
src/components/guestManagement/Agreement.vue
+102
-117
customerDialogBox.vue
src/components/guestManagement/customerDialogBox.vue
+1
-1
guestManagement.vue
src/components/guestManagement/guestManagement.vue
+3
-1
ticketOrder.vue
src/components/guestManagement/ticketOrder.vue
+27
-3
index.vue
src/views/index.vue
+6
-0
No files found.
src/App.vue
View file @
c3375518
...
...
@@ -13,11 +13,9 @@ export default {
this
.
$router
.
push
({
path
:
"/login"
,
});
}
else
if
(
this
.
$route
.
query
)
{
// erp自动登陆传过来的参数
}
else
if
(
this
.
$route
.
query
.
token
)
{
// erp自动登陆传过来的参数
let
data
=
this
.
$route
.
query
let
parameter
=
data
.
data
[
0
]
console
.
log
(
data
,
'apppppppppppppppp'
)
return
this
.
$router
.
push
({
path
:
`/automaticLogin?toke=
${
data
.
token
}
&data=
${
JSON
.
stringify
(
parameter
)}
`
,
})
...
...
@@ -34,7 +32,7 @@ export default {
<
style
>
@import
"./assets/css/tablevoerride.css"
;
@import
"./assets/global/font.css"
;
@import
"//at.alicdn.com/t/font_1627123_
ipry94iin
y.css"
;
@import
"//at.alicdn.com/t/font_1627123_
xio004ni8
y.css"
;
@import
url("//at.alicdn.com/t/font_1627123_grz80mbm3sv.css")
;
/* @import './assets/css/common.css'; */
@import
"./assets/css/init.css"
;
...
...
src/components/customerManage/orderList.vue
View file @
c3375518
...
...
@@ -91,14 +91,15 @@
{{
item
.
DueinMoney
}}
</td>
<td
style=
"border:none"
>
<
p
@
click=
"modifyStatus(item)"
<
span
@
click=
"modifyStatus(item)"
class=
"cp tatusText"
:class=
"item.TicketStatus==1?'grey':
(item.TicketStatus==2?'success':
(item.TicketStatus==3?'error':
(item.TicketStatus==4?'Black':'')))"
>
{{
item
.
TicketStatusName
}}
</p>
</span>
<i
v-if=
"item.TicketStatus!=1&&item.TicketVoucherList!=[]&&item.CancelVoucherList!=[]"
class=
"iconfont iconpingzhengchaxun Credentials"
@
click=
"viewCredentials(item)"
></i>
</td>
<td
style=
"border:none"
>
<div
style=
"background: rgba(2, 196, 153, 0.2);width: 70px;border-radius: 2px;text-align: center"
...
...
@@ -146,7 +147,8 @@
<div
class=
"documents-left"
>
<div>
收入单据:
</div>
<span
v-for=
"(item,index) in item.IncomeFinance"
:key=
"index"
>
{{
item
.
FrID
}}
</span>
v-for=
"(item,index) in item.IncomeFinance"
:key=
"index"
@
click=
"openDetails(item)"
>
{{
item
.
FrID
}}
</span>
</div>
<div
class=
"documents-right"
>
<el-tooltip
...
...
@@ -159,7 +161,8 @@
<div
class=
"documents-left"
>
<div>
退款单据:
</div>
<span
v-for=
"(item,index) in item.BackFinance"
:key=
"index"
>
{{
item
.
FrID
}}
</span>
v-for=
"(item,index) in item.BackFinance"
:key=
"index"
@
click=
"openDetails(item)"
>
{{
item
.
FrID
}}
</span>
</div>
<div
class=
"documents-right"
>
<el-tooltip
...
...
@@ -172,7 +175,8 @@
<div
class=
"documents-left"
>
<div>
成本单据:
</div>
<span
v-for=
"(item,index) in item.PayFinance"
:key=
"index"
>
{{
item
.
FrID
}}
</span>
v-for=
"(item,index) in item.PayFinance"
:key=
"index"
@
click=
"openDetails(item)"
>
{{
item
.
FrID
}}
</span>
</div>
<div
class=
"documents-right"
>
<el-tooltip
...
...
@@ -256,6 +260,11 @@
this
.
userInfo
=
this
.
getLocalStorage
();
},
methods
:
{
// 查看出票凭据
viewCredentials
(
row
){
let
$this
=
this
;
this
.
MsgBus
.
$emit
(
"CredentialsOrderTicketOrderBoxOpen"
,
$this
.
ID
,
row
,
true
);
},
chooseMore
(
row
){
// 取消订单
if
(
row
.
More
==
'1'
){
...
...
@@ -284,24 +293,18 @@
},
// 验证操作员
ValidateOperator
(){
let
tips
=
'您没有操作权限'
this
.
$confirm
(
'此订单'
+
tips
+
'!'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
$emit
(
'emptyMore'
)
}).
catch
(()
=>
{
this
.
$emit
(
'emptyMore'
)
});
this
.
$message
({
type
:
'warning'
,
message
:
'抱歉,该订单您没有操作权限!'
});
this
.
$emit
(
'emptyMore'
)
},
// 制作单据
makeAdocument
(
row
,
num
){
if
(
this
.
userInfo
.
EmName
!=
row
.
EnterName
){
this
.
ValidateOperator
()
}
else
{
if
(
row
.
OrderStatus
!=
'2'
){
let
type
type
=
num
==
1
?
1
:
2
// 1收款 2退款 3成本
let
href
...
...
@@ -323,6 +326,7 @@
]
href
=
url
+
'automaticLogin?token='
+
this
.
getLocalStorage
().
token
+
'&data='
+
JSON
.
stringify
(
data
)
window
.
open
(
href
);
}
}
},
// 操作日志
...
...
@@ -334,26 +338,11 @@
if
(
this
.
userInfo
.
EmName
!=
row
.
EnterName
){
this
.
ValidateOperator
()
}
else
{
if
(
row
.
OrderStatus
==
2
){
let
tips
=
'该订单已取消,不能修改出票状态'
this
.
$confirm
(
tips
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
$emit
(
'emptyMore'
)
}).
catch
(()
=>
{
this
.
$emit
(
'emptyMore'
)
});
}
else
{
if
(
row
.
TicketStatus
==
3
){
return
}
else
if
(
row
.
TicketStatus
==
4
){
if
(
row
.
TicketStatus
==
3
||
row
.
TicketStatus
==
4
||
row
.
OrderStatus
==
'2'
){
return
}
else
{
this
.
MsgBus
.
$emit
(
"reviseTicketOrderBoxOpen"
,
row
.
GuestId
,
row
,
true
);
}
}
}
...
...
@@ -363,6 +352,7 @@
if
(
this
.
userInfo
.
EmName
!=
row
.
EnterName
){
this
.
ValidateOperator
()
}
else
{
if
(
row
.
OrderStatus
!=
'2'
&&
row
.
IncomeFinance
==
[]
&&
row
.
BackFinance
==
[]
&&
row
.
PayFinance
==
[]){
let
tips
=
'此操作将取消该订单,是否继续取消?'
this
.
$confirm
(
tips
,
'提示'
,
{
confirmButtonText
:
'确定'
,
...
...
@@ -385,7 +375,8 @@
message
:
'已取消'
});
});
}
}
}
},
// 编辑订单
...
...
@@ -396,28 +387,7 @@
if
(
row
.
TicketStatus
==
1
&&
row
.
OrderStatus
==
1
){
this
.
MsgBus
.
$emit
(
"editOrderTicketOrderBoxOpen"
,
row
.
GuestId
,
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
(()
=>
{
this
.
$emit
(
'emptyMore'
)
}).
catch
(()
=>
{
this
.
$emit
(
'emptyMore'
)
});
this
.
$emit
(
'emptyMore'
)
}
}
},
...
...
@@ -429,55 +399,47 @@
if
(
row
.
TicketStatus
==
1
&&
row
.
OrderStatus
==
1
){
this
.
MsgBus
.
$emit
(
"editTicketOrderBoxOpen"
,
row
.
GuestId
,
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
(()
=>
{
this
.
$emit
(
'emptyMore'
)
}).
catch
(()
=>
{
this
.
$emit
(
'emptyMore'
)
});
this
.
$emit
(
'emptyMore'
)
}
}
},
openDetails
(
item
)
{
console
.
log
(
item
.
ID
);
this
.
MsgBus
.
$emit
(
"busnessDrawerShow"
,
item
.
ID
,
1
);
let
href
let
url
if
(
this
.
isOnline
()){
url
=
'http://yx.oytour.com/#/'
}
else
{
url
=
'http://www.test.com:8080/#/'
}
let
data
=
[
{
path
:
'FinancialDocumentsDetail'
,
id
:
item
.
FrID
}
]
href
=
url
+
'automaticLogin?token='
+
this
.
getLocalStorage
().
token
+
'&data='
+
JSON
.
stringify
(
data
)
window
.
open
(
href
);
},
// 获取出票状态枚举
GetTicketStatusEnumList
(){
this
.
msg
.
GuestId
=
row
.
GuestId
this
.
apipost
(
"/api/Order/GetTicketStatusEnumList"
,
{},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
ticketingStatusList
=
res
.
data
.
data
;
let
data
=
{
Name
:
'全部'
,
Id
:
'0'
}
this
.
ticketingStatusList
.
unshift
(
data
)
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
}
}
this
.
msg
.
GuestId
=
row
.
GuestId
this
.
apipost
(
"/api/Order/GetTicketStatusEnumList"
,
{},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
ticketingStatusList
=
res
.
data
.
data
;
let
data
=
{
Name
:
'全部'
,
Id
:
'0'
}
this
.
ticketingStatusList
.
unshift
(
data
)
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
}
}
);
},
}
...
...
@@ -782,4 +744,7 @@
.select-right
{
margin-left
:
5px
;
}
.Credentials
{
color
:
#2961FE
;
}
</
style
>
\ No newline at end of file
src/components/guestManagement/Agreement.vue
View file @
c3375518
...
...
@@ -48,6 +48,9 @@
.select-right
{
margin-left
:
5px
;
}
.Credentials
{
color
:
#2961FE
;
}
</
style
>
<
template
>
<div
class=
"Business"
>
...
...
@@ -159,16 +162,17 @@
</el-table-column>
<el-table-column
label=
"出票状态"
show-overflow-tooltip
>
width=
"90"
>
<
template
slot-scope=
"scope"
>
<
p
@
click=
"modifyStatus(scope.row)"
<
span
@
click=
"modifyStatus(scope.row)"
class=
"cp tatusText"
:class=
"scope.row.TicketStatus==1?'grey':
(scope.row.TicketStatus==2?'success':
(scope.row.TicketStatus==3?'error':
(scope.row.TicketStatus==4?'Black':'')))"
>
{{
scope
.
row
.
TicketStatusName
}}
</p>
</span>
<i
v-if=
"scope.row.TicketStatus!=1&&scope.row.TicketVoucherList!=[]&&scope.row.CancelVoucherList!=[]"
class=
"iconfont iconpingzhengchaxun Credentials"
@
click=
"viewCredentials(scope.row)"
></i>
</
template
>
</el-table-column>
<el-table-column
...
...
@@ -189,7 +193,8 @@
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'"
>
:class=
"item.Status==1?'income_1':'income_2'"
@
click=
"openDetails(item.FrID)"
>
{{
item
.
FrID
}}
</p>
</
template
>
...
...
@@ -198,7 +203,9 @@
label=
"退款单据"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<p
v-for=
"(item,index) in scope.row.BackFinance"
:key=
"index"
>
<p
v-for=
"(item,index) in scope.row.BackFinance"
:key=
"index"
:class=
"item.Status==1?'income_1':'income_2'"
@
click=
"openDetails(item.FrID)"
>
{{
item
.
FrID
}}
</p>
</
template
>
...
...
@@ -207,7 +214,9 @@
label=
"成本单据"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<p
v-for=
"(item,index) in scope.row.PayFinance"
:key=
"index"
>
<p
v-for=
"(item,index) in scope.row.PayFinance"
:key=
"index"
:class=
"item.Status==1?'income_1':'income_2'"
@
click=
"openDetails(item.FrID)"
>
{{
item
.
FrID
}}
</p>
</
template
>
...
...
@@ -308,6 +317,11 @@ export default {
});
},
methods
:
{
// 查看出票凭据
viewCredentials
(
row
){
let
$this
=
this
;
this
.
MsgBus
.
$emit
(
"CredentialsOrderTicketOrderBoxOpen"
,
$this
.
ID
,
row
,
true
);
},
// 清空下拉
emptyMore
(){
this
.
dataList
.
forEach
(
item
=>
{
...
...
@@ -338,47 +352,49 @@ export default {
},
// 转换订单
convertOrder
(
row
){
this
.
MsgBus
.
$emit
(
"convertOrderTicketOrderBoxOpen"
,
$this
.
ID
,
row
,
true
);
if
(
row
.
OrderStatus
!=
'2'
){
let
$this
=
this
;
this
.
MsgBus
.
$emit
(
"convertOrderTicketOrderBoxOpen"
,
$this
.
ID
,
row
,
true
);
}
},
// 验证操作员
ValidateOperator
(){
let
tips
=
'您没有操作权限'
this
.
$confirm
(
'此订单'
+
tips
+
'!'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
emptyMore
()
}).
catch
(()
=>
{
this
.
emptyMore
()
});
this
.
$message
({
type
:
'warning'
,
message
:
'抱歉,该订单您没有操作权限!'
});
this
.
emptyMore
()
},
// 制作单据
makeAdocument
(
row
,
num
){
if
(
this
.
userInfo
.
EmName
!=
row
.
EnterName
){
this
.
ValidateOperator
()
}
else
{
let
type
type
=
num
==
1
?
1
:
2
// 1收款 2退款 3成本
let
href
let
url
if
(
this
.
isOnline
()){
url
=
'http://yx.oytour.com/#/'
}
else
{
url
=
'http://www.test.com:8084/#/'
if
(
row
.
OrderStatus
!=
'2'
){
let
type
type
=
num
==
1
?
1
:
2
// 1收款 2退款 3成本
let
href
let
url
if
(
this
.
isOnline
()){
url
=
'http://yx.oytour.com/#/'
}
else
{
url
=
'http://www.test.com:8084/#/'
}
let
data
=
[
{
path
:
'ChoiceAddFinancialDocuments'
,
type
:
type
,
OtherType
:
55
,
ReFinanceId
:
row
.
OrderId
,
ReFinanceId2
:
num
,
GuestId
:
row
.
GuestId
}
]
href
=
url
+
'automaticLogin?token='
+
this
.
getLocalStorage
().
token
+
'&data='
+
JSON
.
stringify
(
data
)
window
.
open
(
href
);
}
let
data
=
[
{
path
:
'ChoiceAddFinancialDocuments'
,
type
:
type
,
OtherType
:
55
,
ReFinanceId
:
row
.
OrderId
,
ReFinanceId2
:
num
,
GuestId
:
row
.
GuestId
}
]
href
=
url
+
'automaticLogin?token='
+
this
.
getLocalStorage
().
token
+
'&data='
+
JSON
.
stringify
(
data
)
window
.
open
(
href
);
}
},
// 操作日志
...
...
@@ -392,16 +408,7 @@ export default {
this
.
ValidateOperator
()
}
else
{
if
(
row
.
OrderStatus
==
2
){
let
tips
=
'该订单已取消,不能修改出票状态'
this
.
$confirm
(
tips
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
emptyMore
()
}).
catch
(()
=>
{
this
.
emptyMore
()
});
this
.
emptyMore
()
}
else
{
if
(
row
.
TicketStatus
==
3
){
return
...
...
@@ -421,28 +428,36 @@ export default {
if
(
this
.
userInfo
.
EmName
!=
row
.
EnterName
){
this
.
ValidateOperator
()
}
else
{
let
tips
=
'此操作将取消该订单,是否继续取消?'
this
.
$confirm
(
tips
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
apipost
(
'/api/Order/SetGuestOrderState'
,
{
OrderId
:
row
.
OrderId
,
Type
:
'1'
,
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
getList
()
}
})
}).
catch
(()
=>
{
this
.
emptyMore
()
this
.
$message
({
type
:
'info'
,
message
:
'已取消'
});
});
if
(
row
.
OrderStatus
!=
'2'
&&
row
.
IncomeFinance
==
[]
&&
row
.
BackFinance
==
[]
&&
row
.
PayFinance
==
[]){
let
tips
=
'此操作将取消该订单,是否继续取消?'
this
.
$confirm
(
tips
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
apipost
(
'/api/Order/SetGuestOrderState'
,
{
OrderId
:
row
.
OrderId
,
Type
:
'1'
,
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
getList
()
}
})
}).
catch
(()
=>
{
this
.
emptyMore
()
this
.
$message
({
type
:
'info'
,
message
:
'已取消'
});
});
}
else
{
this
.
$message
({
type
:
'warning'
,
message
:
'该订单已有财务单据,不能取消!'
});
this
.
emptyMore
()
}
}
},
...
...
@@ -455,28 +470,7 @@ export default {
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
(()
=>
{
this
.
emptyMore
()
}).
catch
(()
=>
{
this
.
emptyMore
()
});
this
.
emptyMore
()
}
}
},
...
...
@@ -489,35 +483,28 @@ export default {
let
$this
=
this
;
this
.
MsgBus
.
$emit
(
"editTicketOrderBoxOpen"
,
$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
(()
=>
{
this
.
emptyMore
()
}).
catch
(()
=>
{
this
.
emptyMore
()
});
this
.
emptyMore
()
}
}
},
openDetails
(
scope
)
{
this
.
MsgBus
.
$emit
(
"busnessDrawerShow"
,
scope
.
row
.
ID
,
1
);
openDetails
(
row
)
{
let
href
let
url
if
(
this
.
isOnline
()){
url
=
'http://yx.oytour.com/#/'
}
else
{
url
=
'http://www.test.com:8080/#/'
}
let
data
=
[
{
path
:
'FinancialDocumentsDetail'
,
id
:
row
}
]
href
=
url
+
'automaticLogin?token='
+
this
.
getLocalStorage
().
token
+
'&data='
+
JSON
.
stringify
(
data
)
window
.
open
(
href
);
},
// 获取出票状态枚举
GetTicketStatusEnumList
(){
...
...
@@ -569,8 +556,6 @@ export default {
let
$this
=
this
;
this
.
MsgBus
.
$emit
(
"addTicketOrderBoxOpen"
,
$this
.
ID
,
0
,
true
);
},
guanlian
()
{},
jiechuguanlian
()
{},
handleSizeChange
(
val
)
{
this
.
msg
.
pageSize
=
val
;
this
.
getList
();
...
...
src/components/guestManagement/customerDialogBox.vue
View file @
c3375518
...
...
@@ -184,7 +184,7 @@
color
:
rgb
(
123
,
194
,
245
);
}
=======
.customerDialogBox.add-box
.add-tit
{
.customerDialogBox.add-box
.add-tit
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
...
...
src/components/guestManagement/guestManagement.vue
View file @
c3375518
...
...
@@ -137,7 +137,9 @@
</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
?
"多次成交"
:
''
)
}}
<span
:style=
"
{color:scope.row.TOrderState==1?'gray':(scope.row.TOrderState==2?'':'red')}">
{{
scope
.
row
.
TOrderState
==
1
?
"未成交"
:(
scope
.
row
.
TOrderState
==
2
?
"成交"
:
scope
.
row
.
TOrderState
==
3
?
"多次成交"
:
''
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"BirthdayAddress"
label=
"出生地点"
sortable
v-if=
"queryType[28].show"
...
...
src/components/guestManagement/ticketOrder.vue
View file @
c3375518
...
...
@@ -179,6 +179,15 @@
margin-bottom
:
20px
;
letter-spacing
:
2px
;
}
.Credentials-box
{
display
:
flex
;
flex-wrap
:
wrap
;
}
.Credentials-box
.el-image
{
width
:
100px
;
height
:
100px
;
margin-right
:
20px
;
}
</
style
>
<
template
>
<el-dialog
:visible
.
sync=
"dialogTableVisible"
...
...
@@ -192,7 +201,7 @@
</div>
<div
class=
"form-box"
v-if=
"show"
>
<el-form
:model=
"form"
ref=
"form"
class=
"MyEditForm"
:rules=
"rules"
>
<p
class=
"form-box-tit"
v-if=
"name!='操作日志'"
><span
class=
"radius"
></span>
<p
class=
"form-box-tit"
v-if=
"name!='操作日志'
&&name!='凭据图'
"
><span
class=
"radius"
></span>
{{
name
!=
'修改出票状态'
?
' 基本信息'
:
' 上传'
+
text
+
'凭证'
}}
</p>
<el-row
:gutter=
"30"
v-if=
"name=='新建机票订单'||name=='编辑机票订单'"
>
<el-col
:span=
"8"
>
...
...
@@ -313,6 +322,15 @@
</el-col>
</el-row>
</el-form>
<div
v-if=
"name=='凭据图'"
class=
"Credentials-box"
>
<el-image
v-for=
"(items,index) in obj.TicketVoucherList"
:key=
"index"
:src=
"domainManager().ViittoFileUrl+items"
>
</el-image>
<el-image
v-for=
"(items,index) in obj.CancelVoucherList"
:key=
"index"
:src=
"domainManager().ViittoFileUrl+items"
>
</el-image>
</div>
<div
v-if=
"name=='操作日志'"
>
<div
v-for=
"(item,index) in logData"
:key=
"index"
>
<div
class=
"form-box-log"
>
...
...
@@ -454,12 +472,15 @@ export default {
},
obj
:{
handler
(
val
,
oldVal
)
{
this
.
getList
()
if
(
this
.
name
==
'操作日志'
){
this
.
getList
()
}
},
deep
:
true
,
}
},
mounted
()
{
console
.
log
(
this
.
obj
,
'----'
)
this
.
form
.
GuestId
=
this
.
GuestId
if
(
this
.
name
==
"编辑机票订单"
){
this
.
form
=
{
...
...
@@ -487,10 +508,13 @@ export default {
if
(
this
.
name
==
'编辑订单金额'
){
this
.
width
=
"600px"
}
if
(
this
.
name
==
'凭据图'
){
this
.
width
=
"600px"
}
let
$this
=
this
;
setTimeout
(()
=>
{
$this
.
dialogTableVisible
=
true
;
},
50
);
},
50
);
},
methods
:
{
// 获取业务员
...
...
src/views/index.vue
View file @
c3375518
...
...
@@ -345,6 +345,12 @@
$this
.
obj
=
obj
;
$this
.
dialogTicketOrderVisible
=
true
;
});
this
.
MsgBus
.
$on
(
"CredentialsOrderTicketOrderBoxOpen"
,
function
(
GuestId
,
obj
)
{
$this
.
dialogTicketOrderVisibleName
=
"凭据图"
;
$this
.
GuestId
=
GuestId
;
$this
.
obj
=
obj
;
$this
.
dialogTicketOrderVisible
=
true
;
});
this
.
MsgBus
.
$on
(
"closeTicketOrderDialogBox"
,
function
()
{
$this
.
dialogTicketOrderVisible
=
false
;
this
.
$emit
(
"getList"
);
...
...
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