Browse Source

报工初始化弹窗数据。

jiaxiaoqiang 5 months ago
parent
commit
f94c51b1cc
1 changed files with 13 additions and 2 deletions
  1. 13 2
      src/views/pro-operation/report-work/index.vue

+ 13 - 2
src/views/pro-operation/report-work/index.vue

@@ -234,8 +234,19 @@ const removeSeq = (item) => {
   selectedProcess.value = selectedProcess.value.filter((e) => e !== item);
 };
 const openReportWorkDrawer = () => {
-  checkAll.value = false;
-  selectedProcess.value = []; //需要清空已经选择的流转卡号
+  // 初始化数据
+  selectedSign.value = [];
+  operateCondition.value = "";
+  persons.value = [
+    {
+      userName: userStore.user.username ?? "",
+      workingHoursRate: 100,
+      selectedProcess: [],
+      checkAll: false,
+    },
+  ];
+  processList.value = [];
+
   getProcessInfo(processStore.scanInfo.id).then((res) => {
     processStore.scanInfo.currentState = res.data.currentState;
     if (res.data.currentState !== "start") {