Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
HotelProject
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhengke
HotelProject
Commits
cc2584a8
Commit
cc2584a8
authored
Mar 04, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报价修改
parent
c637a214
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
124 additions
and
37 deletions
+124
-37
Quotation.vue
src/components/assetsman/Quotation.vue
+124
-37
No files found.
src/components/assetsman/Quotation.vue
View file @
cc2584a8
...
...
@@ -106,43 +106,93 @@
</el-tag>
</div>
<div
class=
"baseform"
>
<el-form-item
label=
""
prop=
"CostPrice"
title=
"成本价人民币"
>
<span
class=
"label"
>
契約料金 人民元
</span>
<el-input
@
keyup
.
native=
"checkPrice(addMsg,'CostPrice')"
size=
"mini"
v-model=
"addMsg.CostPrice"
placeholder=
"契約料金 人民元"
maxlength=
"7"
></el-input>
</el-form-item>
<el-form-item
label=
""
prop=
"Money"
title=
"内部卖价人民币"
>
<span
class=
"label"
>
社内料金 人民元
</span>
<el-input
@
keyup
.
native=
"checkPrice(addMsg,'Money')"
size=
"mini"
v-model=
"addMsg.Money"
placeholder=
"社内料金 人民元"
maxlength=
"7"
></el-input>
</el-form-item>
<el-form-item
label=
""
prop=
"B2BPrice"
title=
"同行卖价人民币"
>
<span
class=
"label"
>
同業料金 人民元
</span>
<el-input
@
keyup
.
native=
"checkPrice(addMsg,'B2BPrice')"
size=
"mini"
v-model=
"addMsg.B2BPrice"
placeholder=
"同業料金 人民元"
maxlength=
"7"
></el-input>
</el-form-item>
<el-form-item
label=
""
prop=
"B2CPrice"
title=
"直客价格人民币"
>
<span
class=
"label"
>
販売料金 人民元
</span>
<el-input
@
keyup
.
native=
"checkPrice(addMsg,'B2CPrice')"
size=
"mini"
v-model=
"addMsg.B2CPrice"
placeholder=
"販売料金 人民元"
maxlength=
"7"
></el-input>
</el-form-item>
<el-form-item
label=
""
title=
"是否含税"
>
<span
class=
"label"
>
税込みかどうか
</span>
<table
class=
"quotationTable"
>
<tr>
<td
title=
"房费"
class=
"tdRight"
>
宿泊費
</td>
<td>
<el-input
@
keyup
.
native=
"checkPrice(addMsg,'RoomPrice'),changePrice()"
v-model=
"addMsg.RoomPrice"
placeholder=
"宿泊費"
maxlength=
"7"
class=
"input"
></el-input>
</td>
<td
title=
"消费税"
class=
"tdRight"
>
消費税
</td>
<td>
<el-input
@
keyup
.
native=
"checkPrice(addMsg,'XiaoFeiTax'),changePrice()"
v-model=
"addMsg.XiaoFeiTax"
placeholder=
"消費税"
maxlength=
"7"
class=
"input"
></el-input>
</td>
<td
title=
"宿泊税"
class=
"tdRight"
>
宿泊税
</td>
<td>
<el-input
@
keyup
.
native=
"checkPrice(addMsg,'SuBoTax'),changePrice()"
v-model=
"addMsg.SuBoTax"
placeholder=
"宿泊税"
maxlength=
"7"
class=
"input"
></el-input>
</td>
<td
title=
"入汤税"
class=
"tdRight"
>
入湯税
</td>
<td>
<el-input
@
keyup
.
native=
"checkPrice(addMsg,'RuTangTax'),changePrice()"
v-model=
"addMsg.RuTangTax"
placeholder=
"入湯税"
maxlength=
"7"
class=
"input"
></el-input>
</td>
<td
title=
"成本价"
class=
"tdRight"
>
契約料金
</td>
<td>
<el-input
@
keyup
.
native=
"checkPrice(addMsg,'CostPrice')"
v-model=
"addMsg.CostPrice"
placeholder=
"契約料金"
maxlength=
"7"
class=
"input"
></el-input>
</td>
</tr>
<tr>
<td
title=
"内部卖价"
class=
"tdRight"
>
社内料金
</td>
<td>
<el-input
@
keyup
.
native=
"checkPrice(addMsg,'Money')"
class=
"input"
v-model=
"addMsg.Money"
placeholder=
"社内料金"
maxlength=
"7"
></el-input>
</td>
<td
title=
"同行卖价"
class=
"tdRight"
>
同業料金
</td>
<td>
<el-input
@
keyup
.
native=
"checkPrice(addMsg,'B2BPrice')"
class=
"input"
v-model=
"addMsg.B2BPrice"
placeholder=
"同業料金"
maxlength=
"7"
></el-input>
</td>
<td
title=
"直客价格"
class=
"tdRight"
>
販売料金
</td>
<td>
<el-input
@
keyup
.
native=
"checkPrice(addMsg,'B2CPrice')"
class=
"input"
v-model=
"addMsg.B2CPrice"
placeholder=
"販売料金"
maxlength=
"7"
></el-input>
</td>
<td
title=
"直客价格"
class=
"tdRight"
>
在庫数量
</td>
<td
colspan=
"3"
>
<el-input
@
keyup
.
native=
"checkInteger(addMsg,'Inventory')"
class=
"input"
v-model=
"addMsg.Inventory"
placeholder=
"在庫数量"
maxlength=
"4"
></el-input>
</td>
</tr>
<tr>
<td
title=
"是否含税"
class=
"tdRight"
>
税込みかどうか
</td>
<td>
<el-select
size=
"small"
v-model=
"addMsg.IsContainsTax"
placeholder=
"税込みかどうか"
>
<el-option
label=
"税抜き"
:value=
'0'
></el-option>
<el-option
label=
"税込み"
:value=
'1'
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
""
prop=
"TaxPrice"
title=
"税金"
v-if=
"addMsg.IsContainsTax==0"
>
<span
class=
"label"
>
税金
</span>
<el-input
@
keyup
.
native=
"checkPrice(addMsg,'TaxPrice')"
size=
"mini"
v-model=
"addMsg.TaxPrice"
</td>
<td
title=
"税金"
v-if=
"addMsg.IsContainsTax==0"
class=
"tdRight"
>
税金
</td>
<td
v-if=
"addMsg.IsContainsTax==0"
>
<el-input
@
keyup
.
native=
"checkPrice(addMsg,'TaxPrice')"
class=
"input"
v-model=
"addMsg.TaxPrice"
placeholder=
"税金"
maxlength=
"7"
></el-input>
</el-form-item>
<el-form-item
label=
""
prop=
"Inventory"
title=
"库存数量"
>
<span
class=
"label"
>
在庫数量
</span>
<el-input
@
keyup
.
native=
"checkInteger(addMsg,'Inventory')"
size=
"mini"
v-model=
"addMsg.Inventory"
placeholder=
"在庫数量"
maxlength=
"4"
></el-input>
</el-form-item>
</td>
</tr>
</table>
</div>
</div>
<div
class=
"btnformItem"
>
...
...
@@ -173,6 +223,10 @@
Inventory
:
0
,
IsContainsTax
:
1
,
//是否含税(1-含税,0-不含税)
TaxPrice
:
0
,
//税金
RoomPrice
:
0
,
//房费
XiaoFeiTax
:
0
,
//消费税
SuBoTax
:
0
,
//宿泊税
RuTangTax
:
0
,
//入汤税
},
dateList
:
[],
//日历数据
loading
:
false
,
...
...
@@ -233,6 +287,12 @@
this
.
getMonths
();
},
methods
:
{
//价格改变
changePrice
()
{
this
.
addMsg
.
CostPrice
=
Number
(
this
.
addMsg
.
RoomPrice
)
+
Number
(
this
.
addMsg
.
XiaoFeiTax
)
+
Number
(
this
.
addMsg
.
SuBoTax
)
+
Number
(
this
.
addMsg
.
RuTangTax
);
this
.
addMsg
.
Money
=
(
Number
(
this
.
addMsg
.
CostPrice
)
*
Number
(
1.1
)).
toFixed
(
0
);
},
goUrlRoom
()
{
this
.
$router
.
push
({
path
:
'RoomList'
,
...
...
@@ -303,6 +363,7 @@
this
.
hotelInfo
.
IsContainsTax
=
json
.
IsContainsTax
;
this
.
hotelInfo
.
IsContainsTaxStr
=
json
.
IsContainsTaxStr
;
this
.
hotelInfo
.
TaxPrice
=
json
.
TaxPrice
;
for
(
let
i
=
0
;
i
<
this
.
dayList
[
key
].
days
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
json
.
length
;
j
++
)
{
if
(
this
.
dayList
[
key
].
days
[
i
].
day
===
json
[
j
].
DayStr
)
{
...
...
@@ -384,6 +445,11 @@
this
.
addMsg
.
B2CPrice
=
0
;
this
.
addMsg
.
IsContainsTax
=
1
;
this
.
addMsg
.
TaxPrice
=
0
;
this
.
addMsg
.
RoomPrice
=
0
;
this
.
addMsg
.
XiaoFeiTax
=
0
;
this
.
addMsg
.
SuBoTax
=
0
;
this
.
addMsg
.
RuTangTax
=
0
;
},
//获取房型报价
GetRoomPrice
(
item
)
{
...
...
@@ -401,6 +467,10 @@
this
.
addMsg
.
B2CPrice
=
tempData
.
B2CPrice
;
this
.
addMsg
.
IsContainsTax
=
tempData
.
IsContainsTax
;
this
.
addMsg
.
TaxPrice
=
tempData
.
TaxPrice
;
this
.
addMsg
.
RoomPrice
=
tempData
.
RoomPrice
;
this
.
addMsg
.
XiaoFeiTax
=
tempData
.
XiaoFeiTax
;
this
.
addMsg
.
SuBoTax
=
tempData
.
SuBoTax
;
this
.
addMsg
.
RuTangTax
=
tempData
.
RuTangTax
;
}
});
},
...
...
@@ -448,6 +518,23 @@
</
script
>
<
style
>
.Quotation
.quotationTable
tr
td
{
line-height
:
40px
;
}
.Quotation
.quotationTable
.tdRight
{
width
:
100px
;
font-size
:
12px
;
color
:
#888888
;
padding-right
:
10px
;
font-family
:
"Microsoft YaHei"
;
text-align
:
right
;
}
.Quotation
.quotationTable
.input
{
width
:
100px
;
}
.Quotation
.el-checkbox__input.is-checked
+
.el-checkbox__label
{
color
:
rgb
(
8
,
155
,
171
);
}
...
...
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