| | |
| | | </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 { |
| | |
| | | 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([ |
| | |
| | | }, |
| | | ]; |
| | | |
| | | const dialogVisible = ref(false); |
| | | const form = reactive({ |
| | | id: undefined, |
| | | orderId: "", |
| | |
| | | processId: "", |
| | | params: {}, |
| | | }); |
| | | dialogVisible.value = true; |
| | | router.push({ |
| | | path: "/productionManagement/ReportingDialog", |
| | | query: { data: JSON.stringify(form) }, |
| | | }); |
| | | }; |
| | | |
| | | const handleEdit = row => { |
| | |
| | | processId: row.processId || "", |
| | | params: row.params || {}, |
| | | }); |
| | | dialogVisible.value = true; |
| | | router.push({ |
| | | path: "/productionManagement/ReportingDialog", |
| | | query: { data: JSON.stringify(form) }, |
| | | }); |
| | | }; |
| | | |
| | | const handleDetail = row => { |