| | |
| | | class="attachment-image" /> |
| | | </template> |
| | | </avue-crud> |
| | | <template #footer> |
| | | <div class="dialog-footer"> |
| | | <el-button type="primary" v-if="itemTableData2.length>0" @click="downPZ">下载附件</el-button> |
| | | </div> |
| | | </template> |
| | | |
| | | </el-dialog> |
| | | </basicContainer> |
| | |
| | | exportDispatchOrder, |
| | | getDispatchOrder, |
| | | listDispatchOrder, |
| | | updateDispatchOrder, cwglDispatchOrderItem, cwglDispatchOrderattAchment, exportDispatchOrder2 |
| | | updateDispatchOrder, cwglDispatchOrderItem, cwglDispatchOrderattAchment, exportDispatchOrder2, downloadFJ |
| | | } from "@/api/cwgl/dispatchOrder"; |
| | | import useCurrentInstance from "@/utils/useCurrentInstance"; |
| | | import { computed, reactive, ref, toRefs } from "vue"; |
| | | import { PagesInterface, PageQueryInterface } from "@/utils/globalInterface"; |
| | | import { usePagePlus } from "@/hooks/usePagePlus"; |
| | | import { hasPermission } from "@/utils/permissionUtils"; |
| | | import {blobValidate} from "@/utils/ruoyi"; |
| | | import {saveAs} from "file-saver"; |
| | | |
| | | const { proxy } = useCurrentInstance(); |
| | | const crudRef = ref(); |
| | |
| | | queryParams.value = proxy.addDateRangeNew(queryParams.value, queryParams.value?.actualArrivalTimeRange, 'actualArrivalTime') || {}; |
| | | exportDispatchOrder2(queryParams.value); |
| | | } |
| | | |
| | | const downPZ =()=>{ |
| | | downloadFJ({no:pageAttachment.value.no}).then(res=>{ |
| | | console.log(res) |
| | | const blob = new Blob([res]) |
| | | console.log(blob) |
| | | saveAs(blob, decodeURI(pageAttachment.value.no+"附件.pdf")) |
| | | |
| | | }) |
| | | |
| | | } |
| | | |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .avue-dialog .el-dialog__body { |