lkk
2024-12-16 c7b33db117fd2893d7d1c93bf5d46e87d33e44d0
src/views/sampling/sampling/index.vue
@@ -378,7 +378,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 +391,8 @@
      ids: [],
      // 绑定单选按钮
      tjStatus: "1",
      dayinData:[],
      jsonObj:{},
      dayinData: [],
      jsonObj: {},
      // 非单个禁用
      single: true,
@@ -991,9 +991,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 +1000,7 @@
          cardId: item.cardId,
          tjTime: item.createTime,
        }));
        console.log(this.dayinData,2222);
        console.log(this.dayinData, 2222);
        // 连接设备
        this.jsonObj = {
@@ -1014,7 +1012,7 @@
        var jStr = JSON.stringify(this.jsonObj);
        this.websocket.send(jStr);
        this.jsonObj = {};
        this.dialogVisible = false;
        // this.dialogVisible = false;
      };
      // this.getList();
    },
@@ -1079,8 +1077,8 @@
            websocket.onmessage = (event) => {
              var resultObj = eval("(" + event.data + ")");
              console.log(resultObj, 9988);
            };
 */
            }; */
            // this.Collection();
            this.getList();
          } else {