Commit 5cacfe7b authored by youjie's avatar youjie

no message

parent 92e0b5f8
...@@ -454,9 +454,11 @@ ...@@ -454,9 +454,11 @@
</el-table-column> </el-table-column>
<el-table-column min-width="120" label="车辆信息" style="background:#EAEAEA"> <el-table-column min-width="120" label="车辆信息" style="background:#EAEAEA">
<template slot-scope="scope"> <template slot-scope="scope">
<div><span>用车类型:</span> {{ item.BusTypeName }}</div> <div><span class="c9e">用车类型:</span> {{ item.BusTypeName }}</div>
<div><span>司机:</span>{{ item.DriverInfo }}</div> <template v-if="item.DriverInfo">
<div><span>车牌号:</span>{{ item.BusNo }}</div> <div><span class="c9e">司机:</span>{{ item.DriverInfo }}</div>
<div><span class="c9e">车牌号:</span>{{ item.BusNo }}</div>
</template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="导游信息" style="background:#EAEAEA"> <el-table-column label="导游信息" style="background:#EAEAEA">
...@@ -880,18 +882,24 @@ ...@@ -880,18 +882,24 @@
</div> </div>
</el-dialog> </el-dialog>
<!-- 添加司机车辆弹窗 --> <!-- 添加司机车辆弹窗 -->
<el-dialog title="车辆信息" :visible.sync="dialogVisible" width="20%" :before-close="handleClose"> <el-dialog title="车辆信息" :visible.sync="dialogVisible" width="400px" :before-close="handleClose">
<div style="display: flex;margin-bottom: 20px;"> <el-form label-width="80px" :model="drivermsg" :rules="rules" ref="drivermsg" style="width: 100%;">
<span style="width: 70px;">司机:</span> <el-row>
<el-input style="width: 150px;" v-model="drivermsg.DriverInfo" placeholder=""></el-input> <el-col>
</div> <el-form-item label="司机" prop="DriverInfo">
<div style="display: flex;"> <el-input v-model="drivermsg.DriverInfo" placeholder=""></el-input>
<span style="width: 70px;">车牌号:</span> </el-form-item>
<el-input style="width: 150px;" v-model="drivermsg.BusNo" placeholder=""></el-input> </el-col>
</div> <el-col>
<el-form-item label="车牌号" prop="BusNo">
<el-input v-model="drivermsg.BusNo" placeholder=""></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false">取 消</el-button> <el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="driverdetermine()">确 定</el-button> <el-button type="primary" @click="driverdetermine('drivermsg')">确 定</el-button>
</span> </span>
</el-dialog> </el-dialog>
</div> </div>
...@@ -914,39 +922,39 @@ ...@@ -914,39 +922,39 @@
isShowPrice: false, isShowPrice: false,
//提交报价信息 //提交报价信息
postMsg: { postMsg: {
// Id: 0, Id: 0,
// UseCompName: "", UseCompName: "",
// UseName: "", UseName: "",
// PickUpInfo: "", PickUpInfo: "",
// GoFlightInfo: "", GoFlightInfo: "",
// BackFlightInfo: "", BackFlightInfo: "",
// PeopleNum: 0, PeopleNum: 0,
// UseDayNum: 0, UseDayNum: 0,
// StartDate: "", StartDate: "",
// BusType: 0, BusType: 0,
// BusTypeName: "", BusTypeName: "",
// GuideInfo: "", GuideInfo: "",
// DriverInfo: "", DriverInfo: "",
// BusNo: "", BusNo: "",
// Remark: "", Remark: "",
// AttentionInfo: "", AttentionInfo: "",
// PayType: 0, PayType: 0,
// IsSure: 0, IsSure: 0,
// SureTime: "", SureTime: "",
// SureId: 0, SureId: 0,
// TeamName: "", TeamName: "",
// CurrencyId: 0, CurrencyId: 0,
// DiscountPrice: 0, DiscountPrice: 0,
// TotalPrice: 0, TotalPrice: 0,
// CustomerId: 0, CustomerId: 0,
// OfferDate: "", OfferDate: "",
// OfferBy: 0, OfferBy: 0,
// OfferState: 0, OfferState: 0,
// OfferStateName: "", OfferStateName: "",
// ShouPeiFee: 0, ShouPeiFee: 0,
// CancelRemark: "", CancelRemark: "",
// details: [], details: [],
// CustomerName: "", CustomerName: "",
}, },
copyId: 0, copyId: 0,
loading0: false, loading0: false,
...@@ -1017,17 +1025,17 @@ ...@@ -1017,17 +1025,17 @@
trigger: "change" trigger: "change"
} }
], ],
SelffetchAddress: [ DriverInfo: [
{ {
required: true, required: true,
message: "请输入自提地址", message: "请输入司机司机名称",
trigger: "blur" trigger: "blur"
} }
], ],
LossMoney: [ BusNo: [
{ {
required: true, required: true,
message: "请输入收损金额", message: "请输入车牌号",
trigger: "blur" trigger: "blur"
} }
] ]
...@@ -1071,19 +1079,24 @@ ...@@ -1071,19 +1079,24 @@
}, },
methods: { methods: {
handleClose(done) { handleClose(done) {
this.$confirm('确认关闭?')
.then(_ => {
done(); done();
}) this.$refs.drivermsg.clearValidate()
.catch(_ => {}); this.$refs.drivermsg.resetFields()
// this.$confirm('确认关闭?')
// .then(_ => {
// })
// .catch(_ => {});
}, },
// 司机确定 // 司机确定
driverdetermine() { driverdetermine(drivermsg) {
this.loading2 = false this.$refs[drivermsg].validate((valid) => {
if (valid) {
if(!this.drivermsg.DriverInfo||!this.drivermsg.BusNo){ if(!this.drivermsg.DriverInfo||!this.drivermsg.BusNo){
this.$message.error('司机名称和车牌号不能为空'); this.$message.error('司机名称和车牌号不能为空');
return return
} }
this.loading2 = false
this.apipost('tripbus_SetBusPriceInfo', this.drivermsg, res => { this.apipost('tripbus_SetBusPriceInfo', this.drivermsg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.loading2 = true this.loading2 = true
...@@ -1095,6 +1108,10 @@ ...@@ -1095,6 +1108,10 @@
this.Error(res.data.message); this.Error(res.data.message);
} }
}, err => {}) }, err => {})
} else {
return false;
}
});
}, },
// 添加司机车号 // 添加司机车号
driver(id) { driver(id) {
...@@ -1309,8 +1326,8 @@ ...@@ -1309,8 +1326,8 @@
this.postMsg.GuideInfo = tempData.GuideInfo; this.postMsg.GuideInfo = tempData.GuideInfo;
this.postMsg.DriverInfo = tempData.DriverInfo; this.postMsg.DriverInfo = tempData.DriverInfo;
this.postMsg.BusNo = tempData.BusNo; this.postMsg.BusNo = tempData.BusNo;
this.postMsg.Remark = tempData.Remark; this.postMsg.Remark = tempData.Remark?tempData.Remark:'';
this.postMsg.AttentionInfo = tempData.AttentionInfo; this.postMsg.AttentionInfo = tempData.AttentionInfo?tempData.AttentionInfo:'';
this.postMsg.PayType = tempData.PayType; this.postMsg.PayType = tempData.PayType;
this.postMsg.IsSure = tempData.IsSure; this.postMsg.IsSure = tempData.IsSure;
this.postMsg.TeamName = tempData.TeamName; this.postMsg.TeamName = tempData.TeamName;
......
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