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
92d7977c
Commit
92d7977c
authored
Jun 13, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
餐厅报价修改
parent
1b8bd79b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
389 additions
and
360 deletions
+389
-360
RestaurantPackage.vue
src/components/Restaurant/RestaurantPackage.vue
+389
-360
No files found.
src/components/Restaurant/RestaurantPackage.vue
View file @
92d7977c
<
style
>
<
style
>
.RestaurantPackage
.singeRowTable
tr
:nth-child
(
n
+
2
)
:hover
{
.RestaurantPackage
.singeRowTable
tr
:nth-child
(
n
+
2
)
:hover
{
background-color
:
white
;
background-color
:
white
;
box-shadow
:
0px
0px
14px
0px
#adadad
;
box-shadow
:
0px
0px
14px
0px
#adadad
;
z-index
:
10
;
z-index
:
10
;
position
:
relative
;
position
:
relative
;
}
}
.RestaurantPackage
.DaysInfo
span
{
.RestaurantPackage
.DaysInfo
span
{
display
:
inline-block
;
display
:
inline-block
;
background-color
:
#2aaef2
;
background-color
:
#2aaef2
;
color
:
white
;
color
:
white
;
...
@@ -13,49 +14,58 @@
...
@@ -13,49 +14,58 @@
padding
:
0
10px
;
padding
:
0
10px
;
height
:
30px
;
height
:
30px
;
line-height
:
30px
;
line-height
:
30px
;
}
}
.RestaurantPackage
.DaysInfo
span
i
{
.RestaurantPackage
.DaysInfo
span
i
{
margin-right
:
10px
;
margin-right
:
10px
;
}
}
.RestaurantPackage
.singeRowTable
tr
:nth-child
(
n
+
2
)
{
.RestaurantPackage
.singeRowTable
tr
:nth-child
(
n
+
2
)
{
height
:
80px
;
height
:
80px
;
text-align
:
center
;
text-align
:
center
;
}
}
.RestaurantPackage
.detailsIT
.singeRowTable
tr
:nth-child
(
n
+
2
)
:hover
{
.RestaurantPackage
.detailsIT
.singeRowTable
tr
:nth-child
(
n
+
2
)
:hover
{
background-color
:
white
;
background-color
:
white
;
box-shadow
:
0px
0px
14px
0px
#adadad
;
box-shadow
:
0px
0px
14px
0px
#adadad
;
z-index
:
10
;
z-index
:
10
;
position
:
relative
;
position
:
relative
;
}
}
.RestaurantPackage
.Ldata
{
.RestaurantPackage
.Ldata
{
color
:
#333333
;
color
:
#333333
;
margin-top
:
5px
;
margin-top
:
5px
;
}
}
.RestaurantPackage
.LP
{
.RestaurantPackage
.LP
{
color
:
#e95252
;
color
:
#e95252
;
}
}
.RestaurantPackage
.HP
{
.RestaurantPackage
.HP
{
color
:
#2aaef2
;
color
:
#2aaef2
;
text-align
:
left
;
text-align
:
left
;
font-size
:
14px
;
font-size
:
14px
;
font-weight
:
bold
;
font-weight
:
bold
;
padding-left
:
5px
;
padding-left
:
5px
;
display
:
inline-block
;
display
:
inline-block
;
}
}
.RestaurantPackage
.T1
{
.RestaurantPackage
.T1
{
text-align
:
right
;
text-align
:
right
;
color
:
#666666
;
color
:
#666666
;
display
:
inline-block
;
display
:
inline-block
;
}
}
.RestaurantPackage
.T2
{
.RestaurantPackage
.T2
{
text-align
:
left
;
text-align
:
left
;
color
:
#e95252
;
color
:
#e95252
;
font-size
:
14px
;
font-size
:
14px
;
font-weight
:
bold
;
font-weight
:
bold
;
padding-left
:
5px
;
padding-left
:
5px
;
display
:
inline-block
;
display
:
inline-block
;
}
}
.RestaurantPackage
.descripTion
{
.RestaurantPackage
.descripTion
{
border-radius
:
4px
;
border-radius
:
4px
;
width
:
266px
;
width
:
266px
;
text-align
:
left
;
text-align
:
left
;
...
@@ -67,11 +77,13 @@
...
@@ -67,11 +77,13 @@
-webkit-box-orient
:
vertical
;
-webkit-box-orient
:
vertical
;
/* autoprefixer: on */
/* autoprefixer: on */
-webkit-line-clamp
:
2
;
-webkit-line-clamp
:
2
;
}
}
.RestaurantPackage
.singeRowTable
tr
:nth-child
(
n
+
2
)
:hover
.descripTion
{
.RestaurantPackage
.singeRowTable
tr
:nth-child
(
n
+
2
)
:hover
.descripTion
{
background-color
:
#ededed
;
background-color
:
#ededed
;
}
}
.RestaurantPackage
.roomName
{
.RestaurantPackage
.roomName
{
display
:
inline-block
;
display
:
inline-block
;
width
:
200px
;
width
:
200px
;
overflow
:
hidden
;
overflow
:
hidden
;
...
@@ -79,7 +91,8 @@
...
@@ -79,7 +91,8 @@
white-space
:
nowrap
;
white-space
:
nowrap
;
text-align
:
left
;
text-align
:
left
;
padding-left
:
20px
;
padding-left
:
20px
;
}
}
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
'flexOne RestaurantPackage'
>
<div
class=
'flexOne RestaurantPackage'
>
...
@@ -90,12 +103,15 @@
...
@@ -90,12 +103,15 @@
<el-input
v-model=
"msg.MealName"
maxlength=
"30"
@
keyup
.
native
.
enter=
"getList"
></el-input>
<el-input
v-model=
"msg.MealName"
maxlength=
"30"
@
keyup
.
native
.
enter=
"getList"
></el-input>
</li>
</li>
<li>
<li>
<input
type=
"button"
class=
"hollowFixedBtn"
:value=
"$t('pub.searchBtn')"
@
click=
"getList(),resetPageIndex()"
/>
<input
type=
"button"
class=
"hollowFixedBtn"
:value=
"$t('pub.searchBtn')"
<input
type=
"button"
class=
"normalBtn"
@
click=
"resetId(),outerVisible = true,dialogTitle='添加套餐'"
:value=
"$t('pub.addBtn')"
/>
@
click=
"getList(),resetPageIndex()"
/>
<input
type=
"button"
class=
"normalBtn"
@
click=
"resetId(),outerVisible = true,dialogTitle='添加套餐'"
:value=
"$t('pub.addBtn')"
/>
</li>
</li>
</ul>
</ul>
</div>
</div>
<table
class=
"singeRowTable centerTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
style=
"border-collapse:separate;border-spacing:0px 10px;table-layout:fixed;"
>
<table
class=
"singeRowTable centerTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
style=
"border-collapse:separate;border-spacing:0px 10px;table-layout:fixed;"
>
<tr>
<tr>
<th
width=
"200"
>
{{
$t
(
'restaurant.res_packageName'
)
}}
</th>
<th
width=
"200"
>
{{
$t
(
'restaurant.res_packageName'
)
}}
</th>
<th
width=
"200"
>
{{
$t
(
'scen.sc_bjts'
)
}}
</th>
<th
width=
"200"
>
{{
$t
(
'scen.sc_bjts'
)
}}
</th>
...
@@ -116,29 +132,36 @@
...
@@ -116,29 +132,36 @@
<td>
<td>
<p
class=
"clearfix"
>
<p
class=
"clearfix"
>
<span
class=
"tit_name T1"
>
<span
class=
"tit_name T1"
>
{{
item
.
CurrencyName
==
''
?
''
:
item
.
CurrencyName
}}
<span
v-if=
"item.CurrencyCode"
>
(
{{
item
.
CurrencyCode
}}
)
</span></span><span
class=
'tit_name T2'
>
{{
item
.
LPrice
}}
</span>
{{
item
.
CurrencyName
==
''
?
''
:
item
.
CurrencyName
}}
<span
v-if=
"item.CurrencyCode"
>
(
{{
item
.
CurrencyCode
}}
)
</span></span><span
class=
'tit_name T2'
>
{{
item
.
LPrice
}}
</span>
</p>
</p>
<p
class=
"Ldata"
>
{{
item
.
LDate
}}
</p>
<p
class=
"Ldata"
>
{{
item
.
LDate
}}
</p>
</td>
</td>
<td>
<td>
<p
class=
"clearfix"
>
<p
class=
"clearfix"
>
<span
class=
"tit_name T1"
>
<span
class=
"tit_name T1"
>
{{
item
.
CurrencyName
==
''
?
''
:
item
.
CurrencyName
}}
<span
v-if=
"item.CurrencyCode"
>
(
{{
item
.
CurrencyCode
}}
)
</span></span><span
class=
'tit_name HP'
>
{{
item
.
HPrice
}}
</span>
{{
item
.
CurrencyName
==
''
?
''
:
item
.
CurrencyName
}}
<span
v-if=
"item.CurrencyCode"
>
(
{{
item
.
CurrencyCode
}}
)
</span></span><span
class=
'tit_name HP'
>
{{
item
.
HPrice
}}
</span>
</p>
</p>
<p
class=
"Ldata"
>
{{
item
.
HDate
}}
</p>
<p
class=
"Ldata"
>
{{
item
.
HDate
}}
</p>
</td>
</td>
<td>
<td>
<el-tooltip
class=
"item"
effect=
"dark"
v-if=
"item.MealDesc"
:content=
"item.MealDesc"
placement=
"top-start"
popper-class=
"max-w250"
>
<el-tooltip
class=
"item"
effect=
"dark"
v-if=
"item.MealDesc"
:content=
"item.MealDesc"
placement=
"top-start"
popper-class=
"max-w250"
>
<span
class=
"descripTion"
>
{{
item
.
MealDesc
}}
</span>
<span
class=
"descripTion"
>
{{
item
.
MealDesc
}}
</span>
</el-tooltip>
</el-tooltip>
</td>
</td>
<td>
<td>
<el-button-group>
<el-button-group>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('system.table_edit')"
placement=
"top-start"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('system.table_edit')"
placement=
"top-start"
>
<el-button
type=
"primary"
icon=
"iconfont icon-Edit"
@
click=
"outerVisible = true,dialogTitle='修改套餐',updateResturant(item.Id)"
></el-button>
<el-button
type=
"primary"
icon=
"iconfont icon-Edit"
@
click=
"outerVisible = true,dialogTitle='修改套餐',updateResturant(item.Id)"
></el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('restaurant.res_bidManage')"
placement=
"top-start"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('restaurant.res_bidManage')"
placement=
"top-start"
>
<el-button
type=
"primary"
icon=
"iconfont icon-ico_shezhi"
@
click=
"goUrl('RestaurantPrice',item.Id)"
></el-button>
<el-button
type=
"primary"
icon=
"iconfont icon-ico_shezhi"
@
click=
"goUrl('RestaurantPrice',item.Id)"
>
</el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('system.table_delete')"
placement=
"top-start"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('system.table_delete')"
placement=
"top-start"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
@
click=
"isDelete(item.Id)"
></el-button>
<el-button
type=
"danger"
icon=
"el-icon-delete"
@
click=
"isDelete(item.Id)"
></el-button>
...
@@ -147,24 +170,18 @@
...
@@ -147,24 +170,18 @@
</td>
</td>
</tr>
</tr>
</table>
</table>
<el-dialog
custom-class=
'w500'
:visible
.
sync=
"outerVisible"
:title=
"dialogTitle"
center
:before-close=
"closeChangeMachie"
>
<el-dialog
custom-class=
'w500'
:visible
.
sync=
"outerVisible"
:title=
"dialogTitle"
center
:before-close=
"closeChangeMachie"
>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"110px"
>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"110px"
>
<el-form-item
:label=
"$t('restaurant.res_packageResource')"
prop=
"DiningId"
>
<el-form-item
:label=
"$t('restaurant.res_packageResource')"
prop=
"DiningId"
>
<el-select
:placeholder=
"$t('pub.pleaseSel')"
class=
"w300"
disabled
v-model=
"addMsg.DiningId"
>
<el-select
:placeholder=
"$t('pub.pleaseSel')"
class=
"w300"
disabled
v-model=
"addMsg.DiningId"
>
<el-option
<el-option
v-for=
"item in resList"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
>
v-for=
"item in resList"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
>
</el-option>
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('restaurant.res_packageName')"
prop=
"DiningMealType"
>
<el-form-item
:label=
"$t('restaurant.res_packageName')"
prop=
"DiningMealType"
>
<el-select
filterable
v-model=
'addMsg.DiningMealType'
:placeholder=
"$t('pub.pleaseSel')"
>
<el-select
filterable
v-model=
'addMsg.DiningMealType'
:placeholder=
"$t('pub.pleaseSel')"
>
<el-option
v-for=
'item in DiningMealTypeList'
<el-option
v-for=
'item in DiningMealTypeList'
:label=
'item.Name'
:value=
'item.ID'
:key=
'item.ID'
>
:label=
'item.Name'
:value=
'item.ID'
:key=
'item.ID'
>
</el-option>
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -176,18 +193,20 @@
...
@@ -176,18 +193,20 @@
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<button
class=
"hollowFixedBtn"
@
click=
"resetForm('addMsg'),outerVisible = false"
>
{{
$t
(
'pub.cancelBtn'
)
}}
</button>
<button
class=
"hollowFixedBtn"
@
click=
"resetForm('addMsg'),outerVisible = false"
>
{{
$t
(
'pub.cancelBtn'
)
}}
</button>
<button
class=
"normalBtn"
type=
"primary"
@
click=
"submitForm('addMsg')"
>
{{
$t
(
'pub.saveBtn'
)
}}
</button>
<button
class=
"normalBtn"
type=
"primary"
@
click=
"submitForm('addMsg')"
>
{{
$t
(
'pub.saveBtn'
)
}}
</button>
</div>
</div>
</el-dialog>
</el-dialog>
<div
class=
"noData"
v-show=
"noData"
>
<div
class=
"noData"
v-show=
"noData"
>
{{
$t
(
'system.content_noData'
)
}}
{{
$t
(
'system.content_noData'
)
}}
</div>
</div>
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"msg.currentPage"
layout=
"total,prev, pager, next, jumper"
:page-size=
msg.pageSize
:total=
msg.total
></el-pagination>
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"msg.currentPage"
layout=
"total,prev, pager, next, jumper"
:page-size=
msg.pageSize
:total=
msg.total
></el-pagination>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
msg
:
{
msg
:
{
...
@@ -203,10 +222,10 @@ export default {
...
@@ -203,10 +222,10 @@ export default {
DiningId
:
""
,
DiningId
:
""
,
MealName
:
""
,
MealName
:
""
,
MealDesc
:
""
,
MealDesc
:
""
,
DiningMealType
:
""
,
DiningMealType
:
""
,
},
},
loading
:
true
,
loading
:
true
,
DiningMealTypeList
:
[],
DiningMealTypeList
:
[],
outerVisible
:
false
,
outerVisible
:
false
,
dialogTitle
:
""
,
dialogTitle
:
""
,
noData
:
false
,
noData
:
false
,
...
@@ -215,8 +234,14 @@ export default {
...
@@ -215,8 +234,14 @@ export default {
resList
:
[],
resList
:
[],
rules
:
{
rules
:
{
//表单必填验证
//表单必填验证
DiningId
:
[{
required
:
true
,
message
:
"请选择套餐资源"
}],
DiningId
:
[{
DiningMealType
:
[{
required
:
true
,
message
:
"请选择套餐"
}]
required
:
true
,
message
:
"请选择套餐资源"
}],
DiningMealType
:
[{
required
:
true
,
message
:
"请选择套餐"
}]
}
}
};
};
},
},
...
@@ -227,7 +252,7 @@ export default {
...
@@ -227,7 +252,7 @@ export default {
"meal_post_GetPageList"
,
"meal_post_GetPageList"
,
this
.
msg
,
this
.
msg
,
res
=>
{
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
msg
.
total
=
res
.
data
.
data
.
count
;
this
.
msg
.
total
=
res
.
data
.
data
.
count
;
if
(
this
.
msg
.
total
>
0
)
{
if
(
this
.
msg
.
total
>
0
)
{
this
.
noData
=
false
;
this
.
noData
=
false
;
...
@@ -236,25 +261,24 @@ export default {
...
@@ -236,25 +261,24 @@ export default {
this
.
noData
=
!
this
.
noData
;
this
.
noData
=
!
this
.
noData
;
}
}
this
.
loading
=
false
;
this
.
loading
=
false
;
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
);
this
.
Error
(
res
.
data
.
message
);
}
}
},
},
null
null
);
);
},
},
GetDiningMealTypeList
()
{
GetDiningMealTypeList
()
{
this
.
apipost
(
'meal_post_GetDiningMealType'
,{},
res
=>
{
this
.
apipost
(
'meal_post_GetDiningMealType'
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
DiningMealTypeList
=
res
.
data
.
data
this
.
DiningMealTypeList
=
res
.
data
.
data
}
}
},
err
=>
{})
},
err
=>
{})
},
},
saveResource
()
{
saveResource
()
{
this
.
DiningMealTypeList
.
forEach
(
item
=>
{
this
.
DiningMealTypeList
.
forEach
(
item
=>
{
if
(
this
.
addMsg
.
DiningMealType
==
item
.
ID
)
if
(
this
.
addMsg
.
DiningMealType
==
item
.
ID
)
{
{
this
.
addMsg
.
MealName
=
item
.
Name
this
.
addMsg
.
MealName
=
item
.
Name
}
}
})
})
this
.
apipost
(
this
.
apipost
(
...
@@ -281,7 +305,6 @@ export default {
...
@@ -281,7 +305,6 @@ export default {
"meal_post_Get"
,
"meal_post_Get"
,
msg
,
msg
,
res
=>
{
res
=>
{
console
.
log
(
res
)
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
addMsg
=
res
.
data
.
data
;
this
.
addMsg
=
res
.
data
.
data
;
this
.
addMsg
.
DiningId
=
parseInt
(
res
.
data
.
data
.
DiningId
);
this
.
addMsg
.
DiningId
=
parseInt
(
res
.
data
.
data
.
DiningId
);
...
@@ -327,7 +350,12 @@ export default {
...
@@ -327,7 +350,12 @@ export default {
goUrl
(
path
,
id
)
{
goUrl
(
path
,
id
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
path
,
path
:
path
,
query
:
{
MealId
:
id
,
DiningId
:
this
.
addMsg
.
DiningId
,
blank
:
'y'
,
tab
:
'报价管理'
}
query
:
{
MealId
:
id
,
DiningId
:
this
.
addMsg
.
DiningId
,
blank
:
'y'
,
tab
:
'报价管理'
}
});
});
},
},
handleCurrentChange
(
val
)
{
handleCurrentChange
(
val
)
{
...
@@ -381,5 +409,6 @@ export default {
...
@@ -381,5 +409,6 @@ export default {
this
.
getList
();
this
.
getList
();
this
.
GetDiningMealTypeList
();
this
.
GetDiningMealTypeList
();
}
}
};
};
</
script
>
</
script
>
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