From ba57b519a005cd816f1a178f2c062426cff13f7c Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 15 七月 2025 11:09:07 +0800
Subject: [PATCH] 测试完成

---
 src/views/patient/patient/profile/index.vue |   38 +++++++++++++++++++++++---------------
 1 files changed, 23 insertions(+), 15 deletions(-)

diff --git a/src/views/patient/patient/profile/index.vue b/src/views/patient/patient/profile/index.vue
index 0376149..0a68933 100644
--- a/src/views/patient/patient/profile/index.vue
+++ b/src/views/patient/patient/profile/index.vue
@@ -16,11 +16,11 @@
               {{ userform.sex == 1 ? "鐢�" : "濂�" }}
             </div>
             <div style="margin-left: 10px" class="text-title">
-               <span v-if="userform.age"
-                    >{{ userform.age }}{{ userform.ageUnit }}</span
-                  ><span v-if="userform.age2"
-                    >{{ userform.age2 }}{{ userform.ageUnit2 }}</span
-                  >
+              <span v-if="userform.age"
+                >{{ userform.age }}{{ userform.ageUnit }}</span
+              ><span v-if="userform.age2"
+                >{{ userform.age2 }}{{ userform.ageUnit2 }}</span
+              >
             </div>
             <div style="margin-left: 10px" class="text-title">
               {{ userform.birthdate }}
@@ -127,11 +127,21 @@
                     disabled
                   ></el-input> </el-form-item
               ></el-col>
+            </el-row>
+            <el-row :gutter="20">
               <el-col :span="12"
                 ><el-form-item label="鑱旂郴鏂瑰紡" prop="telcode">
                   <el-input
                     v-model="userform.telcode"
                     placeholder="璇疯緭鍏ヨ仈绯绘柟寮�"
+                    maxlength="30"
+                  /> </el-form-item
+              ></el-col>
+              <el-col :span="12"
+                ><el-form-item label="棰勭暀鐢佃瘽" prop="reservedPhone">
+                  <el-input
+                    v-model="userform.reservedPhone"
+                    placeholder="璇疯緭鍏ラ鐣欑數璇�"
                     maxlength="30"
                   /> </el-form-item
               ></el-col>
@@ -313,9 +323,8 @@
                     <el-radio label="MCT濂�">MCT濂�</el-radio>
                     <el-radio label="鍏跺畠鐗规畩濂剁矇">鍏跺畠鐗规畩濂剁矇</el-radio>
                   </el-radio-group>
-                </el-form-item> </el-col
-              >
-
+                </el-form-item>
+              </el-col>
             </el-row>
           </el-form>
         </div>
@@ -1326,7 +1335,7 @@
       if (tab.index == "1") {
         this.getList(1);
       } else if (tab.index == "2") {
-        this.newbornList();
+        this.newcharts();
       } else if (tab.index == "3") {
         this.handleClickfw();
       }
@@ -1384,7 +1393,7 @@
       this.$refs["borninfoform"].validate((valid) => {
         if (valid) {
           this.borninfoform.patId = this.id;
-
+          this.borninfoform.sex = this.userform.sex;
           newborninfoadd(this.borninfoform).then((res) => {
             if (res.code == 200) {
               this.$modal.msgSuccess("鏂板鎴愬姛");
@@ -1787,18 +1796,17 @@
 
     // 鑾峰彇鏂扮敓鍎挎暟鎹�
     newbornList() {
-      return newborninfolist({ patId: this.id })
+      newborninfolist({ patId: this.id })
         .then((response) => {
           this.borninfooptions = response.rows || [];
-
-          this.newcharts();
+          // this.newcharts();
           console.log("鍔犺浇鐨勬柊鐢熷効鏁版嵁:", this.borninfooptions);
-          return Promise.resolve();
+          // return Promise.resolve();
         })
         .catch((error) => {
           console.error("璇锋眰鏁版嵁澶辫触:", error);
           this.borninfooptions = [];
-          return Promise.reject(error);
+          // return Promise.reject(error);
         });
     },
     // 蹇冪巼

--
Gitblit v1.9.3