|
|
@@ -67,7 +67,7 @@
|
|
|
>
|
|
|
<exportButton
|
|
|
fileName="库存台账"
|
|
|
- apiUrl="/wms/statement/exportStockExcel"
|
|
|
+ :apiUrl="exportApiUrl"
|
|
|
:params="params"
|
|
|
v-if="selectedDime == 2"
|
|
|
></exportButton>
|
|
|
@@ -618,6 +618,9 @@
|
|
|
},
|
|
|
clientEnvironmentId() {
|
|
|
return this.$store.state.user.info.clientEnvironmentId;
|
|
|
+ },
|
|
|
+ exportApiUrl() {
|
|
|
+ return '/wms/statement/exportStockExcel';
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -724,7 +727,7 @@
|
|
|
|
|
|
if (key.includes(column.property)) {
|
|
|
const values = data.map((item) => Number(item[column.property]));
|
|
|
- console.log(values);
|
|
|
+ // console.log(values);
|
|
|
|
|
|
if (!values.every((value) => isNaN(value))) {
|
|
|
sums[index] = values.reduce((prev, curr) => {
|
|
|
@@ -745,7 +748,7 @@
|
|
|
sums[index] = '';
|
|
|
}
|
|
|
});
|
|
|
- console.log('sums', sums);
|
|
|
+ // console.log('sums', sums);
|
|
|
|
|
|
return sums;
|
|
|
},
|
|
|
@@ -920,6 +923,7 @@
|
|
|
// 监听机构id变化
|
|
|
current: {
|
|
|
handler() {
|
|
|
+ console.log('this.current----', this.current);
|
|
|
this.reload();
|
|
|
}
|
|
|
},
|
|
|
@@ -928,7 +932,7 @@
|
|
|
if (this.type === 'warehouse') {
|
|
|
this.selectedDime = '3';
|
|
|
} else {
|
|
|
- this.selectedDime = '1';
|
|
|
+ this.selectedDime = '2';
|
|
|
}
|
|
|
this.reload();
|
|
|
}
|