| | |
| | | import { processList } from "@/api/productionManagement/productionProcess.js"; |
| | | import { userListNoPageByTenantId } from "@/api/system/user.js"; |
| | | import PIMTable from "@/components/PIMTable/PIMTable.vue"; |
| | | import {findProcessRouteItemList} from "@/api/productionManagement/processRouteItem.js"; |
| | | |
| | | const NewProductOrder = defineAsyncComponent(() => import("@/views/productionManagement/productionOrder/New.vue")); |
| | | |
| | |
| | | const userLoading = ref(false); |
| | | const bindForm = reactive({ |
| | | orderId: null, |
| | | productId: null, |
| | | productModelId: null, |
| | | routeId: null, |
| | | processUserList: [], |
| | |
| | | } |
| | | |
| | | try { |
| | | const res = await processList({ routeId }); |
| | | const res = await findProcessRouteItemList({ |
| | | routeId, |
| | | productModelId: bindForm.productModelId, |
| | | }); |
| | | bindProcessList.value = res.data || []; |
| | | bindForm.processUserList = createBindProcessUserList(bindProcessList.value); |
| | | ensureUserOptions(); |
| | |
| | | |
| | | const openBindRouteDialog = async row => { |
| | | bindForm.orderId = row.id; |
| | | bindForm.productId = row.id ?? null; |
| | | bindForm.productModelId = row.productModelId ?? null; |
| | | bindForm.routeId = null; |
| | | bindForm.processUserList = []; |
| | |
| | | |
| | | bindRouteLoading.value = true; |
| | | try { |
| | | const res = await listProcessRoute({ productModelId: row.productModelId }); |
| | | const res = await listProcessRoute({ |
| | | productId: bindForm.productId, |
| | | productModelId: row.productModelId, |
| | | }); |
| | | routeOptions.value = res.data || []; |
| | | } catch (error) { |
| | | console.error("获取工艺路线列表失败", error); |