From d9ff0c6370e0721fd14973e19d37331f3cba303f Mon Sep 17 00:00:00 2001 From: chenhc <2369838784@qq.com> Date: Fri, 2 Aug 2024 15:45:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A4=84=E6=96=B9=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/basic/sicker/prescribeApi.js | 8 +- src/api/basic/sicker/skPersonApi.js | 21 + src/views/inout/split/prescribeDownload.vue | 65 ++- .../inout/split/prescribeDownloadDialog.vue | 453 +++++++++++++++++- 4 files changed, 540 insertions(+), 7 deletions(-) diff --git a/src/api/basic/sicker/prescribeApi.js b/src/api/basic/sicker/prescribeApi.js index 937fb81c..ad9eaafa 100644 --- a/src/api/basic/sicker/prescribeApi.js +++ b/src/api/basic/sicker/prescribeApi.js @@ -26,6 +26,12 @@ export function downloadPrescribe(query) { } - +export function deleteDataByCode(query) { + return axios({ + url: "/udiwms/basic/sk/prescribe/deleteDataByCode", + method: "post", + data: query + }); +} diff --git a/src/api/basic/sicker/skPersonApi.js b/src/api/basic/sicker/skPersonApi.js index bb2c82ff..affd259d 100644 --- a/src/api/basic/sicker/skPersonApi.js +++ b/src/api/basic/sicker/skPersonApi.js @@ -26,6 +26,14 @@ export function downloadSick(query) { }); } +export function prescribeSave(query) { + return axios({ + url: "/udiwms/basic/sk/prescribe/save", + method: "post", + data: query + }); +} + /** * 远程下载 */ @@ -83,6 +91,19 @@ export function dlSickerOnline(query) { }); } +/** + * 在线实时获取患者信息 + * @param query + * @returns {AxiosPromise} + */ +export function prescribeOnline(query) { + return axios({ + url: "/udiwms/basic/sk/sicker/prescribe/filter/onLine", + method: "get", + params: query + }); +} + diff --git a/src/views/inout/split/prescribeDownload.vue b/src/views/inout/split/prescribeDownload.vue index 9de2a442..fe22a155 100644 --- a/src/views/inout/split/prescribeDownload.vue +++ b/src/views/inout/split/prescribeDownload.vue @@ -93,7 +93,7 @@ >查询 - 下载处方 @@ -336,6 +336,19 @@ + + + @@ -347,8 +360,9 @@ import {executeFuc, getHead} from "@/utils/customConfig"; import store from "@/store"; import {filterOrder} from "@/api/inout/order"; import {convertDate} from "@/utils/date"; -import {detail, page as prescribePage} from "@/api/basic/sicker/prescribeApi"; +import {detail, page as prescribePage,deleteDataByCode} from "@/api/basic/sicker/prescribeApi"; import {materialPrescribePage} from "@/api/inout/splitCode"; +import prescribeDownloadDialog from "@/views/inout/split/prescribeDownloadDialog"; export default { name: "prescribePanel", @@ -379,8 +393,8 @@ export default { loading: false, list: [], total: 0, - - + downloadPrescriptionVisible:false, + deleteData:{}, preLoading: false, preDetailList: [], preTotal: 0, @@ -393,7 +407,7 @@ export default { }, components: { - addOrder, errOrder + addOrder, errOrder,prescribeDownloadDialog }, methods: { @@ -427,6 +441,12 @@ export default { this.actDateRange = []; this.getList(); }, + downloadPrescription(){ + this.downloadPrescriptionVisible = true + }, + closeDialog(){ + this.getList(); + }, onSubmit() { this.filterQuery.page = 1; this.getList(); @@ -480,6 +500,41 @@ export default { this.getPrescribeDetail(this, null); }, + deleteDialog(_this,row) { + _this.$confirm("此操作将永久删除该订单, 是否继续?", "提示", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning", + }) + .then(() => { + _this.deleteOrders(row.code); + }) + .catch(() => { + }); + }, + deleteOrders(data) { + this.loading = true; + this.deleteData.code = data; + deleteDataByCode(this.deleteData) + .then((response) => { + if (response.code == 20000) { + this.getList(); + this.$message({ + type: "success", + message: "删除成功!", + }); + } else if (response.code == 520) { + this.$message.error(response.message); + this.getList(); + } else { + this.$message.error(response.message); + this.getList(); + } + + }) + .catch(() => { + }); + }, }, created() { diff --git a/src/views/inout/split/prescribeDownloadDialog.vue b/src/views/inout/split/prescribeDownloadDialog.vue index f50b08f0..e7691d3a 100644 --- a/src/views/inout/split/prescribeDownloadDialog.vue +++ b/src/views/inout/split/prescribeDownloadDialog.vue @@ -1,10 +1,461 @@