|
@@ -23,18 +23,18 @@
|
|
|
>
|
|
>
|
|
|
<!-- 表头工具栏 -->
|
|
<!-- 表头工具栏 -->
|
|
|
<template v-slot:toolbar="{ row }">
|
|
<template v-slot:toolbar="{ row }">
|
|
|
- <el-button
|
|
|
|
|
- v-if="selectedDime == 3"
|
|
|
|
|
- size="small"
|
|
|
|
|
- :disabled="checkRadioData.length == 0"
|
|
|
|
|
- icon="el-icon-set-up"
|
|
|
|
|
- class="ele-btn-icon"
|
|
|
|
|
- @click="allPrinting()"
|
|
|
|
|
- >
|
|
|
|
|
- 打印条码
|
|
|
|
|
- </el-button>
|
|
|
|
|
-
|
|
|
|
|
<div class="upload">
|
|
<div class="upload">
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ v-if="selectedDime == 3"
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ :disabled="checkRadioData.length == 0"
|
|
|
|
|
+ icon="el-icon-set-up"
|
|
|
|
|
+ class="ele-btn-icon"
|
|
|
|
|
+ @click="allPrinting()"
|
|
|
|
|
+ >
|
|
|
|
|
+ 打印条码
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+
|
|
|
<!-- <el-upload
|
|
<!-- <el-upload
|
|
|
v-if="!isLoading"
|
|
v-if="!isLoading"
|
|
|
:show-file-list="false"
|
|
:show-file-list="false"
|
|
@@ -54,6 +54,7 @@
|
|
|
>
|
|
>
|
|
|
</slot>
|
|
</slot>
|
|
|
</el-upload> -->
|
|
</el-upload> -->
|
|
|
|
|
+
|
|
|
<el-button
|
|
<el-button
|
|
|
type="primary"
|
|
type="primary"
|
|
|
size="small"
|
|
size="small"
|
|
@@ -62,6 +63,12 @@
|
|
|
@click="uploadFile"
|
|
@click="uploadFile"
|
|
|
>导入</el-button
|
|
>导入</el-button
|
|
|
>
|
|
>
|
|
|
|
|
+ <exportButton
|
|
|
|
|
+ fileName="库存台账"
|
|
|
|
|
+ apiUrl="/wms/statement/exportStockExcel"
|
|
|
|
|
+ :params="params"
|
|
|
|
|
+ v-if="selectedDime == 2"
|
|
|
|
|
+ ></exportButton>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<!-- <el-button
|
|
<!-- <el-button
|
|
@@ -237,10 +244,11 @@
|
|
|
|
|
|
|
|
import { qualityStatus, qualityResults } from '@/utils/dict/index';
|
|
import { qualityStatus, qualityResults } from '@/utils/dict/index';
|
|
|
import { parameterGetByCode } from '@/api/sys/index.js';
|
|
import { parameterGetByCode } from '@/api/sys/index.js';
|
|
|
|
|
+ import exportButton from '@/components/upload/exportButton.vue';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
mixins: [tabMixins],
|
|
mixins: [tabMixins],
|
|
|
- components: { ItemSearch, print, allot, importDialog },
|
|
|
|
|
|
|
+ components: { ItemSearch, print, allot, importDialog, exportButton },
|
|
|
props: {
|
|
props: {
|
|
|
// 机构id
|
|
// 机构id
|
|
|
organizationId: [Number, String],
|
|
organizationId: [Number, String],
|
|
@@ -257,6 +265,7 @@
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ params: {},
|
|
|
moudleName: 'stock',
|
|
moudleName: 'stock',
|
|
|
qualityStatus,
|
|
qualityStatus,
|
|
|
qualityResults,
|
|
qualityResults,
|
|
@@ -678,11 +687,13 @@
|
|
|
...where,
|
|
...where,
|
|
|
...order
|
|
...order
|
|
|
};
|
|
};
|
|
|
- const data = storageApi.getBatchList({
|
|
|
|
|
- ...params,
|
|
|
|
|
|
|
+ this.params = {
|
|
|
|
|
+ ...params,
|
|
|
pageNum: page,
|
|
pageNum: page,
|
|
|
size: limit
|
|
size: limit
|
|
|
- });
|
|
|
|
|
|
|
+ };
|
|
|
|
|
+ console.log('this.params----', this.params);
|
|
|
|
|
+ const data = storageApi.getBatchList( this.params );
|
|
|
return data;
|
|
return data;
|
|
|
} else if (dimension == 4) {
|
|
} else if (dimension == 4) {
|
|
|
// 物料维度
|
|
// 物料维度
|
|
@@ -721,6 +732,7 @@
|
|
|
...order
|
|
...order
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
const data = storageApi.getPackingList({
|
|
const data = storageApi.getPackingList({
|
|
|
...params,
|
|
...params,
|
|
|
pageNum: page,
|
|
pageNum: page,
|
|
@@ -841,8 +853,8 @@
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
.upload {
|
|
.upload {
|
|
|
- display: inline-block;
|
|
|
|
|
- width: 100px;
|
|
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ width: 100%;
|
|
|
margin-left: 10px;
|
|
margin-left: 10px;
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|