|
|
|
@ -6,6 +6,11 @@
|
|
|
|
<div class="carousel-page-content">
|
|
|
|
<div class="carousel-page-content">
|
|
|
|
<div class="img-box">
|
|
|
|
<div class="img-box">
|
|
|
|
<ul>
|
|
|
|
<ul>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
<span >
|
|
|
|
|
|
|
|
{{streetName}}-{{this.direction == 1?"左":"右"}}-{{this.side == 1?"浅":"深"}}-{{row}}层-{{column}}列
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<li>
|
|
|
|
<span class="img-box-title">
|
|
|
|
<span class="img-box-title">
|
|
|
|
核对状态:
|
|
|
|
核对状态:
|
|
|
|
@ -69,13 +74,7 @@
|
|
|
|
>核对
|
|
|
|
>核对
|
|
|
|
</a-button>
|
|
|
|
</a-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- <div class="bottom-btn"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<a-button class="btn" @click="prev()"><上一个</a-button>
|
|
|
|
|
|
|
|
<p>{{checkObj.row}}行{{checkObj.column}}列</p>
|
|
|
|
|
|
|
|
<a-button class="btn" @click="next()">下一个>
|
|
|
|
|
|
|
|
</a-button>
|
|
|
|
|
|
|
|
</div> -->
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -94,23 +93,11 @@ import {imgUrl} from "@/api/importExcel";
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
listData: [],
|
|
|
|
|
|
|
|
scanAndCheck: {},
|
|
|
|
|
|
|
|
checkObj: {},
|
|
|
|
checkObj: {},
|
|
|
|
streetDetail: {},
|
|
|
|
|
|
|
|
checkList: {},
|
|
|
|
|
|
|
|
id: 0,
|
|
|
|
|
|
|
|
row: 1,
|
|
|
|
row: 1,
|
|
|
|
column: 1,
|
|
|
|
column: 1,
|
|
|
|
//当前货架行列总数
|
|
|
|
streetName: '',
|
|
|
|
rowCount: 0,
|
|
|
|
|
|
|
|
columnCount: 0,
|
|
|
|
|
|
|
|
selectName: '',
|
|
|
|
|
|
|
|
shelveId: '',
|
|
|
|
|
|
|
|
// 方向 左右
|
|
|
|
|
|
|
|
selectType: 'left',
|
|
|
|
|
|
|
|
// 内外货架
|
|
|
|
|
|
|
|
selectType2: '',
|
|
|
|
|
|
|
|
visible: false,
|
|
|
|
visible: false,
|
|
|
|
category: '',
|
|
|
|
category: '',
|
|
|
|
count: 0,
|
|
|
|
count: 0,
|
|
|
|
@ -161,19 +148,18 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
this.imgUrl = imgUrl
|
|
|
|
this.imgUrl = imgUrl
|
|
|
|
console.log(this.$route.query.id)
|
|
|
|
|
|
|
|
//this.getStreetList();
|
|
|
|
//this.getStreetList();
|
|
|
|
if (this.$route.query.row && this.$route.query.column && this.$route.query.shelveId && this.$route.query.id && this.$route.query.name) {
|
|
|
|
if (this.$route.query.row && this.$route.query.column && this.$route.query.direction && this.$route.query.side && this.$route.query.streetId) {
|
|
|
|
this.id = this.$route.query.id
|
|
|
|
this.id = this.$route.query.id
|
|
|
|
this.row = this.$route.query.row
|
|
|
|
this.row = this.$route.query.row
|
|
|
|
this.column = this.$route.query.column
|
|
|
|
this.column = this.$route.query.column
|
|
|
|
this.direction = this.$route.query.direction
|
|
|
|
this.direction = this.$route.query.direction
|
|
|
|
this.side = this.$route.query.side
|
|
|
|
this.side = this.$route.query.side
|
|
|
|
this.streetId = this.$route.query.streetId
|
|
|
|
this.streetId = this.$route.query.streetId
|
|
|
|
this.selectName = this.$route.query.name
|
|
|
|
this.streetName = this.$route.query.name
|
|
|
|
this.selectType = this.$route.query.type
|
|
|
|
|
|
|
|
this.selectType2 = this.$route.query.type2
|
|
|
|
this.getStockInfo(this.row, this.column);
|
|
|
|
this.getStockInfo(this.row, this.column, this.shelveId);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
|
@ -186,19 +172,16 @@ export default {
|
|
|
|
Model
|
|
|
|
Model
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
//获取总行列数
|
|
|
|
|
|
|
|
getRowColumnCounts(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.updateShleveAndRowColumnCount(this.selectType)
|
|
|
|
|
|
|
|
if(this.streetDetail){}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
//获取复核页面的核对信息
|
|
|
|
//获取复核页面的核对信息
|
|
|
|
getStockInfo(row, column, shelveId) {
|
|
|
|
getStockInfo(row, column) {
|
|
|
|
this.$api.httpApi.getStockInfo({
|
|
|
|
this.$api.httpApi.getStockInfo({
|
|
|
|
data: {
|
|
|
|
data: {
|
|
|
|
row: Number(row),
|
|
|
|
row: Number(row),
|
|
|
|
column: Number(column),
|
|
|
|
column: Number(column),
|
|
|
|
shelveId: shelveId,
|
|
|
|
direction: this.direction,
|
|
|
|
|
|
|
|
side: this.side,
|
|
|
|
|
|
|
|
streetId: this.streetId,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).then(res => {
|
|
|
|
}).then(res => {
|
|
|
|
if (res.data) {
|
|
|
|
if (res.data) {
|
|
|
|
@ -216,65 +199,9 @@ export default {
|
|
|
|
this.id = value
|
|
|
|
this.id = value
|
|
|
|
this.row = 1
|
|
|
|
this.row = 1
|
|
|
|
this.column = 1
|
|
|
|
this.column = 1
|
|
|
|
|
|
|
|
this.getStockInfo(1, 1)
|
|
|
|
this.getStreetList()
|
|
|
|
|
|
|
|
for (var i = 0; i < this.listData.length; i++) {
|
|
|
|
|
|
|
|
if (this.listData[i].id == value) {
|
|
|
|
|
|
|
|
if (this.listData[i].leftShelveId) {
|
|
|
|
|
|
|
|
this.shelveId = this.listData[i].leftShelveId
|
|
|
|
|
|
|
|
this.selectType = 'left'
|
|
|
|
|
|
|
|
this.selectType2 = 'none'
|
|
|
|
|
|
|
|
this.rowCount = this.listData[i].leftRow
|
|
|
|
|
|
|
|
this.columnCount = this.listData[i].leftColumn
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else if (this.listData[i].leftInsideShelveId) {
|
|
|
|
|
|
|
|
this.shelveId = this.listData[i].leftInsideShelveId
|
|
|
|
|
|
|
|
this.selectType = 'left'
|
|
|
|
|
|
|
|
this.selectType2 = 'inside'
|
|
|
|
|
|
|
|
this.rowCount = this.listData[i].leftRow
|
|
|
|
|
|
|
|
this.columnCount = this.listData[i].leftColumn
|
|
|
|
|
|
|
|
} else if (this.listData[i].leftOutsideShelveId) {
|
|
|
|
|
|
|
|
this.shelveId = this.listData[i].leftOutsideShelveId
|
|
|
|
|
|
|
|
this.selectType = 'left'
|
|
|
|
|
|
|
|
this.selectType2 = 'out'
|
|
|
|
|
|
|
|
this.rowCount = this.listData[i].leftRow
|
|
|
|
|
|
|
|
this.columnCount = this.listData[i].leftColumn
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.getStockInfo(1, 1, this.shelveId)
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
prev() {
|
|
|
|
|
|
|
|
if(this.column > 1){
|
|
|
|
|
|
|
|
this.column = this.column - 1
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
if(this.row > 1){
|
|
|
|
|
|
|
|
this.row = this.row - 1
|
|
|
|
|
|
|
|
this.column = this.columnCount
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
this.row = this.rowCount
|
|
|
|
|
|
|
|
this.column = this.columnCount
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.getStockInfo(this.row,this.column,this.shelveId)
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
next() {
|
|
|
|
|
|
|
|
if(this.column < this.columnCount){
|
|
|
|
|
|
|
|
this.column = this.column + 1
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
//最大列了 row+1
|
|
|
|
|
|
|
|
if(this.row < this.rowCount){
|
|
|
|
|
|
|
|
this.row = this.row + 1
|
|
|
|
|
|
|
|
this.column = 1
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
this.row = 1
|
|
|
|
|
|
|
|
this.column = 1
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.getStockInfo(this.row,this.column,this.shelveId)
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
checkSure(row, column, shelveId, index) {
|
|
|
|
checkSure(row, column, shelveId, index) {
|
|
|
|
this.$api.httpApi.stockCheckCorrect({
|
|
|
|
this.$api.httpApi.stockCheckCorrect({
|
|
|
|
data: {
|
|
|
|
data: {
|
|
|
|
@ -285,7 +212,7 @@ export default {
|
|
|
|
}).then(res => {
|
|
|
|
}).then(res => {
|
|
|
|
if (res.code == 200) {
|
|
|
|
if (res.code == 200) {
|
|
|
|
this.$message.success('操作成功');
|
|
|
|
this.$message.success('操作成功');
|
|
|
|
this.getStockInfo(this.row,this.column,this.shelveId)
|
|
|
|
this.getStockInfo(this.row,this.column)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}).catch(err => {
|
|
|
|
}).catch(err => {
|
|
|
|
|