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

3
src/views/components/checkSwiper.vue

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

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

@ -295,7 +295,9 @@ export default {
billNoImg: null, billNoImg: null,
bookImgData: [], bookImgData: [],
bigImg: '', bigImg: '',
timeIndex: 0
timeIndex: 0,
gridName: '',
getGridToward: 1
} }
}, },
computed: { computed: {
@ -364,6 +366,7 @@ export default {
const dataScreenShelf = JSON.parse(localStorage.getItem('dataScreenShelf')) const dataScreenShelf = JSON.parse(localStorage.getItem('dataScreenShelf'))
this.floorName = dataScreenShelf.floorName this.floorName = dataScreenShelf.floorName
this.regionName = dataScreenShelf.regionName this.regionName = dataScreenShelf.regionName
this.gridName = dataScreenShelf.gridName
this.gridRow = dataScreenShelf.gridRow this.gridRow = dataScreenShelf.gridRow
this.gridShelf = dataScreenShelf.gridShelf this.gridShelf = dataScreenShelf.gridShelf
@ -439,7 +442,7 @@ export default {
icon: 'el-icon-more', icon: 'el-icon-more',
color: '#0bbd87' 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 { } else {
this.checkDateLine = [] this.checkDateLine = []
} }
@ -627,12 +630,26 @@ export default {
changeDialogTab(index) { changeDialogTab(index) {
this.tabdialogIndex = 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) { changeShelfGetGrid(val) {
this.updateParts(this.gridName)
this.shelfAllGridDataLoading = true this.shelfAllGridDataLoading = true
const params = { const params = {
'gridShelf': '0' + val, 'gridShelf': '0' + val,
'shelfId': this.bookShelfDetails.id, 'shelfId': this.bookShelfDetails.id,
'toward': this.bookShelfDetails.toward,
'toward': this.getGridToward,
'floorType': this.bookShelfDetails.floorType 'floorType': this.bookShelfDetails.floorType
} }
FetchShelfGridByShelfIdAndGridShelf(params).then(res => { FetchShelfGridByShelfIdAndGridShelf(params).then(res => {
@ -649,6 +666,8 @@ export default {
handleHistory(item, index) { handleHistory(item, index) {
this.shelfAllGridDataLoading = true this.shelfAllGridDataLoading = true
this.timeIndex = index this.timeIndex = index
this.billNoImg = this.checkDateLine[this.timeIndex].stockType === 0 ? this.checkDateLine[1].stockBill : this.checkDateLine[this.timeIndex].stockBill
if (item.stockType === 0) { if (item.stockType === 0) {
this.initData() this.initData()
setTimeout(() => { setTimeout(() => {

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

@ -287,7 +287,12 @@ export default {
this.bookShelfDetails = res this.bookShelfDetails = res
if (this.$route.query.tabIndex) { 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 { } else {
this.getInitShelfGridByShelfId(this.bookShelfDetails.id, this.bookShelfDetails.toward) this.getInitShelfGridByShelfId(this.bookShelfDetails.id, this.bookShelfDetails.toward)
} }

Loading…
Cancel
Save