Commit e2d9d384 authored by 黄奎's avatar 黄奎

新增车查询条件

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