Commit 8639c6a8 authored by zhengke's avatar zhengke

修改车配

parent fe87c6d5
...@@ -129,6 +129,17 @@ ...@@ -129,6 +129,17 @@
background: #EAEAEA !important; background: #EAEAEA !important;
text-align: center; text-align: center;
} }
.disClick {
background-color: #d1d1d1;
color: #fff;
border: 1px solid #d1d1d1;
}
.disClick:hover {
background-color: #d1d1d1 !important;
cursor: default !important;
box-shadow: none !important;
}
</style> </style>
<template> <template>
...@@ -339,8 +350,8 @@ ...@@ -339,8 +350,8 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<div class="upBtnList"> <div class="upBtnList">
<input type="button" class="normalBtn" @click="SaveList(0)" :disabled="disButton" value="保存草稿" /> <input type="button" class="normalBtn" :class="{'disClick':!isSubmit}" @click="SaveList(0)" :disabled="disButton" value="保存草稿" />
<input type="button" class="normalBtn" @click="SaveList(1)" :disabled="disButton" value="保存" /> <input type="button" class="normalBtn" :class="{'disClick':!isSubmit}" @click="SaveList(1)" :disabled="disButton" value="保存" />
</div> </div>
</el-form> </el-form>
</div> </div>
...@@ -488,7 +499,8 @@ ...@@ -488,7 +499,8 @@
totalFlySeat: '', totalFlySeat: '',
LeaderName: '', LeaderName: '',
GuideName: '', GuideName: '',
loading: false loading: false,
isSubmit: true,
}; };
}, },
methods: { methods: {
...@@ -499,6 +511,8 @@ ...@@ -499,6 +511,8 @@
if (obj.BusType) { if (obj.BusType) {
obj.PayType=1; obj.PayType=1;
let busTypeObj = this.BusTypeList.find(item => item.Id === obj.BusType); let busTypeObj = this.BusTypeList.find(item => item.Id === obj.BusType);
console.log(busTypeObj,'busTypeObj');
console.log(obj,'obj');
if (busTypeObj) { if (busTypeObj) {
obj.DetailList.forEach(subItem => { obj.DetailList.forEach(subItem => {
//接送价格 //接送价格
...@@ -590,15 +604,19 @@ ...@@ -590,15 +604,19 @@
item.OrderState = type item.OrderState = type
}) })
this.PostData.PlanList = this.PlanTableData; this.PostData.PlanList = this.PlanTableData;
this.apipost('bus_get_SetPlan', this.PostData, res => { if (this.isSubmit) {
if (res.data.resultCode == 1) { this.isSubmit = false;
this.Success("保存成功!"); this.apipost('bus_get_SetPlan', this.PostData, res => {
this.MsgBus.$emit('msg'); if (res.data.resultCode == 1) {
this.createTableData(); this.Success("保存成功!");
} else { this.MsgBus.$emit('msg');
this.Error(res.data.message); this.createTableData();
} } else {
}, err => {}) this.Error(res.data.message);
}
this.isSubmit = true;
}, err => {})
}
}, },
//用车类型点击事件 //用车类型点击事件
UseTypeClick(value, index, subIndex) { UseTypeClick(value, index, subIndex) {
......
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