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
2155010b
Commit
2155010b
authored
May 21, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
708c7e9a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
17 deletions
+47
-17
GnHotelInfo.vue
src/components/Hotel/GnHotelInfo.vue
+33
-3
HotelPrice.vue
src/components/Hotel/HotelPrice.vue
+14
-14
No files found.
src/components/Hotel/GnHotelInfo.vue
View file @
2155010b
...
...
@@ -84,13 +84,23 @@
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('hotel.hotel_city')"
>
<el-select
placeholder=
"请选择所属城市"
filterable
class=
'multiple_input w300'
v-model=
"addMsg.City"
>
<el-select
placeholder=
"请选择所属城市"
filterable
class=
'multiple_input w300'
v-model=
"addMsg.City"
@
change=
"GetSubAreaList(addMsg.City,3)"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
'SelectDefaultValue'
></el-option>
<el-option
v-for=
"childItem in dropdownObj.CityList"
:key=
"childItem.ID"
:label=
"childItem.Name"
:value=
"childItem.ID"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"区/县"
>
<el-select
placeholder=
"请选择所属地区"
filterable
class=
'multiple_input w300'
v-model=
"addMsg.District"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
'SelectDefaultValue'
></el-option>
<el-option
v-for=
"childItem in dropdownObj.DistrictList"
:key=
"childItem.ID"
:label=
"childItem.Name"
:value=
"childItem.ID"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('hotel.hotel_detailinfo')"
>
<el-input
type=
"text"
class=
"w300"
v-model=
"addMsg.Address"
size=
"small"
placeholder=
"例如:四川省成都市锦江区阳光新业中心"
>
<el-button
slot=
"append"
@
click=
"getMapShow"
>
地图
</el-button>
...
...
@@ -290,6 +300,7 @@
openplatformList
:
[],
//开放平台列表
ProvinceList
:
[],
//省份列表
CityList
:
[],
//城市列表
DistrictList
:
[]
//区列表
},
//选中对象
chooseObj
:
{
...
...
@@ -339,8 +350,9 @@
IsUseDinner
:
"0"
,
UseDinnerType
:
""
,
Country
:
2
,
Province
:
0
,
City
:
0
,
Province
:
261
,
City
:
5571
,
District
:
5572
,
//是否预约
AppointmentStyle
:
0
,
//支付方式
...
...
@@ -532,6 +544,7 @@
_self
.
addMsg
.
Country
=
tempMsg
.
Country
;
_self
.
addMsg
.
Province
=
tempMsg
.
Province
;
_self
.
addMsg
.
City
=
tempMsg
.
City
;
_self
.
addMsg
.
District
=
tempMsg
.
District
;
_self
.
addMsg
.
Address
=
tempMsg
.
Address
;
_self
.
addMsg
.
Lng
=
tempMsg
.
Lng
;
_self
.
addMsg
.
Lat
=
tempMsg
.
Lat
;
...
...
@@ -572,6 +585,10 @@
if
(
_self
.
addMsg
.
Province
>
0
)
{
this
.
GetSubAreaList
(
_self
.
addMsg
.
Province
,
2
,
1
);
}
if
(
_self
.
addMsg
.
City
>
0
)
{
this
.
GetSubAreaList
(
_self
.
addMsg
.
City
,
3
,
1
);
}
if
(
tempMsg
.
OpenPlatformList
&&
tempMsg
.
OpenPlatformList
.
length
>
0
)
{
this
.
chooseObj
.
openplatString
=
tempMsg
.
OpenPlatformList
;
}
...
...
@@ -668,6 +685,10 @@
if
(
isClear
!=
1
)
{
this
.
addMsg
.
City
=
0
;
}
}
else
if
(
type
==
3
){
if
(
isClear
!=
1
)
{
this
.
addMsg
.
District
=
0
;
}
}
if
(
this
.
addMsg
.
Country
!=
0
)
{
this
.
apipost
(
"dict_post_Destination_GetChildList"
,
msg
,
res
=>
{
...
...
@@ -675,6 +696,9 @@
this
.
dropdownObj
.
ProvinceList
=
res
.
data
.
data
;
}
else
if
(
type
==
2
)
{
this
.
dropdownObj
.
CityList
=
res
.
data
.
data
;
}
else
if
(
type
==
3
){
this
.
dropdownObj
.
DistrictList
=
res
.
data
.
data
;
console
.
log
(
res
.
data
.
data
,
'res.data.data'
);
}
});
}
...
...
@@ -731,6 +755,12 @@
this
.
initStarAndPlatform
();
//初始化星级和开放平台
this
.
getSuplier
();
//初始化供应商
this
.
GetSubAreaList
(
this
.
addMsg
.
Country
,
1
,
1
);
if
(
this
.
addMsg
.
Province
>
0
){
this
.
GetSubAreaList
(
this
.
addMsg
.
Province
,
2
,
1
);
}
if
(
this
.
addMsg
.
City
>
0
){
this
.
GetSubAreaList
(
this
.
addMsg
.
City
,
3
,
1
);
}
if
(
this
.
hotelID
>
0
)
{
this
.
initHotelData
();
}
...
...
src/components/Hotel/HotelPrice.vue
View file @
2155010b
...
...
@@ -511,7 +511,7 @@
<el-input
type=
"text"
class=
"w210"
v-model=
"addMsg.B2BPrice"
@
keyup
.
native=
"checkPrice(addMsg,'B2BPrice')"
></el-input>
</el-form-item>
<el-form-item
:label=
"$t('hotel.hotel_B2CPrice')"
prop=
"B2CPrice"
>
<el-form-item
:label=
"$t('hotel.hotel_B2CPrice')"
>
<el-input
type=
"text"
class=
"w210"
v-model=
"addMsg.B2CPrice"
@
keyup
.
native=
"checkPrice(addMsg,'B2CPrice')"
></el-input>
</el-form-item>
...
...
@@ -543,11 +543,11 @@
</el-input>
</el-form-item>
</div>
<div
class=
"resDiv RemarkDiv"
>
<
!--
<
div
class=
"resDiv RemarkDiv"
>
<el-form-item
:label=
"$t('hotel.hotel_remark')"
prop=
"Remark"
>
<el-input
type=
"textarea"
class=
"w300"
v-model=
"addMsg.Remark"
></el-input>
</el-form-item>
</div>
</div>
-->
</el-form>
<div
class=
"noticeInfo"
>
<div>
{{
$t
(
'hotel.hotel_attention'
)
}}
:
</div>
...
...
@@ -604,7 +604,7 @@
Supplier
:
""
,
Inventory
:
""
,
B2BPrice
:
""
,
B2CPrice
:
""
,
B2CPrice
:
0
,
SalesPrice
:
""
,
DMCPrice
:
0
,
DateList
:
""
,
...
...
@@ -647,16 +647,16 @@
message
:
this
.
$t
(
'ground.qingshurlwxs'
)
}
],
B2CPrice
:
[{
required
:
true
,
message
:
this
.
$t
(
'ground.qingshuruB2Cjg'
),
trigger
:
"change"
},
{
pattern
:
this
.
$commonUtils
.
Regex
.
el_Isdecimal
,
message
:
this
.
$t
(
'ground.qingshurlwxs'
)
}
],
//
B2CPrice: [{
//
required: true,
//
message: this.$t('ground.qingshuruB2Cjg'),
//
trigger: "change"
//
},
//
{
//
pattern: this.$commonUtils.Regex.el_Isdecimal,
//
message: this.$t('ground.qingshurlwxs')
//
}
//
],
SalesPrice
:
[{
required
:
true
,
message
:
this
.
$t
(
'ground.qingshurnbjg'
),
...
...
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