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
7e2649a4
Commit
7e2649a4
authored
Dec 12, 2019
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
12541cc5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
625 additions
and
493 deletions
+625
-493
SingleContract.vue
src/components/SingleContract.vue
+625
-493
No files found.
src/components/SingleContract.vue
View file @
7e2649a4
...
@@ -262,7 +262,7 @@
...
@@ -262,7 +262,7 @@
<tbody>
<tbody>
<tr>
<tr>
<td>
<td>
<el-form-item
label=
"姓名"
>
<el-form-item
label=
"姓名"
prop=
"Tourists_Name"
>
<el-input
type=
"text"
v-model=
"CtObj.Tourists_Name"
maxlength=
"100"
class=
"w300"
></el-input>
<el-input
type=
"text"
v-model=
"CtObj.Tourists_Name"
maxlength=
"100"
class=
"w300"
></el-input>
</el-form-item>
</el-form-item>
</td>
</td>
...
@@ -283,7 +283,7 @@
...
@@ -283,7 +283,7 @@
</tr>
</tr>
<tr>
<tr>
<td>
<td>
<el-form-item
label=
"联系电话"
>
<el-form-item
label=
"联系电话"
prop=
"Tourists_Tel"
>
<el-input
type=
"text"
v-model=
"CtObj.Tourists_Tel"
maxlength=
"100"
class=
"w300"
></el-input>
<el-input
type=
"text"
v-model=
"CtObj.Tourists_Tel"
maxlength=
"100"
class=
"w300"
></el-input>
</el-form-item>
</el-form-item>
</td>
</td>
...
@@ -311,14 +311,14 @@
...
@@ -311,14 +311,14 @@
</tr>
</tr>
<tr>
<tr>
<td>
<td>
<el-form-item
label=
"紧急情况联系人姓名"
>
<el-form-item
label=
"紧急情况联系人姓名"
prop=
"Tourists_EmergencyLinkMan"
>
<el-input
type=
"text"
maxlength=
"100"
v-model=
"CtObj.Tourists_EmergencyLinkMan"
class=
"w300"
></el-input>
<el-input
type=
"text"
maxlength=
"100"
v-model=
"CtObj.Tourists_EmergencyLinkMan"
class=
"w300"
></el-input>
</el-form-item>
</el-form-item>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td>
<td>
<el-form-item
label=
"紧急情况联系人电话"
>
<el-form-item
label=
"紧急情况联系人电话"
prop=
"Tourists_EmergencyLinkTel"
>
<el-input
type=
"text"
maxlength=
"100"
v-model=
"CtObj.Tourists_EmergencyLinkTel"
class=
"w300"
></el-input>
<el-input
type=
"text"
maxlength=
"100"
v-model=
"CtObj.Tourists_EmergencyLinkTel"
class=
"w300"
></el-input>
</el-form-item>
</el-form-item>
</td>
</td>
...
@@ -337,7 +337,7 @@
...
@@ -337,7 +337,7 @@
</tr>
</tr>
<tr>
<tr>
<td>
<td>
<el-form-item
label=
"经办人"
>
<el-form-item
label=
"经办人"
prop=
"TravelAgency_DealMan"
>
<el-input
type=
"text"
class=
"w300"
v-model=
"CtObj.TravelAgency_DealMan"
maxlength=
"50"
></el-input>
<el-input
type=
"text"
class=
"w300"
v-model=
"CtObj.TravelAgency_DealMan"
maxlength=
"50"
></el-input>
</el-form-item>
</el-form-item>
</td>
</td>
...
@@ -473,11 +473,11 @@
...
@@ -473,11 +473,11 @@
<tr>
<tr>
<td>
<td>
<div
style=
"margin:20px 0 10px 50px"
>
<div
style=
"margin:20px 0 10px 50px"
>
<el-form-item
style=
"display:inline-block;"
label=
"费用总额(小写)人民币"
>
<el-form-item
style=
"display:inline-block;"
label=
"费用总额(小写)人民币"
prop=
"C_TotalPrice"
>
<el-input
type=
"text"
class=
"w300"
v-model=
"CtObj.C_TotalPrice"
@
keyup
.
native=
"checkPrice(CtObj,'C_TotalPrice')"
maxlength=
"10"
></el-input>
元
<el-input
type=
"text"
class=
"w300"
v-model=
"CtObj.C_TotalPrice"
@
keyup
.
native=
"checkPrice(CtObj,'C_TotalPrice')
,number_chinese(CtObj.C_TotalPrice)
"
maxlength=
"10"
></el-input>
元
</el-form-item>
</el-form-item>
<el-form-item
style=
"display:inline-block;"
label=
"(大写)人民币"
label-width=
"120px"
>
<el-form-item
style=
"display:inline-block;"
label=
"(大写)人民币"
label-width=
"120px"
>
<el-input
type=
"text"
class=
"w300"
maxlength=
"50"
></el-input>
元
<el-input
type=
"text"
class=
"w300"
maxlength=
"50"
v-model=
"AmountMoney"
></el-input>
元
</el-form-item>
</el-form-item>
</div>
</div>
</td>
</td>
...
@@ -503,7 +503,7 @@
...
@@ -503,7 +503,7 @@
<th>
护照号码
</th>
<th>
护照号码
</th>
<th>
联系电话(手机)
</th>
<th>
联系电话(手机)
</th>
<th>
身体状况
</th>
<th>
身体状况
</th>
<th
>
操作
{{
CtObj
.
ContractGuestList
}}
</th>
<th
width=
"100"
>
操作
</th>
</tr>
</tr>
<tr
v-for=
"(item, index) in CtObj.ContractGuestList"
:key=
"index"
>
<tr
v-for=
"(item, index) in CtObj.ContractGuestList"
:key=
"index"
>
<td>
{{
index
+
1
}}
</td>
<td>
{{
index
+
1
}}
</td>
...
@@ -549,6 +549,7 @@
...
@@ -549,6 +549,7 @@
<span
v-if=
"item.IsShow == 0"
>
{{
item
.
CGuestTel
}}
</span>
<span
v-if=
"item.IsShow == 0"
>
{{
item
.
CGuestTel
}}
</span>
<el-input
<el-input
type=
"text"
type=
"text"
@
keyup
.
native=
"checkInteger(item,'CGuestTel')"
v-model=
"item.CGuestTel"
v-model=
"item.CGuestTel"
v-else
v-else
></el-input>
></el-input>
...
@@ -574,7 +575,7 @@
...
@@ -574,7 +575,7 @@
type=
"primary"
type=
"primary"
icon=
"el-icon-edit"
icon=
"el-icon-edit"
circle
circle
@
click=
"
item.IsShow = 1
"
@
click=
"
commonUpdate(item)
"
></el-button>
></el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
<el-tooltip
...
@@ -587,7 +588,7 @@
...
@@ -587,7 +588,7 @@
<el-button
<el-button
type=
"primary"
type=
"primary"
icon=
"iconfont icon-baocun"
icon=
"iconfont icon-baocun"
@
click=
"
item.IsShow = 0
"
@
click=
"
commonSave(item)
"
circle
circle
></el-button>
></el-button>
</el-tooltip>
</el-tooltip>
...
@@ -672,10 +673,10 @@
...
@@ -672,10 +673,10 @@
</td>
</td>
<td>
<td>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"修改"
placement=
"top-start"
v-if=
"item.IsShow == 0"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"修改"
placement=
"top-start"
v-if=
"item.IsShow == 0"
>
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
@
click=
"
item.IsShow=1
"
></el-button>
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
@
click=
"
commonUpdate(item)
"
></el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"保存"
placement=
"top-start"
v-if=
"item.IsShow == 1"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"保存"
placement=
"top-start"
v-if=
"item.IsShow == 1"
>
<el-button
type=
"primary"
icon=
"iconfont icon-baocun"
@
click=
"
item.IsShow=0
"
circle
></el-button>
<el-button
type=
"primary"
icon=
"iconfont icon-baocun"
@
click=
"
commonSave(item)
"
circle
></el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
@
click=
"delTicket(index)"
circle
></el-button>
<el-button
type=
"danger"
icon=
"el-icon-delete"
@
click=
"delTicket(index)"
circle
></el-button>
...
@@ -728,7 +729,7 @@
...
@@ -728,7 +729,7 @@
<th>
单人间
</th>
<th>
单人间
</th>
<th>
三人间
</th>
<th>
三人间
</th>
<th>
成人人数
</th>
<th>
成人人数
</th>
<th>
<th
width=
"200"
>
<div>
儿童人数
</div>
<div>
儿童人数
</div>
<div>
(不占床位、不加床位)
</div>
<div>
(不占床位、不加床位)
</div>
</th>
</th>
...
@@ -788,10 +789,10 @@
...
@@ -788,10 +789,10 @@
</td>
</td>
<td>
<td>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"修改"
v-if=
"item.IsShow==0"
placement=
"top-start"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"修改"
v-if=
"item.IsShow==0"
placement=
"top-start"
>
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
@
click=
"
item.IsShow=1
"
></el-button>
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
@
click=
"
commonUpdate(item)
"
></el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"保存"
v-if=
"item.IsShow==1"
placement=
"top-start"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"保存"
v-if=
"item.IsShow==1"
placement=
"top-start"
>
<el-button
type=
"primary"
icon=
"iconfont icon-baocun"
circle
@
click=
"
item.IsShow=0
"
></el-button>
<el-button
type=
"primary"
icon=
"iconfont icon-baocun"
circle
@
click=
"
commonSave(item)
"
></el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
circle
@
click=
"delHotelList(index)"
></el-button>
<el-button
type=
"danger"
icon=
"el-icon-delete"
circle
@
click=
"delHotelList(index)"
></el-button>
...
@@ -880,10 +881,10 @@
...
@@ -880,10 +881,10 @@
</td>
</td>
<td>
<td>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"修改"
placement=
"top-start"
v-if=
"item.IsShow==0"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"修改"
placement=
"top-start"
v-if=
"item.IsShow==0"
>
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
@
click=
"
item.IsShow=1
"
></el-button>
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
@
click=
"
commonUpdate(item)
"
></el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"保存"
placement=
"top-start"
v-if=
"item.IsShow==1"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"保存"
placement=
"top-start"
v-if=
"item.IsShow==1"
>
<el-button
type=
"primary"
icon=
"iconfont icon-baocun"
circle
@
click=
"
item.IsShow=0
"
></el-button>
<el-button
type=
"primary"
icon=
"iconfont icon-baocun"
circle
@
click=
"
commonSave(item)
"
></el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
circle
@
click=
"delJieSong(index)"
></el-button>
<el-button
type=
"danger"
icon=
"el-icon-delete"
circle
@
click=
"delJieSong(index)"
></el-button>
...
@@ -946,10 +947,10 @@
...
@@ -946,10 +947,10 @@
</td>
</td>
<td>
<td>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"修改"
placement=
"top-start"
v-if=
"item.IsShow==0"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"修改"
placement=
"top-start"
v-if=
"item.IsShow==0"
>
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
@
click=
"
item.IsShow=1
"
></el-button>
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
@
click=
"
commonUpdate(item)
"
></el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"保存"
placement=
"top-start"
v-if=
"item.IsShow==1"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"保存"
placement=
"top-start"
v-if=
"item.IsShow==1"
>
<el-button
type=
"primary"
icon=
"iconfont icon-baocun"
circle
@
click=
"
item.IsShow=0
"
></el-button>
<el-button
type=
"primary"
icon=
"iconfont icon-baocun"
circle
@
click=
"
commonSave(item)
"
></el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
circle
@
click=
"delVisaList(index)"
></el-button>
<el-button
type=
"danger"
icon=
"el-icon-delete"
circle
@
click=
"delVisaList(index)"
></el-button>
...
@@ -1032,10 +1033,10 @@
...
@@ -1032,10 +1033,10 @@
</td>
</td>
<td>
<td>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"修改"
placement=
"top-start"
v-if=
"item.IsShow==0"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"修改"
placement=
"top-start"
v-if=
"item.IsShow==0"
>
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
@
click=
"
item.IsShow=1
"
></el-button>
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
@
click=
"
commonUpdate(item)
"
></el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"保存"
placement=
"top-start"
v-if=
"item.IsShow==1"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"保存"
placement=
"top-start"
v-if=
"item.IsShow==1"
>
<el-button
type=
"primary"
icon=
"iconfont icon-baocun"
circle
@
click=
"
item.IsShow=0
"
></el-button>
<el-button
type=
"primary"
icon=
"iconfont icon-baocun"
circle
@
click=
"
commonSave(item)
"
></el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
circle
@
click=
"delZuheTicket(index)"
></el-button>
<el-button
type=
"danger"
icon=
"el-icon-delete"
circle
@
click=
"delZuheTicket(index)"
></el-button>
...
@@ -1067,35 +1068,43 @@
...
@@ -1067,35 +1068,43 @@
<tr
v-for=
"(item,index) in CtObj.ContractTicketAndHotel.ContractHotels"
>
<tr
v-for=
"(item,index) in CtObj.ContractTicketAndHotel.ContractHotels"
>
<td>
{{
index
+
1
}}
</td>
<td>
{{
index
+
1
}}
</td>
<td>
<td>
<el-input
type=
"text"
v-model=
"item.HotelName"
></el-input>
<span
v-if=
"item.IsShow==0"
>
{{
item
.
HotelName
}}
</span>
<el-input
v-else
type=
"text"
v-model=
"item.HotelName"
></el-input>
</td>
</td>
<td>
<td>
<el-input
type=
"text"
v-model=
"item.DoubleRoom"
></el-input>
<span
v-if=
"item.IsShow==0"
>
{{
item
.
DoubleRoom
}}
</span>
<el-input
v-else
type=
"text"
v-model=
"item.DoubleRoom"
></el-input>
</td>
</td>
<td>
<td>
<el-input
type=
"text"
v-model=
"item.SingleRoom"
></el-input>
<span
v-if=
"item.IsShow==0"
>
{{
item
.
SingleRoom
}}
</span>
<el-input
v-else
type=
"text"
v-model=
"item.SingleRoom"
></el-input>
</td>
</td>
<td>
<td>
<el-input
type=
"text"
v-model=
"item.ThirdRoom"
></el-input>
<span
v-if=
"item.IsShow==0"
>
{{
item
.
ThirdRoom
}}
</span>
<el-input
v-else
type=
"text"
v-model=
"item.ThirdRoom"
></el-input>
</td>
</td>
<td>
<td>
<el-date-picker
class=
"w150"
v-model=
"item.CheckInDate"
type=
"date"
value-format=
"yyyy-MM-dd"
placeholder=
''
></el-date-picker>
<span
v-if=
"item.IsShow==0"
>
{{
item
.
CheckInDate
}}
</span>
<el-date-picker
v-else
class=
"w150"
v-model=
"item.CheckInDate"
type=
"date"
value-format=
"yyyy-MM-dd"
placeholder=
''
></el-date-picker>
</td>
</td>
<td>
<td>
<el-date-picker
class=
"w150"
v-model=
"item.OutDate"
type=
"date"
value-format=
"yyyy-MM-dd"
placeholder=
''
></el-date-picker>
<span
v-if=
"item.IsShow==0"
>
{{
item
.
OutDate
}}
</span>
<el-date-picker
v-else
class=
"w150"
v-model=
"item.OutDate"
type=
"date"
value-format=
"yyyy-MM-dd"
placeholder=
''
></el-date-picker>
</td>
</td>
<td>
<td>
<el-input
type=
"text"
v-model=
"item.AdultPrice"
></el-input>
<span
v-if=
"item.IsShow==0"
>
{{
item
.
AdultPrice
}}
</span>
<el-input
v-else
type=
"text"
v-model=
"item.AdultPrice"
></el-input>
</td>
</td>
<td>
<td>
<el-input
type=
"text"
v-model=
"item.ChildrenPrice"
></el-input>
<span
v-if=
"item.IsShow==0"
>
{{
item
.
ChildrenPrice
}}
</span>
<el-input
v-else
type=
"text"
v-model=
"item.ChildrenPrice"
></el-input>
</td>
</td>
<td>
<td>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"修改"
placement=
"top-start"
v-if=
"item.IsShow==0"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"修改"
placement=
"top-start"
v-if=
"item.IsShow==0"
>
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
@
click=
"
item.IsShow=1
"
></el-button>
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
@
click=
"
commonUpdate(item)
"
></el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"保存"
placement=
"top-start"
v-if=
"item.IsShow==1"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"保存"
placement=
"top-start"
v-if=
"item.IsShow==1"
>
<el-button
type=
"primary"
icon=
"iconfont icon-baocun"
circle
@
click=
"
item.IsShow=0
"
></el-button>
<el-button
type=
"primary"
icon=
"iconfont icon-baocun"
circle
@
click=
"
commonSave(item)
"
></el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
circle
@
click=
"delZuheHotel(index)"
></el-button>
<el-button
type=
"danger"
icon=
"el-icon-delete"
circle
@
click=
"delZuheHotel(index)"
></el-button>
...
@@ -1119,7 +1128,7 @@
...
@@ -1119,7 +1128,7 @@
</tbody>
</tbody>
</table>
</table>
</div>
</div>
<div
class=
"block mtop15"
id=
"anchor-9"
ref=
"anchor9"
>
<div
class=
"block mtop15"
id=
"anchor-9"
ref=
"anchor9"
style=
"border-bottom:0;"
>
<div
class=
"blockTitle"
>
<div
class=
"blockTitle"
>
<span
class=
"icon"
>
<span
class=
"icon"
>
<i
class=
"iconfont icon-bianji"
></i>
<i
class=
"iconfont icon-bianji"
></i>
...
@@ -1137,8 +1146,9 @@
...
@@ -1137,8 +1146,9 @@
</div>
</div>
<div>
<div>
<el-form-item
label-width=
"0"
>
<el-form-item
label-width=
"0"
>
<!--
<quill-editor
:options=
"editorOption"
v-model=
""
></quill-editor>
-->
<quill-editor
v-model=
"CtObj.OtherConvention"
></quill-editor>
<el-input
type=
"textarea"
resize=
"none"
v-model=
"CtObj.OtherConvention"
rows=
"13"
></el-input>
<!--
<quill-editor
:options=
"editorOption"
v-model=
"CtObj.OtherConvention"
></quill-editor>
<el-input
type=
"textarea"
resize=
"none"
v-model=
"CtObj.OtherConvention"
rows=
"13"
></el-input>
-->
</el-form-item>
</el-form-item>
</div>
</div>
</div>
</div>
...
@@ -1283,7 +1293,24 @@
...
@@ -1283,7 +1293,24 @@
}
}
},
},
rules
:
{
rules
:
{
Tourists_Name
:
[
{
required
:
true
,
message
:
"请输入客户名称"
,
trigger
:
"blur"
}
],
Tourists_Tel
:
[
{
required
:
true
,
message
:
"请输入联系电话"
,
trigger
:
"blur"
}
],
Tourists_EmergencyLinkMan
:
[
{
required
:
true
,
message
:
"请输入紧急联系人姓名"
,
trigger
:
"blur"
}
],
Tourists_EmergencyLinkTel
:
[
{
required
:
true
,
message
:
"请输入紧急联系人电话"
,
trigger
:
"blur"
}
],
TravelAgency_DealMan
:
[
{
required
:
true
,
message
:
"请输入经办人"
,
trigger
:
"blur"
}
],
C_TotalPrice
:
[
{
required
:
true
,
message
:
"请输入费用总额"
,
trigger
:
"blur"
}
]
},
},
//菜单列表
//菜单列表
menuArr
:[
'合同基本信息'
,
'相关告知及提示'
,
'费用计算'
,
'游客信息'
,
'机票预订'
,
'酒店预订'
,
'接送服务'
,
'代办签证'
,
'服务组合(机票与酒店)'
,
'其他单项服务事宜'
],
menuArr
:[
'合同基本信息'
,
'相关告知及提示'
,
'费用计算'
,
'游客信息'
,
'机票预订'
,
'酒店预订'
,
'接送服务'
,
'代办签证'
,
'服务组合(机票与酒店)'
,
'其他单项服务事宜'
],
...
@@ -1301,481 +1328,586 @@
...
@@ -1301,481 +1328,586 @@
}
}
},
},
//大写金额
AmountMoney
:
''
};
};
},
},
methods
:
{
methods
:
{
//跳转锚点
//跳转锚点
goAnchor
(
selector
)
{
goAnchor
(
selector
)
{
var
anchor
=
this
.
$el
.
querySelector
(
selector
)
var
anchor
=
this
.
$el
.
querySelector
(
selector
)
document
.
documentElement
.
scrollTop
=
anchor
.
offsetTop
-
70
document
.
documentElement
.
scrollTop
=
anchor
.
offsetTop
-
70
},
},
//提交数据
//提交数据
SaveMsg
(){
SaveMsg
(){
this
.
apipost
(
this
.
apipost
(
"travelcontract_post_SetTravelContractService"
,
"travelcontract_post_SetTravelContractService"
,
this
.
CtObj
,
this
.
CtObj
,
res
=>
{
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
CtObj
.
ID
=
res
.
data
.
data
;
this
.
CtObj
.
ID
=
res
.
data
.
data
;
this
.
GetData
();
this
.
GetData
();
this
.
Success
(
res
.
data
.
message
);
this
.
Success
(
res
.
data
.
message
);
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
);
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{}
);
},
//跳转至预览
goUrl
(){
this
.
$router
.
push
({
name
:
'TravelContractDetail'
,
query
:
{
TCID
:
this
.
$route
.
query
.
TCID
,
guestId
:
this
.
CtObj
.
guestId
,
orderID
:
this
.
$route
.
query
.
orderID
,
blank
:
"y"
,
}
}
},
});
err
=>
{}
},
);
//提交
},
submitForm
(
addMsg
)
{
//跳转至预览
//提交创建、修改表单
goUrl
(){
this
.
$refs
[
addMsg
].
validate
(
valid
=>
{
this
.
$router
.
push
({
if
(
valid
)
{
name
:
'TravelContractDetail'
,
this
.
SaveMsg
();
query
:
{
}
else
{
TCID
:
this
.
$route
.
query
.
TCID
,
this
.
Error
(
'请完成必填项'
);
guestId
:
this
.
CtObj
.
guestId
,
return
false
;
orderID
:
this
.
$route
.
query
.
orderID
,
}
blank
:
"y"
,
});
}
},
});
//添加游客信息
},
addTourist
()
{
//提交
this
.
CtObj
.
ContractGuestList
.
forEach
((
x
,
index
)
=>
{
submitForm
(
addMsg
)
{
x
.
IsShow
=
0
;
//提交创建、修改表单
});
this
.
$refs
[
addMsg
].
validate
(
valid
=>
{
let
obj
=
{
if
(
valid
)
{
CGuestName
:
""
,
this
.
SaveMsg
();
CGuestSex
:
"男"
,
}
else
{
CGuestCertificateType
:
"身份证"
,
this
.
Error
(
'请完成必填项'
);
CGuestCertificateNum
:
""
,
return
false
;
CGuestTel
:
""
,
CGuestHealth
:
"健康"
,
IsShow
:
1
};
this
.
CtObj
.
ContractGuestList
.
push
(
obj
);
},
//删除游客
delTouristArr
(
index
)
{
this
.
CtObj
.
ContractGuestList
.
splice
(
index
,
1
);
},
//添加机票
addTickets
(){
this
.
CtObj
.
ContractTicketList
.
forEach
((
x
,
index
)
=>
{
x
.
IsShow
=
0
;
});
let
obj
=
{
TicketTime
:
""
,
// 时间
StartPlace
:
""
,
// 出发地
ArrivePlace
:
''
,
// 目的地
FlightNum
:
''
,
// 航班号
TicketPrice
:
''
,
// 机票金额
AirportPirce
:
''
,
// 机场建设费
DepositPrice
:
''
,
// 定金
IsShow
:
1
};
this
.
CtObj
.
ContractTicketList
.
push
(
obj
);
},
//删除机票
delTicket
(
index
){
this
.
CtObj
.
ContractTicketList
.
splice
(
index
,
1
);
},
//添加酒店
addHotelList
(){
this
.
CtObj
.
ContractHotelList
.
forEach
((
x
,
index
)
=>
{
x
.
IsShow
=
0
;
});
let
obj
=
{
HotelName
:
""
,
// 酒店名称
DoubleRoom
:
''
,
//标准间
SingleRoom
:
''
,
//单间
ThirdRoom
:
''
,
//三人间
AdultNum
:
''
,
//成人人数
AdultPrice
:
''
,
//成人费用
ChildrenNum
:
''
,
//儿童人数
ChildrenPrice
:
''
,
//儿童费用
RoomPrice
:
''
,
//房费/晚
DepositPrice
:
''
,
// 定金/晚
CheckInDate
:
''
,
//入住日期
OutDate
:
''
,
//离店日期
IsShow
:
1
};
this
.
CtObj
.
ContractHotelList
.
push
(
obj
);
},
//删除酒店
delHotelList
(
index
){
this
.
CtObj
.
ContractHotelList
.
splice
(
index
,
1
);
},
//添加接送服务
addJieSong
(){
this
.
CtObj
.
ContractPickUpList
.
forEach
((
x
,
index
)
=>
{
x
.
IsShow
=
0
;
});
let
obj
=
{
UseTime
:
''
,
//用车日期
UseNum
:
''
,
//用车人数
StartPlace
:
''
,
//出发地
ArrivePlace
:
''
,
//目的地
UseBusType
:
'单程'
,
IsShow
:
1
};
this
.
CtObj
.
ContractPickUpList
.
push
(
obj
);
},
//删除接送服务
delJieSong
(
index
){
this
.
CtObj
.
ContractPickUpList
.
splice
(
index
,
1
);
},
//添加代办签证
addVisaList
(){
this
.
CtObj
.
ContractVisaList
.
forEach
((
x
,
index
)
=>
{
x
.
IsShow
=
0
;
});
let
obj
=
{
Country
:
''
,
//国家
StopTime
:
''
,
//停留时间
VisaPrice
:
''
,
//代办签证费用(元/个)
DepositPrice
:
''
,
// 保证金(元/个)
IsShow
:
1
};
this
.
CtObj
.
ContractVisaList
.
push
(
obj
);
},
//删除代办签证
delVisaList
(
index
){
this
.
CtObj
.
ContractVisaList
.
splice
(
index
,
1
);
},
//添加机票加酒店服务组合的机票
addZuheTicket
(){
this
.
CtObj
.
ContractTicketAndHotel
.
ContractTickets
.
forEach
((
x
,
index
)
=>
{
x
.
IsShow
=
0
;
});
let
obj
=
{
TicketTime
:
""
,
// 时间
StartPlace
:
""
,
// 出发地
ArrivePlace
:
''
,
// 目的地
FlightNum
:
''
,
// 航班号
TicketSpace
:
'普通舱'
,
// 舱位
TicketPrice
:
''
,
// 机票金额
AirportPirce
:
''
,
// 机场建设费
IsShow
:
1
};
this
.
CtObj
.
ContractTicketAndHotel
.
ContractTickets
.
push
(
obj
);
},
//删除机票加酒店服务组合的机票
delZuheTicket
(
index
){
this
.
CtObj
.
ContractTicketAndHotel
.
ContractTickets
.
splice
(
index
,
1
);
},
//添加机票加酒店服务组合的机票
addZuheHotel
(){
this
.
CtObj
.
ContractTicketAndHotel
.
ContractHotels
.
forEach
((
x
,
index
)
=>
{
x
.
IsShow
=
0
;
});
let
obj
=
{
HotelName
:
""
,
// 酒店名称
DoubleRoom
:
''
,
//标准间
SingleRoom
:
''
,
//单间
ThirdRoom
:
''
,
//三人间
CheckInDate
:
''
,
//入住日期
OutDate
:
''
,
//离店日期
AdultPrice
:
''
,
//成人费用
ChildrenPrice
:
''
,
//儿童费用
IsShow
:
1
};
this
.
CtObj
.
ContractTicketAndHotel
.
ContractHotels
.
push
(
obj
);
},
//删除机票加酒店服务组合的机票
delZuheHotel
(
index
){
this
.
CtObj
.
ContractTicketAndHotel
.
ContractHotels
.
splice
(
index
,
1
);
},
//滚动条滚动选中tab
menu
()
{
var
_self
=
this
;
_self
.
scroll
=
(
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
+
70
;
//滑动到指定位置相应菜单高亮
var
a_0
=
this
.
$refs
.
anchor0
.
offsetTop
;
var
a_1
=
this
.
$refs
.
anchor1
.
offsetTop
;
var
a_2
=
this
.
$refs
.
anchor2
.
offsetTop
;
var
a_3
=
this
.
$refs
.
anchor3
.
offsetTop
;
var
a_4
=
this
.
$refs
.
anchor4
.
offsetTop
;
var
a_5
=
this
.
$refs
.
anchor5
.
offsetTop
;
var
a_6
=
this
.
$refs
.
anchor6
.
offsetTop
;
var
a_7
=
this
.
$refs
.
anchor7
.
offsetTop
;
var
a_8
=
this
.
$refs
.
anchor7
.
offsetTop
;
var
a_9
=
this
.
$refs
.
anchor7
.
offsetTop
;
if
(
_self
.
scroll
<
a_0
)
{
this
.
ckedIndex
=
0
}
else
if
(
_self
.
scroll
>
a_0
&&
_self
.
scroll
<
a_1
)
{
this
.
ckedIndex
=
1
}
else
if
(
_self
.
scroll
>
a_2
&&
_self
.
scroll
<
a_3
)
{
this
.
ckedIndex
=
2
}
else
if
(
_self
.
scroll
>
a_3
&&
_self
.
scroll
<
a_4
)
{
this
.
ckedIndex
=
3
}
else
if
(
_self
.
scroll
>
a_4
&&
_self
.
scroll
<
a_5
)
{
this
.
ckedIndex
=
4
}
else
if
(
_self
.
scroll
>
a_5
&&
_self
.
scroll
<
a_6
)
{
this
.
ckedIndex
=
5
}
else
if
(
_self
.
scroll
>
a_6
&&
_self
.
scroll
<
a_7
)
{
this
.
ckedIndex
=
6
}
else
if
(
_self
.
scroll
>
a_7
&&
_self
.
scroll
<
a_8
)
{
this
.
ckedIndex
=
7
}
else
if
(
_self
.
scroll
>
a_8
&&
_self
.
scroll
<
a_9
)
{
this
.
ckedIndex
=
8
}
}
});
},
},
//添加游客信息
addTourist
()
{
this
.
CtObj
.
ContractGuestList
.
forEach
((
x
,
index
)
=>
{
x
.
IsShow
=
0
;
});
let
obj
=
{
CGuestName
:
""
,
CGuestSex
:
"男"
,
CGuestCertificateType
:
"身份证"
,
CGuestCertificateNum
:
""
,
CGuestTel
:
""
,
CGuestHealth
:
"健康"
,
IsShow
:
1
};
this
.
CtObj
.
ContractGuestList
.
push
(
obj
);
},
//删除游客
delTouristArr
(
index
)
{
this
.
CtObj
.
ContractGuestList
.
splice
(
index
,
1
);
},
//添加机票
addTickets
(){
this
.
CtObj
.
ContractTicketList
.
forEach
((
x
,
index
)
=>
{
x
.
IsShow
=
0
;
});
let
obj
=
{
TicketTime
:
""
,
// 时间
StartPlace
:
""
,
// 出发地
ArrivePlace
:
''
,
// 目的地
FlightNum
:
''
,
// 航班号
TicketPrice
:
''
,
// 机票金额
AirportPirce
:
''
,
// 机场建设费
DepositPrice
:
''
,
// 定金
IsShow
:
1
};
this
.
CtObj
.
ContractTicketList
.
push
(
obj
);
},
//删除机票
delTicket
(
index
){
this
.
CtObj
.
ContractTicketList
.
splice
(
index
,
1
);
},
//添加酒店
addHotelList
(){
this
.
CtObj
.
ContractHotelList
.
forEach
((
x
,
index
)
=>
{
x
.
IsShow
=
0
;
});
let
obj
=
{
HotelName
:
""
,
// 酒店名称
DoubleRoom
:
''
,
//标准间
SingleRoom
:
''
,
//单间
ThirdRoom
:
''
,
//三人间
AdultNum
:
''
,
//成人人数
AdultPrice
:
''
,
//成人费用
ChildrenNum
:
''
,
//儿童人数
ChildrenPrice
:
''
,
//儿童费用
RoomPrice
:
''
,
//房费/晚
DepositPrice
:
''
,
// 定金/晚
CheckInDate
:
''
,
//入住日期
OutDate
:
''
,
//离店日期
IsShow
:
1
};
this
.
CtObj
.
ContractHotelList
.
push
(
obj
);
},
//删除酒店
delHotelList
(
index
){
this
.
CtObj
.
ContractHotelList
.
splice
(
index
,
1
);
},
//添加接送服务
addJieSong
(){
this
.
CtObj
.
ContractPickUpList
.
forEach
((
x
,
index
)
=>
{
x
.
IsShow
=
0
;
});
let
obj
=
{
UseTime
:
''
,
//用车日期
UseNum
:
''
,
//用车人数
StartPlace
:
''
,
//出发地
ArrivePlace
:
''
,
//目的地
UseBusType
:
'单程'
,
IsShow
:
1
};
this
.
CtObj
.
ContractPickUpList
.
push
(
obj
);
},
//删除接送服务
delJieSong
(
index
){
this
.
CtObj
.
ContractPickUpList
.
splice
(
index
,
1
);
},
//添加代办签证
addVisaList
(){
this
.
CtObj
.
ContractVisaList
.
forEach
((
x
,
index
)
=>
{
x
.
IsShow
=
0
;
});
let
obj
=
{
Country
:
''
,
//国家
StopTime
:
''
,
//停留时间
VisaPrice
:
''
,
//代办签证费用(元/个)
DepositPrice
:
''
,
// 保证金(元/个)
IsShow
:
1
};
this
.
CtObj
.
ContractVisaList
.
push
(
obj
);
},
//删除代办签证
delVisaList
(
index
){
this
.
CtObj
.
ContractVisaList
.
splice
(
index
,
1
);
},
//添加机票加酒店服务组合的机票
GetData
()
{
addZuheTicket
(){
this
.
apipost
(
this
.
CtObj
.
ContractTicketAndHotel
.
ContractTickets
.
forEach
((
x
,
index
)
=>
{
"travelcontract_get_GetTravelContractService"
,
x
.
IsShow
=
0
;
{
ID
:
this
.
CtObj
.
ID
},
});
res
=>
{
let
obj
=
{
if
(
res
.
data
.
resultCode
==
1
)
{
TicketTime
:
""
,
// 时间
var
tempObj
=
res
.
data
.
data
;
StartPlace
:
""
,
// 出发地
console
.
log
(
"temp"
,
tempObj
);
ArrivePlace
:
''
,
// 目的地
this
.
CtObj
.
ID
=
tempObj
.
ID
;
FlightNum
:
''
,
// 航班号
this
.
CtObj
.
CType
=
tempObj
.
CType
;
TicketSpace
:
'普通舱'
,
// 舱位
this
.
CtObj
.
T_ContractNum
=
tempObj
.
T_ContractNum
;
TicketPrice
:
''
,
// 机票金额
this
.
CtObj
.
Tourists_Name
=
tempObj
.
Tourists_Name
;
AirportPirce
:
''
,
// 机场建设费
this
.
CtObj
.
Tourists_IDNum
=
tempObj
.
Tourists_IDNum
;
IsShow
:
1
this
.
CtObj
.
Tourists_Addres
=
tempObj
.
Tourists_Addres
;
};
this
.
CtObj
.
Tourists_Tel
=
tempObj
.
Tourists_Tel
;
this
.
CtObj
.
ContractTicketAndHotel
.
ContractTickets
.
push
(
obj
);
this
.
CtObj
.
Tourists_Email
=
tempObj
.
Tourists_Email
;
},
this
.
CtObj
.
Tourists_PostNum
=
tempObj
.
Tourists_PostNum
;
//删除机票加酒店服务组合的机票
this
.
CtObj
.
Tourists_Fax
=
tempObj
.
Tourists_Fax
;
delZuheTicket
(
index
){
this
.
CtObj
.
Tourists_EmergencyLinkMan
=
this
.
CtObj
.
ContractTicketAndHotel
.
ContractTickets
.
splice
(
index
,
1
);
tempObj
.
Tourists_EmergencyLinkMan
;
},
this
.
CtObj
.
Tourists_EmergencyLinkTel
=
//添加机票加酒店服务组合的机票
tempObj
.
Tourists_EmergencyLinkTel
;
addZuheHotel
(){
this
.
CtObj
.
TravelAgency_DealMan
=
tempObj
.
TravelAgency_DealMan
;
this
.
CtObj
.
ContractTicketAndHotel
.
ContractHotels
.
forEach
((
x
,
index
)
=>
{
this
.
CtObj
.
TravelAgency_IDNum
=
tempObj
.
TravelAgency_IDNum
;
x
.
IsShow
=
0
;
this
.
CtObj
.
TravelAgency_Tel
=
tempObj
.
TravelAgency_Tel
;
});
this
.
CtObj
.
TravelAgency_Fax
=
tempObj
.
TravelAgency_Fax
;
let
obj
=
{
this
.
CtObj
.
TravelAgency_PostNum
=
tempObj
.
TravelAgency_PostNum
;
HotelName
:
""
,
// 酒店名称
this
.
CtObj
.
TravelAgency_Email
=
tempObj
.
TravelAgency_Email
;
DoubleRoom
:
''
,
//标准间
this
.
CtObj
.
TravelAgency_SignAddress
=
SingleRoom
:
''
,
//单间
tempObj
.
TravelAgency_SignAddress
;
ThirdRoom
:
''
,
//三人间
this
.
CtObj
.
Guide_Name
=
tempObj
.
Guide_Name
;
CheckInDate
:
''
,
//入住日期
this
.
CtObj
.
Guide_Num
=
tempObj
.
Guide_Num
;
OutDate
:
''
,
//离店日期
this
.
CtObj
.
Guide_Tel
=
tempObj
.
Guide_Tel
;
AdultPrice
:
''
,
//成人费用
this
.
CtObj
.
C_TCNUM
=
tempObj
.
C_TCNUM
;
ChildrenPrice
:
''
,
//儿童费用
this
.
CtObj
.
C_ProductName
=
tempObj
.
C_ProductName
;
IsShow
:
1
this
.
CtObj
.
C_StartDate
=
tempObj
.
C_StartDate
;
};
this
.
CtObj
.
C_EndDate
=
tempObj
.
C_EndDate
;
this
.
CtObj
.
ContractTicketAndHotel
.
ContractHotels
.
push
(
obj
);
this
.
CtObj
.
C_DayNum
=
tempObj
.
C_DayNum
;
},
this
.
CtObj
.
C_NightNum
=
tempObj
.
C_NightNum
;
//删除机票加酒店服务组合的机票
this
.
CtObj
.
C_AdultNum
=
tempObj
.
C_AdultNum
;
delZuheHotel
(
index
){
this
.
CtObj
.
C_AdultPrice
=
tempObj
.
C_AdultPrice
;
this
.
CtObj
.
ContractTicketAndHotel
.
ContractHotels
.
splice
(
index
,
1
);
this
.
CtObj
.
C_ChildrenNum
=
tempObj
.
C_ChildrenNum
;
},
this
.
CtObj
.
C_ChildrenPrice
=
tempObj
.
C_ChildrenPrice
;
//滚动条滚动选中tab
this
.
CtObj
.
C_GuideServicePrice
=
tempObj
.
C_GuideServicePrice
;
menu
()
{
this
.
CtObj
.
C_TotalPrice
=
tempObj
.
C_TotalPrice
;
var
_self
=
this
;
this
.
CtObj
.
C_PayDate
=
tempObj
.
C_PayDate
;
_self
.
scroll
=
(
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
)
+
70
;
this
.
CtObj
.
C_PayType
=
tempObj
.
C_PayType
;
//滑动到指定位置相应菜单高亮
this
.
CtObj
.
C_PayTypeRemark
=
tempObj
.
C_PayTypeRemark
;
var
a_0
=
this
.
$refs
.
anchor0
.
offsetTop
;
this
.
CtObj
.
C_InsuranceType
=
tempObj
.
C_InsuranceType
;
var
a_1
=
this
.
$refs
.
anchor1
.
offsetTop
;
this
.
CtObj
.
C_InsuranceName
=
tempObj
.
C_InsuranceName
;
var
a_2
=
this
.
$refs
.
anchor2
.
offsetTop
;
this
.
CtObj
.
C_LowNum
=
tempObj
.
C_LowNum
;
var
a_3
=
this
.
$refs
.
anchor3
.
offsetTop
;
this
.
CtObj
.
C_IsAgreeTravel
=
tempObj
.
C_IsAgreeTravel
;
var
a_4
=
this
.
$refs
.
anchor4
.
offsetTop
;
this
.
CtObj
.
C_AgreeTravelName
=
tempObj
.
C_AgreeTravelName
;
var
a_5
=
this
.
$refs
.
anchor5
.
offsetTop
;
this
.
CtObj
.
C_IsAgreeDelay
=
tempObj
.
C_IsAgreeDelay
;
var
a_6
=
this
.
$refs
.
anchor6
.
offsetTop
;
this
.
CtObj
.
C_IsAgreeCndorse
=
tempObj
.
C_IsAgreeCndorse
;
var
a_7
=
this
.
$refs
.
anchor7
.
offsetTop
;
this
.
CtObj
.
C_IsAgreeRemove
=
tempObj
.
C_IsAgreeRemove
;
var
a_8
=
this
.
$refs
.
anchor7
.
offsetTop
;
this
.
CtObj
.
C_IsAgreeSpellGroup
=
tempObj
.
C_IsAgreeSpellGroup
;
var
a_9
=
this
.
$refs
.
anchor7
.
offsetTop
;
this
.
CtObj
.
C_SpellGroupName
=
tempObj
.
C_SpellGroupName
;
if
(
_self
.
scroll
<
a_0
)
{
this
.
CtObj
.
C_SolveType
=
tempObj
.
C_SolveType
;
this
.
ckedIndex
=
0
this
.
CtObj
.
C_SolveRemark
=
tempObj
.
C_SolveRemark
;
}
else
if
(
_self
.
scroll
>
a_0
&&
_self
.
scroll
<
a_1
)
{
this
.
CtObj
.
C_ContractTotal
=
tempObj
.
C_ContractTotal
;
this
.
ckedIndex
=
1
this
.
CtObj
.
C_ContractPer
=
tempObj
.
C_ContractPer
;
}
else
if
(
_self
.
scroll
>
a_2
&&
_self
.
scroll
<
a_3
)
{
this
.
CtObj
.
C_StartAddress
=
tempObj
.
C_StartAddress
;
this
.
ckedIndex
=
2
this
.
CtObj
.
C_ReturnAddress
=
tempObj
.
C_ReturnAddress
;
}
else
if
(
_self
.
scroll
>
a_3
&&
_self
.
scroll
<
a_4
)
{
this
.
CtObj
.
C_TrafficType
=
tempObj
.
C_TrafficType
;
this
.
ckedIndex
=
3
this
.
CtObj
.
C_BusCode
=
tempObj
.
C_BusCode
;
}
else
if
(
_self
.
scroll
>
a_4
&&
_self
.
scroll
<
a_5
)
{
this
.
CtObj
.
C_DriverName
=
tempObj
.
C_DriverName
;
this
.
ckedIndex
=
4
this
.
CtObj
.
C_IsHaveKongTiao
=
tempObj
.
C_IsHaveKongTiao
;
}
else
if
(
_self
.
scroll
>
a_5
&&
_self
.
scroll
<
a_6
)
{
this
.
CtObj
.
C_BusType
=
tempObj
.
C_BusType
;
this
.
ckedIndex
=
5
this
.
CtObj
.
C_BreakfastAddress
=
tempObj
.
C_BreakfastAddress
;
}
else
if
(
_self
.
scroll
>
a_6
&&
_self
.
scroll
<
a_7
)
{
this
.
CtObj
.
C_BreakfastBasic
=
tempObj
.
C_BreakfastBasic
;
this
.
ckedIndex
=
6
this
.
CtObj
.
C_LunchAddress
=
tempObj
.
C_LunchAddress
;
}
else
if
(
_self
.
scroll
>
a_7
&&
_self
.
scroll
<
a_8
)
{
this
.
CtObj
.
C_LunchBasic
=
tempObj
.
C_LunchBasic
;
this
.
ckedIndex
=
7
this
.
CtObj
.
C_DinnerAddress
=
tempObj
.
C_DinnerAddress
;
}
else
if
(
_self
.
scroll
>
a_8
&&
_self
.
scroll
<
a_9
)
{
this
.
CtObj
.
C_DinnerBasic
=
tempObj
.
C_DinnerBasic
;
this
.
ckedIndex
=
8
this
.
CtObj
.
C_IncludeRemark
=
tempObj
.
C_IncludeRemark
;
}
this
.
CtObj
.
C_IncludeFee
=
tempObj
.
C_IncludeFee
;
},
this
.
CtObj
.
C_NonIncludeRemark
=
tempObj
.
C_NonIncludeRemark
;
this
.
CtObj
.
TravelAgency_ServiceTel
=
tempObj
.
TravelAgency_ServiceTel
;
this
.
CtObj
.
C_ComplaintProvince
=
tempObj
.
C_ComplaintProvince
;
this
.
CtObj
.
C_ComplaintCity
=
tempObj
.
C_ComplaintCity
;
this
.
CtObj
.
C_ComplaintTel
=
tempObj
.
C_ComplaintTel
;
this
.
CtObj
.
C_ComplaintEmail
=
tempObj
.
C_ComplaintEmail
;
this
.
CtObj
.
C_ComplaintAddress
=
tempObj
.
C_ComplaintAddress
;
this
.
CtObj
.
C_ComplaintPostNum
=
tempObj
.
C_ComplaintPostNum
;
this
.
CtObj
.
C_ZhiFaTel
=
tempObj
.
C_ZhiFaTel
;
this
.
CtObj
.
C_XFZXHTSTel
=
tempObj
.
C_XFZXHTSTel
;
this
.
CtObj
.
C_TicketDayNum
=
tempObj
.
C_TicketDayNum
;
this
.
CtObj
.
C_OrderDayNum
=
tempObj
.
C_OrderDayNum
;
this
.
CtObj
.
C_PayDayNum
=
tempObj
.
C_PayDayNum
;
this
.
CtObj
.
C_SignType
=
tempObj
.
C_SignType
;
this
.
CtObj
.
OtherConventionPrice
=
tempObj
.
OtherConventionPrice
;
this
.
CtObj
.
OtherConvention
=
tempObj
.
OtherConvention
;
this
.
CtObj
.
OtherConventionPrice
=
tempObj
.
OtherConventionPrice
;
this
.
CtObj
.
TicketTotalNum
=
tempObj
.
TicketTotalNum
;
this
.
CtObj
.
TicketOutDayNum
=
tempObj
.
TicketOutDayNum
;
this
.
CtObj
.
TicketTotalDepositPrice
=
tempObj
.
TicketTotalDepositPrice
;
this
.
CtObj
.
HotelTotal
=
tempObj
.
HotelTotal
;
this
.
CtObj
.
HotelCheckInType
=
tempObj
.
HotelCheckInType
;
this
.
CtObj
.
HotelNotice
=
tempObj
.
HotelNotice
;
this
.
CtObj
.
HotelTotalPrice
=
tempObj
.
HotelTotalPrice
;
this
.
CtObj
.
PickUpTotalPrice
=
tempObj
.
PickUpTotalPrice
;
this
.
CtObj
.
VisaTotalPrice
=
tempObj
.
VisaTotalPrice
;
this
.
CtObj
.
TicketAndHotelTotalPrice
=
tempObj
.
TicketAndHotelTotalPrice
;
if
(
tempObj
.
ContractShopList
&&
tempObj
.
ContractShopList
!=
null
&&
tempObj
.
ContractShopList
.
length
>
0
)
{
this
.
CtObj
.
ContractShopList
=
tempObj
.
ContractShopList
;
}
else
{
this
.
CtObj
.
ContractShopList
=
[];
}
if
(
this
.
CtObj
.
ContractShopList
&&
this
.
CtObj
.
ContractShopList
!=
null
&&
this
.
CtObj
.
ContractShopList
.
length
>
0
)
{
this
.
CtObj
.
ContractShopList
.
forEach
(
gItem
=>
{
gItem
.
IsShow
=
0
;
});
}
GetData
()
{
if
(
this
.
apipost
(
tempObj
.
ContractGuestList
&&
"travelcontract_get_GetTravelContractService"
,
tempObj
.
ContractGuestList
!=
null
&&
{
ID
:
this
.
CtObj
.
ID
},
tempObj
.
ContractGuestList
.
length
>
0
res
=>
{
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
CtObj
.
ContractGuestList
=
tempObj
.
ContractGuestList
;
var
tempObj
=
res
.
data
.
data
;
}
else
{
console
.
log
(
"temp"
,
tempObj
);
this
.
CtObj
.
ContractGuestList
=
[];
this
.
CtObj
.
ID
=
tempObj
.
ID
;
}
this
.
CtObj
.
CType
=
tempObj
.
CType
;
if
(
this
.
CtObj
.
T_ContractNum
=
tempObj
.
T_ContractNum
;
this
.
CtObj
.
ContractGuestList
&&
this
.
CtObj
.
Tourists_Name
=
tempObj
.
Tourists_Name
;
this
.
CtObj
.
ContractGuestList
!=
null
&&
this
.
CtObj
.
Tourists_IDNum
=
tempObj
.
Tourists_IDNum
;
this
.
CtObj
.
ContractGuestList
.
length
>
0
this
.
CtObj
.
Tourists_Addres
=
tempObj
.
Tourists_Addres
;
)
{
this
.
CtObj
.
Tourists_Tel
=
tempObj
.
Tourists_Tel
;
this
.
CtObj
.
ContractGuestList
.
forEach
(
gItem
=>
{
this
.
CtObj
.
Tourists_Email
=
tempObj
.
Tourists_Email
;
gItem
.
IsShow
=
0
;
this
.
CtObj
.
Tourists_PostNum
=
tempObj
.
Tourists_PostNum
;
});
this
.
CtObj
.
Tourists_Fax
=
tempObj
.
Tourists_Fax
;
}
this
.
CtObj
.
Tourists_EmergencyLinkMan
=
if
(
tempObj
.
Tourists_EmergencyLinkMan
;
tempObj
.
ContractSelfFeeList
&&
this
.
CtObj
.
Tourists_EmergencyLinkTel
=
tempObj
.
ContractSelfFeeList
!=
null
&&
tempObj
.
Tourists_EmergencyLinkTel
;
tempObj
.
ContractSelfFeeList
.
length
>
0
this
.
CtObj
.
TravelAgency_DealMan
=
tempObj
.
TravelAgency_DealMan
;
)
{
this
.
CtObj
.
TravelAgency_IDNum
=
tempObj
.
TravelAgency_IDNum
;
this
.
CtObj
.
ContractSelfFeeList
=
tempObj
.
ContractSelfFeeList
;
this
.
CtObj
.
TravelAgency_Tel
=
tempObj
.
TravelAgency_Tel
;
}
else
{
this
.
CtObj
.
TravelAgency_Fax
=
tempObj
.
TravelAgency_Fax
;
this
.
CtObj
.
ContractSelfFeeList
=
[];
this
.
CtObj
.
TravelAgency_PostNum
=
tempObj
.
TravelAgency_PostNum
;
}
this
.
CtObj
.
TravelAgency_Email
=
tempObj
.
TravelAgency_Email
;
if
(
this
.
CtObj
.
TravelAgency_SignAddress
=
this
.
CtObj
.
ContractSelfFeeList
&&
tempObj
.
TravelAgency_SignAddress
;
this
.
CtObj
.
ContractSelfFeeList
!=
null
&&
this
.
CtObj
.
Guide_Name
=
tempObj
.
Guide_Name
;
this
.
CtObj
.
ContractSelfFeeList
.
length
>
0
this
.
CtObj
.
Guide_Num
=
tempObj
.
Guide_Num
;
)
{
this
.
CtObj
.
Guide_Tel
=
tempObj
.
Guide_Tel
;
this
.
CtObj
.
ContractSelfFeeList
.
forEach
(
gItem
=>
{
this
.
CtObj
.
C_TCNUM
=
tempObj
.
C_TCNUM
;
gItem
.
IsShow
=
0
;
this
.
CtObj
.
C_ProductName
=
tempObj
.
C_ProductName
;
});
this
.
CtObj
.
C_StartDate
=
tempObj
.
C_StartDate
;
}
this
.
CtObj
.
C_EndDate
=
tempObj
.
C_EndDate
;
if
(
this
.
CtObj
.
C_DayNum
=
tempObj
.
C_DayNum
;
tempObj
.
ContractTripList
&&
this
.
CtObj
.
C_NightNum
=
tempObj
.
C_NightNum
;
tempObj
.
ContractTripList
!=
null
&&
this
.
CtObj
.
C_AdultNum
=
tempObj
.
C_AdultNum
;
tempObj
.
ContractTripList
.
length
>
0
this
.
CtObj
.
C_AdultPrice
=
tempObj
.
C_AdultPrice
;
)
{
this
.
CtObj
.
C_ChildrenNum
=
tempObj
.
C_ChildrenNum
;
this
.
CtObj
.
ContractTripList
=
tempObj
.
ContractTripList
;
this
.
CtObj
.
C_ChildrenPrice
=
tempObj
.
C_ChildrenPrice
;
}
else
{
this
.
CtObj
.
C_GuideServicePrice
=
tempObj
.
C_GuideServicePrice
;
this
.
CtObj
.
ContractTripList
=
[];
this
.
CtObj
.
C_TotalPrice
=
tempObj
.
C_TotalPrice
;
}
this
.
CtObj
.
C_PayDate
=
tempObj
.
C_PayDate
;
this
.
CtObj
.
C_PayType
=
tempObj
.
C_PayType
;
this
.
CtObj
.
C_PayTypeRemark
=
tempObj
.
C_PayTypeRemark
;
this
.
CtObj
.
C_InsuranceType
=
tempObj
.
C_InsuranceType
;
this
.
CtObj
.
C_InsuranceName
=
tempObj
.
C_InsuranceName
;
this
.
CtObj
.
C_LowNum
=
tempObj
.
C_LowNum
;
this
.
CtObj
.
C_IsAgreeTravel
=
tempObj
.
C_IsAgreeTravel
;
this
.
CtObj
.
C_AgreeTravelName
=
tempObj
.
C_AgreeTravelName
;
this
.
CtObj
.
C_IsAgreeDelay
=
tempObj
.
C_IsAgreeDelay
;
this
.
CtObj
.
C_IsAgreeCndorse
=
tempObj
.
C_IsAgreeCndorse
;
this
.
CtObj
.
C_IsAgreeRemove
=
tempObj
.
C_IsAgreeRemove
;
this
.
CtObj
.
C_IsAgreeSpellGroup
=
tempObj
.
C_IsAgreeSpellGroup
;
this
.
CtObj
.
C_SpellGroupName
=
tempObj
.
C_SpellGroupName
;
this
.
CtObj
.
C_SolveType
=
tempObj
.
C_SolveType
;
this
.
CtObj
.
C_SolveRemark
=
tempObj
.
C_SolveRemark
;
this
.
CtObj
.
C_ContractTotal
=
tempObj
.
C_ContractTotal
;
this
.
CtObj
.
C_ContractPer
=
tempObj
.
C_ContractPer
;
this
.
CtObj
.
C_StartAddress
=
tempObj
.
C_StartAddress
;
this
.
CtObj
.
C_ReturnAddress
=
tempObj
.
C_ReturnAddress
;
this
.
CtObj
.
C_TrafficType
=
tempObj
.
C_TrafficType
;
this
.
CtObj
.
C_BusCode
=
tempObj
.
C_BusCode
;
this
.
CtObj
.
C_DriverName
=
tempObj
.
C_DriverName
;
this
.
CtObj
.
C_IsHaveKongTiao
=
tempObj
.
C_IsHaveKongTiao
;
this
.
CtObj
.
C_BusType
=
tempObj
.
C_BusType
;
this
.
CtObj
.
C_BreakfastAddress
=
tempObj
.
C_BreakfastAddress
;
this
.
CtObj
.
C_BreakfastBasic
=
tempObj
.
C_BreakfastBasic
;
this
.
CtObj
.
C_LunchAddress
=
tempObj
.
C_LunchAddress
;
this
.
CtObj
.
C_LunchBasic
=
tempObj
.
C_LunchBasic
;
this
.
CtObj
.
C_DinnerAddress
=
tempObj
.
C_DinnerAddress
;
this
.
CtObj
.
C_DinnerBasic
=
tempObj
.
C_DinnerBasic
;
this
.
CtObj
.
C_IncludeRemark
=
tempObj
.
C_IncludeRemark
;
this
.
CtObj
.
C_IncludeFee
=
tempObj
.
C_IncludeFee
;
this
.
CtObj
.
C_NonIncludeRemark
=
tempObj
.
C_NonIncludeRemark
;
this
.
CtObj
.
TravelAgency_ServiceTel
=
tempObj
.
TravelAgency_ServiceTel
;
this
.
CtObj
.
C_ComplaintProvince
=
tempObj
.
C_ComplaintProvince
;
this
.
CtObj
.
C_ComplaintCity
=
tempObj
.
C_ComplaintCity
;
this
.
CtObj
.
C_ComplaintTel
=
tempObj
.
C_ComplaintTel
;
this
.
CtObj
.
C_ComplaintEmail
=
tempObj
.
C_ComplaintEmail
;
this
.
CtObj
.
C_ComplaintAddress
=
tempObj
.
C_ComplaintAddress
;
this
.
CtObj
.
C_ComplaintPostNum
=
tempObj
.
C_ComplaintPostNum
;
this
.
CtObj
.
C_ZhiFaTel
=
tempObj
.
C_ZhiFaTel
;
this
.
CtObj
.
C_XFZXHTSTel
=
tempObj
.
C_XFZXHTSTel
;
this
.
CtObj
.
C_TicketDayNum
=
tempObj
.
C_TicketDayNum
;
this
.
CtObj
.
C_OrderDayNum
=
tempObj
.
C_OrderDayNum
;
this
.
CtObj
.
C_PayDayNum
=
tempObj
.
C_PayDayNum
;
this
.
CtObj
.
C_SignType
=
tempObj
.
C_SignType
;
this
.
CtObj
.
OtherConventionPrice
=
tempObj
.
OtherConventionPrice
;
this
.
CtObj
.
OtherConvention
=
tempObj
.
OtherConvention
;
this
.
CtObj
.
OtherConventionPrice
=
tempObj
.
OtherConventionPrice
;
this
.
CtObj
.
TicketTotalNum
=
tempObj
.
TicketTotalNum
;
this
.
CtObj
.
TicketOutDayNum
=
tempObj
.
TicketOutDayNum
;
this
.
CtObj
.
TicketTotalDepositPrice
=
tempObj
.
TicketTotalDepositPrice
;
this
.
CtObj
.
HotelTotal
=
tempObj
.
HotelTotal
;
this
.
CtObj
.
HotelCheckInType
=
tempObj
.
HotelCheckInType
;
this
.
CtObj
.
HotelNotice
=
tempObj
.
HotelNotice
;
this
.
CtObj
.
HotelTotalPrice
=
tempObj
.
HotelTotalPrice
;
this
.
CtObj
.
PickUpTotalPrice
=
tempObj
.
PickUpTotalPrice
;
this
.
CtObj
.
VisaTotalPrice
=
tempObj
.
VisaTotalPrice
;
this
.
CtObj
.
TicketAndHotelTotalPrice
=
tempObj
.
TicketAndHotelTotalPrice
;
if
(
tempObj
.
ContractShopList
&&
tempObj
.
ContractShopList
!=
null
&&
tempObj
.
ContractShopList
.
length
>
0
)
{
this
.
CtObj
.
ContractShopList
=
tempObj
.
ContractShopList
;
}
else
{
this
.
CtObj
.
ContractShopList
=
[];
}
if
(
this
.
CtObj
.
ContractShopList
&&
this
.
CtObj
.
ContractShopList
!=
null
&&
this
.
CtObj
.
ContractShopList
.
length
>
0
)
{
this
.
CtObj
.
ContractShopList
.
forEach
(
gItem
=>
{
gItem
.
IsShow
=
0
;
});
}
if
(
if
(
tempObj
.
ContractGuestList
&&
this
.
CtObj
.
ContractTripList
&&
tempObj
.
ContractGuestList
!=
null
&&
this
.
CtObj
.
ContractTripList
!=
null
&&
tempObj
.
ContractGuestList
.
length
>
0
this
.
CtObj
.
ContractTripList
.
length
>
0
)
{
)
{
this
.
CtObj
.
ContractGuestList
=
tempObj
.
ContractGuestList
;
this
.
CtObj
.
ContractTripList
.
forEach
(
gItem
=>
{
}
else
{
gItem
.
IsShow
=
0
;
this
.
CtObj
.
ContractGuestList
=
[];
});
}
}
console
.
log
(
""
,
this
.
CtObj
.
ContractGuestList
)
if
(
this
.
CtObj
.
ContractGuestList
&&
this
.
CtObj
.
ContractGuestList
!=
null
&&
this
.
CtObj
.
ContractGuestList
.
length
>
0
)
{
this
.
CtObj
.
ContractGuestList
.
forEach
(
gItem
=>
{
gItem
.
IsShow
=
0
;
});
}
if
(
tempObj
.
ContractSelfFeeList
&&
tempObj
.
ContractSelfFeeList
!=
null
&&
tempObj
.
ContractSelfFeeList
.
length
>
0
)
{
this
.
CtObj
.
ContractSelfFeeList
=
tempObj
.
ContractSelfFeeList
;
}
else
{
this
.
CtObj
.
ContractGuestList
=
[];
}
if
(
this
.
CtObj
.
ContractSelfFeeList
&&
this
.
CtObj
.
ContractSelfFeeList
!=
null
&&
this
.
CtObj
.
ContractSelfFeeList
.
length
>
0
)
{
this
.
CtObj
.
ContractSelfFeeList
.
forEach
(
gItem
=>
{
gItem
.
IsShow
=
0
;
});
}
if
(
tempObj
.
ContractTripList
&&
tempObj
.
ContractTripList
!=
null
&&
tempObj
.
ContractTripList
.
length
>
0
)
{
this
.
CtObj
.
ContractTripList
=
tempObj
.
ContractTripList
;
}
else
{
this
.
CtObj
.
ContractTripList
=
[];
}
if
(
if
(
tempObj
.
ContractTicketList
&&
tempObj
.
ContractTicketList
&&
tempObj
.
ContractTicketList
!=
null
&&
tempObj
.
ContractTicketList
!=
null
&&
tempObj
.
ContractTicketList
.
length
>
0
tempObj
.
ContractTicketList
.
length
>
0
)
{
)
{
this
.
CtObj
.
ContractTicketList
=
tempObj
.
ContractTicketList
;
this
.
CtObj
.
ContractTicketList
=
tempObj
.
ContractTicketList
;
}
else
{
}
else
{
this
.
CtObj
.
ContractTicketList
=
[];
this
.
CtObj
.
ContractTicketList
=
[];
}
}
if
(
if
(
tempObj
.
ContractHotel
List
&&
this
.
CtObj
.
ContractTicket
List
&&
tempObj
.
ContractHotel
List
!=
null
&&
this
.
CtObj
.
ContractTicket
List
!=
null
&&
tempObj
.
ContractHotel
List
.
length
>
0
this
.
CtObj
.
ContractTicket
List
.
length
>
0
)
{
)
{
this
.
CtObj
.
ContractHotelList
=
tempObj
.
ContractHotelList
;
this
.
CtObj
.
ContractTicketList
.
forEach
(
gItem
=>
{
}
else
{
gItem
.
IsShow
=
0
;
this
.
CtObj
.
ContractHotelList
=
[]
;
})
;
}
}
if
(
tempObj
.
ContractPickUpList
&&
tempObj
.
ContractPickUpList
!=
null
&&
tempObj
.
ContractPickUpList
.
length
>
0
)
{
this
.
CtObj
.
ContractPickUpList
=
tempObj
.
ContractPickUpList
;
}
else
{
this
.
CtObj
.
ContractPickUpList
=
[];
}
if
(
if
(
tempObj
.
ContractVisa
List
&&
tempObj
.
ContractHotel
List
&&
tempObj
.
ContractVisa
List
!=
null
&&
tempObj
.
ContractHotel
List
!=
null
&&
tempObj
.
ContractVisa
List
.
length
>
0
tempObj
.
ContractHotel
List
.
length
>
0
)
{
)
{
this
.
CtObj
.
ContractVisaList
=
tempObj
.
ContractVisa
List
;
this
.
CtObj
.
ContractHotelList
=
tempObj
.
ContractHotel
List
;
}
else
{
}
else
{
this
.
CtObj
.
ContractVisa
List
=
[];
this
.
CtObj
.
ContractHotel
List
=
[];
}
}
if
(
tempObj
.
ContractTicketAndHotel
.
ContractTickets
&&
tempObj
.
ContractTicketAndHotel
.
ContractTickets
!=
null
&&
tempObj
.
ContractTicketAndHotel
.
ContractTickets
.
length
>
0
)
{
this
.
CtObj
.
ContractTicketAndHotel
.
ContractTickets
=
tempObj
.
ContractTicketAndHotel
.
ContractTickets
;
}
else
{
this
.
CtObj
.
ContractTicketAndHotel
.
ContractTickets
=
[];
}
if
(
if
(
tempObj
.
ContractTicketAndHotel
.
ContractHotels
&&
this
.
CtObj
.
ContractHotelList
&&
tempObj
.
ContractTicketAndHotel
.
ContractHotels
!=
null
&&
this
.
CtObj
.
ContractHotelList
!=
null
&&
tempObj
.
ContractTicketAndHotel
.
ContractHotels
.
length
>
0
this
.
CtObj
.
ContractHotelList
.
length
>
0
)
{
)
{
this
.
CtObj
.
ContractTicketAndHotel
.
ContractHotels
=
tempObj
.
ContractTicketAndHotel
.
ContractHotels
;
this
.
CtObj
.
ContractHotelList
.
forEach
(
gItem
=>
{
}
else
{
gItem
.
IsShow
=
0
;
this
.
CtObj
.
ContractTicketAndHotel
.
ContractHotels
=
[];
});
}
}
if
(
tempObj
.
ContractPickUpList
&&
tempObj
.
ContractPickUpList
!=
null
&&
tempObj
.
ContractPickUpList
.
length
>
0
)
{
this
.
CtObj
.
ContractPickUpList
=
tempObj
.
ContractPickUpList
;
}
else
{
this
.
CtObj
.
ContractPickUpList
=
[];
}
if
(
this
.
CtObj
.
ContractPickUpList
&&
this
.
CtObj
.
ContractPickUpList
!=
null
&&
this
.
CtObj
.
ContractPickUpList
.
length
>
0
)
{
this
.
CtObj
.
ContractPickUpList
.
forEach
(
gItem
=>
{
gItem
.
IsShow
=
0
;
});
}
if
(
tempObj
.
ContractVisaList
&&
tempObj
.
ContractVisaList
!=
null
&&
tempObj
.
ContractVisaList
.
length
>
0
)
{
this
.
CtObj
.
ContractVisaList
=
tempObj
.
ContractVisaList
;
}
else
{
this
.
CtObj
.
ContractVisaList
=
[];
}
if
(
this
.
CtObj
.
ContractVisaList
&&
this
.
CtObj
.
ContractVisaList
!=
null
&&
this
.
CtObj
.
ContractVisaList
.
length
>
0
)
{
this
.
CtObj
.
ContractVisaList
.
forEach
(
gItem
=>
{
gItem
.
IsShow
=
0
;
});
}
if
(
tempObj
.
ContractTicketAndHotel
.
ContractTickets
&&
tempObj
.
ContractTicketAndHotel
.
ContractTickets
!=
null
&&
tempObj
.
ContractTicketAndHotel
.
ContractTickets
.
length
>
0
)
{
this
.
CtObj
.
ContractTicketAndHotel
.
ContractTickets
=
tempObj
.
ContractTicketAndHotel
.
ContractTickets
;
}
else
{
this
.
CtObj
.
ContractTicketAndHotel
.
ContractTickets
=
[];
}
}
else
{
if
(
this
.
Error
(
res
.
data
.
message
);
this
.
CtObj
.
ContractTicketAndHotel
.
ContractTickets
&&
}
this
.
CtObj
.
ContractTicketAndHotel
.
ContractTickets
!=
null
&&
this
.
CtObj
.
ContractTicketAndHotel
.
ContractTickets
.
length
>
0
)
{
this
.
CtObj
.
ContractTicketAndHotel
.
ContractTickets
.
forEach
(
gItem
=>
{
gItem
.
IsShow
=
0
;
});
}
if
(
tempObj
.
ContractTicketAndHotel
.
ContractHotels
&&
tempObj
.
ContractTicketAndHotel
.
ContractHotels
!=
null
&&
tempObj
.
ContractTicketAndHotel
.
ContractHotels
.
length
>
0
)
{
this
.
CtObj
.
ContractTicketAndHotel
.
ContractHotels
=
tempObj
.
ContractTicketAndHotel
.
ContractHotels
;
}
else
{
this
.
CtObj
.
ContractTicketAndHotel
.
ContractHotels
=
[];
}
if
(
this
.
CtObj
.
ContractTicketAndHotel
.
ContractHotels
&&
this
.
CtObj
.
ContractTicketAndHotel
.
ContractHotels
!=
null
&&
this
.
CtObj
.
ContractTicketAndHotel
.
ContractHotels
.
length
>
0
)
{
this
.
CtObj
.
ContractTicketAndHotel
.
ContractHotels
.
forEach
(
gItem
=>
{
gItem
.
IsShow
=
0
;
});
}
if
(
this
.
CtObj
.
C_TotalPrice
&&
this
.
CtObj
.
ContractTicketAndHotel
.
ContractHotels
!=
null
){
this
.
number_chinese
(
this
.
CtObj
.
C_TotalPrice
);
}
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{}
);
},
},
err
=>
{}
);
}
//公用休改
commonUpdate
(
item
){
item
.
IsShow
=
1
;
this
.
$forceUpdate
();
},
//公用保存
commonSave
(
item
){
item
.
IsShow
=
0
;
this
.
$forceUpdate
();
},
//小写金额转大写
number_chinese
(
str
)
{
var
num
=
parseFloat
(
str
);
var
strOutput
=
""
,
strUnit
=
'仟佰拾亿仟佰拾万仟佰拾元角分'
;
num
+=
"00"
;
var
intPos
=
num
.
indexOf
(
'.'
);
if
(
intPos
>=
0
){
num
=
num
.
substring
(
0
,
intPos
)
+
num
.
substr
(
intPos
+
1
,
2
);
}
strUnit
=
strUnit
.
substr
(
strUnit
.
length
-
num
.
length
);
for
(
var
i
=
0
;
i
<
num
.
length
;
i
++
){
strOutput
+=
'零壹贰叁肆伍陆柒捌玖'
.
substr
(
num
.
substr
(
i
,
1
),
1
)
+
strUnit
.
substr
(
i
,
1
);
}
this
.
AmountMoney
=
strOutput
.
replace
(
/零角零分$/
,
'整'
).
replace
(
/零
[
仟佰拾
]
/g
,
'零'
).
replace
(
/零
{2,}
/g
,
'零'
).
replace
(
/零
([
亿|万
])
/g
,
'$1'
).
replace
(
/零+元/
,
'元'
).
replace
(
/亿零
{0,3}
万/
,
'亿'
).
replace
(
/^元/
,
"零元"
)
}
},
},
mounted
()
{
mounted
()
{
...
...
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