From 2c56eb01de07a87d025b3301efd5fcbf1d18c1af Mon Sep 17 00:00:00 2001
From: qx <1084500556@qq.com>
Date: 星期五, 23 五月 2025 17:26:02 +0800
Subject: [PATCH] qx

---
 src/views/system/comp/index.vue |   94 +++++++++++++++++++++++++++++++++++++----------
 1 files changed, 74 insertions(+), 20 deletions(-)

diff --git a/src/views/system/comp/index.vue b/src/views/system/comp/index.vue
index 0bd0f14..2bb7b91 100644
--- a/src/views/system/comp/index.vue
+++ b/src/views/system/comp/index.vue
@@ -946,7 +946,6 @@
             </el-table>
           </el-col>
         </el-row>
-        <!-- -=----------------------------------------------------- -->
         <el-row :gutter="24" v-else>
           <el-col :span="6" :xs="24">
             <el-form
@@ -1297,26 +1296,78 @@
             <el-input v-model="form.zybCode" placeholder="璇疯緭鍏ユ墍灞炲湴鍖�" />
           </el-form-item>
           <el-form-item
-            label="浜插睘鍏崇郴"
+            label="闅跺睘鍏崇郴"
             prop="industryType"
             v-if="form.isZybUnit"
           >
-            <el-input
+            <!-- <el-input
               v-model="form.industryType"
-              placeholder="璇疯緭鍏ヤ翰灞炲叧绯�"
-            />
+              placeholder="璇疯緭鍏ラ毝灞炲叧绯�"
+            /> -->
+            <el-select
+              filterable
+              v-model="form.industryType"
+              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="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
@@ -1404,6 +1455,7 @@
     "dict_data_status",
     "sys_user_sex",
     "reservation_pay_type",
+    "sys_yes_no",
   ],
   data() {
     let checkPhoneNum = (rule, value, callback) => {
@@ -1477,7 +1529,7 @@
       id: "",
       // 琛ㄥ崟鍙傛暟
       form: {
-        isZybUnit: 0,  
+        isZybUnit: 0,
       },
       lastXianPrice: 0,
       forms: {
@@ -1556,7 +1608,7 @@
       return this.sfzs === "Y";
     },
   },
- 
+
   created() {
     this.getList();
   },
@@ -1720,7 +1772,7 @@
         validTime: null,
         wbm: null,
         deleted: null,
-        isZybUnit: 0
+        isZybUnit: 0,
       };
       this.resetForm("form");
     },
@@ -1748,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]); // 閲嶆柊閫夋嫨鏈�鍚庝竴椤�
       }
     },
     // 閮ㄩ棬琛ㄦ牸鍗曡鑾峰彇
@@ -1785,7 +1837,7 @@
     /** 鏂板鎸夐挳鎿嶄綔 */
     handleAdd() {
       this.reset();
-      this.form.isZybUnit = 0;  
+      this.form.isZybUnit = 0;
       this.open = true;
       this.title = "娣诲姞浣撴鍗曚綅淇℃伅缁存姢";
     },
@@ -1797,7 +1849,7 @@
         // 涓嶈鐩存帴璧嬪�兼暣涓� response.data锛岃�屾槸閫愪釜灞炴�ц祴鍊�
         Object.assign(this.form, response.data);
         this.form.isZybUnit = response.data.isZybUnit === true ? 1 : 0;
-        console.log('淇敼鏃剁殑 isZybUnit 鍊�:', this.form.isZybUnit);
+        console.log("淇敼鏃剁殑 isZybUnit 鍊�:", this.form.isZybUnit);
         this.open = true;
         this.title = "淇敼浣撴鍗曚綅淇℃伅缁存姢";
       });
@@ -1993,8 +2045,6 @@
         this.dataList = selection;
         this.resetright();
       }
-
-      
     },
     resetright() {
       if (this.dataList.length == 0) {
@@ -2438,7 +2488,7 @@
         if (valid) {
           const submitData = {
             ...this.form,
-            isZybUnit: Boolean(this.form.isZybUnit)  // 杞崲涓哄竷灏斿��
+            isZybUnit: Boolean(this.form.isZybUnit), // 杞崲涓哄竷灏斿��
           };
           if (this.form.drugManufacturerId != null) {
             updateComp(submitData).then((response) => {
@@ -2447,7 +2497,11 @@
               this.getList();
             });
           } else {
-            if (this.form.cnName && this.form.contactPerson && this.form.contactPhone) {
+            if (
+              this.form.cnName &&
+              this.form.contactPerson &&
+              this.form.contactPhone
+            ) {
               addComp(submitData).then((response) => {
                 this.$modal.msgSuccess("鏂板鎴愬姛");
                 this.open = false;

--
Gitblit v1.8.0