spring
2025-02-28 dc3af0cbb4a6d105bdff497b510cc0a87b3e8d0a
src/views/business/rawMaterialInspection/index.vue
@@ -549,7 +549,7 @@
    // 待报检、待下单查询
    getWarehouseSubmitApi () {
      this.tableLoading = true
      const params = {...this.componentData, isInspect: this.tabIndex, state: this.tabIndex === 0 ? null : 0}
      const params = {...this.componentData, isInspect: this.tabIndex, state: this.tabIndex === 0 ? null : 0, ...this.page}
      getWarehouseSubmit(params).then(res => {
        this.tableLoading = false
        if (res.code === 200) {
@@ -563,7 +563,7 @@
    // 已完成部查询
    getIfsByFinishList () {
      this.tableLoading1 = true
      getIfsByFinish({...this.componentData}).then(res => {
      getIfsByFinish({...this.componentData, ...this.page1}).then(res => {
        this.tableLoading1 = false
        if (res.code === 200) {
          this.tableData1 = res.data.records
@@ -576,7 +576,7 @@
    // 全部查询
    getIfsByAllList () {
      this.tableLoading1 = true
      getIfsByAll({...this.componentData}).then(res => {
      getIfsByAll({...this.componentData, ...this.page1}).then(res => {
        this.tableLoading1 = false
        if (res.code === 200) {
          this.tableData1 = res.data.records
@@ -795,16 +795,11 @@
      this.outLoading = true
      rawAllExport({
        entity:entity
      },{
        responseType: "blob"}).then(res => {
      }).then(res => {
        this.outLoading = false
        this.$message.success('导出成功')
        const blob = new Blob([res],{ type: 'application/octet-stream' });
        const url = URL.createObjectURL(blob);
        const link = document.createElement('a');
        link.href = url;
        link.download = '原材料检测信息导出.xlsx';
        link.click();
        let url = this.javaApi + '/word/' + res.data
        this.$download.saveAs(url, "原材料检测信息导出.xlsx");
      })
    },
    clear() {