Commit c4038de4 authored by 黄奎's avatar 黄奎

页面修改

parent ae9d924a
......@@ -245,7 +245,7 @@
<img v-else src="../../assets/img/suplier.jpg" style="width:200px;height:150px;" />
</td>
<td>
{{getArea(item.AreaType)}}-{{item.BusTypeStr}}
{{getArea(item.AreaType)}}- {{getBusTypeStr(item.BusType)}}
</td>
<td>
{{item.UseNum}}
......@@ -675,6 +675,16 @@
})
return AreaName;
},
getBusTypeStr(busType)
{
var AreaName = '';
this.BusTypeList.forEach(item => {
if (item.Id == busType) {
AreaName = item.Name
}
})
return AreaName;
},
getCurrencyType() { // 币种类型
this.apipost('financeinfo_post_GetList', {
Name: ''
......
......@@ -194,7 +194,7 @@
<tbody v-for="item in dataList" :key="item.subCode">
<tr>
<td>
{{item.AreaTypeStr}}-{{item.BusTypeStr}}
{{getArea(item.AreaType)}}- {{getBusTypeStr(item.BusType)}}
</td>
<td>
{{item.MonthStr}}
......@@ -333,6 +333,8 @@
total: 0,
currentPage: 1,
},
AreaList:[],
BusTypeList:[],
addMsg: {
Id: 0, //主键编号
StartDateStr: "", //开始月份
......@@ -470,9 +472,56 @@
null
);
});
}
},
//获取地区下拉
getAreaList() {
this.apipost(
"busprice_get_GetBusAreaType", {},
res => {
if (res.data.resultCode == 1) {
this.AreaList = res.data.data;
}
},
null
);
},
//根据ID获取地区
getArea(AreaType) {
var AreaName = '';
this.AreaList.forEach(item => {
if (item.Id == AreaType) {
AreaName = item.Name
}
})
return AreaName;
},
getBusTypeStr(busType)
{
var AreaName = '';
this.BusTypeList.forEach(item => {
if (item.Id == busType) {
AreaName = item.Name
}
})
return AreaName;
},
/*获取车辆类型列表*/
getBusTypeList() {
this.apipost(
"bus_get_GetBusTypeList",
null,
res => {
if (res.data.resultCode == 1) {
this.BusTypeList = res.data.data;
}
},
null
);
},
},
mounted() {
this.getAreaList();
this.getBusTypeList();
this.msg.BusPriceId = this.$route.query.id;
this.addMsg.BusPriceId = this.$route.query.id;
this.initData();
......
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