merge-requests/1/head
qiushui 4 years ago
parent e28ef3e027
commit a5c9dd6a36

@ -23,7 +23,7 @@
</a-layout> </a-layout>
<a-layout-footer> <a-layout-footer>
<!-- <a-tabs default-active-key="1" tab-position="bottom" @change="value => select.row = value" v-if="total.row > nums.row"> --> <!-- <a-tabs default-active-key="1" tab-position="bottom" @change="value => select.row = value" v-if="total.row > nums.row"> -->
<a-tabs default-active-key="1" tab-position="bottom" @onchange="changeTab" @change="value => select.row = value" v-if="total.row > nums.row"> <a-tabs default-active-key="1" tab-position="bottom" @onChange="changeTab" @change="value => select.row = value" v-if="total.row > nums.row">
<a-tab-pane <a-tab-pane
v-for="index in latticeRow" v-for="index in latticeRow"
:key="index" :key="index"
@ -71,8 +71,8 @@ export default {
} }
} }
}, },
stockInfo: { shelveId: {
type: Object, type: String,
default: () => { default: () => {
return {} return {}
} }
@ -94,13 +94,13 @@ export default {
column: this.getRandomColumn(this.select.column), column: this.getRandomColumn(this.select.column),
} }
}, },
watchStockInfo() { watchShelveIdInfo() {
return JSON.stringify(this.stockInfo); return this.shelveId;
} }
}, },
watch: { watch: {
watchStockInfo() { watchShelveIdInfo() {
this.getStatus(); //this.getStatus();
} }
}, },
data() { data() {
@ -115,7 +115,7 @@ export default {
}, },
created() { created() {
this.getStatus(); //this.getStatus();
}, },
destroyed() { destroyed() {
}, },

@ -48,7 +48,7 @@
</div> </div>
<div class="check-content" v-for="item in data" :key="item.id"> <div class="check-content" v-for="item in data" :key="item.id">
<subsection v-if="item.id == select" :total="{row: item.leftRow, column: item.leftColumn}" :stockInfo="stockInfo.left"> <subsection v-if="item.id == select" :total="{row: item.leftRow, column: item.leftColumn}" :shelveId="leftShelveId.shelveId">
<template v-slot="scope"> <template v-slot="scope">
<div class="roadway-top"> <div class="roadway-top">
<div class="roadway-box"> <div class="roadway-box">
@ -91,7 +91,7 @@
</div> </div>
<div class="check-content" v-for="item in data" :key="item.name"> <div class="check-content" v-for="item in data" :key="item.name">
<subsection v-if="item.id == select" :total="{row:item.leftRow, column: item.leftColumn}" :stockInfo="stockInfo.right"> <subsection v-if="item.id == select" :total="{row:item.leftRow, column: item.leftColumn}" :shelveId="rightShelveId.shelveId">
<template v-slot="scope"> <template v-slot="scope">
<div class="roadway-buttom"> <div class="roadway-buttom">
<div class="roadway-box"> <div class="roadway-box">
@ -266,8 +266,7 @@ export default {
// }); // });
// }, // },
handleChange(value) { handleChange(value) {
console.error('handleChange');
console.log(value)
this.select = value this.select = value
this.getStreetDetail(value) this.getStreetDetail(value)
//this.getStockList(value); //this.getStockList(value);

Loading…
Cancel
Save