|
@@ -38,6 +38,8 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
+import { ElMessage } from "element-plus";
|
|
|
+
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
const props = defineProps({
|
|
|
rowData: Object,
|
|
@@ -183,6 +185,7 @@ const clickCancel = () => {
|
|
|
emit("clickCancel", "");
|
|
|
};
|
|
|
const deriveExcel = () => {
|
|
|
+ ElMessage("导出文件中,请稍后");
|
|
|
loading.value = true;
|
|
|
proxy
|
|
|
.getFile("/statementOfAccountMerge/exportDocumentByBom", {
|
|
@@ -191,9 +194,8 @@ const deriveExcel = () => {
|
|
|
beginDate: props.rowData.dimensionality,
|
|
|
})
|
|
|
.then(
|
|
|
- () => {
|
|
|
- emit("clickCancel", true);
|
|
|
- // proxy.downloadFile(res, "BOM对账单.xlsx");
|
|
|
+ (res) => {
|
|
|
+ proxy.downloadFile(res, "BOM对账单.xlsx");
|
|
|
loading.value = false;
|
|
|
},
|
|
|
(err) => {
|