|
|
|
@ -1,23 +1,28 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div class="checkOperation">
|
|
|
|
<div class="checkOperation">
|
|
|
|
<div class="topMenu">
|
|
|
|
<div class="topMenu">
|
|
|
|
<a-select default-value="lucy" style="width: 160px;margin-right:25px">
|
|
|
|
<a-select v-if="listData[0]"
|
|
|
|
<a-select-option value="jack">
|
|
|
|
:default-value="selectName"
|
|
|
|
巷道一
|
|
|
|
style="width:160px;margin-right:25px"
|
|
|
|
</a-select-option>
|
|
|
|
@change="handleChange"
|
|
|
|
<a-select-option value="lucy">
|
|
|
|
class="select-roadway">
|
|
|
|
巷道二
|
|
|
|
<a-select-option v-for="i in listData" :key="i.name" :value="i.id">
|
|
|
|
|
|
|
|
{{i.name}}
|
|
|
|
</a-select-option>
|
|
|
|
</a-select-option>
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
|
<a-select default-value="a" style="width: 160px;margin-right:25px">
|
|
|
|
|
|
|
|
<a-select-option value="a">
|
|
|
|
<a-select
|
|
|
|
|
|
|
|
@change="handleTypeChange"
|
|
|
|
|
|
|
|
style="width: 160px;margin-right:25px"
|
|
|
|
|
|
|
|
:value="selectType">
|
|
|
|
|
|
|
|
<a-select-option value="left">
|
|
|
|
左货架
|
|
|
|
左货架
|
|
|
|
</a-select-option>
|
|
|
|
</a-select-option>
|
|
|
|
<a-select-option value="b">
|
|
|
|
<a-select-option value="right">
|
|
|
|
右货架
|
|
|
|
右货架
|
|
|
|
</a-select-option>
|
|
|
|
</a-select-option>
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
|
<a-select default-value="c" style="width: 160px">
|
|
|
|
<a-select default-value="c" style="width: 160px" v-if="!checkObj.shelveId">
|
|
|
|
<a-select-option value="c">
|
|
|
|
<a-select-option value="c">
|
|
|
|
外
|
|
|
|
外
|
|
|
|
</a-select-option>
|
|
|
|
</a-select-option>
|
|
|
|
@ -26,10 +31,8 @@
|
|
|
|
</a-select-option>
|
|
|
|
</a-select-option>
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="carousel-box">
|
|
|
|
|
|
|
|
<a-carousel class="carousel" ref="carousel">
|
|
|
|
|
|
|
|
<div class="carousel-page">
|
|
|
|
<div class="carousel-page">
|
|
|
|
<p class="carousel-page-title">工单号:223333331123213</p>
|
|
|
|
<p class="carousel-page-title">工单号:{{checkObj.orderNum}}</p>
|
|
|
|
<div class="carousel-page-content">
|
|
|
|
<div class="carousel-page-content">
|
|
|
|
<div class="img-box">
|
|
|
|
<div class="img-box">
|
|
|
|
<img
|
|
|
|
<img
|
|
|
|
@ -46,104 +49,177 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="carousel-page-footer">
|
|
|
|
<div class="carousel-page-footer">
|
|
|
|
<div class="info-box">
|
|
|
|
<div class="info-box">
|
|
|
|
<p>系统登记品规:xxxsxxxx</p>
|
|
|
|
<p>系统登记品规:{{checkObj.category}}</p>
|
|
|
|
<p>系统登记数量:23021</p>
|
|
|
|
<p>系统登记数量:{{checkObj.count}}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="status">
|
|
|
|
<div class="status" v-if="checkObj.status == 0">
|
|
|
|
未核对
|
|
|
|
未核对
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="status-btn">
|
|
|
|
<div class="status" v-if="checkObj.status == 1">
|
|
|
|
<a-button class="btn" type="danger">人工复核</a-button>
|
|
|
|
已核对:<span style="color: #1afa29;">核对正确</span>
|
|
|
|
<a-button class="btn" type="primary" style="background:#29c12b;border-color:#29c12b;">核对正确
|
|
|
|
|
|
|
|
</a-button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!--2-->
|
|
|
|
|
|
|
|
<div class="carousel-page">
|
|
|
|
|
|
|
|
<p class="carousel-page-title">工单号:223333331123213</p>
|
|
|
|
|
|
|
|
<div class="carousel-page-content">
|
|
|
|
|
|
|
|
<div class="img-box">
|
|
|
|
|
|
|
|
<img
|
|
|
|
|
|
|
|
src="https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1520587439,1746635941&fm=26&gp=0.jpg"
|
|
|
|
|
|
|
|
alt="">
|
|
|
|
|
|
|
|
<p>操作前照片</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="img-box">
|
|
|
|
|
|
|
|
<img
|
|
|
|
|
|
|
|
src="https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=274465270,4254987731&fm=26&gp=0.jpg"
|
|
|
|
|
|
|
|
alt="">
|
|
|
|
|
|
|
|
<p>操作后照片</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="carousel-page-footer">
|
|
|
|
<div class="status" v-if="checkObj.status == 2">
|
|
|
|
<div class="info-box">
|
|
|
|
已核对:<span style="color: #d81e06;">核对错误</span>
|
|
|
|
<p>系统登记品规:xxxsxxxx</p>
|
|
|
|
|
|
|
|
<p>系统登记数量:23021</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="status">
|
|
|
|
|
|
|
|
未核对
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="status-btn">
|
|
|
|
<div class="status-btn">
|
|
|
|
<a-button class="btn" type="danger">人工复核</a-button>
|
|
|
|
<a-button class="btn" type="danger">核对错误</a-button>
|
|
|
|
<a-button class="btn" type="primary" style="background:#29c12b;border-color:#29c12b;">核对正确
|
|
|
|
<a-button class="btn" type="primary" style="background:#29c12b;border-color:#29c12b;">核对正确
|
|
|
|
</a-button>
|
|
|
|
</a-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!--3-->
|
|
|
|
<div v-for="(key,value) in checkList" :key="value">
|
|
|
|
<div class="carousel-page">
|
|
|
|
|
|
|
|
<p class="carousel-page-title">工单号:223333331123213</p>
|
|
|
|
<div v-if="checkObj.shelveId == value">
|
|
|
|
<div class="carousel-page-content">
|
|
|
|
<!--{{value}}{{key}}-->
|
|
|
|
<div class="img-box">
|
|
|
|
<div v-for="(columnItem,index) in key" :key="index">
|
|
|
|
<img
|
|
|
|
|
|
|
|
src="https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1520587439,1746635941&fm=26&gp=0.jpg"
|
|
|
|
<div class="bottom-btn"
|
|
|
|
alt="">
|
|
|
|
v-if="columnItem.row == checkObj.row && columnItem.column == checkObj.column">
|
|
|
|
<p>操作前照片</p>
|
|
|
|
<a-button class="btn" @click="prev(index > 0 ? index : 0)"><上一个</a-button>
|
|
|
|
</div>
|
|
|
|
<p>{{checkObj.row}}行{{checkObj.column}}列</p>
|
|
|
|
<div class="img-box">
|
|
|
|
<a-button class="btn" @click="next(index<=key.length ? index :index=key.length-1)">下一个>
|
|
|
|
<img
|
|
|
|
|
|
|
|
src="https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=274465270,4254987731&fm=26&gp=0.jpg"
|
|
|
|
|
|
|
|
alt="">
|
|
|
|
|
|
|
|
<p>操作后照片</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="carousel-page-footer">
|
|
|
|
|
|
|
|
<div class="info-box">
|
|
|
|
|
|
|
|
<p>系统登记品规:xxxsxxxx</p>
|
|
|
|
|
|
|
|
<p>系统登记数量:23021</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="status">
|
|
|
|
|
|
|
|
未核对
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="status-btn">
|
|
|
|
|
|
|
|
<a-button class="btn" type="danger">人工复核</a-button>
|
|
|
|
|
|
|
|
<a-button class="btn" type="primary" style="background:#29c12b;border-color:#29c12b;">核对正确
|
|
|
|
|
|
|
|
</a-button>
|
|
|
|
</a-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a-carousel>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="bottom-btn">
|
|
|
|
|
|
|
|
<a-button class="btn" @click="prev()"><上一个</a-button>
|
|
|
|
|
|
|
|
<p>6行3列</p>
|
|
|
|
|
|
|
|
<a-button class="btn" @click="next()">下一个></a-button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {}
|
|
|
|
return {
|
|
|
|
|
|
|
|
listData: [],
|
|
|
|
|
|
|
|
checkObj: {},
|
|
|
|
|
|
|
|
streetDetail: {},
|
|
|
|
|
|
|
|
checkList: [],
|
|
|
|
|
|
|
|
id: 0,
|
|
|
|
|
|
|
|
selectName: '',
|
|
|
|
|
|
|
|
shelveId: '',
|
|
|
|
|
|
|
|
selectType: ''
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
created() {
|
|
|
|
|
|
|
|
this.checkObj = this.$route.query.checkObj
|
|
|
|
|
|
|
|
this.streetDetail = this.$route.query.item
|
|
|
|
|
|
|
|
this.id = this.$route.query.item.id
|
|
|
|
|
|
|
|
this.selectName = this.$route.query.item.name
|
|
|
|
|
|
|
|
console.log(this.checkObj)
|
|
|
|
|
|
|
|
if (this.checkObj.shelveId == this.streetDetail.leftShelveId) {
|
|
|
|
|
|
|
|
this.selectType = 'left'
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.selectType = 'right'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
|
|
|
|
this.getStreetList()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
prev() {
|
|
|
|
//获取巷道列表
|
|
|
|
this.$refs.carousel.prev();
|
|
|
|
getStreetList(id) {
|
|
|
|
|
|
|
|
this.$api.httpApi.getStreetList({
|
|
|
|
|
|
|
|
data: {
|
|
|
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
|
|
|
pageSize: 50,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}).then(res => {
|
|
|
|
|
|
|
|
this.listData = res.data.list;
|
|
|
|
|
|
|
|
console.log(this.listData)
|
|
|
|
|
|
|
|
this.select = this.id
|
|
|
|
|
|
|
|
this.getStreetDetail(this.id)
|
|
|
|
|
|
|
|
this.getStockList(this.id)
|
|
|
|
|
|
|
|
}).catch(err => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
//获取巷道详情
|
|
|
|
|
|
|
|
getStreetDetail(id) {
|
|
|
|
|
|
|
|
this.$axios.get('/street/' + id, {
|
|
|
|
|
|
|
|
data: {}
|
|
|
|
|
|
|
|
}).then(res => {
|
|
|
|
|
|
|
|
this.streetDetail = res.data
|
|
|
|
|
|
|
|
console.log(this.streetDetail)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}).catch(err => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
//获取盘点列表
|
|
|
|
|
|
|
|
getStockList(streetId) {
|
|
|
|
|
|
|
|
this.$api.httpApi.getStockList({
|
|
|
|
|
|
|
|
params: {
|
|
|
|
|
|
|
|
streetId: streetId,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}).then(res => {
|
|
|
|
|
|
|
|
this.checkList = res.data
|
|
|
|
|
|
|
|
}).catch(err => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
next() {
|
|
|
|
//获取复核页面的核对信息
|
|
|
|
this.$refs.carousel.next();
|
|
|
|
getStockInfo(row, column, shelveId) {
|
|
|
|
|
|
|
|
this.$api.httpApi.getStockInfo({
|
|
|
|
|
|
|
|
data: {
|
|
|
|
|
|
|
|
row: Number(row),
|
|
|
|
|
|
|
|
column: Number(column),
|
|
|
|
|
|
|
|
shelveId: shelveId,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}).then(res => {
|
|
|
|
|
|
|
|
this.checkObj = res.data
|
|
|
|
|
|
|
|
this.shelveId = res.data.shelveId
|
|
|
|
|
|
|
|
}).catch(err => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
handleChange(value) {
|
|
|
|
|
|
|
|
console.log(value)
|
|
|
|
|
|
|
|
this.select = value
|
|
|
|
|
|
|
|
this.id = value
|
|
|
|
|
|
|
|
this.getStreetList()
|
|
|
|
|
|
|
|
for (var i = 0; i < this.listData.length; i++) {
|
|
|
|
|
|
|
|
console.log(this.listData[i])
|
|
|
|
|
|
|
|
if (this.listData[i].id == value) {
|
|
|
|
|
|
|
|
this.shelveId = this.listData[i].leftShelveId
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.selectType = 'left'
|
|
|
|
|
|
|
|
this.getStockInfo(1, 1, this.shelveId)
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
handleTypeChange(value) {
|
|
|
|
|
|
|
|
console.log(this.streetDetail.leftShelveId)
|
|
|
|
|
|
|
|
console.log(value)
|
|
|
|
|
|
|
|
this.selectType = value
|
|
|
|
|
|
|
|
if (value == 'left') {
|
|
|
|
|
|
|
|
this.getStockInfo(1, 1, this.streetDetail.leftShelveId)
|
|
|
|
|
|
|
|
} else if (value == 'right') {
|
|
|
|
|
|
|
|
this.getStockInfo(1, 1, this.streetDetail.rightShelveId)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
prev(index) {
|
|
|
|
|
|
|
|
index--
|
|
|
|
|
|
|
|
console.log(index)
|
|
|
|
|
|
|
|
for (let x in this.checkList) {
|
|
|
|
|
|
|
|
if (this.checkObj.shelveId == this.checkList[x][index].shelveId) {
|
|
|
|
|
|
|
|
console.log(this.checkList[x][index].row)
|
|
|
|
|
|
|
|
console.log(this.checkList[x][index].column)
|
|
|
|
|
|
|
|
console.log(this.checkList[x][index].shelveId)
|
|
|
|
|
|
|
|
this.getStockInfo(this.checkList[x][index].row, this.checkList[x][index].column, this.checkList[x][index].shelveId)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
next(index) {
|
|
|
|
|
|
|
|
index++
|
|
|
|
|
|
|
|
console.log(index)
|
|
|
|
|
|
|
|
for (let x in this.checkList) {
|
|
|
|
|
|
|
|
if (this.checkObj.shelveId == this.checkList[x][index].shelveId) {
|
|
|
|
|
|
|
|
console.log(this.checkList[x][index].row)
|
|
|
|
|
|
|
|
console.log(this.checkList[x][index].column)
|
|
|
|
|
|
|
|
console.log(this.checkList[x][index].shelveId)
|
|
|
|
|
|
|
|
this.getStockInfo(this.checkList[x][index].row, this.checkList[x][index].column, this.checkList[x][index].shelveId)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -154,14 +230,9 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.checkOperation {
|
|
|
|
.checkOperation {
|
|
|
|
.carousel-box {
|
|
|
|
.carousel-page {
|
|
|
|
width: 900px;
|
|
|
|
width: 900px;
|
|
|
|
/*border: solid 1px blue;*/
|
|
|
|
/*border: solid 1px blue;*/
|
|
|
|
.carousel-page {
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
justify-content: left;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&-title {
|
|
|
|
&-title {
|
|
|
|
color: #009FE3;
|
|
|
|
color: #009FE3;
|
|
|
|
font-size: 16px;
|
|
|
|
font-size: 16px;
|
|
|
|
@ -230,7 +301,6 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.bottom-btn {
|
|
|
|
.bottom-btn {
|
|
|
|
width: 900px;
|
|
|
|
width: 900px;
|
|
|
|
|