Commit defdde12 authored by 黄奎's avatar 黄奎

新增车供应商司机管理

parent 444e5091
...@@ -3610,7 +3610,11 @@ export const obj = { ...@@ -3610,7 +3610,11 @@ export const obj = {
wushuju: 'No data ', wushuju: 'No data ',
shezhicg: 'Setup successful! ', shezhicg: 'Setup successful! ',
tianjaigys: 'Add a Supplier ', tianjaigys: 'Add a Supplier ',
xiugaigonys: 'Modifying Supplier Information ', xiugaigonys: 'Modifying Supplier Information',
driverManager: 'Driver Manager',
driverName: 'Driver Name',
driverMobile: 'Driver Mobile',
driverWeChatName: 'Driver WeChatName',
xiaoshibaoj: 'hourly quotation', xiaoshibaoj: 'hourly quotation',
gonglibaoj: 'Kilometer quote ', gonglibaoj: 'Kilometer quote ',
qingxzdiqu: 'Please select region ', qingxzdiqu: 'Please select region ',
......
...@@ -3612,6 +3612,10 @@ export const obj = { ...@@ -3612,6 +3612,10 @@ export const obj = {
shezhicg: '设置成功!', shezhicg: '设置成功!',
tianjaigys: '添加供应商', tianjaigys: '添加供应商',
xiugaigonys: '修改供应商信息', xiugaigonys: '修改供应商信息',
driverManager: '司机管理',
driverName: '司机姓名',
driverMobile: '司机电话',
driverWeChatName: '司机微信',
xiaoshibaoj: '小时报价', xiaoshibaoj: '小时报价',
gonglibaoj: '公里报价', gonglibaoj: '公里报价',
qingxzdiqu: '请选择地区', qingxzdiqu: '请选择地区',
......
...@@ -3612,6 +3612,10 @@ export const obj = { ...@@ -3612,6 +3612,10 @@ export const obj = {
shezhicg: '設置成功!', shezhicg: '設置成功!',
tianjaigys: '添加供應商', tianjaigys: '添加供應商',
xiugaigonys: '修改供應商信息', xiugaigonys: '修改供應商信息',
driverManager: '司機管理',
driverName: '司機姓名',
driverMobile: '司機電話',
driverWeChatName: '司機微信',
xiaoshibaoj: '小時報價', xiaoshibaoj: '小時報價',
gonglibaoj: '公里報價', gonglibaoj: '公里報價',
qingxzdiqu: '請選擇地區', qingxzdiqu: '請選擇地區',
......
...@@ -6,41 +6,25 @@ ...@@ -6,41 +6,25 @@
<div class="flexOne suppierManage"> <div class="flexOne suppierManage">
<div class="query-box"> <div class="query-box">
<ul> <ul>
<li> <li>
<span> <span>
<em>{{$t('system.quety_area')}}</em> <em>{{$t('objFill.v101.busManagement.driverName')}}</em>
<el-select v-model="msg.CountryStr" clearable class="w150" filterable <el-input maxlength="50" v-model="msg.Name" class="permiss-input w150" @keyup.native.enter="initData"
@change="getProvinceList(msg.CountryStr,1)" :placeholder="$t('hotel.hotel_country')"> :placeholder="$t('pub.pleaseImport')"></el-input>
<el-option v-for='item in countryList' :key="item.ID" :label="item.Name" :value="item.ID">
</el-option>
</el-select>
<el-select v-model="msg.ProvinceStr" class="w150" filterable @change="getProvinceList(msg.ProvinceStr,2)"
:placeholder="$t('hotel.hotel_province')">
<el-option v-for='item in provinceList' :key="item.ID" :label="item.Name" :value="item.ID">
</el-option>
</el-select>
<el-select v-model="msg.CityStr" class="w150" filterable @change="getProvinceList(msg.CityStr,3)"
:placeholder="$t('hotel.hotel_city')">
<el-option v-for='item in cityList' :key="item.ID" :label="item.Name" :value="item.ID">
</el-option>
</el-select>
<el-select v-model="msg.DistrictStr" class="w150" filterable :placeholder="$t('hotel.hotel_area')">
<el-option v-for='item in district' :key="item.ID" :label="item.Name" :value="item.ID">
</el-option>
</el-select>
</span> </span>
</li> </li>
<li> <li>
<span> <span>
<em>{{$t('hotel.suplier_name')}}</em> <em>{{$t('objFill.v101.busManagement.driverMobile')}}</em>
<el-input maxlength="50" v-model="msg.Name" class="permiss-input w150" @keyup.native.enter="initData" <el-input maxlength="50" v-model="msg.Mobile" class="permiss-input w150" @keyup.native.enter="initData"
:placeholder="$t('pub.pleaseImport')"></el-input> :placeholder="$t('pub.pleaseImport')"></el-input>
</span> </span>
</li> </li>
<li> <li>
<span> <span>
<em>{{$t('hotel.suplier_contact')}}</em> <em>{{$t('objFill.v101.busManagement.driverWeChatName')}}</em>
<el-input maxlength="50" v-model="msg.Contact" class="permiss-input w150" @keyup.native.enter="initData" <el-input maxlength="50" v-model="msg.WeChatName" class="permiss-input w150" @keyup.native.enter="initData"
:placeholder="$t('pub.pleaseImport')"></el-input> :placeholder="$t('pub.pleaseImport')"></el-input>
</span> </span>
</li> </li>
...@@ -48,18 +32,18 @@ ...@@ -48,18 +32,18 @@
<button class="hollowFixedBtn" type="button" <button class="hollowFixedBtn" type="button"
@click="resetPageIndex(),initData()">{{$t('pub.searchBtn')}}</button> @click="resetPageIndex(),initData()">{{$t('pub.searchBtn')}}</button>
<button class="normalBtn" type="button" <button class="normalBtn" type="button"
@click="clearinputInfo(),outerVisible = true,dialogTitle=$t('objFill.v101.busManagement.tianjaigys')">{{$t('pub.addBtn')}}</button> @click="clearinputInfo(),outerVisible = true,dialogTitle=$t('objFill.v101.busManagement.driverManager')">{{$t('pub.addBtn')}}</button>
</li> </li>
</ul> </ul>
<el-dialog custom-class='addCompany' :title="dialogTitle" :visible.sync="outerVisible" center> <el-dialog custom-class='addCompany' :title="dialogTitle" :visible.sync="outerVisible" center>
<el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="100px"> <el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="100px">
<el-form-item :label="$t('hotel.suplier_name')" prop="Name"> <el-form-item :label="$t('objFill.v101.busManagement.driverName')">
<el-input type="text" class="w300" maxlength="50" v-model="addMsg.Name"></el-input> <el-input type="text" class="w300" maxlength="50" v-model="addMsg.Name"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="$t('hotel.table_tel')" p> <el-form-item :label="$t('objFill.v101.busManagement.driverMobile')" >
<el-input type="text" class="w300" maxlength="50" v-model="addMsg.Mobile"></el-input> <el-input type="text" class="w300" maxlength="50" v-model="addMsg.Mobile"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="$t('hotel.suplier_contact')"> <el-form-item :label="$t('objFill.v101.busManagement.driverWeChatName')">
<el-input type="text" class="w300" maxlength="50" v-model="addMsg.WeChatName"></el-input> <el-input type="text" class="w300" maxlength="50" v-model="addMsg.WeChatName"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -71,27 +55,29 @@ ...@@ -71,27 +55,29 @@
</el-dialog> </el-dialog>
</div> </div>
<div class="supplierList clearfix" v-loading="loading"> <div class="supplierList clearfix" v-loading="loading">
<div class="supList" v-for="item in tableList" :key="item.subCode"> <el-table ref="busSupplierDriver" :data="dataList" tooltip-effect="dark" style="width: 100%">
<div class="suTop"> <el-table-column prop="Name" :label="$t('objFill.v101.busManagement.driverName')"></el-table-column>
<img src="../../assets/img/suplier.jpg"> <el-table-column prop="Mobile" :label="$t('objFill.v101.busManagement.driverMobile')"></el-table-column>
<div class="topCircle">{{item.Number}}</div> <el-table-column prop="WeChatName" :label="$t('objFill.v101.busManagement.driverWeChatName')"></el-table-column>
</div> <el-table-column prop="SupplierName" :label="$t('hotel.suplier_name')"></el-table-column>
<div class="supTitle">{{item.Name}}</div> <el-table-column prop="CreateByName" :label="$t('active.cl_addPp')"></el-table-column>
<div class="telNumber">{{item.Mobile}}</div> <el-table-column prop="CreateTime" :label="$t('fnc.cjshijian')"></el-table-column>
<div class="Address"> <el-table-column prop="UpdateByName" :label="$t('objFill.v101.administrative.xiugairen')"></el-table-column>
<div v-show="item.WeChatName"> <el-table-column prop="UpdateTime" :label="$t('sm.xiugaishijian')"></el-table-column>
<i class="iconfont icon-img_dz"></i> <el-table-column :label="$t('system.table_operation')">
<el-tooltip class="item" effect="dark" :content="item.WeChatName" placement="top-start"> <template slot-scope="scope">
<div class="AddressInner">{{item.WeChatName}}</div> <el-tooltip class="item" effect="dark" :content="$t('pub.updateMsg')" placement="top">
<el-button type="primary" icon="el-icon-edit" circle
@click="outerVisible = true,dialogTitle=$t('objFill.v101.busManagement.driverManager'),updateInfo(scope.row.DetailsId)">
</el-button>
</el-tooltip> </el-tooltip>
</div> <el-tooltip class="item" effect="dark" :content="$t('pub.delete')" placement="top">
</div> <el-button type="danger" icon="el-icon-delete" @click='isdelete(scope.row)' circle>
<div class="updataBtn"> </el-button>
<button class="normalBtn UPBtn" </el-tooltip>
@click="outerVisible = true,dialogTitle=$t('objFill.v101.busManagement.xiugaigonys'),updateInfo(item.ID)">{{$t('pub.updateMsg')}}</button> </template>
<button class="hollowFixedBtn UPBtn" @click="isdelete(item)">{{$t('system.table_delete')}}</button> </el-table-column>
</div> </el-table>
</div>
</div> </div>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage" <el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size="this.msg.pageSize" :total="total"> layout="total,prev, pager, next, jumper" :page-size="this.msg.pageSize" :total="total">
...@@ -105,7 +91,7 @@ ...@@ -105,7 +91,7 @@
return { return {
total: 0, total: 0,
currentPage: 1, currentPage: 1,
tableList: "", dataList: [],
outerVisible: false, outerVisible: false,
loading: true, loading: true,
dialogTitle: "", dialogTitle: "",
...@@ -150,7 +136,7 @@ ...@@ -150,7 +136,7 @@
res => { res => {
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.tableList = res.data.data.pageData; this.dataList = res.data.data.pageData;
this.total = res.data.data.count; this.total = res.data.data.count;
} }
}, },
...@@ -198,6 +184,7 @@ ...@@ -198,6 +184,7 @@
); );
}, },
clearinputInfo() { clearinputInfo() {
this.addMsg.DetailsId = 0;
this.addMsg.Name = ""; this.addMsg.Name = "";
this.addMsg.Mobile = ""; this.addMsg.Mobile = "";
this.addMsg.WeChatName = ""; this.addMsg.WeChatName = "";
...@@ -244,4 +231,5 @@ ...@@ -244,4 +231,5 @@
this.initData(); this.initData();
} }
}; };
</script>
\ No newline at end of file </script>
...@@ -123,8 +123,7 @@ ...@@ -123,8 +123,7 @@
<button class="hollowFixedBtn UPBtn" @click="isdelete(item.ID)">{{$t('system.table_delete')}}</button> <button class="hollowFixedBtn UPBtn" @click="isdelete(item.ID)">{{$t('system.table_delete')}}</button>
<button class="hollowFixedBtn HS_financial" <button class="hollowFixedBtn HS_financial"
@click="AccountManage(item)">{{$t('visaT.Accountmanagement')}}</button> @click="AccountManage(item)">{{$t('visaT.Accountmanagement')}}</button>
<button class="hollowFixedBtn HS_financial" @click="goToDriver(item)">{{$t('objFill.v101.busManagement.driverManager')}}</button>
<!-- <button>司机管理</button> -->
</div> </div>
</div> </div>
</div> </div>
...@@ -189,6 +188,12 @@ ...@@ -189,6 +188,12 @@
}; };
}, },
methods: { methods: {
goToDriver(item) {
let params = {
SupplierId: item.ID,
}
this.OpenNewPage('/busDriver', params)
},
handleCurrentChange(val) { handleCurrentChange(val) {
this.msg.pageIndex = val; this.msg.pageIndex = val;
this.initData(); this.initData();
...@@ -377,4 +382,4 @@ ...@@ -377,4 +382,4 @@
} }
}; };
</script> </script>
\ No newline at end of file
...@@ -1535,8 +1535,7 @@ export default { ...@@ -1535,8 +1535,7 @@ export default {
meta: { meta: {
title: '餐厅套餐查询' title: '餐厅套餐查询'
}, },
}, }, ,
,
{ {
path: '/RestaurantPackage', //餐厅套餐查询 path: '/RestaurantPackage', //餐厅套餐查询
name: 'RestaurantPackage', name: 'RestaurantPackage',
...@@ -2222,6 +2221,14 @@ export default { ...@@ -2222,6 +2221,14 @@ export default {
meta: { meta: {
title: '车控供应商' title: '车控供应商'
}, },
},
{ //司机管理
path: '/busDriver',
name: 'busDriver',
component: resolve => require(['@/components/busManagement/busDriver'], resolve),
meta: {
title: '车控供应商'
},
}, { }, {
path: '/busArrangement', //派车安排 path: '/busArrangement', //派车安排
name: 'busArrangement', name: 'busArrangement',
...@@ -4217,8 +4224,7 @@ export default { ...@@ -4217,8 +4224,7 @@ export default {
meta: { meta: {
title: '费用摊销查询管理' title: '费用摊销查询管理'
}, },
} }, { //财务 财务单据 收款查询管理
, { //财务 财务单据 收款查询管理
path: '/RecPayQueryKM', path: '/RecPayQueryKM',
name: 'RecPayQueryKM', name: 'RecPayQueryKM',
component: resolve => require(['@/components/FinancialModule/RecPayQueryKM'], resolve), component: resolve => require(['@/components/FinancialModule/RecPayQueryKM'], resolve),
...@@ -6250,7 +6256,7 @@ export default { ...@@ -6250,7 +6256,7 @@ export default {
meta: { meta: {
title: '价格保密协议' title: '价格保密协议'
} }
},{ }, {
path: '/disclaimerProtocol', //老年人/孕妇参团免责 path: '/disclaimerProtocol', //老年人/孕妇参团免责
name: 'disclaimerProtocol', name: 'disclaimerProtocol',
component: resolve => require(['@/components/disclaimerProtocol'], resolve), component: resolve => require(['@/components/disclaimerProtocol'], resolve),
...@@ -6474,6 +6480,6 @@ export default { ...@@ -6474,6 +6480,6 @@ export default {
title: '财务批量打印页面' title: '财务批量打印页面'
}, },
} }
] ]
} }
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