1.部分导出请求参数修改成param
2.报告编制添加导出
| | |
| | | data: query |
| | | }) |
| | | } |
| | | |
| | | // 报告导出 |
| | | export function reportAllExport(query) { |
| | | return request({ |
| | | url: '/insReport/reportAllExport', |
| | | method: 'get', |
| | | params: query, |
| | | responseType: "blob" |
| | | }) |
| | | } |
| | | |
| | |
| | | return request({ |
| | | url: '/rawMaterialOrder/rawAllExport', |
| | | method: 'get', |
| | | data: query, |
| | | params: query, |
| | | responseType: "blob" |
| | | }) |
| | | } |
| | |
| | | return request({ |
| | | url: '/rawMaterialOrder/rawAllExport', |
| | | method: 'get', |
| | | data: query, |
| | | params: query, |
| | | responseType: "blob" |
| | | }) |
| | | } |
| | |
| | | return request({ |
| | | url: "/personBasicInfo/exportPersonBasicInfo", |
| | | method: "get", |
| | | data: query, |
| | | params: query, |
| | | responseType: "blob" |
| | | }); |
| | | } |
| | |
| | | </ul> |
| | | </div> |
| | | <div> |
| | | <el-button v-show="tabIndex === 3 || tabIndex === 2" :loading="outLoading" size="small" type="primary" |
| | | <el-button v-show="tabIndex === 3" :loading="outLoading" size="small" type="primary" |
| | | @click="handleOut">导出</el-button> |
| | | <el-button v-if="tabIndex === 0" size="small" type="primary" @click="copper">铜材料下单</el-button> |
| | | <el-button v-if="tabIndex !== 0" size="small" type="primary" @click="openPrint">标签打印</el-button> |
| | |
| | | }, |
| | | // 导出 |
| | | handleOut() { |
| | | let entity = this.tabIndex === 3 ? { ...this.entity, isInspect: 2 } : { ...this.entity, state: 2, orderState: 4, } |
| | | delete entity.orderBy |
| | | this.outLoading = true |
| | | rawAllExport({ entity: entity }).then(res => { |
| | | rawAllExport({ ...this.entity }).then(res => { |
| | | this.outLoading = false |
| | | const blob = new Blob([res], { type: 'application/octet-stream' }); |
| | | this.$download.saveAs(blob, '原材料检测信息导出.xlsx'); |
| | |
| | | }, |
| | | // 全部导出 |
| | | handleDown() { |
| | | let entity = { ...this.componentData } |
| | | delete entity.orderBy |
| | | this.outLoading = true |
| | | rawAllExport({ |
| | | entity: entity |
| | | ...this.componentData |
| | | }).then(res => { |
| | | this.outLoading = false |
| | | const blob = new Blob([res], { type: 'application/octet-stream' }); |
| | |
| | | </div> |
| | | <div style="text-align: right;margin-bottom: 10px"> |
| | | <el-button :loading="outLoading" size="mini" type="primary" @click="handleDowns">批量下载</el-button> |
| | | <el-button :loading="outExportLoading" size="mini" type="primary" @click="handleExport">报表导出</el-button> |
| | | </div> |
| | | <div> |
| | | <lims-table :tableData="valueTableData" :column="column" :page="page" :tableLoading="tableLoading" |
| | |
| | | ratifyReport, |
| | | sendBackTask, |
| | | upReportUrl, |
| | | writeReport |
| | | writeReport, |
| | | reportAllExport |
| | | } from "@/api/business/insReport"; |
| | | import { mapGetters } from "vuex"; |
| | | import { selectUserCondition } from "@/api/business/inspectionTask"; |
| | |
| | | queryStatus: null, |
| | | code: null, |
| | | typeSource: null, |
| | | orderType: null, |
| | | }, |
| | | page: { |
| | | current: 1, |
| | |
| | | option: null, |
| | | mutiList: [], |
| | | outLoading: false, |
| | | outExportLoading: false, |
| | | inLoading: false, |
| | | addApproverDia: false, // 指定审批人员弹框 |
| | | approver: '', // 审批人员 |
| | |
| | | }) |
| | | |
| | | }, |
| | | // 报表导出 |
| | | handleExport() { |
| | | this.outExportLoading = true |
| | | reportAllExport({ |
| | | ...this.entity |
| | | }).then(res => { |
| | | this.outExportLoading = false |
| | | const blob = new Blob([res], { type: 'application/octet-stream' }); |
| | | this.$download.saveAs(blob, "报告报表导出.xlsx"); |
| | | }) |
| | | }, |
| | | beforeUpload(file) { |
| | | const isZip = file.type === 'application/zip' || file.name.endsWith('.zip'); |
| | | if (!isZip) { |