From d10c7c728234b5a9098b7bd5bb7a914a14e33c20 Mon Sep 17 00:00:00 2001 From: su1124 <1583764726@qq.com> Date: 星期五, 29 十二月 2023 18:37:28 +0800 Subject: [PATCH] su --- src/views/hosp/history/index.vue | 112 +++++++++++++------------------------------------------ 1 files changed, 27 insertions(+), 85 deletions(-) diff --git a/src/views/hosp/history/index.vue b/src/views/hosp/history/index.vue index b19d7ea..36b0bd2 100644 --- a/src/views/hosp/history/index.vue +++ b/src/views/hosp/history/index.vue @@ -156,7 +156,6 @@ <script> import jianqianwenzhen from "@/components/jianqianwenzhen"; -import { updateHistory, getInfoById } from "@/api/hosp/history"; import { Message } from "element-ui"; import { getOrderList } from "@/api/hosp/order"; import { listHarmType } from "@/api/hosp/harmType"; @@ -401,29 +400,30 @@ } }); let tjNumber = selection.map((item) => item.tjNumber); - getInfoById(tjNumber).then((response) => { - this.jianqianwenzhendata = response.data; - if (this.form.xiyan == null) { - this.form.xiyan = "1"; - } - if (this.form.xiyanpinlv == null) { - this.form.xiyanpinlv = "0"; - } - if (this.form.xiyanyear == null) { - this.form.xiyanyear = "0"; - } - if (this.form.yinjiu == null) { - this.form.yinjiu = "1"; - } - if (this.form.yinjiupinlv == null) { - this.form.yinjiupinlv = "0"; - } - if (this.form.yinjiuyear == null) { - this.form.yinjiuyear = "0"; - } - this.form.tjAskHistorysList = response.data.tjAskHistorysList; - // this.isdisabled= true - }); + this.jianqianwenzhendata = tjNumber; + // getInfoById(tjNumber).then((response) => { + // this.jianqianwenzhendata = response.data; + // if (this.form.xiyan == null) { + // this.form.xiyan = "1"; + // } + // if (this.form.xiyanpinlv == null) { + // this.form.xiyanpinlv = "0"; + // } + // if (this.form.xiyanyear == null) { + // this.form.xiyanyear = "0"; + // } + // if (this.form.yinjiu == null) { + // this.form.yinjiu = "1"; + // } + // if (this.form.yinjiupinlv == null) { + // this.form.yinjiupinlv = "0"; + // } + // if (this.form.yinjiuyear == null) { + // this.form.yinjiuyear = "0"; + // } + // this.form.tjAskHistorysList = response.data.tjAskHistorysList; + // // this.isdisabled= true + // }); }, tableRowClassName({ row, rowIndex }) { for (let i = 0; i < this.selectList.length; i++) { @@ -433,69 +433,11 @@ } }, - delemembers() { - let that = this; - if (that.form.tjAskHistorysList.length == that.bingshiall.length) { - that.form.tjAskHistorysList = []; - } else { - that.bingshiall.forEach((item1, index1) => { - that.form.tjAskHistorysList.forEach((item, index) => { - if (item == item1) { - that.form.tjAskHistorysList.splice(index, 1); - } - }); - }); - } - }, + - addmemberss() { - if (this.form.cusName) { - if (!this.form.workLogs) { - this.form.workLogs = []; - this.form.workLogs.push({ - id: parseInt(length), - beginTime: "", - endTime: "", - workCompany: "", - workDept: "", - workType: "", - harmTypeLogs: "", - fangHu: "", - Selection, - }); - } else { - this.form.workLogs.push({ - id: parseInt(length), - beginTime: "", - endTime: "", - workCompany: "", - workDept: "", - workType: "", - harmTypeLogs: "", - fangHu: "", - Selection, - }); - } - } else { - Message.warning("璇峰厛濉啓瀹㈡埛鍚�"); - } - this.$forceUpdate(); - }, + - delememberss() { - let that = this; - if (that.form.workLogs.length == that.chageall.length) { - that.form.workLogs = []; - } else { - that.chageall.forEach((item1, index1) => { - that.form.workLogs.forEach((item, index) => { - if (item == item1) { - that.form.workLogs.splice(index, 1); - } - }); - }); - } - }, + }, }; </script> -- Gitblit v1.8.0