|
@@ -103,7 +103,7 @@ import { useDictionaryStore } from "@/store/modules/dictionary";
|
|
import { getProcessInfo } from "@/api/prosteps";
|
|
import { getProcessInfo } from "@/api/prosteps";
|
|
|
|
|
|
import { CirclePlus, Remove } from "@element-plus/icons-vue";
|
|
import { CirclePlus, Remove } from "@element-plus/icons-vue";
|
|
-import { reportWork, reportWorkList } from "@/api/process/reportBreak";
|
|
|
|
|
|
+import { reportWork } from "@/api/process/reportBreak";
|
|
|
|
|
|
const processStore = useProcessStore();
|
|
const processStore = useProcessStore();
|
|
const dictStroe = useDictionaryStore();
|
|
const dictStroe = useDictionaryStore();
|
|
@@ -125,13 +125,14 @@ const openReportWorkDrawer = () => {
|
|
processStore.scanInfo.currentState = res.data.currentState;
|
|
processStore.scanInfo.currentState = res.data.currentState;
|
|
if (res.data.currentState !== "start") {
|
|
if (res.data.currentState !== "start") {
|
|
ElMessage.warning("当前工单状态不允许报工");
|
|
ElMessage.warning("当前工单状态不允许报工");
|
|
- formDisabled.value = true;
|
|
|
|
- reportWorkList(processStore.scanInfo.id).then((res) => {
|
|
|
|
- persons.value = res.data || [];
|
|
|
|
- });
|
|
|
|
|
|
+ // formDisabled.value = true;
|
|
|
|
+ // reportWorkList(processStore.scanInfo.id).then((res) => {
|
|
|
|
+ // persons.value = res.data || [];
|
|
|
|
+ // });
|
|
|
|
+ } else {
|
|
|
|
+ drawerVisible.value = true;
|
|
|
|
+ formDisabled.value = false;
|
|
}
|
|
}
|
|
- drawerVisible.value = true;
|
|
|
|
- formDisabled.value = false;
|
|
|
|
});
|
|
});
|
|
};
|
|
};
|
|
|
|
|