Commit 8b867c14 authored by zhengke's avatar zhengke

s

parent 027f7de4
......@@ -87,15 +87,27 @@
</el-row>
<el-row style="padding: 20px 0 0 0;border-top: 1px dashed #ccc;">
<el-col :span="6">
<el-form-item label="标准间成本价" prop="CostPrice">
<!-- <el-form-item label="标准间成本价" prop="CostPrice">
<el-input-number v-model="msg2.CostPrice" :precision="2" :min="0"></el-input-number>
</el-form-item> -->
<el-form-item>
<div class="RabateDiv clearfix">
<div class="RebateCount reOne">
<div class="leftPnum">标准间成本价</div>
<input type="text" class="toolInput inpuOne" v-model="msg2.CostPrice" onkeyup="value=value.replace(/[^\d^\.]+/g,'')" maxlength="20">
</div>
<div class="RebateCount reTwo">
<div class="fanNum">散客价</div>
<input type="text" class="toolInput inpuTwo" v-model="msg2.SanKePrice" onkeyup="value=value.replace(/[^\d^\.]+/g,'')" maxlength="20">
</div>
</div>
</el-form-item>
</el-col>
<el-col :span="6">
<!-- <el-col :span="6">
<el-form-item label="散客价">
<el-input-number v-model="msg2.SanKePrice" :precision="2" :min="0"></el-input-number>
</el-form-item>
</el-col>
</el-col> -->
<el-col :span="6">
<el-form-item label="大床间成本价" prop="BidroomPrice">
<el-input-number v-model="msg2.BidroomPrice" :precision="2" :min="0"></el-input-number>
......@@ -273,15 +285,27 @@
</el-row>
<el-row style="padding: 20px 0 0 0;border-top: 1px dashed #ccc;">
<el-col :span="6">
<el-form-item label="标准间成本价" prop="CostPrice">
<!-- <el-form-item label="标准间成本价" prop="CostPrice">
<el-input-number v-model="msg.CostPrice" :precision="2" :min="0"></el-input-number>
</el-form-item> -->
<el-form-item>
<div class="RabateDiv clearfix">
<div class="RebateCount reOne">
<div class="leftPnum">标准间成本价</div>
<input type="text" class="toolInput inpuOne" v-model="msg.CostPrice" onkeyup="value=value.replace(/[^\d^\.]+/g,'')" maxlength="20">
</div>
<div class="RebateCount reTwo">
<div class="fanNum">散客价</div>
<input type="text" class="toolInput inpuTwo" v-model="msg.SanKePrice" onkeyup="value=value.replace(/[^\d^\.]+/g,'')" maxlength="20">
</div>
</div>
</el-form-item>
</el-col>
<el-col :span="6">
<!-- <el-col :span="6">
<el-form-item label="散客价">
<el-input-number v-model="msg.SanKePrice" :precision="2" :min="0"></el-input-number>
</el-form-item>
</el-col>
</el-col> -->
<el-col :span="6">
<el-form-item label="大床间成本价" prop="BidroomPrice">
<el-input-number v-model="msg.BidroomPrice" :precision="2" :min="0"></el-input-number>
......@@ -900,8 +924,10 @@
},
// 取消按钮
editCanel: function () {
this.editShow = false
this.$refs['hotelProductForm'].resetFields()
this.editShow = false;
this.$refs['hotelProductForm'].resetFields();
this.msg.CostPrice=0;
this.msg.SanKePrice=0;
},
// 保存按钮
editSave: function () {
......@@ -912,7 +938,9 @@
this.$message.success('编辑成功')
this.getMonths()
this.editShow = false
this.$refs['hotelProductForm'].resetFields()
this.$refs['hotelProductForm'].resetFields();
this.msg.CostPrice=0;
this.msg.SanKePrice=0;
} else {
this.$message.error(res.data.message)
}
......@@ -924,7 +952,9 @@
},
// 页面编辑重置
edit2Reset: function () {
this.$refs['hotelProductForm2'].resetFields()
this.$refs['hotelProductForm2'].resetFields();
this.msg2.CostPrice=0;
this.msg2.SanKePrice=0;
},
//批量删除
delete2Reset: function () {
......@@ -937,7 +967,9 @@
if (res.data.resultCode == 1) {
this.$message.success(res.data.message)
this.getMonths()
this.$refs['hotelProductForm2'].resetFields()
this.$refs['hotelProductForm2'].resetFields();
this.msg2.CostPrice=0;
this.msg2.SanKePrice=0;
} else {
this.$message.error(res.data.message)
}
......@@ -957,7 +989,9 @@
if (res.data.resultCode === 1) {
this.$message.success('编辑成功')
this.getMonths()
this.$refs['hotelProductForm2'].resetFields()
this.$refs['hotelProductForm2'].resetFields();
this.msg2.CostPrice=0;
this.msg2.SanKePrice=0;
} else {
this.$message.error(res.data.message)
}
......@@ -1348,5 +1382,61 @@
margin: 7px 10px 0 0;
padding: 0 0 0 0;
}
.hotelProductManage2 .RabateDiv {
margin-left: 25px;
}
.hotelProductManage2 .RebateCount {
height: 34px;
border-radius: 17px;
float: left;
}
.hotelProductManage2 .reOne,.hotelProductManage2 .reTwo,
.hotelProductManage2.dayNum {
position: relative;
}
.hotelProductManage2 .leftPnum {
float: left;
background-color: #f5f7fa;
height: 40px;
line-height: 40px;
text-align: center;
border-right: 1px solid #cccccc;
position: absolute;
left: 1px;
top: 1px;
font-size:14px;
padding:0 10px;
color:#606266;
}
.hotelProductManage2 .toolInput {
height: 42px;
padding-left: 5px;
border: none;
}
.hotelProductManage2 .inpuOne {
width: 225px;
padding-left: 120px;
border: 1px solid #d1d1d1;
border-right: none;
}
.hotelProductManage2 .inpuTwo {
width: 166px;
padding: 0 45px 0 77px;
border: 1px solid #d1d1d1;
}
.hotelProductManage2 .fanNum {
float: left;
background-color: #f5f7fa;
height: 40px;
line-height: 40px;
text-align: center;
border-right: 1px solid #cccccc;
position: absolute;
left: 1px;
top: 1px;
padding:0 10px;
color:#606266;
font-size:14px;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment