From 061a4d2d7e73aa92c7ad61a34cf471d26fb08a32 Mon Sep 17 00:00:00 2001
From: wwl <xchao828@163.com>
Date: 星期二, 24 十二月 2024 10:22:20 +0800
Subject: [PATCH] 增加参数

---
 src/views/system/tijian/index.vue |   72 +++++++++++++----------------------
 1 files changed, 27 insertions(+), 45 deletions(-)

diff --git a/src/views/system/tijian/index.vue b/src/views/system/tijian/index.vue
index 7dcebe1..e433206 100644
--- a/src/views/system/tijian/index.vue
+++ b/src/views/system/tijian/index.vue
@@ -327,7 +327,7 @@
               />
             </el-form-item>
 
-            <el-form-item label="骞撮緞  " prop="age">
+            <el-form-item label="骞撮緞" prop="age">
               <el-input
                 v-model="form.age"
                 :disabled="isDisabled"
@@ -368,13 +368,15 @@
               />
             </el-form-item>
 
-            <el-form-item label="鍗曚綅鍚嶇О" prop="dictCompId">
+            <el-form-item label="鍗曚綅鍚嶇О" prop="compName">
               <el-select
-                :remote-method="getRemoteData"
+                :disabled="isDisabled"
                 v-model="form.compName"
                 remote
+                default-first-option
+                allow-create
                 filterable
-                style="width: 300px"
+                style="width: 200px"
                 placeholder="璇烽�夋嫨鍗曚綅鍚嶇О"
                 clearable
                 @change="idFn1"
@@ -383,13 +385,13 @@
                   v-for="dict in CompanyList"
                   :key="dict.cnName"
                   :label="dict.cnName"
-                  :value="dict.drugManufacturerId"
+                  :value="dict.cnName"
                 />
               </el-select>
-              <i class="el-icon-circle-plus-outline" @click="handleAdd1"></i>
+              <!-- <i class="el-icon-circle-plus-outline" @click="handleAdd1"></i> -->
             </el-form-item>
 
-            <el-form-item label="鏂囧寲绋嬪害" prop="wenHua">
+            <el-form-item label="鏂囧寲绋嬪害" prop="wenHua" label-width="93px">
               <el-input
                 :disabled="isDisabled"
                 v-model="form.wenHua"
@@ -1148,7 +1150,7 @@
                     style="width: 100%"
                     height="270"
                   >
-                    <el-table-column prop="s" label="椤圭洰" width="180">
+                    <el-table-column prop="proName" label="椤圭洰" width="180">
                     </el-table-column>
                     <el-table-column prop="proType" label="鎬у埆" width="180">
                       <template
@@ -1765,7 +1767,7 @@
       CompanyList: [],
       form: {
         cusIdcard: "",
-        tjType: "3",
+        tjType: "",
         cusSex: 1,
         cusNational: "1",
         cusMarryStatus: "5",
@@ -1819,9 +1821,7 @@
     this.getList1();
     // this.getData();
   },
