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
48546995
Commit
48546995
authored
Jun 19, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
bfedc2d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
101 additions
and
88 deletions
+101
-88
roomQuery2.vue
src/components/Supplier/roomQuery2.vue
+101
-88
No files found.
src/components/Supplier/roomQuery2.vue
View file @
48546995
...
@@ -66,33 +66,32 @@
...
@@ -66,33 +66,32 @@
</td>
</td>
<td>
<td>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"酒店信息"
placement=
"top-start"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"酒店信息"
placement=
"top-start"
>
<el-popover
placement=
"bottom"
width=
"
80
0"
trigger=
"click"
popper-class=
"rq_HotelDetails"
>
<el-popover
placement=
"bottom"
width=
"
125
0"
trigger=
"click"
popper-class=
"rq_HotelDetails"
>
<table
class=
"rq_HotelTable"
v-loading=
"hotelLoading"
>
<table
class=
"rq_HotelTable"
v-loading=
"hotelLoading"
>
<tr>
<tr>
<th
width=
"
20
0"
>
<th
width=
"
15
0"
>
时间
时间
</th>
</th>
<th
width=
"
20
0"
>
<th
width=
"
15
0"
>
酒店
酒店
</th>
</th>
<th
width=
"
20
0"
>
<th
width=
"
15
0"
>
更换名称
更换名称
</th>
</th>
<th
width=
"
50
0"
>
<th
width=
"
45
0"
>
价格
价格
</th>
</th>
<th
width=
"1
2
0"
>
<th
width=
"1
0
0"
>
税入/税别
税入/税别
</th>
</th>
<th>
提醒
</th>
<th
width=
"100"
>
提醒
</th>
<th>
备注
</th>
<th
width=
"150"
>
备注
</th>
</tr>
</tr>
<
template
v-for=
"(subItem,subIndex) in HotelList"
>
<
template
v-for=
"(subItem,subIndex) in HotelList"
>
<tbody>
<tbody>
<template
v-for=
"(childItem,childIndex) in subItem.HotelOrderList"
>
<template
v-for=
"(childItem,childIndex) in subItem.HotelOrderList"
>
<tr>
<tr>
<td
<td
style=
"text-align:center;"
:rowspan=
"2"
>
style=
"text-align:center;"
>
第
{{
subIndex
+
1
}}
天
<br
/>
第
{{
subIndex
+
1
}}
天
<br
/>
{{
subItem
.
UseTimeStr
}}
{{
subItem
.
UseTimeStr
}}
</td>
</td>
...
@@ -121,8 +120,7 @@
...
@@ -121,8 +120,7 @@
<
template
v-if=
"childItem.TaxType==2"
>
税别
</
template
>
<
template
v-if=
"childItem.TaxType==2"
>
税别
</
template
>
</td>
</td>
<td>
<td>
<!-- 提醒等级
<!-- <el-select v-model='childItem.SupplierToDmcHotelStatus'
<el-select class='w135 sel' v-model='childItem.SupplierToDmcHotelStatus'
:placeholder="$t('pub.pleaseSel')">
:placeholder="$t('pub.pleaseSel')">
<el-option label='请选择' :value='0'></el-option>
<el-option label='请选择' :value='0'></el-option>
<el-option label='一般提醒' :value='1'></el-option>
<el-option label='一般提醒' :value='1'></el-option>
...
@@ -130,25 +128,26 @@
...
@@ -130,25 +128,26 @@
</el-select> -->
</el-select> -->
</td>
</td>
<td>
<td>
对地接备注
<!-- <el-input type='textarea' class='w135' v-model='childItem.SupplierToDmcRemarks'>
<el-input
type=
'textarea'
class=
'w135'
v-model=
'childItem.SupplierToDmcRemarks'
>
</el-input> -->
</el-input>
</td>
</td>
</tr>
</tr>
<
!-- <
tr>
<tr>
<td colspan="
4
">
<td
colspan=
"
6
"
>
<span
style=
"display:inline-block;width:60px;vertical-align:top;"
>
提示信息:
</span>
<span
style=
"display:inline-block;width:60px;vertical-align:top;"
>
提示信息:
</span>
<span style="display:inline-block;width:87%;" :class="{'rq_disImNote':childItem.SupplierHotelStatus==1&&DateMinus(subItem.UseTimeStr)<=5,'rq_importNote':childItem.SupplierHotelStatus==2&&DateMinus(subItem.UseTimeStr)<=5}">{{childItem.Remarks}}</span>
<span
style=
"display:inline-block;width:87%;"
</td>
:class=
"{'rq_disImNote':childItem.SupplierHotelStatus==1&&DateMinus(subItem.UseTimeStr)<=5,'rq_importNote':childItem.SupplierHotelStatus==2&&DateMinus(subItem.UseTimeStr)<=5}"
>
{{childItem.Remarks}}
</span>
</tr> -->
</td>
</tr>
</template>
</template>
</tbody>
</tbody>
</template>
</template>
<tfoot>
<tfoot>
<tr>
<tr>
<td
colspan=
"5"
>
<td
colspan=
"7"
>
<input
type=
"button"
value=
"保存"
@
click=
"saveSupplierjourneyorder(HotelList)"
class=
"normalBtn SaveR_Btn"
/>
<input
type=
"button"
value=
"保存"
@
click=
"saveSupplierjourneyorder(HotelList)"
</td>
class=
"normalBtn SaveR_Btn"
/>
</td>
</tr>
</tr>
</tfoot>
</tfoot>
</table>
</table>
...
@@ -164,7 +163,8 @@
...
@@ -164,7 +163,8 @@
对地接备注:
对地接备注:
</td>
</td>
<td>
<td>
<el-input
class=
'w320 SupplierRemarks'
v-model=
'RemarkObj.SupplierToDmcRemarks'
type=
'textarea'
></el-input>
<el-input
class=
'w320 SupplierRemarks'
v-model=
'RemarkObj.SupplierToDmcRemarks'
type=
'textarea'
>
</el-input>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -181,7 +181,7 @@
...
@@ -181,7 +181,7 @@
<tr>
<tr>
<td
colspan=
"8"
style=
"text-align:left;padding-left:5px;"
>
<td
colspan=
"8"
style=
"text-align:left;padding-left:5px;"
>
<div
class=
"rQ_HtList"
v-if=
"item.IsBookTeam==2&&item.Numbers>=0"
>
<div
class=
"rQ_HtList"
v-if=
"item.IsBookTeam==2&&item.Numbers>=0"
>
<span
v-for=
"subItem in item.Numbers"
></span>
<span
v-for=
"subItem in item.Numbers"
></span>
</div>
</div>
<div>
注意事项: {{item.SupplierRemarks}}
</div>
<div>
注意事项: {{item.SupplierRemarks}}
</div>
</td>
</td>
...
@@ -203,7 +203,7 @@
...
@@ -203,7 +203,7 @@
return
{
return
{
loading
:
false
,
loading
:
false
,
hotelLoading
:
false
,
hotelLoading
:
false
,
HotelUseLoading
:
false
,
HotelUseLoading
:
false
,
total
:
0
,
total
:
0
,
msg
:
{
msg
:
{
pageIndex
:
1
,
pageIndex
:
1
,
...
@@ -247,9 +247,9 @@
...
@@ -247,9 +247,9 @@
TCID
:
0
TCID
:
0
},
},
//是否为今天
//是否为今天
isToday
:
false
,
isToday
:
false
,
todayDate
:
''
,
todayDate
:
''
,
showNum
:
0
,
showNum
:
0
,
}
}
},
},
methods
:
{
methods
:
{
...
@@ -266,7 +266,7 @@
...
@@ -266,7 +266,7 @@
// }, err => {})
// }, err => {})
},
},
//保存信息
//保存信息
saveSupplierjourneyorder
(
HotelList
){
saveSupplierjourneyorder
(
HotelList
)
{
this
.
HotelUseLoading
=
true
;
this
.
HotelUseLoading
=
true
;
this
.
ApiPost2
(
'dmcstatistics_post_SetSupplierjourneyorderService'
,
HotelList
,
res
=>
{
this
.
ApiPost2
(
'dmcstatistics_post_SetSupplierjourneyorderService'
,
HotelList
,
res
=>
{
this
.
HotelUseLoading
=
false
;
this
.
HotelUseLoading
=
false
;
...
@@ -284,22 +284,24 @@
...
@@ -284,22 +284,24 @@
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
dataList
=
res
.
data
.
data
;
this
.
dataList
=
res
.
data
.
data
;
this
.
dataList
.
forEach
(
x
=>
{
if
(
this
.
dataList
&&
this
.
dataList
.
length
>
0
)
{
if
(
x
.
HotelBookTimeStr
){
this
.
dataList
.
forEach
(
x
=>
{
x
.
Numbers
=
5
-
this
.
DateMinus
(
x
.
HotelBookTimeStr
);
if
(
x
.
HotelBookTimeStr
)
{
x
.
Numbers
=
5
-
this
.
DateMinus
(
x
.
HotelBookTimeStr
);
}
}
})
})
}
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
)
this
.
Error
(
res
.
data
.
message
)
}
}
},
err
=>
{})
},
err
=>
{})
},
},
DateMinus
(
sDate
)
{
DateMinus
(
sDate
)
{
var
sdate
=
new
Date
(
sDate
.
replace
(
/-/g
,
"/"
));
var
sdate
=
new
Date
(
sDate
.
replace
(
/-/g
,
"/"
));
var
now
=
new
Date
();
var
now
=
new
Date
();
var
days
=
now
.
getTime
()
-
sdate
.
getTime
();
var
days
=
now
.
getTime
()
-
sdate
.
getTime
();
var
day
=
Math
.
abs
(
parseInt
(
days
/
(
1000
*
60
*
60
*
24
)));
var
day
=
Math
.
abs
(
parseInt
(
days
/
(
1000
*
60
*
60
*
24
)));
return
day
;
return
day
;
},
},
//获取酒店列表
//获取酒店列表
getHotelList
(
TCID
,
NewCombinationNum
)
{
getHotelList
(
TCID
,
NewCombinationNum
)
{
...
@@ -309,11 +311,11 @@
...
@@ -309,11 +311,11 @@
TCID
:
TCID
,
TCID
:
TCID
,
NewCombinationNum
:
NewCombinationNum
NewCombinationNum
:
NewCombinationNum
};
};
this
.
ApiPost2
(
'dmcstatistics_post_GetSupplierHotelListService
_V2
'
,
qMsg
,
res
=>
{
this
.
ApiPost2
(
'dmcstatistics_post_GetSupplierHotelListService'
,
qMsg
,
res
=>
{
this
.
hotelLoading
=
false
;
this
.
hotelLoading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
HotelList
=
res
.
data
.
data
;
this
.
HotelList
=
res
.
data
.
data
;
console
.
log
(
this
.
HotelList
,
'hotellist'
)
console
.
log
(
this
.
HotelList
,
'hotellist'
)
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
);
this
.
Error
(
res
.
data
.
message
);
}
}
...
@@ -350,22 +352,22 @@
...
@@ -350,22 +352,22 @@
});
});
},
},
timeAdd0
(
str
)
{
timeAdd0
(
str
)
{
if
(
str
.
length
<=
1
)
{
if
(
str
.
length
<=
1
)
{
str
=
'0'
+
str
;
str
=
'0'
+
str
;
}
}
return
str
return
str
},
},
//提取年月日
//提取年月日
getDateYear
(
date
){
getDateYear
(
date
)
{
return
date
.
split
(
' '
)[
0
];
return
date
.
split
(
' '
)[
0
];
}
}
},
},
mounted
()
{
mounted
()
{
this
.
UserInfo
=
this
.
getLocalStorageSupplier
();
this
.
UserInfo
=
this
.
getLocalStorageSupplier
();
//获取当前日期
//获取当前日期
var
nowMonth
=
(
new
Date
().
getMonth
()
+
1
).
toString
()
var
nowMonth
=
(
new
Date
().
getMonth
()
+
1
).
toString
()
var
nowDay
=
new
Date
().
getDate
().
toString
();
var
nowDay
=
new
Date
().
getDate
().
toString
();
this
.
todayDate
=
new
Date
().
getFullYear
()
+
'-'
+
this
.
timeAdd0
(
nowMonth
)
+
'-'
+
this
.
timeAdd0
(
nowDay
);
this
.
todayDate
=
new
Date
().
getFullYear
()
+
'-'
+
this
.
timeAdd0
(
nowMonth
)
+
'-'
+
this
.
timeAdd0
(
nowDay
);
this
.
getList
();
this
.
getList
();
},
},
...
@@ -496,26 +498,31 @@
...
@@ -496,26 +498,31 @@
position
:
relative
;
position
:
relative
;
top
:
3px
;
top
:
3px
;
}
}
.SupplierRemarks
.el-textarea__inner
{
height
:
75px
;
.SupplierRemarks
.el-textarea__inner
{
height
:
75px
;
}
}
.SP_RemarkTitle
{
.SP_RemarkTitle
{
vertical-align
:
top
;
vertical-align
:
top
;
padding-top
:
5px
;
padding-top
:
5px
;
}
}
.SaveR_Btn
{
margin
:
10px
0
0
45%
;
.SaveR_Btn
{
margin
:
10px
0
0
45%
;
}
}
.Add_triangle
{
width
:
0
;
.Add_triangle
{
height
:
0
;
width
:
0
;
position
:
absolute
;
height
:
0
;
left
:
0
;
position
:
absolute
;
top
:
0
;
left
:
0
;
border-style
:
solid
;
top
:
0
;
border-width
:
45px
45px
0
0
;
border-style
:
solid
;
border-color
:
#7abd53
transparent
transparent
border-width
:
45px
45px
0
0
;
border-color
:
#7abd53
transparent
transparent
}
}
.Add_triangle
::after
{
.Add_triangle
::after
{
content
:
'新增'
;
content
:
'新增'
;
position
:
absolute
;
position
:
absolute
;
...
@@ -524,17 +531,19 @@
...
@@ -524,17 +531,19 @@
white-space
:
nowrap
;
white-space
:
nowrap
;
color
:
#FFFFFF
;
color
:
#FFFFFF
;
font-size
:
12px
;
font-size
:
12px
;
}
}
.minus_triangle
{
.minus_triangle
{
width
:
0
;
width
:
0
;
height
:
0
;
height
:
0
;
position
:
absolute
;
position
:
absolute
;
left
:
0
;
left
:
0
;
top
:
0
;
top
:
0
;
border-style
:
solid
;
border-style
:
solid
;
border-width
:
45px
45px
0
0
;
border-width
:
45px
45px
0
0
;
border-color
:
red
transparent
transparent
border-color
:
red
transparent
transparent
}
}
.minus_triangle
::after
{
.minus_triangle
::after
{
content
:
'取消'
;
content
:
'取消'
;
position
:
absolute
;
position
:
absolute
;
...
@@ -543,23 +552,27 @@
...
@@ -543,23 +552,27 @@
white-space
:
nowrap
;
white-space
:
nowrap
;
color
:
#FFFFFF
;
color
:
#FFFFFF
;
font-size
:
12px
;
font-size
:
12px
;
}
}
.rQ_HtList
{
.rQ_HtList
{
margin-top
:
5px
0
3px
0
;
margin-top
:
5px
0
3px
0
;
}
}
.rQ_HtList
span
{
display
:
inline-block
;
.rQ_HtList
span
{
width
:
15px
;
display
:
inline-block
;
height
:
15px
;
width
:
15px
;
margin-right
:
5px
;
height
:
15px
;
background-color
:
red
;
margin-right
:
5px
;
border
:
1px
solid
#d1d1d1
;
background-color
:
red
;
}
border
:
1px
solid
#d1d1d1
;
.rq_importNote
{
}
color
:
red
;
}
.rq_importNote
{
.rq_disImNote
{
color
:
red
;
color
:
#ea6d6d
;
}
}
.rq_disImNote
{
color
:
#ea6d6d
;
}
</
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