| | |
| | | }, |
| | | watch: { |
| | | activeName(val) { |
| | | |
| | | if (val == '填写') { |
| | | this.page.current = 1; |
| | | this.getList(); |
| | | } else { |
| | | this.refreshTable() |
| | | } |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.getCustomPageList() |
| | | this.getList0() |
| | | }, |
| | | methods: { |
| | | getPower() { |
| | |
| | | }); |
| | | this.page.current = 1; |
| | | this.getList() |
| | | }).catch(err => { }); |
| | | }).catch(err => { |
| | | this.addLoading = false |
| | | }); |
| | | } else { |
| | | // 新增 |
| | | this.addLoading = true |
| | |
| | | }); |
| | | this.page.current = 1; |
| | | this.getList() |
| | | }).catch(err => { }); |
| | | }).catch(err => { |
| | | this.addLoading = false |
| | | }); |
| | | } |
| | | }, |
| | | // 提交 |
| | |
| | | size: -1, |
| | | totalSampleId: row.id |
| | | }).then(res => { |
| | | this.currentInfo.arr = res.data.body.records |
| | | this.currentInfo.arr = res.data.records |
| | | this.lookDialogVisible = true |
| | | if (callbanck) { |
| | | callbanck() |
| | |
| | | // 导出详情 |
| | | handleDown0(row) { |
| | | // 后端下载 |
| | | let url = this.javaApi + '/word/' + row.url |
| | | this.$download.saveAs(url, row.month + ' 样品接收表') |
| | | }, |
| | | // 删除 |