Browse Source

bug修复

master
xuhuajiao 5 months ago
parent
commit
88435fd088
  1. 3
      src/views/components/bookSwiper.vue
  2. 3
      src/views/components/checkSwiper.vue
  3. 25
      src/views/visualCheck/checkManage/dataScreening/girdList.vue
  4. 7
      src/views/visualCheck/checkManage/dataScreening/shelfList.vue

3
src/views/components/bookSwiper.vue

@ -10,10 +10,9 @@
:cleanup-styles-on-destroy="true"
>
<swiper-slide
v-for="(item, index) of tabListData"
v-for="(item, index) in tabListData"
ref="swiperSlideItem"
:key="'name' + index"
:iname="item.name"
class="swiper-slide-title"
>
<div

3
src/views/components/checkSwiper.vue

@ -10,10 +10,9 @@
:cleanup-styles-on-destroy="true"
>
<swiper-slide
v-for="(item, index) of tabListData"
v-for="(item, index) in tabListData"
ref="swiperSlideItem"
:key="'name' + index"
:iname="item.name"
class="swiper-slide-title"
>
<div

25
src/views/visualCheck/checkManage/dataScreening/girdList.vue

@ -295,7 +295,9 @@ export default {
billNoImg: null,
bookImgData: [],
bigImg: '',
timeIndex: 0
timeIndex: 0,
gridName: '',
getGridToward: 1
}
},
computed: {
@ -364,6 +366,7 @@ export default {
const dataScreenShelf = JSON.parse(localStorage.getItem('dataScreenShelf'))
this.floorName = dataScreenShelf.floorName
this.regionName = dataScreenShelf.regionName
this.gridName = dataScreenShelf.gridName
this.gridRow = dataScreenShelf.gridRow
this.gridShelf = dataScreenShelf.gridShelf
@ -439,7 +442,7 @@ export default {
icon: 'el-icon-more',
color: '#0bbd87'
})
this.billNoImg = this.checkDateLine[0].stockBill
this.billNoImg = this.checkDateLine[this.timeIndex].stockType === 0 ? this.checkDateLine[1].stockBill : this.checkDateLine[this.timeIndex].stockBill
} else {
this.checkDateLine = []
}
@ -627,12 +630,26 @@ export default {
changeDialogTab(index) {
this.tabdialogIndex = index
},
updateParts(gridName) {
const parts = gridName.match(/(\d+)区(\d+)排([A-Za-z])面(\d+)架(\d+)层/)
if (parts) {
this.getGridShelf = parts[4]
this.getGridFloor = parts[5]
const toward = parts[3]
if (toward === 'A') {
this.getGridToward = 1
} else if (toward === 'B') {
this.getGridToward = 2
}
}
},
changeShelfGetGrid(val) {
this.updateParts(this.gridName)
this.shelfAllGridDataLoading = true
const params = {
'gridShelf': '0' + val,
'shelfId': this.bookShelfDetails.id,
'toward': this.bookShelfDetails.toward,
'toward': this.getGridToward,
'floorType': this.bookShelfDetails.floorType
}
FetchShelfGridByShelfIdAndGridShelf(params).then(res => {
@ -649,6 +666,8 @@ export default {
handleHistory(item, index) {
this.shelfAllGridDataLoading = true
this.timeIndex = index
this.billNoImg = this.checkDateLine[this.timeIndex].stockType === 0 ? this.checkDateLine[1].stockBill : this.checkDateLine[this.timeIndex].stockBill
if (item.stockType === 0) {
this.initData()
setTimeout(() => {

7
src/views/visualCheck/checkManage/dataScreening/shelfList.vue

@ -287,7 +287,12 @@ export default {
this.bookShelfDetails = res
if (this.$route.query.tabIndex) {
this.getInitShelfGridByShelfId(this.bookShelfDetails.id, this.$route.query.tabIndex + 1)
if (this.bookShelfDetails.rowType === 1) {
this.tabIndex = 0
this.getInitShelfGridByShelfId(this.bookShelfDetails.id, this.bookShelfDetails.toward)
} else {
this.getInitShelfGridByShelfId(this.bookShelfDetails.id, parseInt(this.$route.query.tabIndex) + 1)
}
} else {
this.getInitShelfGridByShelfId(this.bookShelfDetails.id, this.bookShelfDetails.toward)
}

Loading…
Cancel
Save