zhangwencui
3 小时以前 2b2bc285c0e1798305353e83b47776156e81007d
src/views/productionManagement/productionReporting/index.vue
@@ -57,14 +57,12 @@
        </template>
      </PIMTable>
    </div>
    <ReportingDialog v-model:visible="dialogVisible"
                     :data="form"
                     @completed="handleQuery" />
  </div>
</template>
<script setup>
  import { onMounted, ref, reactive, getCurrentInstance } from "vue";
  import { useRouter } from "vue-router";
  import { ElMessage, ElMessageBox } from "element-plus";
  import dayjs from "dayjs";
  import {
@@ -74,8 +72,8 @@
    productionReportDelete,
  } from "@/api/productionManagement/productionReporting.js";
  import PIMTable from "@/components/PIMTable/PIMTable.vue";
  import ReportingDialog from "./components/ReportingDialog.vue";
  const router = useRouter();
  const { proxy } = getCurrentInstance();
  const tableColumn = ref([
@@ -320,7 +318,6 @@
    },
  ];
  const dialogVisible = ref(false);
  const form = reactive({
    id: undefined,
    orderId: "",
@@ -387,7 +384,10 @@
      processId: "",
      params: {},
    });
    dialogVisible.value = true;
    router.push({
      path: "/productionManagement/ReportingDialog",
      query: { data: JSON.stringify(form) },
    });
  };
  const handleEdit = row => {
@@ -407,7 +407,10 @@
      processId: row.processId || "",
      params: row.params || {},
    });
    dialogVisible.value = true;
    router.push({
      path: "/productionManagement/ReportingDialog",
      query: { data: JSON.stringify(form) },
    });
  };
  const handleDetail = row => {