Commit b6ac74cc authored by 黄奎's avatar 黄奎

修改写判断

parent ae169959
......@@ -35,7 +35,7 @@
<div :class="stockColor(item,subItem)"
:style="subItem.month===item.date&&msg2.DateList.indexOf(subItem.day)!==-1?'border-color: green':''"
@click="calendarDayOn(item, subItem)">
<el-popover placement="bottom" :title="$t('ground.baojiaxinxi')" width="600" trigger="hover"
<el-popover placement="bottom" :title="$t('ground.baojiaxinxi')" width="650" trigger="hover"
v-if="subItem.data&&subItem.data.SubList && subItem.data.SubList[0]">
<template>
<div style="text-align: right;">
......@@ -43,15 +43,16 @@
@click="goEdit('2', subItem.day,subItem.data.SubList)">修改</a>
</div>
<table style="margin-left:3px;padding-top:2px;width:600px;">
<table style="margin-left:3px;padding-top:2px;width:650px;">
<tr>
<th width="100" style="text-align:center">出发时间</th>
<th width="100" style="text-align:center">价格</th>
<th width="50" style="text-align:center">订单数</th>
<th width="80" style="text-align:center">车名称</th>
<th width="140" style="text-align:center">车型号</th>
<th width="60" style="text-align:center">品牌</th>
<th width="130" style="text-align:center">乘坐人数</th>
<th width="100" style="text-align:center">乘坐人数</th>
<th width="100" style="text-align:center">订单数</th>
</tr>
<tr v-for="(childItem,childIndex) in subItem.data.SubList" :key="childIndex">
<td style="text-align:center">
......@@ -60,9 +61,7 @@
<td style="text-align:center;white-space:nowrap; ">
{{childItem.Price}}
</td>
<td style="text-align:center;white-space:nowrap; ">
{{childItem.EnrollSeat}}
</td>
<td style="text-align:center;white-space:nowrap; ">
{{childItem.CarName}}
</td>
......@@ -75,6 +74,9 @@
<td style="text-align:center">
{{childItem.GuestNum}}
</td>
<td style="text-align:center;white-space:nowrap; ">
{{childItem.EnrollSeat}}
</td>
</tr>
</table>
......@@ -704,7 +706,6 @@
}
}
}
console.log(this.dayList[key])
if (key === this.calendar.num) {
this.$set(this.calendar, 'data', this.dayList[this.calendar.num])
}
......@@ -846,6 +847,27 @@
editSave: function () {
this.$refs['hotelProductForm'].validate((valid) => {
if (valid) {
let isshow = false
this.msg.PlanList.map(x=>{
if(x.DepartureTime == ''){
this.Error('请选择出发时间')
isshow = true;
return
}
if(x.CarId==''){
this.Error('请选择使用车辆')
isshow = true;
return
}
if(x.Price==''){
this.Error('请输入班次价格')
isshow = true;
return
}
})
if(isshow == true){
return
}
this.apipost('car_post_SetLineProductPrice', this.msg, res => {
if (res.data.resultCode === 1) {
this.Success(this.$t('ground.bianjichenggong'))
......@@ -888,6 +910,27 @@
edit2Save: function () {
this.$refs['hotelProductForm2'].validate((valid) => {
if (valid) {
let isshow = false
this.msg2.PlanList.map(x=>{
if(x.DepartureTime == ''){
this.Error('请选择出发时间')
isshow = true;
return
}
if(x.CarId==''){
this.Error('请选择使用车辆')
isshow = true;
return
}
if(x.Price==''){
this.Error('请输入班次价格')
isshow = true;
return
}
})
if(isshow == true){
return
}
this.apipost('car_post_SetLineProductPrice', this.msg2, res => {
if (res.data.resultCode === 1) {
this.Success(this.$t('ground.bianjichenggong'))
......
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