Commit 8639c6a8 authored by zhengke's avatar zhengke

修改车配

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