| | |
| | | this.getInsStateDicts(); |
| | | this.getComparisonList(); |
| | | this.getAuthorizedPerson(); |
| | | // this.getPower(); |
| | | this.startWorker(); |
| | | // this.getList0() // 任务切换 |
| | | this.scrollInit(); |
| | |
| | | this.getInsStateDicts(); |
| | | this.getComparisonList(); |
| | | this.getAuthorizedPerson(); |
| | | // this.getPower(); |
| | | this.startWorker(); |
| | | // this.getList0() // 任务切换 |
| | | this.scrollInit(); |
| | |
| | | [type]: type === "remark" ? m : Number(m), |
| | | id: this.insOrder.id, |
| | | }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("保存成功"); |
| | | }); |
| | | }, |
| | |
| | | a.download = "table.png"; |
| | | a.click(); |
| | | }); |
| | | }, |
| | | // 权限获取 |
| | | getPower() { |
| | | let power = JSON.parse(sessionStorage.getItem("power")); |
| | | let fileDel = false; |
| | | let fileAdd = false; |
| | | let collected = false; |
| | | let temDataAcquisition = false; |
| | | for (var i = 0; i < power.length; i++) { |
| | | if (power[i].menuMethod == "uploadFile") { |
| | | fileAdd = true; |
| | | } |
| | | if (power[i].menuMethod == "delfile") { |
| | | fileDel = true; |
| | | } |
| | | if (power[i].menuMethod == "isItAllowedToModifyTheCollectedValues") { |
| | | collected = true; |
| | | } |
| | | if (power[i].menuMethod == "temDataAcquisition") { |
| | | temDataAcquisition = true; |
| | | } |
| | | } |
| | | if (!fileDel) { |
| | | // this.componentData0.do.splice(1, 1); |
| | | } |
| | | this.fileAdd = fileAdd; |
| | | this.collected = collected; |
| | | this.temDataAcquisition = temDataAcquisition; |
| | | }, |
| | | uploadSample() { |
| | | doInsOrder({ |
| | |
| | | orderId: this.orderId, |
| | | sonLaboratory: this.sonLaboratory |
| | | }).then((res) => { |
| | | if (res.code == 201) { |
| | | this.$message.error("保存失败"); |
| | | return; |
| | | } |
| | | this.$message.success("已保存"); |
| | | }); |
| | | // 向 Worker 发送消息,开始处理逻辑 |
| | |
| | | }, |
| | | handleDown(row) { |
| | | downFile({ id: row.id }).then((res) => { |
| | | if (res.code === 200) { |
| | | let url = ""; |
| | | if (res.data.type == 1) { |
| | | url = this.javaApi + "/img/" + res.data.fileUrl; |
| | | this.$download.saveAs(url, row.fileName) |
| | | } else { |
| | | url = this.javaApi + "/word/" + res.data.fileUrl; |
| | | this.$download.saveAs(url, row.fileName) |
| | | } |
| | | } |
| | | this.$download.saveAs(res.data.fileUrl, row.fileName) |
| | | }) |
| | | .catch((error) => { }); |
| | | }, |