|
|
@@ -20,11 +20,11 @@ |
|
|
|
</template> |
|
|
|
<el-form ref="form" :model="dataObj" label-width="100px" :disabled="disable"> |
|
|
|
|
|
|
|
<el-row style="margin-top: 25px;padding-right: 20px;"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-row style="margin-top: 25px;"> |
|
|
|
<el-col :span="10"> |
|
|
|
<el-form-item label="酒店名称"> |
|
|
|
|
|
|
|
<el-select v-model="dataObj.hotel_id" filterable placeholder="请选择" @change="selectChange"> |
|
|
|
<el-select style="width: 100%" v-model="dataObj.hotel_id" filterable placeholder="请选择" @change="selectChange"> |
|
|
|
<el-option |
|
|
|
v-for="item in hotelListOpt" |
|
|
|
:key="'hotel_id'+item.id" |
|
|
@@ -36,7 +36,7 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item label="房型名称"> |
|
|
|
<el-select v-model="dataObj.room_id" filterable placeholder="请选择" @change="roomselectChange"> |
|
|
|
<el-select style="width: 100%" v-model="dataObj.room_id" filterable placeholder="请选择" @change="roomselectChange"> |
|
|
|
<el-option |
|
|
|
v-for="item in roomListOpt" |
|
|
|
:key="'room_id'+item.id" |
|
|
@@ -46,9 +46,9 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="价格方案"> |
|
|
|
<el-select v-model="dataObj.plan_id" filterable placeholder="请选择" @change="selectChange"> |
|
|
|
<el-select style="width: 100%" v-model="dataObj.plan_id" filterable placeholder="请选择" @change="selectChange"> |
|
|
|
<el-option |
|
|
|
v-for="item in roomPlan" |
|
|
|
:key="item.id" |
|
|
@@ -90,7 +90,7 @@ |
|
|
|
height="500" |
|
|
|
:summary-method="getSummaries" |
|
|
|
show-summary |
|
|
|
style="width: 100%; margin-top: 20px"> |
|
|
|
style="width: 100%;min-width:890px; margin-top: 20px"> |
|
|
|
<el-table-column |
|
|
|
prop="run_date" |
|
|
|
label="日期" |
|
|
@@ -100,21 +100,21 @@ |
|
|
|
prop="price" |
|
|
|
label="售卖价"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input-number v-model="scope.row.price"></el-input-number> |
|
|
|
<el-input-number size="small" v-model="scope.row.price"></el-input-number> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="cost" |
|
|
|
label="成本价"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input-number v-model="scope.row.cost"></el-input-number> |
|
|
|
<el-input-number size="small" v-model="scope.row.cost"></el-input-number> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="count" |
|
|
|
label="数量"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input-number v-model="scope.row.count"></el-input-number> |
|
|
|
<el-input-number size="small" v-model="scope.row.count"></el-input-number> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
@@ -128,7 +128,7 @@ |
|
|
|
prop="note" |
|
|
|
label="备注"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input v-model="scope.row.note"></el-input> |
|
|
|
<el-input type="textarea" v-model="scope.row.note"></el-input> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
@@ -180,11 +180,11 @@ |
|
|
|
|
|
|
|
<template v-else> |
|
|
|
<el-form ref="form" :model="dataObj" label-width="100px" :disabled="disable"> |
|
|
|
<el-row style="margin-top: 25px;padding-right: 20px;"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-row style="margin-top: 25px;"> |
|
|
|
<el-col :span="10"> |
|
|
|
<el-form-item label="酒店名称"> |
|
|
|
|
|
|
|
<el-select v-model="dataObj.hotel_id" filterable placeholder="请选择" @change="selectChange"> |
|
|
|
<el-select style="width: 100%" v-model="dataObj.hotel_id" filterable placeholder="请选择" @change="selectChange"> |
|
|
|
<el-option |
|
|
|
v-for="item in hotelListOpt" |
|
|
|
:key="item.id" |
|
|
@@ -196,7 +196,7 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item label="房型名称"> |
|
|
|
<el-select v-model="dataObj.room_id" filterable placeholder="请选择" @change="selectChange"> |
|
|
|
<el-select style="width: 100%" v-model="dataObj.room_id" filterable placeholder="请选择" @change="selectChange"> |
|
|
|
<el-option |
|
|
|
v-for="item in roomListOpt" |
|
|
|
:key="item.id" |
|
|
@@ -206,9 +206,9 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="价格方案"> |
|
|
|
<el-select v-model="dataObj.plan_id" filterable placeholder="请选择" @change="selectChange"> |
|
|
|
<el-select style="width: 100%" v-model="dataObj.plan_id" filterable placeholder="请选择" @change="selectChange"> |
|
|
|
<el-option |
|
|
|
v-for="item in roomPlan" |
|
|
|
:key="item.id" |
|
|
@@ -227,6 +227,7 @@ |
|
|
|
type="daterange" |
|
|
|
value-format="yyyy-MM-dd HH:mm:ss" |
|
|
|
range-separator="-" |
|
|
|
style="width: 100%" |
|
|
|
start-placeholder="入住日期" |
|
|
|
end-placeholder="离店日期"> |
|
|
|
</el-date-picker> |
|
|
@@ -251,7 +252,7 @@ |
|
|
|
:summary-method="getSummaries" |
|
|
|
:span-method="arraySpanMethod" |
|
|
|
show-summary |
|
|
|
style="width: 100%; margin-top: 20px"> |
|
|
|
style="width: 100%;min-width:890px; margin-top: 20px"> |
|
|
|
<el-table-column |
|
|
|
prop="run_date" |
|
|
|
label="日期" |
|
|
@@ -261,21 +262,21 @@ |
|
|
|
prop="price" |
|
|
|
label="售卖价"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input-number v-model="scope.row.price"></el-input-number> |
|
|
|
<el-input-number size="small" v-model="scope.row.price"></el-input-number> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="cost" |
|
|
|
label="成本价"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input-number v-model="scope.row.cost"></el-input-number> |
|
|
|
<el-input-number size="small" v-model="scope.row.cost"></el-input-number> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="count" |
|
|
|
label="数量"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input-number v-model="scope.row.count" @change="changeNum"></el-input-number> |
|
|
|
<el-input-number size="small" v-model="scope.row.count" @change="changeNum"></el-input-number> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
@@ -289,7 +290,7 @@ |
|
|
|
prop="note" |
|
|
|
label="备注"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input v-model="scope.row.note" @change="changeNote"></el-input> |
|
|
|
<el-input type="textarea" v-model="scope.row.note" @change="changeNote"></el-input> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|