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
7b4b6da2
Commit
7b4b6da2
authored
May 14, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
a6564541
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
154 additions
and
6 deletions
+154
-6
QuotationPrice_SWT.vue
...s/TravelManager/TravelNewQuotation/QuotationPrice_SWT.vue
+154
-6
No files found.
src/components/TravelManager/TravelNewQuotation/QuotationPrice_SWT.vue
View file @
7b4b6da2
...
...
@@ -972,7 +972,8 @@
</el-input>
</td>
<td>
{{
childItem
.
DayNum
}}
<el-input
v-model=
"childItem.DayNum"
@
keyup
.
native=
"checkInteger(childItem,'DayNum'),CalcFeeTotal()"
placeholder=
"次/N數"
maxlength=
"1"
class=
"w150"
></el-input>
</td>
<td>
<el-input
v-model=
"childItem.Times"
@
keyup
.
native=
"checkInteger(childItem,'Times'),CalcFeeTotal()"
...
...
@@ -1285,10 +1286,10 @@
雜支
</td>
<td>
{{ZaZhiSum.USPriceS
um
}}
{{ZaZhiSum.USPriceS
ingle
}}
</td>
<td>
{{ZaZhiSum.VNDPriceS
um
}}
{{ZaZhiSum.VNDPriceS
ingle
}}
</td>
<td>
{{ZaZhiSum.USTotalSum}}
...
...
@@ -1445,7 +1446,9 @@
//杂支统计
ZaZhiSum
:
{
USPriceSum
:
0
,
//美金单价统计
USPriceSingle
:
0
,
//单人美元
VNDPriceSum
:
0
,
//越盾单价统计
VNDPriceSingle
:
0
,
//单人越盾
USTotalSum
:
0
,
//美金合计
VNDTotalSum
:
0
,
//越盾合计
},
...
...
@@ -1482,12 +1485,12 @@
var
total_vnd_price
=
0
;
//团体越盾
single_us_price
=
Number
(
this
.
HotelSum
.
USPriceSum
)
+
Number
(
this
.
DinnerSum
.
USPriceSum
)
+
Number
(
this
.
TicketSum
.
USPriceSum
)
+
Number
(
this
.
ZaZhiSum
.
USPriceS
um
)
+
Number
(
this
.
ShipSum
.
USPriceSum
)
+
Number
(
this
.
SelfFeeSum
.
USPriceSum
);
Number
(
this
.
ZaZhiSum
.
USPriceS
ingle
)
+
Number
(
this
.
ShipSum
.
USPriceSum
)
+
Number
(
this
.
SelfFeeSum
.
USPriceSum
);
single_vnd_price
=
Number
(
this
.
HotelSum
.
VNDPriceSum
)
+
Number
(
this
.
DinnerSum
.
VNDPriceSum
)
+
Number
(
this
.
TicketSum
.
VNDPriceSum
)
+
Number
(
this
.
ZaZhiSum
.
VNDPriceS
um
)
+
Number
(
this
.
ShipSum
.
VNDPriceSum
)
+
Number
(
this
.
SelfFeeSum
.
VNDPriceSum
);
Number
(
this
.
ZaZhiSum
.
VNDPriceS
ingle
)
+
Number
(
this
.
ShipSum
.
VNDPriceSum
)
+
Number
(
this
.
SelfFeeSum
.
VNDPriceSum
);
total_us_price
=
Number
(
this
.
HotelSum
.
USTotalSum
)
+
Number
(
this
.
DinnerSum
.
USTotalSum
)
+
Number
(
this
.
TicketSum
.
USTotalSum
)
+
...
...
@@ -1670,6 +1673,142 @@
},
//保存数据
SaveData
(
type
)
{
//酒店默认值赋值
if
(
this
.
postData
.
SWTHotelList
&&
this
.
postData
.
SWTHotelList
.
length
>
0
)
{
this
.
postData
.
SWTHotelList
.
forEach
(
item
=>
{
if
(
!
item
.
USPrice
)
{
item
.
USPrice
=
0
;
}
if
(
!
item
.
VNDPrice
)
{
item
.
VNDPrice
=
0
;
}
if
(
!
item
.
Times
)
{
item
.
Times
=
0
;
}
})
}
//餐厅默认值赋值
if
(
this
.
postData
.
SWTDinnerList
&&
this
.
postData
.
SWTDinnerList
.
length
>
0
)
{
this
.
postData
.
SWTDinnerList
.
forEach
(
rootItem
=>
{
rootItem
.
SubDinnerList
.
forEach
(
item
=>
{
if
(
!
item
.
USPrice
)
{
item
.
USPrice
=
0
;
}
if
(
!
item
.
VNDPrice
)
{
item
.
VNDPrice
=
0
;
}
if
(
!
item
.
Times
)
{
item
.
Times
=
0
;
}
})
})
}
//景点门票默认值赋值
if
(
this
.
postData
.
SWTTicketList
&&
this
.
postData
.
SWTTicketList
.
length
>
0
)
{
this
.
postData
.
SWTTicketList
.
forEach
(
rootItem
=>
{
rootItem
.
SubTicketList
.
forEach
(
item
=>
{
if
(
!
item
.
USPrice
)
{
item
.
USPrice
=
0
;
}
if
(
!
item
.
VNDPrice
)
{
item
.
VNDPrice
=
0
;
}
if
(
!
item
.
Times
)
{
item
.
Times
=
0
;
}
})
})
}
//车资默认值赋值
if
(
this
.
postData
.
SWTBusList
&&
this
.
postData
.
SWTBusList
.
length
>
0
)
{
this
.
postData
.
SWTBusList
.
forEach
(
rootItem
=>
{
rootItem
.
SubBusList
.
forEach
(
item
=>
{
if
(
!
item
.
Kilometre
)
{
item
.
Kilometre
=
0
;
}
if
(
!
item
.
VNDPrice
)
{
item
.
VNDPrice
=
0
;
}
if
(
!
item
.
Times
)
{
item
.
Times
=
0
;
}
if
(
!
item
.
Price
)
{
item
.
Price
=
0
;
}
})
})
}
//船票默认值赋值
if
(
this
.
postData
.
SWTShipList
&&
this
.
postData
.
SWTShipList
.
length
>
0
)
{
this
.
postData
.
SWTShipList
.
forEach
(
item
=>
{
if
(
!
item
.
USPrice
)
{
item
.
USPrice
=
0
;
}
if
(
!
item
.
VNDPrice
)
{
item
.
VNDPrice
=
0
;
}
if
(
!
item
.
Times
)
{
item
.
Times
=
0
;
}
if
(
!
item
.
FOCNum
)
{
item
.
FOCNum
=
0
;
}
})
}
//杂支默认值赋值
if
(
this
.
postData
.
SWTOtherPayList
&&
this
.
postData
.
SWTOtherPayList
.
length
>
0
)
{
this
.
postData
.
SWTOtherPayList
.
forEach
(
item
=>
{
if
(
!
item
.
USPrice
)
{
item
.
USPrice
=
0
;
}
if
(
!
item
.
VNDPrice
)
{
item
.
VNDPrice
=
0
;
}
if
(
!
item
.
Times
)
{
item
.
Times
=
0
;
}
if
(
!
item
.
FOCNum
)
{
item
.
FOCNum
=
0
;
}
if
(
!
item
.
DayNum
)
{
item
.
DayNum
=
0
;
}
})
}
//自费默认值赋值
if
(
this
.
postData
.
SWTSelfFeeList
&&
this
.
postData
.
SWTSelfFeeList
.
length
>
0
)
{
this
.
postData
.
SWTSelfFeeList
.
forEach
(
item
=>
{
if
(
!
item
.
USPrice
)
{
item
.
USPrice
=
0
;
}
if
(
!
item
.
VNDPrice
)
{
item
.
VNDPrice
=
0
;
}
if
(
!
item
.
Times
)
{
item
.
Times
=
0
;
}
if
(
!
item
.
FOCNum
)
{
item
.
FOCNum
=
0
;
}
})
}
//小费默认值赋值
if
(
this
.
postData
.
SWTTipFeeList
&&
this
.
postData
.
SWTTipFeeList
.
length
>
0
)
{
this
.
postData
.
SWTTipFeeList
.
forEach
(
item
=>
{
if
(
!
item
.
USPrice
)
{
item
.
USPrice
=
0
;
}
if
(
!
item
.
VNDPrice
)
{
item
.
VNDPrice
=
0
;
}
if
(
!
item
.
Times
)
{
item
.
Times
=
0
;
}
if
(
!
item
.
FOCNum
)
{
item
.
FOCNum
=
0
;
}
})
}
this
.
apipost
(
"travel_post_SetBaoJiaDanSwtService"
,
this
.
postData
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Id
=
res
.
data
.
data
;
...
...
@@ -2037,7 +2176,16 @@
totalVNDPrice
+=
parseFloat
(
item
.
VNDSubTotal
);
});
this
.
ZaZhiSum
.
USPriceSum
=
subUSPrice
.
toFixed
(
2
);
this
.
ZaZhiSum
.
VNDPriceSum
=
subVNDPrice
.
toFixed
(
2
);
var
USPrice_Single
=
0
;
if
(
this
.
postData
.
GuestNum
>
0
)
{
USPrice_Single
=
parseFloat
(
subUSPrice
)
/
parseFloat
(
this
.
postData
.
GuestNum
);
}
this
.
ZaZhiSum
.
USPriceSingle
=
USPrice_Single
.
toFixed
(
2
);
var
VNDPrice_Single
=
0
;
if
(
this
.
postData
.
GuestNum
>
0
)
{
VNDPrice_Single
=
parseFloat
(
subVNDPrice
)
/
parseFloat
(
this
.
postData
.
GuestNum
);
}
this
.
ZaZhiSum
.
VNDPriceSingle
=
VNDPrice_Single
.
toFixed
(
2
);
this
.
ZaZhiSum
.
USTotalSum
=
totalUSPrice
.
toFixed
(
2
);
this
.
ZaZhiSum
.
VNDTotalSum
=
totalVNDPrice
.
toFixed
(
2
);
}
...
...
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