-  mounted() {
-
-  },
+  mounted() {},
 
   methods: {
     getCompanyList() {
@@ -1866,25 +1866,18 @@
       this.title = "娣诲姞浣撴鍗曚綅淇℃伅缁存姢";
     },
     idFn1(value) {
-
       if (value) {
-        this.form.dictCompId = value;
+        const originalCompId = this.form.dictCompId;
+        this.form.compName = value;
         this.CompanyList.forEach((item) => {
-          if (item.drugManufacturerId == this.form.dictCompId) {
-            this.form.compName = item.cnName;
+          if (item.cnName == this.form.compName) {
+            this.form.dictCompId = item.drugManufacturerId;
           }
         });
-      }
-    },
-    getRemoteData(query) {
-      if (query) {
-        let compName = query;
-        queryCompany(compName).then((response) => {
-          this.CompanyList = response.data;
-          this.CompanyList.forEach((item) => {
-            this.objs = item;
-          });
-        });
+
+        if (this.form.dictCompId === originalCompId) {
+          this.form.dictCompId = "";
+        }
       }
     },
     getCurrentDateTime() {
@@ -2391,7 +2384,7 @@
               this.discount = this.form.discount;
             }
             if (this.form.tjType === null) {
-              this.form.tjType = "3";
+              this.form.tjType = this.dict.type.dict_team[0].value;
             }
             if (this.form.cusMarryStatus === "null") {
               this.form.cusMarryStatus = "5";
@@ -2480,7 +2473,6 @@
       } else {
         let configKey = "getInfoFromSqlData";
         getconfigKey(configKey).then((res) => {
-      
           if (res.code == 200) {
             if (res.msg == "N") {
               var websocket = null;
@@ -2490,7 +2482,6 @@
               } else if ("MozWebSocket" in window) {
                 websocket = new MozWebSocket(url);
               } else {
-              
               }
 
               if (websocket == null) {
@@ -2523,10 +2514,9 @@
 
               //鎺ユ敹鍒版秷鎭殑鍥炶皟鏂规硶
               websocket.onmessage = (event) => {
-
                 var resultObj = eval("(" + event.data + ")");
                 //resultFlag涓�0浠h〃璇诲崱鎴愬姛
-        
+
                 // TODO 浠ヤ笅浠g爜鍙兘鏄尘宸濅娇鐢ㄧ殑
                 // this.jingChuanHandlerWebSocketResult(resultObj)
                 this.readCardWebSocket(resultObj);
@@ -2545,14 +2535,14 @@
               _this.cardreaderradio = 3;
               _this.inputSSS = "";
               // let url = window.location.protocol + "//" + window.location.host;
-    
+
               // axios
               //   .get("http://localhost:81/dev-api/readCertCardInfos")
               //   .then((res) => {
-        
+
               //   })
               //   .catch((err) => {
-    
+
               //   });
 
               // readCertCardInfos().then((res) => {
@@ -2579,8 +2569,6 @@
     readCardWebSocket(resultObj) {
       let _this = this;
       if (resultObj.code === 200 && resultObj.data.name != null) {
-
-
         //鍥炴樉鐩稿叧鏁版嵁
         _this.form.cusName = resultObj.data.name;
         _this.form.cusSex = resultObj.data.sex == "0" ? "濂�" : "鐢�";
@@ -2678,7 +2666,6 @@
         } else if ("MozWebSocket" in window) {
           websocket = new MozWebSocket(url);
         } else {
-         
         }
         if (websocket == null) {
           alert("11111");
@@ -2783,7 +2770,6 @@
         } else if ("MozWebSocket" in window) {
           websocket = new MozWebSocket(url);
         } else {
-       
         }
         if (websocket == null) {
           alert("11111");
@@ -3176,7 +3162,6 @@
       this.loading = true;
       getProParentIdDxList().then((response) => {
         this.Treedata = response.data.list;
-      
 
         if (this.tableData[0]) {
           this.tableData[0].tjProjectList.forEach((selectionitem) => {
@@ -3200,7 +3185,7 @@
         };
         getlistByZhId(datas).then((res) => {
           this.packagedataList = res.data.tjProjectList;
-         
+
           this.DataLists = [];
           this.checkedListkey1 = [];
           for (var i = 0; i < this.packagedataList.length; i++) {
@@ -3210,12 +3195,11 @@
             getProSonDxList(proId).then((res) => {
               this.TreedataList = res.data.list;
 
-
               this.TreedataList.forEach((item) => {
                 // this.checkedListkey1.push(item.proId);
 
                 this.DataLists.push(item);
-     
+
                 if (this.DataLists.length >= 1) {
                   this.marryalls = 0;
                   this.DataLists.forEach((item1) => {
@@ -3466,7 +3450,6 @@
       };
       getaddtTransition(data).then((response) => {
         if (response.code == 200) {
-
           let cusId = this.form.cusIdcard;
           this.proIds = [];
           getTransitionList(cusId).then((response) => {
@@ -3503,7 +3486,6 @@
           });
         } else {
           console.log(澶辫触浜�);
-          
         }
       });
       this.taocan = false;

--
Gitblit v1.8.0