| | |
| | | import {ref, reactive, onMounted} from "vue"; |
| | | const { proxy } = getCurrentInstance() |
| | | import {Delete, Download, Plus} from "@element-plus/icons-vue"; |
| | | import { ElMessage } from "element-plus"; |
| | | import ETable from "@/components/Table/ETable.vue"; |
| | | import Pagination from "@/components/Pagination/index.vue"; |
| | | import FormDia from "@/views/salesOutbound/components/formDia.vue"; |
| | |
| | | { prop: "saleQuantity", label: "销售数量", minWidth: 120 }, |
| | | { prop: "salePrice", label: "销售单价(含税)", minWidth: 150 }, |
| | | { prop: "totalAmount", label: "销售总价(含税)", minWidth: 120 }, |
| | | { prop: "freight", label: "运费", minWidth: 90 }, |
| | | { prop: "salesFreight", label: "销售运费", minWidth: 90 }, |
| | | { prop: "purchasingFreight", label: "采购运费", minWidth: 90 }, |
| | | { prop: "taxCoal", label: "购销煤税率(%)", minWidth: 120 }, |
| | | { prop: "taxTrans", label: "运输税率(%)", minWidth: 120 }, |
| | | { prop: "grossProfit", label: "毛利润", minWidth: 90 }, |
| | |
| | | "数据?" |
| | | ) |
| | | .then((res) => { |
| | | if (res) { |
| | | ElMessage.success("正在导出数据,请稍候..."); |
| | | if (!res) return; |
| | | exportData(config.api, config.name); |
| | | } |
| | | }) |
| | | .catch(() => {}); |
| | | .catch(() => { |
| | | ElMessage.error("导出失败,请重试"); |
| | | }); |
| | | }; |
| | | const exportData = (api, name) => { |
| | | proxy.download( |