|
@@ -22,6 +22,7 @@
|
|
|
|
|
|
<script setup>
|
|
|
import { cloneVNode } from "vue";
|
|
|
+import { ElMessage } from "element-plus";
|
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
const props = defineProps({
|
|
@@ -126,15 +127,24 @@ const clickCancel = () => {
|
|
|
emit("clickCancel", "");
|
|
|
};
|
|
|
const deriveExcel = () => {
|
|
|
+ ElMessage("导出文件中,请稍后");
|
|
|
+ loading.value = true;
|
|
|
proxy
|
|
|
.getFile("/statementOfAccountMerge/exportDocumentByOrder", {
|
|
|
idGroupConcat: props.rowData.idGroupConcat,
|
|
|
departmentName: props.rowData.departmentName,
|
|
|
beginDate: props.rowData.dimensionality,
|
|
|
})
|
|
|
- .then((res) => {
|
|
|
- proxy.downloadFile(res, "订单对账单.xlsx");
|
|
|
- });
|
|
|
+ .then(
|
|
|
+ (res) => {
|
|
|
+ proxy.downloadFile(res, "订单对账单.xlsx");
|
|
|
+ loading.value = false;
|
|
|
+ },
|
|
|
+ (err) => {
|
|
|
+ console.log(err);
|
|
|
+ loading.value = false;
|
|
|
+ }
|
|
|
+ );
|
|
|
};
|
|
|
const columns = computed(() => {
|
|
|
return [
|