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
1574004c
Commit
1574004c
authored
Jun 06, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
a9d27597
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
182 additions
and
98 deletions
+182
-98
HotelProductManage2.vue
src/components/Hotel/HotelProductManage2.vue
+104
-65
HotelProductManage.vue
src/components/Supplier/HotelProductManage.vue
+78
-33
No files found.
src/components/Hotel/HotelProductManage2.vue
View file @
1574004c
This diff is collapsed.
Click to expand it.
src/components/Supplier/HotelProductManage.vue
View file @
1574004c
...
...
@@ -6,8 +6,8 @@
<el-date-picker
v-model=
"condition.month"
type=
"month"
value-format=
"yyyy-MM"
:clearable=
"false"
placeholder=
"选择月"
></el-date-picker>
</div>
<input
type=
"button"
class=
"normalBtn"
value=
"查询"
@
click=
"getMonths()"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"批量编辑"
style=
"margin-right:10px;"
@
click=
"goEdit('1')"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"查询"
@
click=
"getMonths()"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"批量编辑"
style=
"margin-right:10px;"
@
click=
"goEdit('1')"
/>
</div>
<div
class=
"hotelProductManage2_tableBox"
>
<table
class=
"hotelProductManage2_table"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
...
...
@@ -84,7 +84,8 @@
</td>
</tr>
</table>
<input
type=
"button"
class=
"hollowFixedBtn Htupbtn"
value=
"修改"
@
click=
"goEdit('2', subItem.day,subItem.data.SubList[0].BatchNumber)"
/>
<input
type=
"button"
class=
"hollowFixedBtn Htupbtn"
value=
"修改"
@
click=
"goEdit('2', subItem.day,subItem.data.SubList[0].BatchNumber)"
/>
</div>
</
template
>
</div>
...
...
@@ -157,8 +158,7 @@
<el-input-number
v-model=
"msg2.FreeRoomNum"
:precision=
"2"
:min=
"0"
@
keyup
.
native=
"checkPrice(msg2,'FreeRoomNum')"
maxlength=
"10"
></el-input-number>
</el-form-item>
</el-col
<el-col
:span="6"
>
</el-col
<el-col
:span="6"
>
<el-form-item
label=
"标准间成本价"
>
<el-input-number
v-model=
"msg2.CostPrice"
:precision=
"2"
:min=
"0"
@
keyup
.
native=
"checkPrice(msg2,'CostPrice')"
maxlength=
"10"
></el-input-number>
...
...
@@ -223,6 +223,19 @@
<el-input
v-model=
"msg2.CurrentRate"
placeholder=
"汇率"
style=
"width:80px;"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"付款方式 "
>
<el-select
class=
'w135 sel'
v-model=
'msg2.PayStyle'
:placeholder=
"$t('pub.pleaseSel')"
>
<el-option
label=
'请选择'
:value=
'0'
></el-option>
<el-option
label=
'现付'
:value=
'1'
></el-option>
<el-option
label=
'签单'
:value=
'2'
></el-option>
<el-option
label=
'实物抵扣'
:value=
'3'
></el-option>
<el-option
label=
'预付'
:value=
'4'
></el-option>
<el-option
label=
'预付款抵扣'
:value=
'5'
></el-option>
<el-option
label=
'公司合团支付'
:value=
'6'
></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row
style=
"padding: 20px 0 0 0;border-top: 1px dashed #ccc;"
>
<el-col
:span=
"6"
>
...
...
@@ -251,7 +264,8 @@
<el-form-item
label=
"供应商"
prop=
"Supplier"
>
<el-select
v-model=
"msg2.Supplier"
placeholder=
"请选择"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
value=
'0'
></el-option>
<el-option
v-for=
"(item,index) in SupplierList"
:key=
"index"
:label=
"item.Name"
:value=
"item.ID"
v-if=
"userInfo.SupplierId==item.ID"
>
<el-option
v-for=
"(item,index) in SupplierList"
:key=
"index"
:label=
"item.Name"
:value=
"item.ID"
v-if=
"userInfo.SupplierId==item.ID"
>
</el-option>
</el-select>
</el-form-item>
...
...
@@ -447,6 +461,19 @@
<el-input
v-model=
"msg.CurrentRate"
placeholder=
"汇率"
style=
"width:80px;"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"付款方式 "
>
<el-select
class=
'w135 sel'
v-model=
'msg.PayStyle'
:placeholder=
"$t('pub.pleaseSel')"
>
<el-option
label=
'请选择'
:value=
'0'
></el-option>
<el-option
label=
'现付'
:value=
'1'
></el-option>
<el-option
label=
'签单'
:value=
'2'
></el-option>
<el-option
label=
'实物抵扣'
:value=
'3'
></el-option>
<el-option
label=
'预付'
:value=
'4'
></el-option>
<el-option
label=
'预付款抵扣'
:value=
'5'
></el-option>
<el-option
label=
'公司合团支付'
:value=
'6'
></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row
style=
"padding: 20px 0 0 0;border-top: 1px dashed #ccc;"
>
<el-col
:span=
"6"
>
...
...
@@ -475,7 +502,8 @@
<el-form-item
label=
"供应商"
prop=
"Supplier"
>
<el-select
v-model=
"msg.Supplier"
placeholder=
"请选择"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
value=
'0'
></el-option>
<el-option
v-for=
"(item,index) in SupplierList"
:key=
"index"
:label=
"item.Name"
:value=
"item.ID"
v-if=
"userInfo.SupplierId==item.ID"
>
<el-option
v-for=
"(item,index) in SupplierList"
:key=
"index"
:label=
"item.Name"
:value=
"item.ID"
v-if=
"userInfo.SupplierId==item.ID"
>
</el-option>
</el-select>
</el-form-item>
...
...
@@ -576,7 +604,7 @@
data
:
{}
},
editShow
:
false
,
userInfo
:{},
userInfo
:
{},
msg
:
{
Hotel
:
'0'
,
Supplier
:
30
,
...
...
@@ -606,9 +634,10 @@
SanKePrice
:
0
,
//散客价
BatchNumber
:
1
,
//批次号
TaxesPrice
:
0
,
//税金
BeforeDay
:
0
,
//提前还房天数
FreeRoomNum
:
0
,
//免间数
OpType
:
1
,
//供应商操作
BeforeDay
:
0
,
//提前还房天数
FreeRoomNum
:
0
,
//免间数
OpType
:
1
,
//供应商操作
PayStyle
:
0
,
//付款方式
},
msg2
:
{
Hotel
:
'0'
,
...
...
@@ -639,9 +668,10 @@
SanKePrice
:
0
,
//散客价
BatchNumber
:
1
,
//批次号
TaxesPrice
:
0
,
//税金
BeforeDay
:
0
,
//提前还房天数
FreeRoomNum
:
0
,
//免间数
OpType
:
1
,
//供应商操作
BeforeDay
:
0
,
//提前还房天数
FreeRoomNum
:
0
,
//免间数
OpType
:
1
,
//供应商操作
PayStyle
:
0
,
//付款方式
},
rules
:
{
InventoryType
:
{
...
...
@@ -874,10 +904,15 @@
this
.
msg2
.
DateList
.
splice
(
dayIndex
,
1
)
},
getData
:
function
(
date
,
key
)
{
var
sId
=
0
;
if
(
this
.
getLocalStorageSupplier
())
{
sId
=
this
.
getLocalStorageSupplier
().
SupplierId
;
}
this
.
ApiPost2
(
'hotelreport_get_GetHotelPriceMonthStatistics'
,
{
HotelId
:
this
.
hotelId
,
Year
:
date
.
split
(
'-'
)[
0
],
Month
:
date
.
split
(
'-'
)[
1
]
Month
:
date
.
split
(
'-'
)[
1
],
Supplier
:
sId
},
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
let
json
=
res
.
data
.
data
;
...
...
@@ -965,8 +1000,9 @@
this
.
msg
.
SanKePrice
=
data
.
SanKePrice
;
this
.
msg
.
BatchNumber
=
data
.
BatchNumber
;
this
.
msg
.
TaxesPrice
=
data
.
TaxesPrice
;
this
.
msg
.
BeforeDay
=
data
.
BeforeDay
;
this
.
msg
.
FreeRoomNum
=
data
.
FreeRoomNum
;
this
.
msg
.
BeforeDay
=
data
.
BeforeDay
;
this
.
msg
.
FreeRoomNum
=
data
.
FreeRoomNum
;
this
.
msg
.
PayStyle
=
data
.
PayStyle
;
}
})
},
...
...
@@ -1044,9 +1080,10 @@
this
.
msg
.
CostPrice
=
0
;
this
.
msg
.
SanKePrice
=
0
;
this
.
msg
.
BatchNumber
=
1
;
this
.
msg
.
TaxesPrice
=
0
;
this
.
msg
.
BeforeDay
=
0
;
this
.
msg
.
FreeRoomNum
=
0
;
this
.
msg
.
TaxesPrice
=
0
;
this
.
msg
.
BeforeDay
=
0
;
this
.
msg
.
FreeRoomNum
=
0
;
this
.
msg
.
PayStyle
=
0
;
}
else
{
this
.
Error
(
res
.
data
.
message
)
}
...
...
@@ -1063,8 +1100,9 @@
this
.
msg2
.
SanKePrice
=
0
;
this
.
msg2
.
BatchNumber
=
1
;
this
.
msg2
.
TaxesPrice
=
0
;
this
.
msg2
.
BeforeDay
=
0
;
this
.
msg2
.
FreeRoomNum
=
0
;
this
.
msg2
.
BeforeDay
=
0
;
this
.
msg2
.
FreeRoomNum
=
0
;
this
.
msg2
.
PayStyle
=
0
;
},
//批量删除
delete2Reset
:
function
()
{
...
...
@@ -1079,8 +1117,9 @@
that
.
msg2
.
SanKePrice
=
0
;
that
.
msg2
.
BatchNumber
=
1
;
that
.
msg2
.
TaxesPrice
=
0
;
that
.
msg2
.
BeforeDay
=
0
;
that
.
msg2
.
FreeRoomNum
=
0
;
that
.
msg2
.
BeforeDay
=
0
;
that
.
msg2
.
FreeRoomNum
=
0
;
that
.
msg2
.
PayStyle
=
0
;
}
else
{
that
.
Error
(
res
.
data
.
message
)
}
...
...
@@ -1100,8 +1139,9 @@
this
.
msg2
.
SanKePrice
=
0
;
this
.
msg2
.
BatchNumber
=
1
;
this
.
msg2
.
TaxesPrice
=
0
;
this
.
msg2
.
BeforeDay
=
0
;
this
.
msg2
.
FreeRoomNum
=
0
;
this
.
msg2
.
BeforeDay
=
0
;
this
.
msg2
.
FreeRoomNum
=
0
;
this
.
msg2
.
PayStyle
=
0
;
}
else
{
this
.
Error
(
res
.
data
.
message
)
}
...
...
@@ -1149,6 +1189,7 @@
this
.
initSupplier
();
}
}
</
script
>
<
style
>
...
...
@@ -1644,7 +1685,11 @@
margin
:
10px
10px
0
0
;
text-align
:
right
;
}
.hotelProductManage2
.Htupbtn
{
padding
:
0
10px
;
height
:
25px
;
margin
:
10px
0
0
75px
;
.hotelProductManage2
.Htupbtn
{
padding
:
0
10px
;
height
:
25px
;
margin
:
10px
0
0
75px
;
}
</
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