wuyouming666
2024-05-15 f44c449c2f5ec5439d7df4145a28bc878018ba2b
UI-Project/src/views/Returns/returns.vue
@@ -62,23 +62,25 @@
  }
};
request.get("/loadGlass/LoadGlass/list").then((res) => {
          if (res.code == 200) {
          console.log(res.data);
          tableDataa.value = res.data
      window.localStorage.setItem('patternWidth', res.data.patternWidth)
      window.localStorage.setItem('workstationId', res.data.workstationId)
      let workstationIda = window.localStorage.getItem('workstationId')
      let patternWidth = window.localStorage.getItem('patternWidth')
      if (patternWidth !== '' || workstationIda == '1') {
      flake.value = true
    } else if (patternWidth !== '' || workstationIda == '2') {
      flakea.value = true
  if (res.code === 200) {
    console.log(res.data);
    tableDataa.value = res.data;
    if (tableDataa.value.length === 2) {
      if (tableDataa.value[0].patternWidth > 0) {
        flake.value = true;
      }
      if (tableDataa.value[1].patternWidth > 0) {
        flakea.value = true;
      }
    }
          } else {
          ElMessage.warning(res.msg)
          // router.push("/login")
          }
          });
  } else {
    ElMessage.warning(res.msg);
    // router.push("/login");
  }
});
//定义接收加载表头下拉数据
const titleSelectJson = ref({
  processType: [],