| | |
| | | updatepat_archive, |
| | | delpat_archive, |
| | | } from "@/api/smartorpor/pat_archive"; |
| | | import { listbase_tag } from "@/api/smartorpor/base_tag"; |
| | | import { |
| | | messagelistpatient, |
| | | alterpatient, |
| | | addpatient, |
| | | particularpatient, |
| | | deletepatient, |
| | | Exporterrorpatient, |
| | | toleadpatient, |
| | | } from "@/api/patient/homepage"; |
| | | import { listtag } from "@/api/system/label"; |
| | | import { getToken } from "@/utils/auth"; |
| | | import Treeselect from "@riophae/vue-treeselect"; |
| | |
| | | /** 查询患者列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listpat_archive(this.queryParams).then((response) => { |
| | | messagelistpatient(this.queryParams).then((response) => { |
| | | console.log(response); |
| | | this.userList = response.rows; |
| | | this.total = response.total; |
| | |
| | | /** 查询标签列表 */ |
| | | gettabList() { |
| | | const queryParams = {}; |
| | | listbase_tag().then((response) => { |
| | | listtag().then((response) => { |
| | | console.log(response); |
| | | this.optionstag = response.rows; |
| | | }); |
| | |
| | | handleUpdate(row) { |
| | | console.log(row); |
| | | const userIds = row.patid || this.ids; |
| | | getpat_archive(userIds).then((response) => { |
| | | particularpatient(userIds).then((response) => { |
| | | console.log(response); |
| | | this.form = response.data; |
| | | }); |
| | |
| | | //修改/新增患者 |
| | | submitForm() { |
| | | if (this.amendtag) { |
| | | updatepat_archive(this.form) |
| | | alterpatient(this.form) |
| | | .then((response) => { |
| | | console.log(response); |
| | | }) |
| | |
| | | this.$modal.msgSuccess("修改成功"); |
| | | }); |
| | | } else { |
| | | addpat_archive(this.form) |
| | | addpatient(this.form) |
| | | .then((response) => { |
| | | console.log(response); |
| | | }) |
| | |
| | | this.$modal |
| | | .confirm('是否确认删除用户编号为"' + userIds + '"的数据项?') |
| | | .then(function () { |
| | | return delpat_archive(userIds); |
| | | return deletepatient(userIds); |
| | | }) |
| | | .then(() => { |
| | | this.getList(); |