|
|
@ -65,7 +65,7 @@ |
|
|
|
</template> |
|
|
|
<template v-slot:right> |
|
|
|
<!-- @click="doExport(crud.selections)" --> |
|
|
|
<el-button :loading="crud.downloadLoading" size="mini"> |
|
|
|
<el-button :loading="crud.downloadLoading" size="mini" @click="doExport(3)"> |
|
|
|
<i class="iconfont icon-daochu" /> |
|
|
|
导出 |
|
|
|
</el-button> |
|
|
@ -149,8 +149,7 @@ |
|
|
|
<i class="iconfont icon-sulan" /> |
|
|
|
盘点照片 |
|
|
|
</el-button> --> |
|
|
|
|
|
|
|
<div style="height: 260px; background-color: #ccc; overflow: hidden; position: relative;" @click="showAllImg"> |
|
|
|
<div v-if="detailCurrent && detailCurrent.onShelfNum" style="height: 260px; background-color: #ccc; overflow: hidden; position: relative;" @click="handleViewImg"> |
|
|
|
<img style="display:block; width: 100%;" :src="bigImg" alt=""> |
|
|
|
<span style="position: absolute; top: 0; right: 0; padding: 4px 6px; color: #fff; background-color: rgba(3,72,243,.8); border-radius: 4px;">单击可查看所有图片</span> |
|
|
|
</div> |
|
|
@ -216,6 +215,7 @@ |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
<eForm ref="eform" /> |
|
|
|
<exportForm ref="exportform" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
@ -228,12 +228,12 @@ import CRUD, { presenter, header, crud } from '@crud/crud' |
|
|
|
import crudOperation from '@crud/CRUD.operation' |
|
|
|
import { mapGetters } from 'vuex' |
|
|
|
import eForm from './module/form' |
|
|
|
import exportForm from './module/export' |
|
|
|
import { parseTime, saveAs, getBlob } from '@/utils/index' |
|
|
|
// import qs from 'qs' |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'DataScreening', |
|
|
|
components: { crudOperation, eForm }, |
|
|
|
components: { crudOperation, eForm, exportForm }, |
|
|
|
cruds() { |
|
|
|
return CRUD({ title: '架位盘点', url: 'api/libraryRegion/initLibraryRegionList', crudMethod: { ...crudRegion }, sort: [], optShow: { |
|
|
|
add: false, |
|
|
@ -468,23 +468,27 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
toAdd(type, item) { |
|
|
|
if (item.isCheck) { |
|
|
|
if (type === 5) { |
|
|
|
this.$refs.eform.formVisible = true |
|
|
|
if (type === 5) { |
|
|
|
this.$refs.eform.form.shelfId = this.bookShelfDetails.id |
|
|
|
this.$refs.eform.form.gridShelf = this.gridShelf |
|
|
|
this.$refs.eform.form.stockRegion = this.floorName + this.regionName + this.bookShelfDetails.shelfName + this.gridShelf + '架' |
|
|
|
} else { |
|
|
|
this.$refs.eform.form.shelfId = this.bookShelfDetails.id |
|
|
|
this.$refs.eform.form.gridShelf = this.gridShelf |
|
|
|
this.$refs.eform.form.stockRegion = this.floorName + this.regionName + this.bookShelfDetails.shelfName + this.gridShelf + '架' |
|
|
|
} else { |
|
|
|
if (item.isCheck) { |
|
|
|
this.$refs.eform.formVisible = true |
|
|
|
this.$refs.eform.form.shelfId = null |
|
|
|
this.$refs.eform.form.gridShelf = null |
|
|
|
this.$refs.eform.form.gridId = item.id |
|
|
|
this.$refs.eform.form.stockRegion = item.gridName |
|
|
|
} else { |
|
|
|
this.$message({ message: '当前层位不可盘点', type: 'error', offset: 8 }) |
|
|
|
} |
|
|
|
|
|
|
|
this.$refs.eform.setData(type) |
|
|
|
} else { |
|
|
|
this.$message({ message: '当前层位不可盘点', type: 'error', offset: 8 }) |
|
|
|
} |
|
|
|
this.$refs.eform.setData(type) |
|
|
|
}, |
|
|
|
doExport(type) { |
|
|
|
this.$refs.exportform.formExportVisible = true |
|
|
|
this.$refs.exportform.type = 3 |
|
|
|
}, |
|
|
|
handleCellCurrent(item, index) { |
|
|
|
this.cellIndex = index |
|
|
@ -504,7 +508,11 @@ export default { |
|
|
|
this.detailVisible = true |
|
|
|
this.detailTable = item.books |
|
|
|
this.detailCurrent = item |
|
|
|
this.handleViewImg() |
|
|
|
if (this.detailCurrent.onShelfNum) { |
|
|
|
this.bigImg = `${this.baseApi}/api/fileRelevant/getImg?imgId=/${this.libcode}/${this.billNoImg}/${this.detailCurrent.gridCode}/img_result/result_LSD_compressed.jpg` |
|
|
|
} else { |
|
|
|
this.bigImg = '' |
|
|
|
} |
|
|
|
}, |
|
|
|
setActiveItem(index) { |
|
|
|
this.$refs.carousel.setActiveItem(index) |
|
|
@ -518,20 +526,20 @@ export default { |
|
|
|
// http://192.168.99.67:12010/api/fileRelevant/getImg?imgId=/1501/PD20250108013/010011015/img_result/result_LSD.jpg |
|
|
|
// http://192.168.99.67:12010/api/fileRelevant/getImg?imgId=/1501/PD20250108013/010011015/img_result/result_cut_1_compressed.jpg |
|
|
|
this.bookImgData = [] |
|
|
|
// this.detailImgVisible = true |
|
|
|
this.detailImgVisible = true |
|
|
|
const params = { |
|
|
|
'billNo': this.billNoImg, |
|
|
|
'gridId': this.detailCurrent.id |
|
|
|
} |
|
|
|
FetchIsGoodcutByBillNoAndGridId(params) |
|
|
|
.then(res => { |
|
|
|
const baseUrl = `${this.baseApi}/api/fileRelevant/getImg?imgId=/${this.billNoImg}/${this.detailCurrent.gridCode}/img_result/` |
|
|
|
const baseUrl = `${this.baseApi}/api/fileRelevant/getImg?imgId=/${this.libcode}/${this.billNoImg}/${this.detailCurrent.gridCode}/img_result/` |
|
|
|
const commonImgs = [ |
|
|
|
`${baseUrl}result_LSD_compressed.jpg`, |
|
|
|
`${baseUrl}result_cut_1_compressed.jpg`, |
|
|
|
`${baseUrl}result_cut_2_compressed.jpg` |
|
|
|
] |
|
|
|
this.bigImg = commonImgs[0] |
|
|
|
this.$refs.carousel.setActiveItem(0) |
|
|
|
if (res) { |
|
|
|
this.bookImgData = commonImgs |
|
|
|
} else { |
|
|
@ -542,10 +550,6 @@ export default { |
|
|
|
console.error(error) |
|
|
|
}) |
|
|
|
}, |
|
|
|
showAllImg() { |
|
|
|
this.detailImgVisible = true |
|
|
|
this.$refs.carousel.setActiveItem(0) |
|
|
|
}, |
|
|
|
handleDownloadImg() { |
|
|
|
this.downImgLoading = true |
|
|
|
const idsArray = [] |
|
|
@ -635,7 +639,7 @@ export default { |
|
|
|
} |
|
|
|
.tab-content{ |
|
|
|
width: 100%; |
|
|
|
min-height: calc(100vh - 196px) !important; |
|
|
|
min-height: calc(100vh - 232px) !important; |
|
|
|
.tab-nav{ |
|
|
|
flex: 1; |
|
|
|
} |
|
|
|