From 7ece33dcba419884924da9e2ea7ba2b53775ca93 Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期一, 19 五月 2025 17:33:23 +0800
Subject: [PATCH] 1

---
 src/views/system/comp/index.vue          |   56 +++++++++++++++++++++++-----
 src/components/jianqianwenzhen/index.vue |   31 ++++++++++-----
 2 files changed, 66 insertions(+), 21 deletions(-)

diff --git a/src/components/jianqianwenzhen/index.vue b/src/components/jianqianwenzhen/index.vue
index 5b95b89..ee44b00 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: "",
@@ -1093,6 +1096,10 @@
       list(this.queryParams).then((response) => {
         this.rulesList = response.rows;
       });
+    },
+
+    handleTjwhysChange(val) {
+      console.log("tjwhys changed:", val);
     },
 
     getzhenzhuangList() {
@@ -1308,7 +1315,6 @@
         });
       }
     },
- 
 
     delemembers() {
       if (this.bingshiall && this.bingshiall.length > 0) {
@@ -1359,10 +1365,12 @@
       });
     }, */
     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 +1378,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; // 鏇存柊琛ㄥ崟鏁版嵁
 
diff --git a/src/views/system/comp/index.vue b/src/views/system/comp/index.vue
index ae43de9..2bb7b91 100644
--- a/src/views/system/comp/index.vue
+++ b/src/views/system/comp/index.vue
@@ -1309,7 +1309,6 @@
               v-model="form.industryType"
               placeholder="璇烽�夋嫨闅跺睘鍏崇郴"
               clearable
-              style="width: 70px"
             >
               <el-option
                 v-for="dict in dict.type.sys_yes_no"
@@ -1320,16 +1319,55 @@
             </el-select>
           </el-form-item>
           <el-form-item label="缁忔祹绫诲瀷" prop="jjType" v-if="form.isZybUnit">
-            <el-input v-model="form.jjType" placeholder="璇疯緭鍏ョ粡娴庣被鍨�" />
+            <!-- <el-input v-model="form.jjType" placeholder="璇疯緭鍏ョ粡娴庣被鍨�" /> -->
+            <el-select
+              filterable
+              v-model="form.jjType"
+              placeholder="璇烽�夋嫨缁忔祹鍒嗙被"
+              clearable
+            >
+              <el-option
+                v-for="dict in dict.type.sys_yes_no"
+                :key="dict.value"
+                :label="dict.label"
+                :value="dict.value"
+              />
+            </el-select>
           </el-form-item>
           <el-form-item label="浼佷笟瑙勬ā" prop="qygm" v-if="form.isZybUnit">
             <el-input v-model="form.qygm" placeholder="璇疯緭鍏ヤ紒涓氳妯�" />
           </el-form-item>
           <el-form-item label="琛屼笟鍒嗙被" prop="hyfl" v-if="form.isZybUnit">
-            <el-input v-model="form.hyfl" placeholder="璇疯緭鍏ヨ涓氬垎绫�" />
+            <!-- <el-input v-model="form.hyfl" placeholder="璇疯緭鍏ヨ涓氬垎绫�" /> -->
+            <el-select
+              filterable
+              v-model="form.hyfl"
+              placeholder="璇烽�夋嫨琛屼笟鍒嗙被"
+              clearable
+            >
+              <el-option
+                v-for="dict in dict.type.sys_yes_no"
+                :key="dict.value"
+                :label="dict.label"
+                :value="dict.value"
+              />
+            </el-select>
           </el-form-item>
           <el-form-item label="椋庨櫓璇勪及" prop="fxpg" v-if="form.isZybUnit">
-            <el-input v-model="form.fxpg" placeholder="璇疯緭鍏ラ闄╄瘎浼�" />
+            <!-- <el-input v-model="form.fxpg" placeholder="璇疯緭鍏ラ闄╄瘎浼�" /> -->
+            <el-select
+              filterable
+              v-model="form.fxpg"
+              placeholder="璇烽�夋嫨椋庨櫓璇勪及"
+              clearable
+            >
+              <el-option
+                v-for="dict in dict.type.sys_yes_no"
+                :key="dict.value"
+                :label="dict.label"
+                :value="dict.value"
+              />
+            </el-select>
           </el-form-item>
           <el-form-item label="寮�鎴烽摱琛�" prop="bankAccount">
             <el-input
@@ -1417,7 +1455,7 @@
     "dict_data_status",
     "sys_user_sex",
     "reservation_pay_type",
-    "sys_yes_no"
+    "sys_yes_no",
   ],
   data() {
     let checkPhoneNum = (rule, value, callback) => {
@@ -1762,10 +1800,10 @@
       this.ids = selection.map((item) => item.drugManufacturerId);
       this.single = selection.length !== 1;
       this.multiple = !selection.length;
-        if (selection.length > 1) {
+      if (selection.length > 1) {
         // 濡傛灉閫夋嫨浜嗗琛岋紝淇濈暀鏈�鍚庝竴琛�
-        this.$refs.tab.clearSelection();  // 娓呯┖鎵�鏈夐�夋嫨
-        this.$refs.tab.toggleRowSelection(selection[selection.length - 1]);  // 閲嶆柊閫夋嫨鏈�鍚庝竴椤�
+        this.$refs.tab.clearSelection(); // 娓呯┖鎵�鏈夐�夋嫨
+        this.$refs.tab.toggleRowSelection(selection[selection.length - 1]); // 閲嶆柊閫夋嫨鏈�鍚庝竴椤�
       }
     },
     // 閮ㄩ棬琛ㄦ牸鍗曡鑾峰彇
@@ -2007,8 +2045,6 @@
         this.dataList = selection;
         this.resetright();
       }
-
-      
     },
     resetright() {
       if (this.dataList.length == 0) {

--
Gitblit v1.8.0