|
@@ -45,6 +45,7 @@
|
|
|
|
|
|
<script setup>
|
|
|
import byTable from "/src/components/byTable/index";
|
|
|
+import { ElMessageBox } from "element-plus";
|
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
const activeName = ref("first");
|
|
@@ -275,14 +276,30 @@ const changeActiveName = (val) => {
|
|
|
}
|
|
|
};
|
|
|
const deriveExcel = () => {
|
|
|
- proxy.getFile("/inventoryFinished/excelExport", sourceList.value.pagination).then((res) => {
|
|
|
- proxy.downloadFile(res, "成品库.xlsx");
|
|
|
- });
|
|
|
+ ElMessageBox.confirm("你是否确认此操作", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ proxy.getFile("/inventoryFinished/excelExport", sourceList.value.pagination).then((res) => {
|
|
|
+ proxy.downloadFile(res, "成品库.xlsx");
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
};
|
|
|
const deriveExcelTwo = () => {
|
|
|
- proxy.getFile("/inventoryFinishedOrder/excelExport", sourceListTwo.value.pagination).then((res) => {
|
|
|
- proxy.downloadFile(res, "成品库明细.xlsx");
|
|
|
- });
|
|
|
+ ElMessageBox.confirm("你是否确认此操作", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ proxy.getFile("/inventoryFinishedOrder/excelExport", sourceListTwo.value.pagination).then((res) => {
|
|
|
+ proxy.downloadFile(res, "成品库明细.xlsx");
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
};
|
|
|
</script>
|
|
|
|