From ab91bbc86844f8452d27c5d0405b9011b685c10f Mon Sep 17 00:00:00 2001
From: wwl <xchao828@163.com>
Date: 星期四, 02 一月 2025 17:59:30 +0800
Subject: [PATCH] 12

---
 src/views/sampling/sampling/index.vue |   49 ++++++++++---------------------------------------
 1 files changed, 10 insertions(+), 39 deletions(-)

diff --git a/src/views/sampling/sampling/index.vue b/src/views/sampling/sampling/index.vue
index 1db0d69..ab8a88c 100644
--- a/src/views/sampling/sampling/index.vue
+++ b/src/views/sampling/sampling/index.vue
@@ -324,26 +324,7 @@
       />
     </div>
 
-    <!-- 娣诲姞鎴栦慨鏀逛綋妫�閲囨牱绠$悊瀵硅瘽妗� -->
-    <!-- <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
-            <el-form ref="form" :model="form" :rules="rules" label-width="80px">
-                <el-form-item label="鐢宠鏃堕棿" prop="applicationTime">
-                    <el-date-picker clearable v-model="form.applicationTime" type="date" value-format="yyyy-MM-dd"
-                        placeholder="璇烽�夋嫨鐢宠鏃堕棿">
-                    </el-date-picker>
-                </el-form-item>
-                <el-form-item label="椤圭洰id鐖堕」" prop="proId">
-                    <el-input v-model="form.proId" placeholder="璇疯緭鍏ラ」鐩甶d鐖堕」" />
-                </el-form-item>
-                <el-form-item label="椤圭洰鍚嶇О" prop="proName">
-                    <el-input v-model="form.proName" placeholder="璇疯緭鍏ラ」鐩悕绉�" />
-                </el-form-item>
-            </el-form>
-            <div slot="footer" class="dialog-footer">
-                <el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
-                <el-button @click="cancel">鍙� 娑�</el-button>
-            </div>
-        </el-dialog> -->
+
   </div>
 </template>
 
@@ -378,7 +359,7 @@
     return {
       msg: "",
       getNumbr: null,
-      valueUrl: "ws://192.168.1.2:6789/websocket",
+      valueUrl: "ws://127.0.0.1:6789/websocket",
       webSocket: null,
       list: [],
       selectList: [],
@@ -391,8 +372,8 @@
       ids: [],
       // 缁戝畾鍗曢�夋寜閽�
       tjStatus: "1",
-      dayinData:[],
-      jsonObj:{},
+      dayinData: [],
+      jsonObj: {},
 
       // 闈炲崟涓鐢�
       single: true,
@@ -971,10 +952,6 @@
 
       this.ids = array.map((item) => item.id);
     },
-
-    // 纭畾鎸夐挳
-    submitForm() {},
-
     buda() {
       var websocket = null;
       var url = this.valueUrl;
@@ -991,9 +968,8 @@
       };
       websocket.onopen = () => {
         this.websocket = websocket;
-        // var list = this.selectList;
-         this.dayinData = this.selectList.map((item) => ({
-          jyxh: item.jyxh ,
+        this.dayinData = this.selectList.map((item) => ({
+          jyxh: item.jyxh,
           proName: item.proName,
           cusName: item.cusName,
           cusSex: item.customer.cusSex,
@@ -1001,8 +977,7 @@
           cardId: item.cardId,
           tjTime: item.createTime,
         }));
-        console.log(this.dayinData,2222);
-        
+        console.log(this.dayinData, 2222);
 
         // 杩炴帴璁惧
         this.jsonObj = {
@@ -1014,17 +989,13 @@
         var jStr = JSON.stringify(this.jsonObj);
         this.websocket.send(jStr);
         this.jsonObj = {};
-        this.dialogVisible = false;
+        // this.dialogVisible = false;
       };
       // this.getList();
     },
 
     // 纭閲囨牱
     Confirmreceipt() {
-      console.log(this.selectList, 999);
-
-      console.log(1111);
-
       const loadingInstance = this.$loading({
         lock: true, // 閿佸畾灞忓箷
         text: "鍔犺浇涓�...", // 鍔犺浇鏂囨湰
@@ -1079,8 +1050,8 @@
             websocket.onmessage = (event) => {
               var resultObj = eval("(" + event.data + ")");
               console.log(resultObj, 9988);
-            };
- */
+            }; */
+
             // this.Collection();
             this.getList();
           } else {

--
Gitblit v1.8.0