fix: bug--gx -修改 车辆预定时段
This commit is contained in:
parent
76aa788335
commit
a790793c5f
|
|
@ -14,7 +14,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="车辆" prop="vehiclereg">
|
<el-form-item label="车辆" prop="vehreg">
|
||||||
<el-select v-model="form.vehreg" placeholder="请选择车辆" @change="vehChange" style="width: 100%;" :readonly="localMode === 'show'">
|
<el-select v-model="form.vehreg" placeholder="请选择车辆" @change="vehChange" style="width: 100%;" :readonly="localMode === 'show'">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in vehRegList"
|
v-for="item in vehRegList"
|
||||||
|
|
@ -135,7 +135,7 @@ export default {
|
||||||
ticket_:null,
|
ticket_:null,
|
||||||
//验证规则
|
//验证规则
|
||||||
rules: {
|
rules: {
|
||||||
vehiclereg: [{ required: true, message: "请输入车辆名称", trigger: "blur" }],
|
vehreg: [{ required: true, message: "请输入车辆名称", trigger: "blur" }],
|
||||||
vdate: [{ required: true, message: "请选择时间", trigger: "blur" }],
|
vdate: [{ required: true, message: "请选择时间", trigger: "blur" }],
|
||||||
// title: [{ required: true, message: "请输入容纳人数", trigger: "blur" }],
|
// title: [{ required: true, message: "请输入容纳人数", trigger: "blur" }],
|
||||||
},
|
},
|
||||||
|
|
@ -234,7 +234,7 @@ export default {
|
||||||
let that = this;
|
let that = this;
|
||||||
let form = {};
|
let form = {};
|
||||||
form.page = 0;
|
form.page = 0;
|
||||||
form.vehiclereg = that.form.vehiclereg;
|
form.vehreg = that.form.vehreg;
|
||||||
form.vdate = that.form.vdate;
|
form.vdate = that.form.vdate;
|
||||||
that.timesList.forEach(slot=>{
|
that.timesList.forEach(slot=>{
|
||||||
slot.sloted = false;
|
slot.sloted = false;
|
||||||
|
|
@ -247,14 +247,14 @@ export default {
|
||||||
},
|
},
|
||||||
mdateChange(){
|
mdateChange(){
|
||||||
let that = this;
|
let that = this;
|
||||||
if(that.form.vehiclereg!==''&&that.form.vehiclereg!==null){
|
if(that.form.vehreg!==''&&that.form.vehreg!==null){
|
||||||
that.getmRoomSlot();
|
that.getmRoomSlot();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
vehChange(){
|
vehChange(){
|
||||||
let that = this;
|
let that = this;
|
||||||
that.vehRegList.forEach(item=>{
|
that.vehRegList.forEach(item=>{
|
||||||
if(item.id == that.form.vehiclereg){
|
if(item.id == that.form.vehreg){
|
||||||
that.mroomName = item.name;
|
that.mroomName = item.name;
|
||||||
that.bookingTitle = item.name+"预定";
|
that.bookingTitle = item.name+"预定";
|
||||||
if(that.form.vdate!==''&&that.form.vdate!==null){
|
if(that.form.vdate!==''&&that.form.vdate!==null){
|
||||||
|
|
@ -285,7 +285,7 @@ export default {
|
||||||
},
|
},
|
||||||
handleEidt(id) {
|
handleEidt(id) {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.$API.ofm.vehicleslot.list.req({booking:id,page:0}).then(res=>{
|
that.$API.ofm.vehicleslot.list.req({vehicle_use:id,page:0}).then(res=>{
|
||||||
res.forEach(item=>{
|
res.forEach(item=>{
|
||||||
that.timesList[item.slot].isSelect = true;
|
that.timesList[item.slot].isSelect = true;
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue