lxf 1 gadu atpakaļ
vecāks
revīzija
bd5ab11087
1 mainītis faili ar 24 papildinājumiem un 0 dzēšanām
  1. 24 0
      src/views/group/finance/check-bill/index.vue

+ 24 - 0
src/views/group/finance/check-bill/index.vue

@@ -281,6 +281,17 @@ const config = computed(() => {
           },
           {
             attrs: {
+              label: "导出",
+              type: "primary",
+              text: true,
+            },
+            el: "button",
+            click() {
+              deriveExcel(row);
+            },
+          },
+          {
+            attrs: {
               label: "打印",
               type: "primary",
               text: true,
@@ -701,6 +712,19 @@ const clickManualSynchronization = () => {
     }
   );
 };
+const deriveExcel = (row) => {
+  ElMessageBox.confirm("你是否确认此操作", "提示", {
+    confirmButtonText: "确定",
+    cancelButtonText: "取消",
+    type: "warning",
+  })
+    .then(() => {
+      proxy.postFile("/statementOfAccountMerge/exportDeliveryOfGoodsExcel", [row.id]).then((res) => {
+        proxy.downloadFile(res, "货物交接单-" + row.code + ".xlsx");
+      });
+    })
+    .catch(() => {});
+};
 </script>
 
 <style lang="scss" scoped>