| | |
| | | // 待报检、待下单查询 |
| | | 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) { |
| | |
| | | // 已完成部查询 |
| | | 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 |
| | |
| | | // 全部查询 |
| | | 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 |
| | |
| | | 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() { |