From d23ab1d66456d5dd8aa8645bb262deef4e70a9eb Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期五, 17 一月 2025 19:02:01 +0800
Subject: [PATCH] 2

---
 src/views/sampling/sampling/index.vue |   57 ++++++++++++++-------------------------------------------
 1 files changed, 14 insertions(+), 43 deletions(-)

diff --git a/src/views/sampling/sampling/index.vue b/src/views/sampling/sampling/index.vue
index d387186..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>
 
@@ -391,6 +372,9 @@
       ids: [],
       // 缁戝畾鍗曢�夋寜閽�
       tjStatus: "1",
+      dayinData: [],
+      jsonObj: {},
+
       // 闈炲崟涓鐢�
       single: true,
       // 闈炲涓鐢�
@@ -968,13 +952,8 @@
 
       this.ids = array.map((item) => item.id);
     },
-
-    // 纭畾鎸夐挳
-    submitForm() {},
-
     buda() {
       var websocket = null;
-
       var url = this.valueUrl;
       if ("WebSocket" in window) {
         websocket = new WebSocket(url);
@@ -989,8 +968,7 @@
       };
       websocket.onopen = () => {
         this.websocket = websocket;
-        var list = this.selectList;
-        var data = list.map((item) => ({
+        this.dayinData = this.selectList.map((item) => ({
           jyxh: item.jyxh,
           proName: item.proName,
           cusName: item.cusName,
@@ -999,32 +977,25 @@
           cardId: item.cardId,
           tjTime: item.createTime,
         }));
+        console.log(this.dayinData, 2222);
 
         // 杩炴帴璁惧
-        var jsonObj = {
+        this.jsonObj = {
           type: "3",
           array: {
-            data: data,
+            data: this.dayinData,
           },
         };
-        var jStr = JSON.stringify(jsonObj);
+        var jStr = JSON.stringify(this.jsonObj);
         this.websocket.send(jStr);
-        var jsonObj = {};
-        this.dialogVisible = false;
+        this.jsonObj = {};
+        // this.dialogVisible = false;
       };
-      // websocket.onmessage = (event) => {
-      //   var resultObj = eval("(" + event.data + ")");
-      //   console.log(resultObj, 9988);
-      // };
-      this.getList();
+      // 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