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
8b867c14
Commit
8b867c14
authored
Mar 13, 2019
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s
parent
027f7de4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
102 additions
and
12 deletions
+102
-12
HotelProductManage2.vue
src/components/Hotel/HotelProductManage2.vue
+102
-12
No files found.
src/components/Hotel/HotelProductManage2.vue
View file @
8b867c14
...
@@ -87,15 +87,27 @@
...
@@ -87,15 +87,27 @@
</el-row>
</el-row>
<el-row
style=
"padding: 20px 0 0 0;border-top: 1px dashed #ccc;"
>
<el-row
style=
"padding: 20px 0 0 0;border-top: 1px dashed #ccc;"
>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"标准间成本价"
prop=
"CostPrice"
>
<
!--
<
el-form-item
label=
"标准间成本价"
prop=
"CostPrice"
>
<el-input-number
v-model=
"msg2.CostPrice"
:precision=
"2"
:min=
"0"
></el-input-number>
<el-input-number
v-model=
"msg2.CostPrice"
:precision=
"2"
:min=
"0"
></el-input-number>
</el-form-item>
-->
<el-form-item>
<div
class=
"RabateDiv clearfix"
>
<div
class=
"RebateCount reOne"
>
<div
class=
"leftPnum"
>
标准间成本价
</div>
<input
type=
"text"
class=
"toolInput inpuOne"
v-model=
"msg2.CostPrice"
onkeyup=
"value=value.replace(/[^\d^\.]+/g,'')"
maxlength=
"20"
>
</div>
<div
class=
"RebateCount reTwo"
>
<div
class=
"fanNum"
>
散客价
</div>
<input
type=
"text"
class=
"toolInput inpuTwo"
v-model=
"msg2.SanKePrice"
onkeyup=
"value=value.replace(/[^\d^\.]+/g,'')"
maxlength=
"20"
>
</div>
</div>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"6"
>
<
!--
<
el-col
:span=
"6"
>
<el-form-item
label=
"散客价"
>
<el-form-item
label=
"散客价"
>
<el-input-number
v-model=
"msg2.SanKePrice"
:precision=
"2"
:min=
"0"
></el-input-number>
<el-input-number
v-model=
"msg2.SanKePrice"
:precision=
"2"
:min=
"0"
></el-input-number>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
-->
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"大床间成本价"
prop=
"BidroomPrice"
>
<el-form-item
label=
"大床间成本价"
prop=
"BidroomPrice"
>
<el-input-number
v-model=
"msg2.BidroomPrice"
:precision=
"2"
:min=
"0"
></el-input-number>
<el-input-number
v-model=
"msg2.BidroomPrice"
:precision=
"2"
:min=
"0"
></el-input-number>
...
@@ -273,15 +285,27 @@
...
@@ -273,15 +285,27 @@
</el-row>
</el-row>
<el-row
style=
"padding: 20px 0 0 0;border-top: 1px dashed #ccc;"
>
<el-row
style=
"padding: 20px 0 0 0;border-top: 1px dashed #ccc;"
>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"标准间成本价"
prop=
"CostPrice"
>
<
!--
<
el-form-item
label=
"标准间成本价"
prop=
"CostPrice"
>
<el-input-number
v-model=
"msg.CostPrice"
:precision=
"2"
:min=
"0"
></el-input-number>
<el-input-number
v-model=
"msg.CostPrice"
:precision=
"2"
:min=
"0"
></el-input-number>
</el-form-item>
-->
<el-form-item>
<div
class=
"RabateDiv clearfix"
>
<div
class=
"RebateCount reOne"
>
<div
class=
"leftPnum"
>
标准间成本价
</div>
<input
type=
"text"
class=
"toolInput inpuOne"
v-model=
"msg.CostPrice"
onkeyup=
"value=value.replace(/[^\d^\.]+/g,'')"
maxlength=
"20"
>
</div>
<div
class=
"RebateCount reTwo"
>
<div
class=
"fanNum"
>
散客价
</div>
<input
type=
"text"
class=
"toolInput inpuTwo"
v-model=
"msg.SanKePrice"
onkeyup=
"value=value.replace(/[^\d^\.]+/g,'')"
maxlength=
"20"
>
</div>
</div>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"6"
>
<
!--
<
el-col
:span=
"6"
>
<el-form-item
label=
"散客价"
>
<el-form-item
label=
"散客价"
>
<el-input-number
v-model=
"msg.SanKePrice"
:precision=
"2"
:min=
"0"
></el-input-number>
<el-input-number
v-model=
"msg.SanKePrice"
:precision=
"2"
:min=
"0"
></el-input-number>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
-->
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"大床间成本价"
prop=
"BidroomPrice"
>
<el-form-item
label=
"大床间成本价"
prop=
"BidroomPrice"
>
<el-input-number
v-model=
"msg.BidroomPrice"
:precision=
"2"
:min=
"0"
></el-input-number>
<el-input-number
v-model=
"msg.BidroomPrice"
:precision=
"2"
:min=
"0"
></el-input-number>
...
@@ -900,8 +924,10 @@
...
@@ -900,8 +924,10 @@
},
},
// 取消按钮
// 取消按钮
editCanel
:
function
()
{
editCanel
:
function
()
{
this
.
editShow
=
false
this
.
editShow
=
false
;
this
.
$refs
[
'hotelProductForm'
].
resetFields
()
this
.
$refs
[
'hotelProductForm'
].
resetFields
();
this
.
msg
.
CostPrice
=
0
;
this
.
msg
.
SanKePrice
=
0
;
},
},
// 保存按钮
// 保存按钮
editSave
:
function
()
{
editSave
:
function
()
{
...
@@ -912,7 +938,9 @@
...
@@ -912,7 +938,9 @@
this
.
$message
.
success
(
'编辑成功'
)
this
.
$message
.
success
(
'编辑成功'
)
this
.
getMonths
()
this
.
getMonths
()
this
.
editShow
=
false
this
.
editShow
=
false
this
.
$refs
[
'hotelProductForm'
].
resetFields
()
this
.
$refs
[
'hotelProductForm'
].
resetFields
();
this
.
msg
.
CostPrice
=
0
;
this
.
msg
.
SanKePrice
=
0
;
}
else
{
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
this
.
$message
.
error
(
res
.
data
.
message
)
}
}
...
@@ -924,7 +952,9 @@
...
@@ -924,7 +952,9 @@
},
},
// 页面编辑重置
// 页面编辑重置
edit2Reset
:
function
()
{
edit2Reset
:
function
()
{
this
.
$refs
[
'hotelProductForm2'
].
resetFields
()
this
.
$refs
[
'hotelProductForm2'
].
resetFields
();
this
.
msg2
.
CostPrice
=
0
;
this
.
msg2
.
SanKePrice
=
0
;
},
},
//批量删除
//批量删除
delete2Reset
:
function
()
{
delete2Reset
:
function
()
{
...
@@ -937,7 +967,9 @@
...
@@ -937,7 +967,9 @@
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$message
.
success
(
res
.
data
.
message
)
this
.
$message
.
success
(
res
.
data
.
message
)
this
.
getMonths
()
this
.
getMonths
()
this
.
$refs
[
'hotelProductForm2'
].
resetFields
()
this
.
$refs
[
'hotelProductForm2'
].
resetFields
();
this
.
msg2
.
CostPrice
=
0
;
this
.
msg2
.
SanKePrice
=
0
;
}
else
{
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
this
.
$message
.
error
(
res
.
data
.
message
)
}
}
...
@@ -957,7 +989,9 @@
...
@@ -957,7 +989,9 @@
if
(
res
.
data
.
resultCode
===
1
)
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
$message
.
success
(
'编辑成功'
)
this
.
$message
.
success
(
'编辑成功'
)
this
.
getMonths
()
this
.
getMonths
()
this
.
$refs
[
'hotelProductForm2'
].
resetFields
()
this
.
$refs
[
'hotelProductForm2'
].
resetFields
();
this
.
msg2
.
CostPrice
=
0
;
this
.
msg2
.
SanKePrice
=
0
;
}
else
{
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
this
.
$message
.
error
(
res
.
data
.
message
)
}
}
...
@@ -1348,5 +1382,61 @@
...
@@ -1348,5 +1382,61 @@
margin
:
7px
10px
0
0
;
margin
:
7px
10px
0
0
;
padding
:
0
0
0
0
;
padding
:
0
0
0
0
;
}
}
.hotelProductManage2
.RabateDiv
{
margin-left
:
25px
;
}
.hotelProductManage2
.RebateCount
{
height
:
34px
;
border-radius
:
17px
;
float
:
left
;
}
.hotelProductManage2
.reOne
,
.hotelProductManage2
.reTwo
,
.hotelProductManage2.dayNum
{
position
:
relative
;
}
.hotelProductManage2
.leftPnum
{
float
:
left
;
background-color
:
#f5f7fa
;
height
:
40px
;
line-height
:
40px
;
text-align
:
center
;
border-right
:
1px
solid
#cccccc
;
position
:
absolute
;
left
:
1px
;
top
:
1px
;
font-size
:
14px
;
padding
:
0
10px
;
color
:
#606266
;
}
.hotelProductManage2
.toolInput
{
height
:
42px
;
padding-left
:
5px
;
border
:
none
;
}
.hotelProductManage2
.inpuOne
{
width
:
225px
;
padding-left
:
120px
;
border
:
1px
solid
#d1d1d1
;
border-right
:
none
;
}
.hotelProductManage2
.inpuTwo
{
width
:
166px
;
padding
:
0
45px
0
77px
;
border
:
1px
solid
#d1d1d1
;
}
.hotelProductManage2
.fanNum
{
float
:
left
;
background-color
:
#f5f7fa
;
height
:
40px
;
line-height
:
40px
;
text-align
:
center
;
border-right
:
1px
solid
#cccccc
;
position
:
absolute
;
left
:
1px
;
top
:
1px
;
padding
:
0
10px
;
color
:
#606266
;
font-size
:
14px
;
}
</
style
>
</
style
>
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