From c6b239ab1c8c78d4c063ee906abed3f888540a1e Mon Sep 17 00:00:00 2001 From: shidongli Date: Fri, 8 Mar 2024 09:50:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E6=9C=AF=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../operationInfo/operationInfo/index.vue | 46 ++----------------- 1 file changed, 5 insertions(+), 41 deletions(-) diff --git a/src/views/operationInfo/operationInfo/index.vue b/src/views/operationInfo/operationInfo/index.vue index a786e86..3fa34ea 100644 --- a/src/views/operationInfo/operationInfo/index.vue +++ b/src/views/operationInfo/operationInfo/index.vue @@ -440,23 +440,6 @@ export default { this.diseaseTypeName = '请选择病种'; this.innerVisibleshow = false; }, - - // 左侧科室 - // itemdata(item) { - // if (item) { - // this.itemname = item.id - // this.form.departmentId = this.itemname - // this.form.departmentName = item.departmentName - // this.loading = true; - // this.queryParams.departmentId = this.itemname - // this.getList() - // } else { - // this.queryParams.departmentId = '' - // this.itemname = null - // this.getList() - - // } - // }, // 左侧科室 itemdata(item) { if (item) { @@ -479,7 +462,6 @@ export default { let sum = 0; this.DepartmentoList.forEach((item) => { if (item.countNum != null) { - console.log(item.countNum) sum += item.countNum; } this.count = sum; @@ -494,7 +476,6 @@ export default { listOperationInfo(this.queryParams).then(response => { this.operationInfoList = response.rows; this.operationInfoList.forEach(e => { - console.log(e) }) this.total = response.total; this.loading = false; @@ -511,8 +492,8 @@ export default { reset() { this.form = { id: null, - // departmentId: null, - // departmentName: null, + departmentId: null, + departmentName: null, operationName: null, operationCode: null, operationInfo: null, @@ -554,19 +535,6 @@ export default { }, /** 新增按钮操作 */ handleAdd() { - // console.log(this.itemname) - // if (!this.itemname) { - // this.$modal.msgError("请先选择科室"); - // } else { - // // this.reset(); - // this.form.operationName = null; - // this.form.operationInfo = null; - // this.open = true; - // this.title = "添加手术信息"; - // if (this.title == "添加手术信息") { - // this.disabled = false; - // } - // } this.reset(); if (this.itemname) { this.form.departmentName = this.departmentName @@ -589,11 +557,8 @@ export default { this.open = true; const id = row.id || this.ids getOperationInfo(id).then(response => { - this.form.operationInfo = response.data.operationInfo; - this.form.operationName = response.data.operationName; - this.form.departmentId = response.data.departmentId; - this.form.departmentName = response.data.departmentName; - this.form.id = response.data.id; + this.form = response.data; + this.departmentName = response.data.departmentName; this.open = true; this.title = "修改手术信息"; if (this.title == "修改手术信息") { @@ -604,11 +569,11 @@ export default { }, /** 提交按钮 */ submitForm() { + this.form.departmentName = this.departmentName console.log(this.form,'0000') this.$refs["form"].validate(valid => { if (valid) { if (this.form.id!=null) { - this.form.departmentName = this.departmentName updateOperationInfo(this.form).then(response => { this.$modal.msgSuccess("修改成功"); this.open = false; @@ -622,7 +587,6 @@ export default { } else { this.form.departmentName = this.departmentName - console.log(this.form,'1111') } addOperationInfo(this.form).then(response => { this.$modal.msgSuccess("新增成功");