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
Show 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 @@
<tbody>
<tr>
<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-form-item>
</td>
...
...
@@ -283,7 +283,7 @@
</tr>
<tr>
<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-form-item>
</td>
...
...
@@ -311,14 +311,14 @@
</tr>
<tr>
<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-form-item>
</td>
</tr>
<tr>
<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-form-item>
</td>
...
...
@@ -337,7 +337,7 @@
</tr>
<tr>
<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-form-item>
</td>
...
...
@@ -473,11 +473,11 @@
<tr>
<td>
<div
style=
"margin:20px 0 10px 50px"
>
<el-form-item
style=
"display:inline-block;"
label=
"费用总额(小写)人民币"
>
<el-input
type=
"text"
class=
"w300"
v-model=
"CtObj.C_TotalPrice"
@
keyup
.
native=
"checkPrice(CtObj,'C_TotalPrice')"
maxlength=
"10"
></el-input>
元
<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')
,number_chinese(CtObj.C_TotalPrice)
"
maxlength=
"10"
></el-input>
元
</el-form-item>
<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>
</div>
</td>
...
...
@@ -503,7 +503,7 @@
<th>
护照号码
</th>
<th>
联系电话(手机)
</th>
<th>
身体状况
</th>
<th
>
操作
{{
CtObj
.
ContractGuestList
}}
</th>
<th
width=
"100"
>
操作
</th>
</tr>
<tr
v-for=
"(item, index) in CtObj.ContractGuestList"
:key=
"index"
>
<td>
{{
index
+
1
}}
</td>
...
...
@@ -549,6 +549,7 @@
<span
v-if=
"item.IsShow == 0"
>
{{
item
.
CGuestTel
}}
</span>
<el-input
type=
"text"
@
keyup
.
native=
"checkInteger(item,'CGuestTel')"
v-model=
"item.CGuestTel"
v-else
></el-input>
...
...
@@ -574,7 +575,7 @@
type=
"primary"
icon=
"el-icon-edit"
circle
@
click=
"
item.IsShow = 1
"
@
click=
"
commonUpdate(item)
"
></el-button>
</el-tooltip>
<el-tooltip
...
...
@@ -587,7 +588,7 @@
<el-button
type=
"primary"
icon=
"iconfont icon-baocun"
@
click=
"
item.IsShow = 0
"
@
click=
"
commonSave(item)
"
circle
></el-button>
</el-tooltip>
...
...
@@ -672,10 +673,10 @@
</td>
<td>
<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
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
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
@
click=
"delTicket(index)"
circle
></el-button>
...
...
@@ -728,7 +729,7 @@
<th>
单人间
</th>
<th>
三人间
</th>
<th>
成人人数
</th>
<th>
<th
width=
"200"
>
<div>
儿童人数
</div>
<div>
(不占床位、不加床位)
</div>
</th>
...
...
@@ -788,10 +789,10 @@
</td>
<td>
<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
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
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
circle
@
click=
"delHotelList(index)"
></el-button>
...
...
@@ -880,10 +881,10 @@
</td>
<td>
<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
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
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
circle
@
click=
"delJieSong(index)"
></el-button>
...
...
@@ -946,10 +947,10 @@
</td>
<td>
<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
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
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
circle
@
click=
"delVisaList(index)"
></el-button>
...
...
@@ -1032,10 +1033,10 @@
</td>
<td>
<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
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
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
circle
@
click=
"delZuheTicket(index)"
></el-button>
...
...
@@ -1067,35 +1068,43 @@
<tr
v-for=
"(item,index) in CtObj.ContractTicketAndHotel.ContractHotels"
>
<td>
{{
index
+
1
}}
</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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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
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
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
circle
@
click=
"delZuheHotel(index)"
></el-button>
...
...
@@ -1119,7 +1128,7 @@
</tbody>
</table>
</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"
>
<span
class=
"icon"
>
<i
class=
"iconfont icon-bianji"
></i>
...
...
@@ -1137,8 +1146,9 @@
</div>
<div>
<el-form-item
label-width=
"0"
>
<!--
<quill-editor
:options=
"editorOption"
v-model=
""
></quill-editor>
-->
<el-input
type=
"textarea"
resize=
"none"
v-model=
"CtObj.OtherConvention"
rows=
"13"
></el-input>
<quill-editor
v-model=
"CtObj.OtherConvention"
></quill-editor>
<!--
<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>
</div>
</div>
...
...
@@ -1283,7 +1293,24 @@
}
},
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
:[
'合同基本信息'
,
'相关告知及提示'
,
'费用计算'
,
'游客信息'
,
'机票预订'
,
'酒店预订'
,
'接送服务'
,
'代办签证'
,
'服务组合(机票与酒店)'
,
'其他单项服务事宜'
],
...
...
@@ -1301,6 +1328,9 @@
}
},
//大写金额
AmountMoney
:
''
};
},
methods
:
{
...
...
@@ -1669,7 +1699,6 @@
}
else
{
this
.
CtObj
.
ContractGuestList
=
[];
}
console
.
log
(
""
,
this
.
CtObj
.
ContractGuestList
)
if
(
this
.
CtObj
.
ContractGuestList
&&
this
.
CtObj
.
ContractGuestList
!=
null
&&
...
...
@@ -1686,7 +1715,7 @@
)
{
this
.
CtObj
.
ContractSelfFeeList
=
tempObj
.
ContractSelfFeeList
;
}
else
{
this
.
CtObj
.
ContractGuest
List
=
[];
this
.
CtObj
.
ContractSelfFee
List
=
[];
}
if
(
this
.
CtObj
.
ContractSelfFeeList
&&
...
...
@@ -1707,6 +1736,16 @@
this
.
CtObj
.
ContractTripList
=
[];
}
if
(
this
.
CtObj
.
ContractTripList
&&
this
.
CtObj
.
ContractTripList
!=
null
&&
this
.
CtObj
.
ContractTripList
.
length
>
0
)
{
this
.
CtObj
.
ContractTripList
.
forEach
(
gItem
=>
{
gItem
.
IsShow
=
0
;
});
}
if
(
tempObj
.
ContractTicketList
&&
...
...
@@ -1718,6 +1757,17 @@
this
.
CtObj
.
ContractTicketList
=
[];
}
if
(
this
.
CtObj
.
ContractTicketList
&&
this
.
CtObj
.
ContractTicketList
!=
null
&&
this
.
CtObj
.
ContractTicketList
.
length
>
0
)
{
this
.
CtObj
.
ContractTicketList
.
forEach
(
gItem
=>
{
gItem
.
IsShow
=
0
;
});
}
if
(
tempObj
.
ContractHotelList
&&
tempObj
.
ContractHotelList
!=
null
&&
...
...
@@ -1728,6 +1778,17 @@
this
.
CtObj
.
ContractHotelList
=
[];
}
if
(
this
.
CtObj
.
ContractHotelList
&&
this
.
CtObj
.
ContractHotelList
!=
null
&&
this
.
CtObj
.
ContractHotelList
.
length
>
0
)
{
this
.
CtObj
.
ContractHotelList
.
forEach
(
gItem
=>
{
gItem
.
IsShow
=
0
;
});
}
if
(
tempObj
.
ContractPickUpList
&&
tempObj
.
ContractPickUpList
!=
null
&&
...
...
@@ -1738,6 +1799,17 @@
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
&&
...
...
@@ -1748,6 +1820,16 @@
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
&&
...
...
@@ -1758,6 +1840,16 @@
this
.
CtObj
.
ContractTicketAndHotel
.
ContractTickets
=
[];
}
if
(
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
&&
...
...
@@ -1768,14 +1860,54 @@
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
=>
{}
);
}
},
//公用休改
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
()
{
...
...
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