Commit b597f0de authored by 黄奎's avatar 黄奎

新增页面

parent b467c53d
This diff is collapsed.
......@@ -218,11 +218,14 @@
<th>
{{$t('ground.btbj')}}
</th>
<th>
公里价格
</th>
<th>
{{$t('ground.qtgs')}}
</th>
<th>
{{$t('ground.jsgs')}}
{{$t('ground.jsgs')}}
</th>
<th>
{{$t('ground.qtchadai')}}
......@@ -262,6 +265,9 @@
<td>
{{item.HalfDayPrice}}
</td>
<td>
{{item.KMPrice}}
</td>
<td>
{{item.AllDayHighSpeedFee}}
</td>
......@@ -272,12 +278,13 @@
<td>{{item.PickUpChaDaiFee}}</td>
<td>
<el-popover width="590" trigger="click">
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr style="text-align:center;">
<th width="70">{{$t('ground.yuefen')}}</th>
<th width="80">{{$t('ground.jsPrice')}}</th>
<th width="80">{{$t('ground.AllDayPrice')}}</th>
<th width="80">{{$t('ground.btbj')}}</th>
<th width="80">公里价格</th>
<th width="80">{{$t('ground.qtgs')}}</th>
<th width="80">{{$t('ground.jsgs')}}</th>
<th width="80">{{$t('ground.qtchadai')}}</th>
......@@ -296,6 +303,9 @@
<td>
{{fItem.S_HalfDayPrice}}
</td>
<td>
{{fItem.S_KMPrice}}
</td>
<td>
{{fItem.S_AllDayHighSpeedFee}}
</td>
......@@ -332,14 +342,14 @@
</td>
</tr>
<tr>
<td colspan="13">
<td colspan="14">
{{$t('pub.pubRemark')}}: {{item.Remark}}
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="13">
<td colspan="14">
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size="this.msg.pageSize" :total="total">
</el-pagination>
......@@ -377,8 +387,8 @@
</el-col>
<el-col :span="5">
<el-form-item :label="$t('sm.zuoweishu')" prop="UseNum">
<el-input :placeholder="$t('sm.zuoweishu')" v-model="addMsg.UseNum" @keyup.native="checkInteger(addMsg,'UseNum')"
class="busUsePeople">
<el-input :placeholder="$t('sm.zuoweishu')" v-model="addMsg.UseNum"
@keyup.native="checkInteger(addMsg,'UseNum')" class="busUsePeople">
<template slot="append"></template>
</el-input>
</el-form-item>
......@@ -389,7 +399,7 @@
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item :label="$t('ground.songjiBj')" style="display:none;">
<el-form-item :label="$t('ground.songjiBj')" style="display:none;">
<el-input v-model="addMsg.SendPrice" @keyup.native="checkPrice(addMsg,'SendPrice')"></el-input>
</el-form-item>
</el-col>
......@@ -404,13 +414,19 @@
</el-form-item>
</el-col>
<el-col :span="5" style="display:none;">
<el-form-item label="小时报价" >
<el-form-item label="小时报价">
<el-input v-model="addMsg.HourPrice" @keyup.native="checkPrice(addMsg,'HourPrice')"></el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="公里报价">
<el-input v-model="addMsg.KMPrice" @keyup.native="checkPrice(addMsg,'KMPrice')"></el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item :label="$t('ground.qtgs')" prop="AllDayHighSpeedFee">
<el-input v-model="addMsg.AllDayHighSpeedFee" @keyup.native="checkPrice(addMsg,'HourPrice')"></el-input>
<el-input v-model="addMsg.AllDayHighSpeedFee" @keyup.native="checkPrice(addMsg,'AllDayHighSpeedFee')">
</el-input>
</el-form-item>
</el-col>
<el-col :span="5">
......@@ -517,6 +533,7 @@
PickUpChaDaiFee: 0, //接送茶代费
BusImage: '', //车辆图片
ShowBusImage: "",
KMPrice: 0, //公里价格
},
//表单验证
rules: {
......@@ -675,8 +692,7 @@
})
return AreaName;
},
getBusTypeStr(busType)
{
getBusTypeStr(busType) {
var AreaName = '';
this.BusTypeList.forEach(item => {
if (item.Id == busType) {
......@@ -685,7 +701,7 @@
})
return AreaName;
},
/*获取车辆类型列表*/
/*获取车辆类型列表*/
getBusTypeList() {
this.apipost(
"bus_get_GetBusTypeList",
......@@ -723,7 +739,7 @@
null
);
},
//币种下拉获取汇率
getRate(ID) {
this.currencyTypeList.forEach(x => {
......@@ -761,7 +777,8 @@
PickUpHighSpeedFee: 0,
AllDayChaDaiFee: 0,
PickUpChaDaiFee: 0,
BusImage: ''
BusImage: '',
KMPrice: 0
};
},
submitForm(addMsg) {
......
......@@ -174,6 +174,9 @@
<th>
半天价格
</th>
<th>
每公里价格
</th>
<th>
全天高速
</th>
......@@ -194,7 +197,7 @@
<tbody v-for="item in dataList" :key="item.subCode">
<tr>
<td>
{{getArea(item.AreaType)}}- {{getBusTypeStr(item.BusType)}}
{{getArea(item.AreaType)}}- {{getBusTypeStr(item.BusType)}}
</td>
<td>
{{item.MonthStr}}
......@@ -208,6 +211,9 @@
<td>
{{item.S_HalfDayPrice}}
</td>
<td>
{{item.S_KMPrice}}
</td>
<td>
{{item.S_AllDayHighSpeedFee}}
</td>
......@@ -218,19 +224,21 @@
<td>{{item.S_PickUpChaDaiFee}}</td>
<td>
<el-row>
<el-tooltip class="item" effect="dark" content="管理报价" placement="top-start">
<el-button type="primary" class="iconfont icon-bianji-smal" circle @click="managePrice(item.Id)"></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('system.table_delete')" placement="top-start">
<el-button type="danger" class="iconfont icon-img_delete_small" circle @click="isdelete(item.Id)"></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="管理报价" placement="top-start">
<el-button type="primary" class="iconfont icon-bianji-smal" circle @click="managePrice(item.Id)">
</el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('system.table_delete')" placement="top-start">
<el-button type="danger" class="iconfont icon-img_delete_small" circle @click="isdelete(item.Id)">
</el-button>
</el-tooltip>
</el-row>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="10">
<td colspan="11">
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="msg.currentPage"
layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total="msg.total">
</el-pagination>
......@@ -290,6 +298,11 @@
<el-input v-model="addMsg.S_HourPrice" @keyup.native="checkPrice(addMsg,'S_HourPrice')"></el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="每公里价格">
<el-input v-model="addMsg.S_KMPrice" @keyup.native="checkPrice(addMsg,'S_KMPrice')"></el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="全天高速">
<el-input v-model="addMsg.S_AllDayHighSpeedFee" @keyup.native="checkPrice(addMsg,'S_AllDayHighSpeedFee')">
......@@ -333,8 +346,8 @@
total: 0,
currentPage: 1,
},
AreaList:[],
BusTypeList:[],
AreaList: [],
BusTypeList: [],
addMsg: {
Id: 0, //主键编号
StartDateStr: "", //开始月份
......@@ -350,10 +363,19 @@
S_PickUpHighSpeedFee: 0, //接送高速费
S_AllDayChaDaiFee: 0, //全天茶代费
S_PickUpChaDaiFee: 0, //接送茶代费
S_KMPrice: 0, //每公里价格
},
rules: {
StartDateStr: [{ required: true, message: "请选择开始月份", trigger: "change" }],
EndDateStr: [{ required: true, message: "请选择结束月份", trigger: "change" }],
StartDateStr: [{
required: true,
message: "请选择开始月份",
trigger: "change"
}],
EndDateStr: [{
required: true,
message: "请选择结束月份",
trigger: "change"
}],
}
};
},
......@@ -439,6 +461,7 @@
this.addMsg.S_PickUpHighSpeedFee = 0;
this.addMsg.S_AllDayChaDaiFee = 0;
this.addMsg.S_PickUpChaDaiFee = 0;
this.addMsg.S_KMPrice = 0;
},
submitForm(addMsg) {
//提交创建、修改表单
......@@ -473,7 +496,7 @@
);
});
},
//获取地区下拉
//获取地区下拉
getAreaList() {
this.apipost(
"busprice_get_GetBusAreaType", {},
......@@ -495,8 +518,7 @@
})
return AreaName;
},
getBusTypeStr(busType)
{
getBusTypeStr(busType) {
var AreaName = '';
this.BusTypeList.forEach(item => {
if (item.Id == busType) {
......@@ -505,7 +527,7 @@
})
return AreaName;
},
/*获取车辆类型列表*/
/*获取车辆类型列表*/
getBusTypeList() {
this.apipost(
"bus_get_GetBusTypeList",
......@@ -520,8 +542,8 @@
},
},
mounted() {
this.getAreaList();
this.getBusTypeList();
this.getAreaList();
this.getBusTypeList();
this.msg.BusPriceId = this.$route.query.id;
this.addMsg.BusPriceId = this.$route.query.id;
this.initData();
......
......@@ -182,7 +182,6 @@
EndDate: ''
},
queryCommonData: {
PlaceList: [],
LineList: [],
LineTeamList: [],
......
......@@ -1857,6 +1857,14 @@ export default {
title: '车辆报价'
},
},
{
path: '/busPriceConfig', //车资价格
name: 'busPriceConfig',
component: resolve => require(['@/components/busManagement/busPriceConfig'], resolve),
meta: {
title: '车辆报价'
},
},
{
path: '/BusApportionManagement',
name: 'BusApportionManagement',
......
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