|
|
|
@ -31,7 +31,11 @@
|
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
<el-divider>在 托 货 物</el-divider> |
|
|
|
|
<div class="flex export_row"> |
|
|
|
|
<el-divider class="flex1">在 托 货 物</el-divider> |
|
|
|
|
|
|
|
|
|
<el-button icon="Download" type="primary" @click="handleExport">导出</el-button> |
|
|
|
|
</div> |
|
|
|
|
<el-tabs type="border-card" v-model="activeTab" @tab-click="handleTabClick"> |
|
|
|
|
<el-tab-pane label="包 件 列 表" name="tab1"> |
|
|
|
|
<!-- 列表模块 --> |
|
|
|
@ -163,13 +167,14 @@ import {
|
|
|
|
|
getpackList, |
|
|
|
|
getinventoryList, |
|
|
|
|
getlclList, |
|
|
|
|
getExportTrayData, |
|
|
|
|
} from '@/api/basicdata/basicdataTray'; |
|
|
|
|
|
|
|
|
|
import option from '@/option/basic/basicPdarecords'; |
|
|
|
|
import { mapGetters } from 'vuex'; |
|
|
|
|
import { getDictionaryBiz } from '@/api/system/dict'; |
|
|
|
|
import dayjs from 'dayjs'; |
|
|
|
|
import { handleTranslationDataSeclect } from '@/utils/util'; |
|
|
|
|
import { handleTranslationDataSeclect, downloadXls } from '@/utils/util'; |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
@ -827,7 +832,7 @@ export default {
|
|
|
|
|
// head: false, |
|
|
|
|
// }, |
|
|
|
|
{ |
|
|
|
|
prop: 'positionCode', |
|
|
|
|
prop: 'goodsAllocation', |
|
|
|
|
label: '所在库位', |
|
|
|
|
type: 30, |
|
|
|
|
values: '', |
|
|
|
@ -1482,6 +1487,37 @@ export default {
|
|
|
|
|
this.handleInventory(this.inventorypage); |
|
|
|
|
this.loading = false; |
|
|
|
|
}, |
|
|
|
|
/** 导出 */ |
|
|
|
|
async handleExport() { |
|
|
|
|
console.log('this.traydata :>> ', this.traydata); |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
this.loading = true; |
|
|
|
|
const res = await getExportTrayData({ id: this.traydata.id }); |
|
|
|
|
const { status, data } = res; |
|
|
|
|
|
|
|
|
|
if (status !== 200) return; |
|
|
|
|
|
|
|
|
|
downloadXls(data, `${this.traydata.palletName} - 在托详情 - ${new Date().getTime()}.xlsx`); |
|
|
|
|
} catch (error) { |
|
|
|
|
console.log('error :>> ', error); |
|
|
|
|
} finally { |
|
|
|
|
this.loading = false; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
.export_row { |
|
|
|
|
position: relative; |
|
|
|
|
|
|
|
|
|
:deep(.el-button) { |
|
|
|
|
position: absolute; |
|
|
|
|
right: 0; |
|
|
|
|
top: 50%; |
|
|
|
|
transform: translateY(-50%); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|