|
|
@ -127,7 +127,7 @@ |
|
|
|
<div class="tag-item tag-all">在架:<i class="iconfont icon-zhuangtai2" /><p>{{ baseStockData.length !==0 && baseStockData[index].onShelfNum }}</p></div> |
|
|
|
</div> |
|
|
|
<div class="layer-handle"> |
|
|
|
<el-button size="mini" @click="handleDetail(item)"> |
|
|
|
<el-button size="mini" @click="handleDetail(item,index)"> |
|
|
|
<i class="iconfont icon-xiaowenjian" /> |
|
|
|
详情 |
|
|
|
</el-button> |
|
|
@ -173,7 +173,7 @@ |
|
|
|
<i class="iconfont icon-sulan" /> |
|
|
|
盘点照片 |
|
|
|
</el-button> --> |
|
|
|
<div v-if="detailCurrent && detailCurrent.onShelfNum" style="height: 260px; background-color: #ccc; overflow: hidden; position: relative;" @dblclick="handleViewImg" @mousedown="onMouseDown" @mousemove="onMouseMove" @mouseleave="onMouseUp" @mouseup="onMouseUp"> |
|
|
|
<div v-if="getOnShelfNum" style="height: 260px; background-color: #ccc; overflow: hidden; position: relative;" @dblclick="handleViewImg" @mousedown="onMouseDown" @mousemove="onMouseMove" @mouseleave="onMouseUp" @mouseup="onMouseUp"> |
|
|
|
<img |
|
|
|
ref="image" |
|
|
|
style="display:block; width: 100%;cursor: grab;" |
|
|
@ -269,7 +269,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { FetchInitStockInfo, FetchInitBookDetailsByGrids, FetchBillByShelfIdAndGridShelf, FetchIsGoodcutByBillNoAndGridId, FetchShowByBillIdAndShelfIdAndGridShelf } from '@/api/stockTask/index' |
|
|
|
import { FetchInitStockInfo, FetchInitBookDetailsByGrids, FetchBillByShelfIdAndGridShelf, FetchIsGoodcutByBillNoAndGridId, FetchShowByBillIdAndShelfIdAndGridShelf, FetchNewBillByGridId } from '@/api/stockTask/index' |
|
|
|
import { dataScreeningCrud } from '@/views/visualCheck/mixins/index' |
|
|
|
import { FetchBookShelfDetails, FetchShelfGridByShelfIdAndGridShelf } from '@/api/shelf/index' |
|
|
|
import crudRegion from '@/api/area/index' |
|
|
@ -281,6 +281,7 @@ import exportForm from './module/export' |
|
|
|
import { parseTime, saveAs, getBlob, removeQUPrefix, removePrefix } from '@/utils/index' |
|
|
|
import { swiper, swiperSlide } from 'vue-awesome-swiper' |
|
|
|
import 'swiper/dist/css/swiper.css' |
|
|
|
import Vue from 'vue' |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'DataScreening', |
|
|
@ -342,7 +343,7 @@ export default { |
|
|
|
shelfAllGridDataLoading: false, |
|
|
|
billNoImg: null, |
|
|
|
bookImgData: [], |
|
|
|
bigImg: '', |
|
|
|
bigImg: null, |
|
|
|
timeIndex: 0, |
|
|
|
gridName: '', |
|
|
|
getGridToward: 1, |
|
|
@ -365,7 +366,8 @@ export default { |
|
|
|
swiperListShelfOptions: { |
|
|
|
slidesPerView: 'auto', |
|
|
|
freeMode: true |
|
|
|
} |
|
|
|
}, |
|
|
|
getOnShelfNum: 0 |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
@ -526,7 +528,9 @@ export default { |
|
|
|
if (!Array.isArray(this.baseStockData)) { |
|
|
|
this.baseStockData = [] |
|
|
|
} |
|
|
|
this.baseStockData = this.baseStockData.concat(results) |
|
|
|
// this.baseStockData = this.baseStockData.concat(results) |
|
|
|
this.baseStockData = results |
|
|
|
console.log('this.baseStockData222', this.baseStockData) |
|
|
|
}, |
|
|
|
getInitBookDetailsByGrids(data) { |
|
|
|
const ids = data.map(item => item.id) |
|
|
@ -587,21 +591,36 @@ export default { |
|
|
|
} |
|
|
|
this.handleToGrids(this.cellInfo) |
|
|
|
}, |
|
|
|
handleDetail(item) { |
|
|
|
this.detailVisible = true |
|
|
|
this.detailTable = item.books |
|
|
|
handleDetail(item, index) { |
|
|
|
if (this.checkDateLine.length !== 0) { |
|
|
|
this.detailTitle = removeQUPrefix(item.gridName) + ' - 详情 - ' + (this.checkDateLine[this.timeIndex].stockType === 0 ? '现在' : this.checkDateLine[this.timeIndex].endTime) |
|
|
|
} else { |
|
|
|
this.detailTitle = removeQUPrefix(item.gridName) + ' - 详情' |
|
|
|
} |
|
|
|
|
|
|
|
this.detailCurrent = item |
|
|
|
if (this.detailCurrent.onShelfNum) { |
|
|
|
this.bigImg = `${this.baseApi}/api/fileRelevant/getImg?imgType=1&imgId=/${this.libcode}/${this.billNoImg}/${this.detailCurrent.gridCode}/img_result/result_LSD_compressed.jpg` |
|
|
|
Vue.set(this, 'bigImg', null) |
|
|
|
Vue.set(this, 'detailCurrent', { |
|
|
|
id: item.id, |
|
|
|
gridCode: item.gridCode |
|
|
|
}) |
|
|
|
Vue.set(this, 'detailTable', item.books) |
|
|
|
this.getOnShelfNum = this.baseStockData[index].onShelfNum |
|
|
|
if (this.getOnShelfNum) { |
|
|
|
if (this.checkDateLine[this.timeIndex].stockType === 0) { |
|
|
|
FetchNewBillByGridId({ 'gridId': item.id }) |
|
|
|
.then(res => { |
|
|
|
this.billNoImg = res.stockBill |
|
|
|
Vue.set(this, 'bigImg', `${this.baseApi}/api/fileRelevant/getImg?imgType=1&imgId=/${this.libcode}/${res.stockBill}/${this.detailCurrent.gridCode}/img_result/result_LSD_compressed.jpg`) |
|
|
|
}) |
|
|
|
.catch(error => { |
|
|
|
console.error(error) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.bigImg = '' |
|
|
|
Vue.set(this, 'bigImg', `${this.baseApi}/api/fileRelevant/getImg?imgType=1&imgId=/${this.libcode}/${this.billNoImg}/${this.detailCurrent.gridCode}/img_result/result_LSD_compressed.jpg`) |
|
|
|
} |
|
|
|
} else { |
|
|
|
Vue.set(this, 'bigImg', null) |
|
|
|
} |
|
|
|
this.detailVisible = true |
|
|
|
}, |
|
|
|
setActiveItem(index) { |
|
|
|
this.$refs.carousel.setActiveItem(index) |
|
|
@ -657,6 +676,7 @@ export default { |
|
|
|
// http://192.168.99.67:12010/api/fileRelevant/getImg?imgType=1&imgId=/1501/PD20250108013/010011015/img_result/result_cut_1_compressed.jpg |
|
|
|
|
|
|
|
this.bookImgData = [] |
|
|
|
|
|
|
|
this.detailImgVisible = true |
|
|
|
const params = { |
|
|
|
'billNo': this.billNoImg, |
|
|
@ -778,6 +798,7 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleHistory(item, index) { |
|
|
|
this.detailCurrent = {} |
|
|
|
this.shelfAllGridDataLoading = true |
|
|
|
this.timeIndex = index |
|
|
|
this.billNoImg = item.stockType === 0 ? this.checkDateLine[1].stockBill : item.stockBill |
|
|
@ -810,6 +831,7 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
console.log('sortedKeys', sortedKeys) |
|
|
|
this.baseStockData = sortedShelfDetails |
|
|
|
|
|
|
|
setTimeout(() => { |
|
|
|