From caef1ff213da160e818342eceb3d77fac0db280d Mon Sep 17 00:00:00 2001
From: qx <1084500556@qq.com>
Date: 星期五, 30 五月 2025 16:41:29 +0800
Subject: [PATCH] qx

---
 src/components/jianqianwenzhen/index.vue |   47 +++++++++++++++++++++++------------------------
 1 files changed, 23 insertions(+), 24 deletions(-)

diff --git a/src/components/jianqianwenzhen/index.vue b/src/components/jianqianwenzhen/index.vue
index 5b95b89..b3c5140 100644
--- a/src/components/jianqianwenzhen/index.vue
+++ b/src/components/jianqianwenzhen/index.vue
@@ -83,12 +83,12 @@
             </el-form-item>
             <el-form-item
               label="鎺ヨЕ鏈夊鐗╁伐榫�"
-              prop="zgongLing"
+              prop="jhgl"
               label-width="150px"
             >
               <!-- <el-input v-model="form.cusName" placeholder="璇疯緭鍏ュ伐榫�" style="width: 150px" />骞� -->
               <el-input-number
-                v-model="form.zgongLing"
+                v-model="form.jhgl"
                 label="璇疯緭鍏ユ帴瑙︽湁瀹崇墿宸ラ緞"
               ></el-input-number
               >骞�
@@ -108,10 +108,11 @@
                 style="width: 700px"
               />
             </el-form-item> -->
-            <el-form-item label="浣撴鍗卞鍥犵礌" prop="tjwhyx">
+            <el-form-item label="浣撴鍗卞鍥犵礌" prop="tjwhys">
               <el-select
                 filterable
-                v-model="form.tjwhyx"
+                v-model="form.tjwhys"
+                @change="handleTjwhysChange"
                 placeholder="璇烽�夋嫨浣撴鍗卞鍥犵礌"
                 clearable
                 style="width: 180px"
@@ -126,12 +127,12 @@
             </el-form-item>
             <el-form-item
               label="鎺ヨЕ鍗卞鍥犵礌"
-              prop="tcwhyx"
+              prop="jcwhys"
               style="margin-left: 30px"
             >
               <el-select
                 filterable
-                v-model="form.tcwhyx"
+                v-model="form.jcwhys"
                 placeholder="璇烽�夋嫨鎺ヨЕ鍗卞鍥犵礌"
                 clearable
                 style="width: 180px"
@@ -913,9 +914,11 @@
         dwmc: "",
         ygdw: "",
         gongLing: "",
-        zgongLing: "",
+        jhgl: "",
         yjsfyc: "", // 鏄惁寮傚父
         ycms: "", // 寮傚父鎻忚堪
+        tjwhys: "",
+        jcwhys: "",
         xiyan: "",
         xiyanpinlv: "",
         xiyanyear: "",
@@ -1029,9 +1032,8 @@
   created() {
     this.getList();
     this.getzhenzhuangList();
-    console.log(this.form.cusSex, 15555);
-    console.log("鎺ユ敹", this.jianqianwenzhendata);
-    // console.log(this.dict.type.sys_yes_no,666666);
+    // console.log(this.form.cusSex, 15555);
+    // console.log("鎺ユ敹", this.jianqianwenzhendata);
 
     if (this.jianqianwenzhendata.length == 1) {
       this.jianqianwenzhendata.forEach((item) => {
@@ -1093,6 +1095,10 @@
       list(this.queryParams).then((response) => {
         this.rulesList = response.rows;
       });
+    },
+
+    handleTjwhysChange(val) {
+      console.log("tjwhys changed:", val);
     },
 
     getzhenzhuangList() {
@@ -1308,7 +1314,6 @@
         });
       }
     },
- 
 
     delemembers() {
       if (this.bingshiall && this.bingshiall.length > 0) {
@@ -1348,21 +1353,14 @@
       this.chageall = [];
       this.chageall = selection;
     },
-    /** 鎻愪氦鎸夐挳 */
-    /* submitForm() {
-      // this.form.tjAskHistorysList.forEach(element=>{
-      //   element.icdId = this.icdId;
-      // })
-      updateHistory(this.form).then((response) => {
-        this.$modal.msgSuccess("淇敼鎴愬姛");
-        this.form = response.data;
-      });
-    }, */
+
     submitForm() {
+      console.log("鎻愪氦鍓� form:", JSON.parse(JSON.stringify(this.form)));
       this.$refs.form.validate((valid) => {
+        console.log("鏍¢獙鍚� form:", JSON.parse(JSON.stringify(this.form)));
         if (valid) {
           this.$emit("submitLoading", true);
-          // this.form.medicalHistory =this.form.mediHistory
+
           const selected = this.form.mediHistoryq || [];
 
           this.form.medicalHistory = selected.map((name) => {
@@ -1370,14 +1368,15 @@
             // console.log(match);
 
             return {
-              icdname: match.icdname,
+              icdname: match ? match.icdname : "",
               id: match ? match.id : "",
             };
           });
-          console.log(this.form.medicalHistory, 1236);
+          console.log(this.form, 1236);
 
           updateHistory(this.form)
             .then((response) => {
+              console.log("鎺ュ彛杩斿洖鏁版嵁", response.data);
               this.$message.success("淇敼鎴愬姛");
               // this.form = response.data; // 鏇存柊琛ㄥ崟鏁版嵁
 

--
Gitblit v1.8.0