Commit b117b54f authored by zhangdy's avatar zhangdy

物流配置

parent f040f186
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
// import VueRouter from 'vue-router' // import VueRouter from 'vue-router'
// import 'vueConfig' // import 'vueConfig'
import warehouseConfiguration from './warehouseConfiguration' import warehouseConfiguration from './warehouseConfiguration'
import logisticsConfiguration from './logisticsConfiguration'
const login = resolve => require(['@/views/Login'], resolve); const login = resolve => require(['@/views/Login'], resolve);
import index from './index/index' import index from './index/index'
// const parent = resolve => require(['@/components/parent'], resolve);//子页面 // const parent = resolve => require(['@/components/parent'], resolve);//子页面
...@@ -25,7 +26,7 @@ const routes = [{ // 404 ...@@ -25,7 +26,7 @@ const routes = [{ // 404
// redirect: '/', // redirect: '/',
name: 'home', name: 'home',
component: Home, component: Home,
children: [].concat(index,warehouseConfiguration) children: [].concat(index,warehouseConfiguration,logisticsConfiguration)
}, },
].reverse(); ].reverse();
export const router = new VueRouter({ export const router = new VueRouter({
......
const companyChannels = resolve => require(['@/views/logisticsConfiguration/companyChannels'], resolve);
export default [
{
path: '/logisticsConfiguration/companyChannels',
name: 'companyChannels',
component: companyChannels,
meta: {
title: '公司物流渠道'
}
}
]
<template>
<el-col :span="24" class="mw">
<div class="content-include">
<div class="content-title">发货仓库配置>发货仓库</div>
<div class="df">
<div class="pct50">
<div class="search-input">
<el-form :inline="true" :model="queryParams" class="demo-form-inline">
<el-form-item label="仓库编码:">
<el-input v-model="queryParams.batchCode" clearable size="mini" placeholder="批次编码"
@change="searchClick" @keyup.enter.native="getPage"/>
</el-form-item>
<el-form-item label="仓库名字:">
<el-input v-model="queryParams.importAccount" clearable size="mini" placeholder="导入账号"
@change="searchClick" @keyup.enter.native="getPage"/>
</el-form-item>
<el-button type="primary" size="mini" @click="getPage" class="mt7 mr15 r mb10">
查询
</el-button>
</el-form>
</div>
<div class="pl15 mt10">
<el-button type="primary" size="mini" class="mb10" @click="importPlatformBill">+ 新建
</el-button>
</div>
<el-table ref="multipleTable" :data="importTableData" class="pl15 mb47"
@selection-change="importTableDataSelectionChange" :height="tableMaxHeight">
<el-table-column type="selection" align="center"/>
<el-table-column prop="createAccount" label="仓库名称"/>
<el-table-column prop="createDate" label="仓库地址信息"/>
<el-table-column prop="batchCode" label="状态" sortable/>
<el-table-column label="操作">
<template slot-scope="scope">
<span class="poi textButton" @click="searchDetail(scope.row)">编辑</span>
<span class="poi textColor"
@click="fileDownload(scope.row.fileUrl, scope.row.fileName)">删除成功</span>
<span class="poi textColor" @click="delFile(scope.row.id, scope.row.importStatus)">应用</span>
</template>
</el-table-column>
</el-table>
</div>
<div class="pct50">
<div class="search-input">
<el-form :inline="true" :model="queryParams" class="demo-form-inline">
<el-form-item label="仓库编码:">
<el-input v-model="queryParams.batchCode" clearable size="mini" placeholder="批次编码"
@change="searchClick" @keyup.enter.native="getPage"/>
</el-form-item>
<el-form-item label="仓库名字:">
<el-input v-model="queryParams.importAccount" clearable size="mini" placeholder="导入账号"
@change="searchClick" @keyup.enter.native="getPage"/>
</el-form-item>
<el-button type="primary" size="mini" @click="getPage" class="mt7 mr15 r mb10">
查询
</el-button>
</el-form>
</div>
<div class="pl15 mt10">
<el-button type="primary" size="mini" class="mb10" @click="importPlatformBill">+ 新建
</el-button>
</div>
<el-table ref="multipleTable2" :data="importTableData" class="pl15 mb47"
@selection-change="importTableDataSelectionChange" :height="tableMaxHeight">
<el-table-column type="selection" align="center"/>
<el-table-column prop="createAccount" label="仓库名称"/>
<el-table-column prop="createDate" label="仓库地址信息"/>
<el-table-column prop="timeCode" label="仓库编码"/>
<el-table-column prop="batchCode" label="状态" sortable/>
<el-table-column prop="agentCode" label="更新时间" sortable/>
<el-table-column label="操作">
<template slot-scope="scope">
<span class="poi textButton" @click="searchDetail(scope.row)">编辑</span>
<span class="poi textColor"
@click="fileDownload(scope.row.fileUrl, scope.row.fileName)">删除成功</span>
<span class="poi textColor" @click="delFile(scope.row.id, scope.row.importStatus)">应用</span>
</template>
</el-table-column>
</el-table>
</div>
</div>
</div>
<el-col :span="24">
<div class="ceiling-pagination">
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="queryParams.currentPage"
:page-sizes="[30, 50, 100]"
:page-size="queryParams.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="queryParams.total"
style="float:right;display:inline-block"
/>
</div>
</el-col>
</el-col>
</template>
<script>
export default {
data() {
return {
table: true,
queryParams: {
batchCode: '',
importAccount: '',
timeCode: '',
authCode: '',
feeType: '',
feeTypeList: [],
fileName: '',
importStatus: '',
importStatusList: [],
syncStatus: '',
syncStatusList: [],
orderId: '',
sourceId: '',
currentPage: 1,
pageSize: 30,
total: 0,
isPage: true
},
total: 0,
tableData: [],
importTableData: [],
importRecordData: [],
importTableDataSelectionLength: 0,
tableMaxHeight: window.innerHeight - 263,
}
},
methods: {
},
mounted() {
window.onresize = () => {
return (() => {
that.tableMaxHeight = window.innerHeight - 263
})();
}
},
activated() {
this.tableMaxHeight = window.innerHeight - 263;
},
}
</script>
<style scoped lang="less">
.el-drawer__body {
.el-pagination {
margin-right: 0px
}
}
.textButton {
color: #4E74FC;
}
.textColor {
color: #555555;
}
.el-table th.gutter {
display: table-cell !important;
}
.test {
margin-top: 14px;
}
.f13 {
font-size: 13px;
font-weight: normal;
}
.el-table th > .cell {
display: inline-block;
-webkit-box-sizing: border-box;
box-sizing: border-box;
position: relative;
vertical-align: middle;
padding-right: 10px;
width: 100%;
}
.show-overflow {
max-width: 100px;
overflow: hidden;
text-overflow: ellipsis;
word-break: break-all;
}
.errorRow {
color: #F56C6C;
}
.very-long-font {
font-size: 12px;
display: -webkit-box;
text-overflow: ellipsis;
overflow: hidden;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
}
.pl0 {
padding-left: 0;
}
.pt0 {
padding-top: 0;
}
.has-choose{
height: 25px;
border: 1px solid #4E74FC;
background:rgb(224, 244, 255);
border-radius: 4px;
line-height: 25px;
}
</style>
...@@ -32,6 +32,15 @@ const state = { ...@@ -32,6 +32,15 @@ const state = {
{path: '/warehouseConfiguration/shipperInformation', name: '发件人信息'}, {path: '/warehouseConfiguration/shipperInformation', name: '发件人信息'},
] ]
}, },
{
path: '/',
name: '物流配置',
iconCls: 'el-icon-notebook-1',
leaf: false,
children: [
{path: '/logisticsConfiguration/companyChannels', name: '公司物流渠道'},
]
},
] ]
}; };
const getters = { const getters = {
......
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