Commit dbe2f9d7 by 肖康

x

parent 14ac325b
<template> <template>
<div id="app"> <div id="app">
<keep-alive exclude="index,listDetail,inquireDetail"> <keep-alive >
<router-view class="router-view"></router-view> <router-view class="router-view"></router-view>
</keep-alive> </keep-alive>
</div> </div>
......
...@@ -65,6 +65,7 @@ ...@@ -65,6 +65,7 @@
<el-menu-item-group> <el-menu-item-group>
<el-menu-item :index="'/inquire'">询价管理</el-menu-item> <el-menu-item :index="'/inquire'">询价管理</el-menu-item>
<el-menu-item :index="'/quote'">报价管理</el-menu-item> <el-menu-item :index="'/quote'">报价管理</el-menu-item>
<el-menu-item :index="'/inquire/detail'" style="display:none">报价详情</el-menu-item>
</el-menu-item-group> </el-menu-item-group>
</el-submenu> </el-submenu>
<el-submenu index="3"> <el-submenu index="3">
...@@ -75,6 +76,7 @@ ...@@ -75,6 +76,7 @@
<el-menu-item-group> <el-menu-item-group>
<el-menu-item :index="'/list'">库存列表</el-menu-item> <el-menu-item :index="'/list'">库存列表</el-menu-item>
<el-menu-item :index="'/enter'">库存导入</el-menu-item> <el-menu-item :index="'/enter'">库存导入</el-menu-item>
<el-menu-item :index="'/listDetail'" style="display:none">导入详情</el-menu-item>
</el-menu-item-group> </el-menu-item-group>
</el-submenu> </el-submenu>
<el-submenu index="4"> <el-submenu index="4">
...@@ -191,6 +193,7 @@ ...@@ -191,6 +193,7 @@
isIndexTab: true, isIndexTab: true,
tabSure: "", tabSure: "",
tabs: "", tabs: "",
width:"",
dialogVisible: false, dialogVisible: false,
ruleForm: { ruleForm: {
old_password: '', old_password: '',
...@@ -218,6 +221,7 @@ ...@@ -218,6 +221,7 @@
}, },
watch: { watch: {
$route(to, from) { $route(to, from) {
let tab_arr = sessionStorage.getItem('tabs') let tab_arr = sessionStorage.getItem('tabs')
if (tab_arr) { if (tab_arr) {
this.tabs = JSON.parse(tab_arr); this.tabs = JSON.parse(tab_arr);
...@@ -266,10 +270,10 @@ ...@@ -266,10 +270,10 @@
if (lk == "/") { if (lk == "/") {
this.tabSure = 1 this.tabSure = 1
} }
if (lk == "/inquire" || lk == "/quote") { if (lk == "/inquire" || lk == "/quote"||lk=='/inquire/detail') {
this.tabSure = 2 this.tabSure = 2
} }
if (lk == "/list" || lk == "/enter") { if (lk == "/list" || lk == "/enter"||lk=='/listDetail') {
this.tabSure = 3 this.tabSure = 3
} }
if (lk == "/goods" || lk == "/brand") { if (lk == "/goods" || lk == "/brand") {
......
...@@ -74,7 +74,7 @@ const routes = [ ...@@ -74,7 +74,7 @@ const routes = [
path: '/listDetail', path: '/listDetail',
name: 'ListDetail', name: 'ListDetail',
meta: { meta: {
title: '库存导入详情' title: '导入详情'
}, },
component: ListDetail component: ListDetail
......
...@@ -590,7 +590,7 @@ ...@@ -590,7 +590,7 @@
if (res.err_code == 0) { if (res.err_code == 0) {
var arrlist_ = res.data || []; var arrlist_ = res.data || [];
this.brandList = []; this.brandList = [];
this.ruleForm.brand = ""; //this.ruleForm.brand = "";
for (var i = 0; i < arrlist_.length; i++) { for (var i = 0; i < arrlist_.length; i++) {
this.brandList.push({ this.brandList.push({
value: arrlist_[i]['brand_name'], value: arrlist_[i]['brand_name'],
......
...@@ -15,12 +15,12 @@ ...@@ -15,12 +15,12 @@
<el-table :data="tableData" border style="width: 100%"> <el-table :data="tableData" border style="width: 100%">
<el-table-column fixed prop="item_id" label="ID" width="75"> <el-table-column fixed prop="item_id" label="ID" width="75">
</el-table-column> </el-table-column>
<el-table-column prop="status" fixed label="状态" width="75"> <el-table-column prop="status" fixed label="状态" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.status==1" class="f-green">待处理</span> <span v-if="scope.row.status==1" class="f-green">审核前失败</span>
<span v-else-if="scope.row.status==2" class="f-yellow1">处理中</span> <span v-else-if="scope.row.status==2" class="f-yellow1">待审核</span>
<span v-else-if="scope.row.status==3">已处理</span> <span v-else-if="scope.row.status==3">审核通过</span>
<span v-else-if="scope.row.status==4" class="f-red1">其他失败</span> <span v-else-if="scope.row.status==4" class="f-red1">审核未通过</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column fixed prop="goods_sn" label="供应商内部型号编码" width="180"> <el-table-column fixed prop="goods_sn" label="供应商内部型号编码" width="180">
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
Vue.prototype.$message=Message Vue.prototype.$message=Message
Vue.use(Pagination).use(TableColumn).use(Table) Vue.use(Pagination).use(TableColumn).use(Table)
export default { export default {
name: "listDetail", name: "ListDetail",
data() { data() {
return { return {
...@@ -96,12 +96,20 @@ ...@@ -96,12 +96,20 @@
maxPrice: [] maxPrice: []
}; };
}, },
watch: {}, watch: {
$route(to, from) {
if(to.path==from.path){
this.getInfo()
this.getList()
}
}
},
created() { created() {
this.getInfo() this.getInfo()
this.getList() this.getList()
}, },
computed: {}, computed: {},
methods: { methods: {
getInfo() { getInfo() {
this.$http('get', "/api/uploadSku/info", { this.$http('get', "/api/uploadSku/info", {
......
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="http://yunxin.liexindev.net/favicon.ico"> <link rel="icon" href="http://yunxin.liexindev.net/favicon.ico">
<title>cloudsystem</title> <title>cloudsystem</title>
<link href="http://yunxin.liexindev.net/js/0.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/1.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/10.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/11.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/12.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/13.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/14.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/15.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/16.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/17.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/18.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/19.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/2.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/20.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/21.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/22.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/23.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/24.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/25.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/3.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/4.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/5.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/6.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/7.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/8.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/9.js" rel="prefetch"><link href="http://yunxin.liexindev.net/app.a73382ccd74a95c29f80.js" rel="preload" as="script"></head> <link href="http://yunxin.liexindev.net/js/0.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/1.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/10.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/11.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/12.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/13.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/14.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/15.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/16.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/17.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/18.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/19.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/2.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/20.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/21.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/22.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/23.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/24.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/25.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/3.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/4.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/5.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/6.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/7.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/8.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/9.js" rel="prefetch"><link href="http://yunxin.liexindev.net/app.6fc3967792186e42811d.js" rel="preload" as="script"></head>
<body> <body>
<noscript> <noscript>
<strong>网络异常,请稍后加载</strong> <strong>网络异常,请稍后加载</strong>
</noscript> </noscript>
<div id="app"></div> <div id="app"></div>
<!-- built files will be auto injected --> <!-- built files will be auto injected -->
<script type="text/javascript" src="http://yunxin.liexindev.net/app.a73382ccd74a95c29f80.js"></script></body> <script type="text/javascript" src="http://yunxin.liexindev.net/app.6fc3967792186e42811d.js"></script></body>
</html> </html>
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 sign in to comment