From 1e78fbfb63e192c5284b19bba161ea12e80a7d92 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期四, 04 七月 2024 16:30:04 +0800
Subject: [PATCH] 测试完成

---
 src/views/patient/patient/PatientChart.vue |   27 +++++++++++----------------
 1 files changed, 11 insertions(+), 16 deletions(-)

diff --git a/src/views/patient/patient/PatientChart.vue b/src/views/patient/patient/PatientChart.vue
index 2b54b5c..0ef70bd 100644
--- a/src/views/patient/patient/PatientChart.vue
+++ b/src/views/patient/patient/PatientChart.vue
@@ -906,24 +906,19 @@
     //淇敼/鏂板鎮h��
     submitForm() {
       if (this.amendtag) {
-        alterpatient(this.form)
-          .then((response) => {
-            console.log(response);
-          })
-          .then(() => {
-            this.getList();
-            this.$modal.msgSuccess("淇敼鎴愬姛");
-          });
+        console.log(22);
+        this.form.isoperation = 2;
       } else {
-        addpatient(this.form)
-          .then((response) => {
-            console.log(response);
-          })
-          .then(() => {
-            this.getList();
-            this.$modal.msgSuccess("娣诲姞鎴愬姛");
-          });
+        this.form.isoperation = 1;
       }
+      alterpatient(this.form)
+        .then((response) => {
+          console.log(response);
+        })
+        .then(() => {
+          this.getList();
+          this.$modal.msgSuccess("淇濆瓨鎴愬姛");
+        });
       this.reset();
       // this.idds = "";
       this.Labelchange = false;

--
Gitblit v1.9.3