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
ae729689
Commit
ae729689
authored
Aug 11, 2023
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
62ec1e3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
899 additions
and
899 deletions
+899
-899
VisaProductOrder.vue
src/components/SalesVisa/components/VisaProductOrder.vue
+899
-899
No files found.
src/components/SalesVisa/components/VisaProductOrder.vue
View file @
ae729689
<
style
>
<
style
>
.page_MyCustomer
._mc_addbox
{
.page_MyCustomer
._mc_addbox
{
height
:
52px
;
height
:
52px
;
width
:
100%
;
width
:
100%
;
margin-top
:
20px
;
margin-top
:
20px
;
}
}
.page_MyCustomer
._mc_addbox
>
li
{
.page_MyCustomer
._mc_addbox
>
li
{
float
:
left
;
float
:
left
;
width
:
116px
;
width
:
116px
;
font-size
:
14px
;
font-size
:
14px
;
height
:
52px
;
height
:
52px
;
color
:
#666
;
color
:
#666
;
text-align
:
center
;
text-align
:
center
;
line-height
:
52px
;
line-height
:
52px
;
background
:
#E9E9E9
;
background
:
#E9E9E9
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.page_MyCustomer
._mc_addbox
>
li
.active
{
.page_MyCustomer
._mc_addbox
>
li
.active
{
background
:
#fff
;
background
:
#fff
;
color
:
#333
;
color
:
#333
;
}
}
.page_MyCustomer
._mc_addbox
.divActive
{
.page_MyCustomer
._mc_addbox
.divActive
{
margin
:
-3px
auto
;
margin
:
-3px
auto
;
width
:
26px
;
width
:
26px
;
height
:
3px
;
height
:
3px
;
background
:
#E95252
;
background
:
#E95252
;
}
}
.page_MyCustomer
._mc_edit
{
.page_MyCustomer
._mc_edit
{
overflow
:
auto
;
overflow
:
auto
;
display
:
none
;
display
:
none
;
position
:
fixed
;
position
:
fixed
;
z-index
:
50
;
z-index
:
50
;
bottom
:
0
;
bottom
:
0
;
left
:
0
;
left
:
0
;
border-top
:
3px
solid
#38425d
;
border-top
:
3px
solid
#38425d
;
background-color
:
#f9f9f9
;
background-color
:
#f9f9f9
;
padding
:
10px
;
padding
:
10px
;
width
:
100%
;
width
:
100%
;
min-width
:
1146px
;
min-width
:
1146px
;
}
}
.page_MyCustomer
.edHeight
{
.page_MyCustomer
.edHeight
{
display
:
block
;
display
:
block
;
height
:
291px
;
height
:
291px
;
}
}
.page_MyCustomer
._mc_list
{
.page_MyCustomer
._mc_list
{
overflow-x
:
auto
;
overflow-x
:
auto
;
background
:
#fff
;
background
:
#fff
;
padding-top
:
20px
;
padding-top
:
20px
;
padding-left
:
15px
;
padding-left
:
15px
;
}
}
.page_MyCustomer
._scrollbar
::-webkit-scrollbar
{
.page_MyCustomer
._scrollbar
::-webkit-scrollbar
{
width
:
4px
;
width
:
4px
;
height
:
8px
;
height
:
8px
;
}
}
.page_MyCustomer
._scrollbar
::-webkit-scrollbar-thumb
{
.page_MyCustomer
._scrollbar
::-webkit-scrollbar-thumb
{
border-radius
:
4px
;
border-radius
:
4px
;
-webkit-box-shadow
:
inset
0
0
2px
rgba
(
0
,
0
,
0
,
0.2
);
-webkit-box-shadow
:
inset
0
0
2px
rgba
(
0
,
0
,
0
,
0.2
);
background
:
#c9c9c9
;
background
:
#c9c9c9
;
}
}
.page_MyCustomer
._scrollbar
::-webkit-scrollbar-track
{
.page_MyCustomer
._scrollbar
::-webkit-scrollbar-track
{
-webkit-box-shadow
:
inset
0
0
2px
rgba
(
0
,
0
,
0
,
0.2
);
-webkit-box-shadow
:
inset
0
0
2px
rgba
(
0
,
0
,
0
,
0.2
);
border-radius
:
4px
;
border-radius
:
4px
;
background
:
#EDEDED
;
background
:
#EDEDED
;
}
}
.page_MyCustomer
._mc_edit
._tit
{
.page_MyCustomer
._mc_edit
._tit
{
padding-left
:
10px
;
padding-left
:
10px
;
border-left
:
3px
solid
#E95252
;
border-left
:
3px
solid
#E95252
;
font-size
:
16px
;
font-size
:
16px
;
font-family
:
'PingFangSc-Fine'
;
font-family
:
'PingFangSc-Fine'
;
color
:
#000000
color
:
#000000
}
}
.page_MyCustomer
._mc_edit
._info_box
ul
._form
li
{
.page_MyCustomer
._mc_edit
._info_box
ul
._form
li
{
float
:
left
;
float
:
left
;
}
}
.page_MyCustomer
._check_list
{
.page_MyCustomer
._check_list
{
padding-left
:
120px
;
padding-left
:
120px
;
margin-bottom
:
20px
;
margin-bottom
:
20px
;
}
}
.page_MyCustomer
._check_box
.el-form-item
{
.page_MyCustomer
._check_box
.el-form-item
{
margin-bottom
:
0
margin-bottom
:
0
}
}
.page_MyCustomer
._info_box
.el-form-item__label
{
.page_MyCustomer
._info_box
.el-form-item__label
{
font-size
:
12px
;
font-size
:
12px
;
color
:
#666
;
color
:
#666
;
}
}
._remark
textarea
{
._remark
textarea
{
resize
:
none
;
resize
:
none
;
width
:
646px
;
width
:
646px
;
height
:
100px
height
:
100px
}
}
.page_MyCustomer
.avatar
{
.page_MyCustomer
.avatar
{
width
:
148px
;
width
:
148px
;
height
:
148px
;
height
:
148px
;
display
:
block
;
display
:
block
;
}
}
.page_MyCustomerSearch
{
.page_MyCustomerSearch
{
width
:
100%
;
width
:
100%
;
min-height
:
auto
;
min-height
:
auto
;
overflow
:
hidden
;
overflow
:
hidden
;
padding
:
0
0
20px
0
;
padding
:
0
0
20px
0
;
}
}
.page_MyCustomerSearch
li
{
.page_MyCustomerSearch
li
{
float
:
left
;
float
:
left
;
font-size
:
12px
;
font-size
:
12px
;
color
:
#666
;
color
:
#666
;
margin
:
20px
0
0px
0
;
margin
:
20px
0
0px
0
;
}
}
.page_MyCustomerSearch
li
>
span
{
.page_MyCustomerSearch
li
>
span
{
display
:
inline-block
;
display
:
inline-block
;
}
}
.page_MyCustomerSearch
li
span
>
em
{
.page_MyCustomerSearch
li
span
>
em
{
display
:
inline-block
;
display
:
inline-block
;
min-width
:
60px
;
min-width
:
60px
;
text-align
:
right
;
text-align
:
right
;
font-style
:
normal
;
font-style
:
normal
;
margin
:
0
12px
0
0
;
margin
:
0
12px
0
0
;
}
}
.page_MyCustomerSearch
li
:last-child
{
.page_MyCustomerSearch
li
:last-child
{
float
:
right
;
float
:
right
;
}
}
.VisaProductTable
{
.VisaProductTable
{
width
:
100%
;
width
:
100%
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#333
;
color
:
#333
;
border-collapse
:
collapse
;
border-collapse
:
collapse
;
}
}
.VisaProductTable
tr
th
{
.VisaProductTable
tr
th
{
background
:
#E6E6E6
;
background
:
#E6E6E6
;
height
:
30px
;
height
:
30px
;
font-size
:
12px
;
font-size
:
12px
;
text-align
:
left
;
text-align
:
left
;
text-indent
:
25px
;
text-indent
:
25px
;
}
}
.VisaProductTable
tr
{
.VisaProductTable
tr
{
background
:
#fff
;
background
:
#fff
;
text-align
:
left
;
text-align
:
left
;
}
}
.VisaProductTable
tr
td
{
.VisaProductTable
tr
td
{
height
:
60px
;
height
:
60px
;
padding-left
:
25px
;
padding-left
:
25px
;
border
:
1px
solid
#cccccc
;
border
:
1px
solid
#cccccc
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#333
;
color
:
#333
;
}
}
.VisaProductTable
tr
td
>
img
{
.VisaProductTable
tr
td
>
img
{
width
:
24px
;
width
:
24px
;
height
:
24px
;
height
:
24px
;
border-radius
:
50%
;
border-radius
:
50%
;
float
:
left
;
float
:
left
;
margin-right
:
5px
;
margin-right
:
5px
;
}
}
.VisaProductTable
tr
td
.tuanqian
{
.VisaProductTable
tr
td
.tuanqian
{
vertical-align
:
middle
;
vertical-align
:
middle
;
font-weight
:
400
;
font-weight
:
400
;
display
:
table-cell
;
display
:
table-cell
;
text-align
:
center
;
text-align
:
center
;
width
:
44px
;
width
:
44px
;
font-size
:
12px
;
font-size
:
12px
;
height
:
19px
;
height
:
19px
;
color
:
#FFFFFF
;
color
:
#FFFFFF
;
background
:
#2AAEF2
;
background
:
#2AAEF2
;
}
}
.VisaProductTable
tr
td
.geqian
{
.VisaProductTable
tr
td
.geqian
{
vertical-align
:
middle
;
vertical-align
:
middle
;
font-weight
:
400
;
font-weight
:
400
;
display
:
table-cell
;
display
:
table-cell
;
text-align
:
center
;
text-align
:
center
;
width
:
44px
;
width
:
44px
;
font-size
:
12px
;
font-size
:
12px
;
height
:
19px
;
height
:
19px
;
color
:
#FFFFFF
;
color
:
#FFFFFF
;
background
:
#FF9000
;
background
:
#FF9000
;
}
}
.VisaProductTable
tr
td
.totalPrice
{
.VisaProductTable
tr
td
.totalPrice
{
color
:
#FF9000
;
color
:
#FF9000
;
font-weight
:
400
;
font-weight
:
400
;
font-size
:
16px
;
font-size
:
16px
;
}
}
.VisaProductTable
tr
td
.sendVisaDate
{
.VisaProductTable
tr
td
.sendVisaDate
{
font-weight
:
bold
;
font-weight
:
bold
;
}
}
.page_MyCustomer
._edHeight
{
.page_MyCustomer
._edHeight
{
height
:
340px
;
height
:
340px
;
}
}
.dateClass
{
.dateClass
{
width
:
171px
!important
;
width
:
171px
!important
;
}
}
.surplusNum
{
.surplusNum
{
color
:
#E95252
!important
;
color
:
#E95252
!important
;
}
}
.peopleNum
{
.peopleNum
{
height
:
15px
;
height
:
15px
;
font-size
:
16px
;
font-size
:
16px
;
font-weight
:
400
;
font-weight
:
400
;
color
:
rgba
(
51
,
51
,
51
,
1
);
color
:
rgba
(
51
,
51
,
51
,
1
);
line-height
:
24px
;
line-height
:
24px
;
}
}
.Visa_income
{
.Visa_income
{
width
:
18px
;
width
:
18px
;
height
:
16px
;
height
:
16px
;
font-size
:
16px
;
font-size
:
16px
;
font-weight
:
400
;
font-weight
:
400
;
line-height
:
24px
;
line-height
:
24px
;
color
:
RGBA
(
71
,
191
,
140
,
1
);
color
:
RGBA
(
71
,
191
,
140
,
1
);
}
}
.VisaProductTable
tr
td
.createName
{
.VisaProductTable
tr
td
.createName
{
vertical-align
:
middle
;
vertical-align
:
middle
;
display
:
table-cell
;
display
:
table-cell
;
text-align
:
center
;
text-align
:
center
;
width
:
50px
;
width
:
50px
;
height
:
21px
;
height
:
21px
;
}
}
.groupTourOrderIcon
button
{
.groupTourOrderIcon
button
{
width
:
28px
;
width
:
28px
;
height
:
28px
;
height
:
28px
;
border-radius
:
4px
;
border-radius
:
4px
;
}
}
.groupTourOrderIcon
.el-button--primary
{
.groupTourOrderIcon
.el-button--primary
{
padding
:
5px
;
padding
:
5px
;
margin
:
0
;
margin
:
0
;
font-size
:
14px
!important
;
font-size
:
14px
!important
;
}
}
.groupTourOrder_tickets_red
{
.groupTourOrder_tickets_red
{
color
:
#ff0000
;
color
:
#ff0000
;
text-decoration
:
underline
;
text-decoration
:
underline
;
}
}
.groupTourOrder_tickets_blue
{
.groupTourOrder_tickets_blue
{
color
:
#0000ff
;
color
:
#0000ff
;
text-decoration
:
underline
;
text-decoration
:
underline
;
}
}
.groupTourOrder_tickets_green
{
.groupTourOrder_tickets_green
{
color
:
#008000
;
color
:
#008000
;
text-decoration
:
underline
;
text-decoration
:
underline
;
}
}
.groupTourOrder_tickets_black
{
.groupTourOrder_tickets_black
{
color
:
#000000
;
color
:
#000000
;
text-decoration
:
underline
;
text-decoration
:
underline
;
}
}
.VD-remarkTitle
{
.VD-remarkTitle
{
display
:
inline-block
;
display
:
inline-block
;
float
:
left
;
float
:
left
;
width
:
36px
;
width
:
36px
;
white-space
:
nowrap
;
white-space
:
nowrap
;
font-size
:
14px
;
font-size
:
14px
;
}
}
.VD-remarkCon
{
.VD-remarkCon
{
float
:
left
;
float
:
left
;
display
:
inline-block
;
display
:
inline-block
;
width
:
94%
;
width
:
94%
;
font-size
:
14px
;
font-size
:
14px
;
}
}
.VD-redType
{
.VD-redType
{
color
:
red
;
color
:
red
;
}
}
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"page_MyCustomer"
>
<div
class=
"page_MyCustomer"
>
<div
class=
"query-box"
style=
"border:none"
>
<div
class=
"query-box"
style=
"border:none"
>
<ul>
<ul>
<li>
<li>
<span>
<span>
<em>
{{
$t
(
'fnc.danhao'
)
}}
</em>
<em>
{{
$t
(
'fnc.danhao'
)
}}
</em>
<el-input
class=
'w220'
v-model=
'msg.VisaTCNUM'
:placeholder=
"$t('pub.pleaseImport')"
></el-input>
<el-input
class=
'w220'
v-model=
'msg.VisaTCNUM'
:placeholder=
"$t('pub.pleaseImport')"
></el-input>
</span>
</span>
</li>
</li>
<li>
<li>
<span>
<span>
<em>
订单ID
</em>
<em>
订单ID
</em>
<el-input
class=
'w220'
v-model=
'msg.OrderId'
placeholder=
"请输入订单ID"
></el-input>
<el-input
class=
'w220'
v-model=
'msg.OrderId'
placeholder=
"请输入订单ID"
></el-input>
</span>
</span>
</li>
</li>
<li>
<li>
<span>
<span>
<em>
{{
$t
(
'hotel.product_name'
)
}}
</em>
<em>
{{
$t
(
'hotel.product_name'
)
}}
</em>
<el-input
class=
'w220'
v-model=
'msg.Name'
:placeholder=
"$t('pub.pleaseImport')"
></el-input>
<el-input
class=
'w220'
v-model=
'msg.Name'
:placeholder=
"$t('pub.pleaseImport')"
></el-input>
</span>
</span>
</li>
</li>
<li>
<li>
<span>
<span>
<em>
订单状态
</em>
<em>
订单状态
</em>
<el-select
v-model=
'msg.VisaOrderStatus'
>
<el-select
v-model=
'msg.VisaOrderStatus'
>
<el-option
label=
"不限"
value=
"0"
key=
'0'
></el-option>
<el-option
label=
"不限"
value=
"0"
key=
'0'
></el-option>
<el-option
label=
"正常"
value=
"1"
key=
'1'
></el-option>
<el-option
label=
"正常"
value=
"1"
key=
'1'
></el-option>
<el-option
label=
"取消"
value=
"2"
key=
'2'
></el-option>
<el-option
label=
"取消"
value=
"2"
key=
'2'
></el-option>
<el-option
label=
"待付款"
value=
"3"
key=
'3'
></el-option>
<el-option
label=
"待付款"
value=
"3"
key=
'3'
></el-option>
</el-select>
</el-select>
</span></li>
</span></li>
<li>
<li>
<span>
<span>
<em>
完结状态
</em>
<em>
完结状态
</em>
<el-select
v-model=
'msg.IsFinish'
>
<el-select
v-model=
'msg.IsFinish'
>
<el-option
label=
"不限"
value=
"0"
key=
'0'
></el-option>
<el-option
label=
"不限"
value=
"0"
key=
'0'
></el-option>
<el-option
label=
"已完结"
value=
"1"
key=
'1'
></el-option>
<el-option
label=
"已完结"
value=
"1"
key=
'1'
></el-option>
<el-option
label=
"未完结"
value=
"2"
key=
'2'
></el-option>
<el-option
label=
"未完结"
value=
"2"
key=
'2'
></el-option>
</el-select>
</el-select>
</span></li>
</span></li>
<li
v-if=
"pagesTitle!='销售'"
>
<li
v-if=
"pagesTitle!='销售'"
>
<span>
<span>
<em>
业务员
</em>
<em>
业务员
</em>
<el-select
filterable
v-model=
'msg.CreateBy'
>
<el-select
filterable
v-model=
'msg.CreateBy'
>
<el-option
:value=
"0"
label=
"不限"
></el-option>
<el-option
:value=
"0"
label=
"不限"
></el-option>
<el-option
v-for=
'item in EmployeeList'
<el-option
v-for=
'item in EmployeeList'
:label=
'item.EmName'
:value=
'item.EmployeeId'
:label=
'item.EmName'
:key=
'item.EmployeeId'
>
:value=
'item.EmployeeId'
:key=
'item.EmployeeId'
>
</el-option>
</el-option>
</el-select>
</el-select>
</span>
</span>
</li>
</li>
<li>
<li>
<span>
<span>
<em>
OP
</em>
<em>
OP
</em>
<el-select
filterable
v-model=
'msg.OpEmpId'
>
<el-select
filterable
v-model=
'msg.OpEmpId'
>
<el-option
:value=
"0"
label=
"不限"
></el-option>
<el-option
:value=
"0"
label=
"不限"
></el-option>
<el-option
v-for=
'item in EmployeeList'
<el-option
v-for=
'item in EmployeeList'
:label=
'item.EmName'
:value=
'item.EmployeeId'
:label=
'item.EmName'
:key=
'item.EmployeeId'
>
:value=
'item.EmployeeId'
:key=
'item.EmployeeId'
>
</el-option>
</el-option>
</el-select>
</span>
</li>
<li
v-if=
"pagesTitle!='销售'"
>
<span>
<em>
公司
</em>
<el-select
filterable
class=
"w217"
v-model=
"msg.RB_Branch_Id"
:placeholder=
"$t('pub.pleaseSel')"
>
<el-option
:value=
"-1"
label=
"不限"
></el-option>
<el-option
v-for=
"item in layerCompanyList"
:label=
"item.BName"
:value=
"item.Id"
:key=
"item.Id"
>
</el-option>
</el-select>
</span>
</li>
<li>
<span>
<em>
{{
$t
(
'fnc.bmriqi'
)
}}
</em>
<el-date-picker
v-model=
'msg.StartDate'
class=
'w135'
value-format=
"yyyy-MM-dd"
type=
"date"
></el-date-picker>
-
<el-date-picker
v-model=
'msg.EndDate'
class=
'w135'
value-format=
"yyyy-MM-dd"
type=
"date"
></el-date-picker>
</span>
</li>
<li>
<button
class=
"hollowFixedBtn"
@
click=
"getList()"
>
{{
$t
(
'pub.searchBtn'
)
}}
</button>
</li>
</ul>
</div>
<div
style=
"display: flex;justify-content: end;margin-bottom: 10px;"
>
<p><span
class=
"groupTourOrderByTuan_ico"
><i
style=
"background-color:#3FC4FF"
></i><span>
{{
$t
(
'fnc.yidadan'
)
}}
</span></span>
<span
class=
"groupTourOrderByTuan_ico"
><i
style=
"background-color:#F1416C"
></i><span>
{{
$t
(
'fnc.yhcnyshenhe'
)
}}
</span></span>
<span
class=
"groupTourOrderByTuan_ico"
><i
style=
"background-color:#ff9800"
></i><span>
{{
$t
(
'fnc.ytongguo'
)
}}
</span></span></p>
</div>
<visaOrderList
:pagesTitle=
"pagesTitle"
:OrderList=
"dataList"
v-loading=
"loading"
@
success=
"getList"
>
</visaOrderList>
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
layout=
"total,prev, pager, next, jumper"
:page-size=
"this.msg.pageSize"
:total=
"total"
>
</el-pagination>
<div
class=
"_mc_edit _scrollbar"
:class=
"addShow==true?'edHeight':''"
>
<p
class=
"_tit"
>
{{
$t
(
'salesModule.UpOrder'
)
}}
<span
class=
"fr"
>
<button
class=
"hollowFixedBtn"
type=
"button"
@
click=
"cancelEdit()"
>
{{
$t
(
'pub.cancelBtn'
)
}}
</button>
<button
type=
"button"
class=
"normalBtn"
@
click=
"saveVisa()"
>
{{
$t
(
'pub.saveBtn'
)
}}
</button>
</span>
</p>
<el-form
class=
"_info_box clearfix"
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"120px"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"4"
>
<el-form-item
:label=
"$t('hotel.product_name')"
prop=
"Name"
>
<el-input
v-model=
"addMsg.Name"
:placeholder=
"$t('pub.pleaseImport')"
:disabled=
"true"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item
:label=
"$t('Airticket.Air_Number')"
prop=
"PeopleNum"
>
<el-input
@
keyup
.
native=
"checkInteger(addMsg,'PeopleNum')"
min=
"1"
v-model=
"addMsg.PeopleNum"
:placeholder=
"$t('pub.pleaseImport')"
maxlength=
"20"
:disabled=
"updateRemarksStatus"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item
:label=
"$t('salesModule.CustomerType')"
>
<el-select
v-model=
"addMsg.ClientType"
:disabled=
"updateRemarksStatus"
size=
mini
>
<el-option
:label=
"$t('salesModule.Trade')"
value=
"1"
></el-option>
<el-option
:label=
"$t('Operation.Op_direct')"
value=
"2"
></el-option>
</el-select>
</el-select>
</span>
</el-form-item>
</li>
</el-col>
<li
v-if=
"pagesTitle!='销售'"
>
<el-col
:span=
"8"
>
<span>
<el-form-item
:label=
"$t('pub.pubRemark')"
>
<em>
公司
</em>
<el-input
v-model=
"addMsg.Remark"
type=
"textarea"
maxlength=
"500"
:placeholder=
"$t('pub.pleaseImport')"
>
<el-select
filterable
class=
"w217"
v-model=
"msg.RB_Branch_Id"
</el-input>
:placeholder=
"$t('pub.pleaseSel')"
>
</el-form-item>
<el-option
:value=
"-1"
label=
"不限"
></el-option>
</el-col>
<el-option
v-for=
"item in layerCompanyList"
:label=
"item.BName"
:value=
"item.Id"
:key=
"item.Id"
>
<el-col
:span=
"4"
>
</el-col>
</el-row>
<el-row
:gutter=
"20"
v-if=
'visaManagementId>0'
>
<el-col
:span=
"4"
>
<el-form-item
:label=
"$t('visaT.rujingtime')"
prop=
"EnterCountryTime"
>
<el-date-picker
value-format=
"yyyy-MM-dd"
class=
'w170'
v-model=
'addMsg.EnterCountryTime'
type=
"date"
:disabled=
"updateRemarksStatus"
></el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item
:label=
"$t('visaT.chujingtime')"
prop=
"LeaveCountryTime"
>
<el-date-picker
value-format=
"yyyy-MM-dd"
class=
'w170'
v-model=
'addMsg.LeaveCountryTime'
type=
"date"
:disabled=
"updateRemarksStatus"
></el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item
:label=
"$t('visaT.cfAirport')"
prop=
"DepartAirport"
>
<el-select
v-model=
"addMsg.DepartAirport"
filterable
size=
mini
@
change=
"getFilghtForAir(1)"
:disabled=
"updateRemarksStatus"
>
<el-option
v-for=
"item in ChinaAirportList"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
>
</el-option>
</el-option>
</el-select>
</el-select>
</span>
</el-form-item>
</li>
</el-col>
<li>
<el-col
:span=
"4"
>
<span>
<el-form-item
:label=
"$t('visaT.Portofentry')"
prop=
"EnterCountryPort"
>
<em>
{{
$t
(
'fnc.bmriqi'
)
}}
</em>
<el-select
v-model=
"addMsg.EnterCountryPort"
filterable
size=
mini
@
change=
"getFilghtForAir(1)"
<el-date-picker
v-model=
'msg.StartDate'
class=
'w135'
value-format=
"yyyy-MM-dd"
type=
"date"
></el-date-picker>
:disabled=
"updateRemarksStatus"
>
-
<el-date-picker
v-model=
'msg.EndDate'
class=
'w135'
value-format=
"yyyy-MM-dd"
type=
"date"
></el-date-picker>
<el-option
v-for=
"item in JapanAirportList"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
>
</span>
</el-option>
</li>
</el-select>
<li>
</el-form-item>
<button
class=
"hollowFixedBtn"
@
click=
"getList()"
>
{{
$t
(
'pub.searchBtn'
)
}}
</button>
</el-col>
<!--
<button
class=
"normalBtn"
@
click=
"addShow=true"
>
添加
</button>
-->
<el-col
:span=
"4"
>
</li>
<el-form-item
:label=
"$t('visaT.Inboundflights')"
prop=
"EnterCountryFlight"
>
</ul>
<el-select
v-model=
"addMsg.EnterCountryFlight"
filterable
size=
mini
:disabled=
"updateRemarksStatus"
>
</div>
<el-option
v-for=
"item in FilghtForAirIn"
:key=
"item.ID"
:label=
"item.Flight_number"
:value=
"item.ID"
>
<div
style=
"display: flex;justify-content: end;margin-bottom: 10px;"
>
</el-option>
<p><span
class=
"groupTourOrderByTuan_ico"
><i
style=
"background-color:#3FC4FF"
></i><span>
{{
$t
(
'fnc.yidadan'
)
}}
</span></span>
</el-select>
<span
class=
"groupTourOrderByTuan_ico"
><i
style=
"background-color:#F1416C"
></i><span>
{{
$t
(
'fnc.yhcnyshenhe'
)
}}
</span></span>
</el-form-item>
<span
class=
"groupTourOrderByTuan_ico"
><i
style=
"background-color:#ff9800"
></i><span>
{{
$t
(
'fnc.ytongguo'
)
}}
</span></span></p>
</el-col>
</div>
<el-col
:span=
"4"
>
<visaOrderList
:pagesTitle=
"pagesTitle"
:OrderList=
"dataList"
v-loading=
"loading"
@
success=
"getList"
>
</visaOrderList>
</el-col>
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
</el-row>
layout=
"total,prev, pager, next, jumper"
:page-size=
"this.msg.pageSize"
:total=
"total"
>
<el-row
:gutter=
"20"
v-if=
'visaManagementId>0'
>
</el-pagination>
<el-col
:span=
"4"
>
<el-form-item
:label=
"$t('visaT.fhjichang')"
prop=
"GetBackAirport"
>
<div
class=
"_mc_edit _scrollbar"
:class=
"addShow==true?'edHeight':''"
>
<el-select
v-model=
"addMsg.GetBackAirport"
filterable
size=
mini
@
change=
"getFilghtForAir(2)"
<p
class=
"_tit"
>
{{
$t
(
'salesModule.UpOrder'
)
}}
:disabled=
"updateRemarksStatus"
>
<span
class=
"fr"
>
<el-option
v-for=
"item in ChinaAirportList"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
>
<button
class=
"hollowFixedBtn"
type=
"button"
@
click=
"cancelEdit()"
>
{{
$t
(
'pub.cancelBtn'
)
}}
</button>
</el-option>
<button
type=
"button"
class=
"normalBtn"
@
click=
"saveVisa()"
>
{{
$t
(
'pub.saveBtn'
)
}}
</button>
</el-select>
</span>
</el-form-item>
</p>
</el-col>
<el-form
class=
"_info_box clearfix"
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"120px"
>
<el-col
:span=
"4"
>
<el-row
:gutter=
"20"
>
<el-form-item
:label=
"$t('visaT.Exitport')"
prop=
"LeaveCountryPort"
>
<el-col
:span=
"4"
>
<el-select
v-model=
"addMsg.LeaveCountryPort"
filterable
size=
mini
@
change=
"getFilghtForAir(2)"
<el-form-item
:label=
"$t('hotel.product_name')"
prop=
"Name"
>
:disabled=
"updateRemarksStatus"
>
<el-input
v-model=
"addMsg.Name"
:placeholder=
"$t('pub.pleaseImport')"
:disabled=
"true"
></el-input>
<el-option
v-for=
"item in JapanAirportList"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
>
</el-form-item>
</el-option>
</el-col>
</el-select>
<el-col
:span=
"4"
>
</el-form-item>
<el-form-item
:label=
"$t('Airticket.Air_Number')"
prop=
"PeopleNum"
>
</el-col>
<el-input
@
keyup
.
native=
"checkInteger(addMsg,'PeopleNum')"
min=
"1"
v-model=
"addMsg.PeopleNum"
<el-col
:span=
"4"
>
:placeholder=
"$t('pub.pleaseImport')"
maxlength=
"20"
:disabled=
"updateRemarksStatus"
></el-input>
<el-form-item
:label=
"$t('visaT.Outboundflight')"
prop=
"LeaveCountryFlight"
>
</el-form-item>
<el-select
v-model=
"addMsg.LeaveCountryFlight"
filterable
size=
mini
:disabled=
"updateRemarksStatus"
>
</el-col>
<el-option
v-for=
"item in FilghtForAirOut"
:key=
"item.ID"
:label=
"item.Flight_number"
:value=
"item.ID"
>
<el-col
:span=
"4"
>
</el-option>
<el-form-item
:label=
"$t('salesModule.CustomerType')"
>
</el-select>
<el-select
v-model=
"addMsg.ClientType"
:disabled=
"updateRemarksStatus"
size=
mini
>
</el-form-item>
<el-option
:label=
"$t('salesModule.Trade')"
value=
"1"
></el-option>
</el-col>
<el-option
:label=
"$t('Operation.Op_direct')"
value=
"2"
></el-option>
</el-row>
</el-select>
</el-form>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
:label=
"$t('pub.pubRemark')"
>
<el-input
v-model=
"addMsg.Remark"
type=
"textarea"
maxlength=
"500"
:placeholder=
"$t('pub.pleaseImport')"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
</el-col>
</el-row>
<el-row
:gutter=
"20"
v-if=
'visaManagementId>0'
>
<el-col
:span=
"4"
>
<el-form-item
:label=
"$t('visaT.rujingtime')"
prop=
"EnterCountryTime"
>
<el-date-picker
value-format=
"yyyy-MM-dd"
class=
'w170'
v-model=
'addMsg.EnterCountryTime'
type=
"date"
:disabled=
"updateRemarksStatus"
></el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item
:label=
"$t('visaT.chujingtime')"
prop=
"LeaveCountryTime"
>
<el-date-picker
value-format=
"yyyy-MM-dd"
class=
'w170'
v-model=
'addMsg.LeaveCountryTime'
type=
"date"
:disabled=
"updateRemarksStatus"
></el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item
:label=
"$t('visaT.cfAirport')"
prop=
"DepartAirport"
>
<el-select
v-model=
"addMsg.DepartAirport"
filterable
size=
mini
@
change=
"getFilghtForAir(1)"
:disabled=
"updateRemarksStatus"
>
<el-option
v-for=
"item in ChinaAirportList"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item
:label=
"$t('visaT.Portofentry')"
prop=
"EnterCountryPort"
>
<el-select
v-model=
"addMsg.EnterCountryPort"
filterable
size=
mini
@
change=
"getFilghtForAir(1)"
:disabled=
"updateRemarksStatus"
>
<el-option
v-for=
"item in JapanAirportList"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item
:label=
"$t('visaT.Inboundflights')"
prop=
"EnterCountryFlight"
>
<el-select
v-model=
"addMsg.EnterCountryFlight"
filterable
size=
mini
:disabled=
"updateRemarksStatus"
>
<el-option
v-for=
"item in FilghtForAirIn"
:key=
"item.ID"
:label=
"item.Flight_number"
:value=
"item.ID"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
</el-col>
</el-row>
<el-row
:gutter=
"20"
v-if=
'visaManagementId>0'
>
<el-col
:span=
"4"
>
<el-form-item
:label=
"$t('visaT.fhjichang')"
prop=
"GetBackAirport"
>
<el-select
v-model=
"addMsg.GetBackAirport"
filterable
size=
mini
@
change=
"getFilghtForAir(2)"
:disabled=
"updateRemarksStatus"
>
<el-option
v-for=
"item in ChinaAirportList"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item
:label=
"$t('visaT.Exitport')"
prop=
"LeaveCountryPort"
>
<el-select
v-model=
"addMsg.LeaveCountryPort"
filterable
size=
mini
@
change=
"getFilghtForAir(2)"
:disabled=
"updateRemarksStatus"
>
<el-option
v-for=
"item in JapanAirportList"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item
:label=
"$t('visaT.Outboundflight')"
prop=
"LeaveCountryFlight"
>
<el-select
v-model=
"addMsg.LeaveCountryFlight"
filterable
size=
mini
:disabled=
"updateRemarksStatus"
>
<el-option
v-for=
"item in FilghtForAirOut"
:key=
"item.ID"
:label=
"item.Flight_number"
:value=
"item.ID"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
</div>
</
template
>
</div>
<
script
>
</
template
>
import
visaOrderList
from
'./visaOrderList.vue'
;
<
script
>
export
default
{
import
visaOrderList
from
'./visaOrderList.vue'
;
props
:[
'pagesTitle'
],
export
default
{
components
:
{
visaOrderList
},
props
:
[
'pagesTitle'
],
data
()
{
components
:
{
return
{
visaOrderList
},
data
()
{
return
{
// pagesTitle: 'OP',
// pagesTitle: 'OP',
userInfo
:
{},
userInfo
:
{},
qjGroupId
:
-
1
,
qjGroupId
:
-
1
,
F_InvoiceManagement
:
false
,
F_InvoiceManagement
:
false
,
F_Finance_Create
:
false
,
F_Finance_Create
:
false
,
msg
:
{
msg
:
{
pageIndex
:
1
,
pageIndex
:
1
,
pageSize
:
12
,
pageSize
:
12
,
StartDate
:
''
,
StartDate
:
''
,
EndDate
:
''
,
EndDate
:
''
,
SendStartDate
:
''
,
SendEndDate
:
''
,
Name
:
''
,
VisaTCNUM
:
''
,
VisaOrderStatus
:
'0'
,
CreateBy
:
0
,
RB_Branch_Id
:
-
1
,
OrderId
:
0
,
IsFinish
:
'0'
,
OpEmpId
:
0
,
},
addMsg
:
{
Id
:
0
,
Remark
:
''
,
VisaId
:
''
,
Name
:
""
,
PeopleNum
:
''
,
EnterCountryTime
:
''
,
LeaveCountryTime
:
''
,
DepartAirport
:
''
,
GetBackAirport
:
''
,
EnterCountryPort
:
''
,
LeaveCountryPort
:
''
,
EnterCountryFlight
:
''
,
LeaveCountryFlight
:
''
,
VisaPlanId
:
0
,
DepartDate
:
''
,
ClientType
:
''
},
rules
:
{
PeopleNum
:
[{
required
:
true
,
message
:
"请输入人数"
,
trigger
:
"blur"
}],
//DepartDate:[{required: true, message: "请输入出发日期", trigger: "blur"}],
EnterCountryTime
:
[{
required
:
true
,
message
:
"请输入入境日期"
,
trigger
:
"blur"
}],
LeaveCountryTime
:
[{
required
:
true
,
message
:
"请输入出境日期"
,
trigger
:
"blur"
}]
},
updateRemarksStatus
:
false
,
SendStartDate
:
''
,
SendStartDate
:
''
,
visaManagementId
:
0
,
SendEndDate
:
''
,
VisaApplyForTypeEnum
:
[],
Name
:
''
,
JapanAirportList
:
[],
VisaTCNUM
:
''
,
ChinaAirportList
:
[],
VisaOrderStatus
:
'0'
,
countryList
:
[],
CreateBy
:
0
,
MarriageType
:
[],
RB_Branch_Id
:
-
1
,
VisaDeparturesType
:
[],
OrderId
:
0
,
VisaDutyTypeEnum
:
[],
IsFinish
:
'0'
,
VisaIdentityTypeEnum
:
[],
OpEmpId
:
0
,
FilghtForAirIn
:
[],
FilghtForAirOut
:
[],
dataList
:
[],
EmployeeList
:
[],
loading
:
false
,
total
:
0
,
addShow
:
false
,
currentPage
:
1
,
EmployeeList
:[],
employeeMsg
:{
// 员工
GroupId
:
''
,
BranchId
:
-
1
,
DepartmentId
:
0
,
PostId
:
0
,
IsLeave
:
0
,
},
layerCompanyList
:[]
}
},
methods
:
{
getCompany
()
{
this
.
apipost
(
"admin_get_BranchGetList"
,
this
.
getCompanyMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
layerCompanyList
=
res
.
data
.
data
;
}
else
{}
},
err
=>
{}
);
},
},
getEmployee
()
{
//员工
addMsg
:
{
let
userInfo
=
this
.
getLocalStorage
();
Id
:
0
,
this
.
employeeMsg
.
GroupId
=
userInfo
.
RB_Group_id
;
Remark
:
''
,
this
.
apipost
(
'admin_get_EmployeeGetList'
,
this
.
employeeMsg
,
res
=>
{
VisaId
:
''
,
if
(
res
.
data
.
resultCode
==
1
)
{
Name
:
""
,
this
.
EmployeeList
=
res
.
data
.
data
;
PeopleNum
:
''
,
}
EnterCountryTime
:
''
,
},
err
=>
{})
LeaveCountryTime
:
''
,
DepartAirport
:
''
,
GetBackAirport
:
''
,
EnterCountryPort
:
''
,
LeaveCountryPort
:
''
,
EnterCountryFlight
:
''
,
LeaveCountryFlight
:
''
,
VisaPlanId
:
0
,
DepartDate
:
''
,
ClientType
:
''
},
},
GetSupperOrderEditAuth
()
{
rules
:
{
var
actionCode
=
this
.
$AuthCode
.
F_InvoiceManagement
;
PeopleNum
:
[{
this
.
CheckUserAuth
(
actionCode
,
res
=>
{
required
:
true
,
if
(
res
.
data
.
resultCode
==
1
&&
res
.
data
.
data
==
1
)
{
message
:
"请输入人数"
,
this
.
F_InvoiceManagement
=
true
;
trigger
:
"blur"
}
}],
});
//DepartDate:[{required: true, message: "请输入出发日期", trigger: "blur"}],
var
actionCodeNew
=
this
.
$AuthCode
.
F_Finance_Create
;
EnterCountryTime
:
[{
this
.
CheckUserAuth
(
actionCodeNew
,
res
=>
{
required
:
true
,
if
(
res
.
data
.
resultCode
==
1
&&
res
.
data
.
data
==
1
)
{
message
:
"请输入入境日期"
,
this
.
F_Finance_Create
=
true
;
trigger
:
"blur"
}
}],
});
LeaveCountryTime
:
[{
required
:
true
,
message
:
"请输入出境日期"
,
trigger
:
"blur"
}]
},
},
goUrlFinance
(
name
,
path
,
id
,
tcmun
)
{
updateRemarksStatus
:
false
,
this
.
$router
.
push
({
SendStartDate
:
''
,
name
:
path
,
visaManagementId
:
0
,
query
:
{
VisaApplyForTypeEnum
:
[],
id
:
id
,
JapanAirportList
:
[],
tcmun
:
tcmun
,
ChinaAirportList
:
[],
blank
:
'y'
,
countryList
:
[],
tab
:
name
MarriageType
:
[],
}
VisaDeparturesType
:
[],
});
VisaDutyTypeEnum
:
[],
},
VisaIdentityTypeEnum
:
[],
goIisDetail
:
function
(
id
)
{
// 跳转发票详情页面
FilghtForAirIn
:
[],
this
.
$router
.
push
({
FilghtForAirOut
:
[],
name
:
'invoicesManagerDetail'
,
dataList
:
[],
query
:
{
EmployeeList
:
[],
id
:
id
,
loading
:
false
,
noDetail
:
1
,
total
:
0
,
InvoiceApplyType
:
2
,
addShow
:
false
,
blank
:
"y"
,
currentPage
:
1
,
}
EmployeeList
:
[],
});
employeeMsg
:
{
// 员工
GroupId
:
''
,
BranchId
:
-
1
,
DepartmentId
:
0
,
PostId
:
0
,
IsLeave
:
0
,
},
},
// 申请发票
layerCompanyList
:
[]
goUrlAdd
:
function
(
path
,
OrderId
,
TCID
,
customerId
,
InvoiceApplyType
)
{
}
this
.
$router
.
push
({
},
name
:
path
,
methods
:
{
query
:
{
getCompany
()
{
OrderId
:
OrderId
,
this
.
apipost
(
TCID
:
TCID
,
"admin_get_BranchGetList"
,
customerId
:
customerId
?
customerId
:
0
,
this
.
getCompanyMsg
,
InvoiceApplyType
:
InvoiceApplyType
,
res
=>
{
blank
:
"y"
,
}
});
},
goUrl2
(
path
,
id
,
name
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
id
:
id
,
blank
:
'y'
,
tab
:
name
}
});
},
getChinaAirportList
()
{
// 获取国内机场
let
msg
=
{
City_id
:
0
,
Country_id
:
2
,
TrafficType
:
1
,
}
this
.
apipost
(
'airport_post_GetList'
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
ChinaAirportList
=
res
.
data
.
data
this
.
layerCompanyList
=
res
.
data
.
data
;
}
else
{
}
else
{}
this
.
$message
.
error
(
res
.
data
.
message
)
},
}
err
=>
{}
},
err
=>
{})
);
},
},
getJapanAirportList
()
{
// 获取日本机场
getEmployee
()
{
//员工
let
msg
=
{
let
userInfo
=
this
.
getLocalStorage
();
City_id
:
0
,
this
.
employeeMsg
.
GroupId
=
userInfo
.
RB_Group_id
;
Country_id
:
651
,
this
.
apipost
(
'admin_get_EmployeeGetList'
,
this
.
employeeMsg
,
res
=>
{
TrafficType
:
1
,
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
EmployeeList
=
res
.
data
.
data
;
}
}
this
.
apipost
(
'airport_post_GetList'
,
msg
,
res
=>
{
},
err
=>
{})
if
(
res
.
data
.
resultCode
==
1
)
{
},
this
.
JapanAirportList
=
res
.
data
.
data
GetSupperOrderEditAuth
()
{
}
else
{
var
actionCode
=
this
.
$AuthCode
.
F_InvoiceManagement
;
this
.
$message
.
error
(
res
.
data
.
message
)
this
.
CheckUserAuth
(
actionCode
,
res
=>
{
}
if
(
res
.
data
.
resultCode
==
1
&&
res
.
data
.
data
==
1
)
{
},
err
=>
{})
this
.
F_InvoiceManagement
=
true
;
},
FilghtForAir
(
data
,
type
)
{
this
.
apipost
(
'dmc_get_visa_GetFilghtForAir'
,
data
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
type
==
1
)
{
this
.
FilghtForAirIn
=
res
.
data
.
data
}
else
{
this
.
FilghtForAirOut
=
res
.
data
.
data
}
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
}
},
err
=>
{})
},
getFilghtForAir
(
type
)
{
// 根据机场获取航班号
let
msg
=
{
StartAirId
:
0
,
EndAirId
:
0
,
}
}
if
(
type
==
1
)
{
});
if
(
this
.
addMsg
.
DepartAirport
&&
this
.
addMsg
.
EnterCountryPort
)
{
var
actionCodeNew
=
this
.
$AuthCode
.
F_Finance_Create
;
msg
.
StartAirId
=
this
.
addMsg
.
DepartAirport
this
.
CheckUserAuth
(
actionCodeNew
,
res
=>
{
msg
.
EndAirId
=
this
.
addMsg
.
EnterCountryPort
if
(
res
.
data
.
resultCode
==
1
&&
res
.
data
.
data
==
1
)
{
this
.
FilghtForAir
(
msg
,
type
)
this
.
F_Finance_Create
=
true
;
}
}
});
},
goUrlFinance
(
name
,
path
,
id
,
tcmun
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
id
:
id
,
tcmun
:
tcmun
,
blank
:
'y'
,
tab
:
name
}
});
},
goIisDetail
:
function
(
id
)
{
// 跳转发票详情页面
this
.
$router
.
push
({
name
:
'invoicesManagerDetail'
,
query
:
{
id
:
id
,
noDetail
:
1
,
InvoiceApplyType
:
2
,
blank
:
"y"
,
}
});
},
// 申请发票
goUrlAdd
:
function
(
path
,
OrderId
,
TCID
,
customerId
,
InvoiceApplyType
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
OrderId
:
OrderId
,
TCID
:
TCID
,
customerId
:
customerId
?
customerId
:
0
,
InvoiceApplyType
:
InvoiceApplyType
,
blank
:
"y"
,
}
});
},
goUrl2
(
path
,
id
,
name
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
id
:
id
,
blank
:
'y'
,
tab
:
name
}
});
},
getChinaAirportList
()
{
// 获取国内机场
let
msg
=
{
City_id
:
0
,
Country_id
:
2
,
TrafficType
:
1
,
}
this
.
apipost
(
'airport_post_GetList'
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
ChinaAirportList
=
res
.
data
.
data
}
else
{
}
else
{
if
(
this
.
addMsg
.
GetBackAirport
&&
this
.
addMsg
.
LeaveCountryPort
)
{
this
.
$message
.
error
(
res
.
data
.
message
)
msg
.
StartAirId
=
this
.
addMsg
.
LeaveCountryPort
}
msg
.
EndAirId
=
this
.
addMsg
.
GetBackAirport
},
err
=>
{})
this
.
FilghtForAir
(
msg
,
type
)
},
getJapanAirportList
()
{
// 获取日本机场
let
msg
=
{
City_id
:
0
,
Country_id
:
651
,
TrafficType
:
1
,
}
this
.
apipost
(
'airport_post_GetList'
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
JapanAirportList
=
res
.
data
.
data
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
}
},
err
=>
{})
},
FilghtForAir
(
data
,
type
)
{
this
.
apipost
(
'dmc_get_visa_GetFilghtForAir'
,
data
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
type
==
1
)
{
this
.
FilghtForAirIn
=
res
.
data
.
data
}
else
{
this
.
FilghtForAirOut
=
res
.
data
.
data
}
}
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
}
}
},
},
err
=>
{})
goUrl
(
obj
)
{
},
let
TCIDARR
=
[];
getFilghtForAir
(
type
)
{
// 根据机场获取航班号
if
(
obj
.
tcid
)
{
let
msg
=
{
TCIDARR
.
push
(
obj
.
tcid
)
StartAirId
:
0
,
EndAirId
:
0
,
}
if
(
type
==
1
)
{
if
(
this
.
addMsg
.
DepartAirport
&&
this
.
addMsg
.
EnterCountryPort
)
{
msg
.
StartAirId
=
this
.
addMsg
.
DepartAirport
msg
.
EndAirId
=
this
.
addMsg
.
EnterCountryPort
this
.
FilghtForAir
(
msg
,
type
)
}
}
let
orderObj
=
{
}
else
{
OrderID
:
obj
.
id
,
if
(
this
.
addMsg
.
GetBackAirport
&&
this
.
addMsg
.
LeaveCountryPort
)
{
OrderSource
:
10
,
msg
.
StartAirId
=
this
.
addMsg
.
LeaveCountryPort
Obj
:
{},
msg
.
EndAirId
=
this
.
addMsg
.
GetBackAirport
SourceID
:
obj
.
visaId
,
this
.
FilghtForAir
(
msg
,
type
)
TCIDList
:
TCIDARR
}
}
this
.
$router
.
push
({
}
name
:
'ChoiceAddFinancialDocuments'
,
},
query
:
{
goUrl
(
obj
)
{
'path'
:
'SaleOrderModule'
,
let
TCIDARR
=
[];
'companyID'
:
obj
.
rB_Branch_Id
,
if
(
obj
.
tcid
)
{
'visaType'
:
true
,
TCIDARR
.
push
(
obj
.
tcid
)
'blank'
:
'y'
,
}
'orderObj'
:
JSON
.
stringify
(
orderObj
)
let
orderObj
=
{
}
OrderID
:
obj
.
id
,
});
OrderSource
:
10
,
},
Obj
:
{},
goUrlT
(
obj
)
{
SourceID
:
obj
.
visaId
,
this
.
$router
.
push
({
TCIDList
:
TCIDARR
name
:
'VisaGuestList'
,
}
query
:
{
this
.
$router
.
push
({
'id'
:
obj
.
id
,
name
:
'ChoiceAddFinancialDocuments'
,
}
query
:
{
});
'path'
:
'SaleOrderModule'
,
},
'companyID'
:
obj
.
rB_Branch_Id
,
'visaType'
:
true
,
cancelOrder
(
obj
)
{
'blank'
:
'y'
,
this
.
$confirm
(
'是否取消?'
,
'提示'
,
{
'orderObj'
:
JSON
.
stringify
(
orderObj
)
confirmButtonText
:
'确定'
,
}
cancelButtonText
:
'取消'
,
});
type
:
'warning'
},
}).
then
(()
=>
{
goUrlT
(
obj
)
{
this
.
apipost
(
'dmc_post_visa_SetOrderCancel'
,
{
this
.
$router
.
push
({
OrderId
:
obj
.
id
name
:
'VisaGuestList'
,
},
res
=>
{
query
:
{
if
(
res
.
data
.
resultCode
==
1
)
{
'id'
:
obj
.
id
,
this
.
$message
.
success
(
'取消成功!'
);
this
.
getList
()
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
}
},
err
=>
{})
}).
catch
(()
=>
{
this
.
$message
.
info
(
'已取消!'
);
});
},
getList
()
{
// 获取列表数据
this
.
loading
=
true
;
let
url
if
(
this
.
pagesTitle
==
'销售'
){
url
=
'dmc_get_visa_GetOrderVisaOrderList'
}
else
{
url
=
'dmc_get_visa_GetAdminVisaOrderList'
}
}
this
.
apipost
(
url
,
this
.
msg
,
res
=>
{
});
if
(
res
.
data
.
resultCode
==
0
)
{
},
this
.
loading
=
false
;
this
.
dataList
=
[]
cancelOrder
(
obj
)
{
this
.
$confirm
(
'是否取消?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
apipost
(
'dmc_post_visa_SetOrderCancel'
,
{
OrderId
:
obj
.
id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$message
.
success
(
'取消成功!'
);
this
.
getList
()
}
else
{
}
else
{
let
arrList
=
function
(
list
){
this
.
$message
.
error
(
res
.
data
.
message
);
list
.
forEach
(
x
=>
{
x
.
loading
=
false
});
}
arrList
(
res
.
data
.
data
.
pageData
)
this
.
dataList
=
res
.
data
.
data
.
pageData
;
this
.
total
=
res
.
data
.
data
.
count
;
this
.
loading
=
false
;
}
}
},
err
=>
{})
},
err
=>
{})
},
}).
catch
(()
=>
{
getDetail
(
obj
,
updateRStatus
)
{
this
.
$message
.
info
(
'已取消!'
);
this
.
SendStartDate
=
obj
.
sendStartDate
});
this
.
updateRemarksStatus
=
updateRStatus
;
},
this
.
visaManagementId
=
obj
.
visaManagementId
getList
()
{
// 获取列表数据
this
.
addMsg
.
VisaId
=
obj
.
visaId
this
.
loading
=
true
;
this
.
addMsg
.
Id
=
obj
.
id
let
url
this
.
addShow
=
true
if
(
this
.
pagesTitle
==
'销售'
)
{
this
.
apipost
(
'dmc_get_visa_GetOrderByVisaId'
,
{
url
=
'dmc_get_visa_GetOrderVisaOrderList'
visaId
:
obj
.
visaId
,
}
else
{
visaOrderId
:
obj
.
id
url
=
'dmc_get_visa_GetAdminVisaOrderList'
},
res
=>
{
}
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
apipost
(
url
,
this
.
msg
,
res
=>
{
let
x
=
res
.
data
.
data
if
(
res
.
data
.
resultCode
==
0
)
{
this
.
addMsg
.
Name
=
x
[
0
].
Name
this
.
loading
=
false
;
this
.
addMsg
.
PeopleNum
=
x
[
0
].
PeopleNum
this
.
addMsg
.
Remark
=
x
[
0
].
Remark
this
.
addMsg
.
EnterCountryTime
=
x
[
0
].
EnterCountryTime
this
.
addMsg
.
LeaveCountryTime
=
x
[
0
].
LeaveCountryTime
this
.
addMsg
.
DepartAirport
=
x
[
0
].
DepartAirport
this
.
addMsg
.
GetBackAirport
=
x
[
0
].
GetBackAirport
this
.
addMsg
.
EnterCountryPort
=
x
[
0
].
EnterCountryPort
this
.
addMsg
.
LeaveCountryPort
=
x
[
0
].
LeaveCountryPort
this
.
getFilghtForAir
(
1
)
this
.
getFilghtForAir
(
2
)
this
.
addMsg
.
EnterCountryFlight
=
x
[
0
].
EnterCountryFlight
this
.
addMsg
.
LeaveCountryFlight
=
x
[
0
].
LeaveCountryFlight
this
.
addMsg
.
VisaPlanId
=
x
[
0
].
VisaPlanId
//this.addMsg.DepartDate=x[0].DepartDate
this
.
addMsg
.
ClientType
=
x
[
0
].
ClientType
.
toString
()
this
.
dataList
=
[]
}
else
{
let
arrList
=
function
(
list
)
{
list
.
forEach
(
x
=>
{
x
.
loading
=
false
});
}
}
arrList
(
res
.
data
.
data
.
pageData
)
this
.
dataList
=
res
.
data
.
data
.
pageData
;
this
.
total
=
res
.
data
.
data
.
count
;
this
.
loading
=
false
;
}
},
err
=>
{})
},
getDetail
(
obj
,
updateRStatus
)
{
this
.
SendStartDate
=
obj
.
sendStartDate
this
.
updateRemarksStatus
=
updateRStatus
;
this
.
visaManagementId
=
obj
.
visaManagementId
this
.
addMsg
.
VisaId
=
obj
.
visaId
this
.
addMsg
.
Id
=
obj
.
id
this
.
addShow
=
true
this
.
apipost
(
'dmc_get_visa_GetOrderByVisaId'
,
{
visaId
:
obj
.
visaId
,
visaOrderId
:
obj
.
id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
x
=
res
.
data
.
data
this
.
addMsg
.
Name
=
x
[
0
].
Name
this
.
addMsg
.
PeopleNum
=
x
[
0
].
PeopleNum
this
.
addMsg
.
Remark
=
x
[
0
].
Remark
this
.
addMsg
.
EnterCountryTime
=
x
[
0
].
EnterCountryTime
this
.
addMsg
.
LeaveCountryTime
=
x
[
0
].
LeaveCountryTime
this
.
addMsg
.
DepartAirport
=
x
[
0
].
DepartAirport
this
.
addMsg
.
GetBackAirport
=
x
[
0
].
GetBackAirport
this
.
addMsg
.
EnterCountryPort
=
x
[
0
].
EnterCountryPort
this
.
addMsg
.
LeaveCountryPort
=
x
[
0
].
LeaveCountryPort
this
.
getFilghtForAir
(
1
)
this
.
getFilghtForAir
(
2
)
this
.
addMsg
.
EnterCountryFlight
=
x
[
0
].
EnterCountryFlight
this
.
addMsg
.
LeaveCountryFlight
=
x
[
0
].
LeaveCountryFlight
this
.
addMsg
.
VisaPlanId
=
x
[
0
].
VisaPlanId
//this.addMsg.DepartDate=x[0].DepartDate
this
.
addMsg
.
ClientType
=
x
[
0
].
ClientType
.
toString
()
}
,
err
=>
{})
}
},
err
=>
{})
},
saveVisa
()
{
// 保存
},
this
.
$refs
[
'addMsg'
].
validate
((
valid
)
=>
{
saveVisa
()
{
// 保存
if
(
valid
)
{
this
.
$refs
[
'addMsg'
].
validate
((
valid
)
=>
{
this
.
apipost
(
'dmc_get_visa_SetVisaOrder'
,
this
.
addMsg
,
res
=>
{
if
(
valid
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
apipost
(
'dmc_get_visa_SetVisaOrder'
,
this
.
addMsg
,
res
=>
{
this
.
addMsg
=
{
if
(
res
.
data
.
resultCode
==
1
)
{
Remark
:
''
,
this
.
addMsg
=
{
VisaId
:
''
,
Remark
:
''
,
Name
:
""
,
VisaId
:
''
,
PeopleNum
:
''
,
Name
:
""
,
EnterCountryTime
:
''
,
PeopleNum
:
''
,
LeaveCountryTime
:
''
,
EnterCountryTime
:
''
,
DepartAirport
:
''
,
LeaveCountryTime
:
''
,
GetBackAirport
:
''
,
DepartAirport
:
''
,
EnterCountryPort
:
''
,
GetBackAirport
:
''
,
LeaveCountryPort
:
''
,
EnterCountryPort
:
''
,
EnterCountryFlight
:
''
,
LeaveCountryPort
:
''
,
LeaveCountryFlight
:
''
,
EnterCountryFlight
:
''
,
VisaPlanId
:
0
,
LeaveCountryFlight
:
''
,
DepartDate
:
''
VisaPlanId
:
0
,
}
DepartDate
:
''
this
.
$message
.
success
(
res
.
data
.
message
)
this
.
addShow
=
false
this
.
getList
()
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
}
}
},
err
=>
{})
this
.
$message
.
success
(
res
.
data
.
message
)
}
else
{
this
.
addShow
=
false
return
false
;
this
.
getList
()
}
}
else
{
});
this
.
$message
.
error
(
res
.
data
.
message
)
},
}
cancelEdit
()
{
// 取消新增
},
err
=>
{})
this
.
addShow
=
false
}
else
{
this
.
addMsg
=
{
return
false
;
Name
:
''
,
Remark
:
''
,
VisaId
:
''
,
Name
:
""
,
PeopleNum
:
''
,
}
}
this
.
resetForm
(
'addMsg'
)
});
},
resetForm
(
formName
)
{
// 重置表单
this
.
$refs
[
formName
].
resetFields
();
},
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
},
},
mounted
()
{
cancelEdit
()
{
// 取消新增
// crm自动登陆传过来的参数
this
.
addShow
=
false
if
(
this
.
$route
.
query
.
crmOrderObj
){
this
.
addMsg
=
{
let
crmOrderObj
=
JSON
.
parse
(
this
.
$route
.
query
.
crmOrderObj
)
Name
:
''
,
this
.
msg
.
OrderId
=
crmOrderObj
.
OrderId
Remark
:
''
,
}
else
if
(
this
.
$route
.
query
.
OrderId
){
VisaId
:
''
,
this
.
msg
.
OrderId
=
this
.
$route
.
query
.
OrderId
Name
:
""
,
PeopleNum
:
''
,
}
}
this
.
qjGroupId
=
this
.
QjGroupId
();
this
.
resetForm
(
'addMsg'
)
this
.
userInfo
=
this
.
getLocalStorage
();
},
this
.
getEmployee
()
resetForm
(
formName
)
{
// 重置表单
this
.
getList
()
this
.
$refs
[
formName
].
resetFields
();
this
.
getCompany
()
},
this
.
getChinaAirportList
()
handleCurrentChange
(
val
)
{
this
.
getJapanAirportList
()
this
.
msg
.
pageIndex
=
val
;
this
.
GetSupperOrderEditAuth
();
this
.
getList
();
},
},
mounted
()
{
// crm自动登陆传过来的参数
if
(
this
.
$route
.
query
.
crmOrderObj
)
{
let
crmOrderObj
=
JSON
.
parse
(
this
.
$route
.
query
.
crmOrderObj
)
this
.
msg
.
OrderId
=
crmOrderObj
.
OrderId
}
else
if
(
this
.
$route
.
query
.
OrderId
)
{
this
.
msg
.
OrderId
=
this
.
$route
.
query
.
OrderId
}
}
}
this
.
qjGroupId
=
this
.
QjGroupId
();
this
.
userInfo
=
this
.
getLocalStorage
();
</
script
>
this
.
getEmployee
()
this
.
getList
()
this
.
getCompany
()
this
.
getChinaAirportList
()
this
.
getJapanAirportList
()
this
.
GetSupperOrderEditAuth
();
}
}
</
script
>
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