Parcourir la source

1.登录后到具体页面的逻辑。

jiaxiaoqiang il y a 1 an
Parent
commit
1d21768e9f
2 fichiers modifiés avec 4 ajouts et 14 suppressions
  1. 3 7
      src/views/login/index.vue
  2. 1 7
      src/views/storage-out/index.vue

+ 3 - 7
src/views/login/index.vue

@@ -282,14 +282,10 @@ function handleLogin() {
           userStore.user.proCode = loginData.value.proCode;
 
           // 捡选 装配 测试 维修站 预齐套
-          if (stationType == "1") {
-            router.replace({ name: "StorageMain" });
-          } else if (stationType == "2" || stationType == "3") {
-            router.replace({ name: "ProcessMain" });
-          } else if (stationType == "4") {
-            router.replace({ name: "RepairMain" });
-          } else if (stationType == "5") {
+          if (stationType == "5") {
             router.replace({ name: "PrepareMain" });
+          } else {
+            router.replace({ name: "ProcessMain" });
           }
         })
         .catch(() => {

+ 1 - 7
src/views/storage-out/index.vue

@@ -143,12 +143,6 @@ const enterBox = () => {
 const clickBox = (box: any, index: number) => {
   currentBox.value = box;
   currentBoxIndex.value = index;
-  box.vehicleName = "改变了";
-
-  let testObj: any = reactive(currentBox.value);
-
-  console.log(testObj);
-  testObj.vehicleName = "ddddd";
 };
 const sureToOut = async () => {
   await toOutBox({
@@ -190,7 +184,7 @@ const backToStorage = async () => {
 
 // 物料
 const scanCodeInput = ref("");
-const materialList = ref<any>([]);
+const materialList = ref<any[]>([]);
 
 const handleScanCodeInput = () => {
   getMaterialInfoByLabel(scanCodeInput.value).then((res) => {