Commit e2d9d384 authored by 黄奎's avatar 黄奎

新增车查询条件

parent f24ce74e
......@@ -33,6 +33,15 @@
</el-date-picker>
</span>
</li>
<li>
<span><em></em>
<el-select v-model="msg.CarId" filterable :placeholder="$t('pub.pleaseSel')" clearable @clear="getList()" @change="getList()">
<el-option v-for="item in carList" :label="item.CarName+`(`+item.CarNo+`)`" :value="item.Id"
:key="item.Id">
</el-option>
</el-select>
</span>
</li>
<li>
<input type="button" class="normalBtn" :value="$t('pub.searchBtn')" @click="getList()" />
<button class="hollowFixedBtn" @click="editPlan(null)">{{$t('pub.addBtn')}}</button>
......@@ -133,6 +142,7 @@
loading: false,
msg: {
MonthStr: "",
CarId: "",
},
headerList: [], //表头
dataList: [],
......@@ -143,12 +153,21 @@
},
isShowEditPlanDialog: false, //是否显示新增修改
dialogTitle: "",
carList: [],
}
},
components: {
editTripPlan
},
methods: {
//获取车辆列表
getCarList() {
this.apipost("travel_post_GetJapanCarList", {}, res => {
if (res.data.resultCode == 1) {
this.carList = res.data.data;
}
});
},
//机票导出
downLoadPlan() {
this.loading = true;
......@@ -238,6 +257,7 @@
let yearStr = myDate.getFullYear();
let monthStr = parseInt(myDate.getMonth() + 1);
this.msg.MonthStr = yearStr + "-" + (monthStr < 10 ? '0' + monthStr : monthStr);
this.getCarList();
this.getList();
},
}
......
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