From 9343bd4c71c55bde7b5e82b84d1e127de09e0447 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 30 三月 2026 09:19:38 +0800
Subject: [PATCH] 军泰伟业 1.生产订单销售台账带出的生产订单绑定工艺路线时,无法选择
---
src/views/productionManagement/productionOrder/index.vue | 25 +++++++++----------------
1 files changed, 9 insertions(+), 16 deletions(-)
diff --git a/src/views/productionManagement/productionOrder/index.vue b/src/views/productionManagement/productionOrder/index.vue
index dd69968..c27ff0b 100644
--- a/src/views/productionManagement/productionOrder/index.vue
+++ b/src/views/productionManagement/productionOrder/index.vue
@@ -52,17 +52,15 @@
:loading="bindRouteLoading">
<el-option v-for="item in routeOptions"
:key="item.id"
- :label="`${item.processRouteCode || ''}`"
+ :label="item.processRouteName"
:value="item.id" />
</el-select>
</el-form-item>
</el-form>
<template #footer>
<span class="dialog-footer">
+ <el-button type="primary" :loading="bindRouteSaving" @click="handleBindRouteConfirm">纭� 璁�</el-button>
<el-button @click="bindRouteDialogVisible = false">鍙� 娑�</el-button>
- <el-button type="primary"
- :loading="bindRouteSaving"
- @click="handleBindRouteConfirm">纭� 璁�</el-button>
</span>
</template>
</el-dialog>
@@ -150,11 +148,11 @@
import dayjs from "dayjs";
import { useRouter } from "vue-router";
import {
- productOrderListPage,
- listProcessRoute,
- bindingRoute,
- listProcessBom, delProductOrder, startOrPause,
- } from "@/api/productionManagement/productionOrder.js";
+ productOrderListPage,
+ bindingRoute,
+ listProcessBom, delProductOrder, startOrPause,
+} from "@/api/productionManagement/productionOrder.js";
+import { listPage as getProcessRouteList } from "@/api/productionManagement/processRoute.js";
import { listMain as getOrderProcessRouteMain } from "@/api/productionManagement/productProcessRoute.js";
import { productionProductInputListPage } from "@/api/productionManagement/productionProductInput.js";
import { listPage as listProductStructureRecord, pick as pickMaterial } from "@/api/productionManagement/productStructureRecord.js";
@@ -393,15 +391,10 @@
bindForm.routeId = null;
bindRouteDialogVisible.value = true;
routeOptions.value = [];
- if (!row.productModelId) {
- proxy.$modal.msgWarning("褰撳墠璁㈠崟缂哄皯浜у搧鍨嬪彿锛屾棤娉曟煡璇㈠伐鑹鸿矾绾�");
- bindRouteDialogVisible.value = false;
- return;
- }
bindRouteLoading.value = true;
try {
- const res = await listProcessRoute({ productModelId: row.productModelId });
- routeOptions.value = res.data || [];
+ const res = await getProcessRouteList({ current: 1, size: 1000 });
+ routeOptions.value = res.data?.records || [];
} catch (e) {
console.error("鑾峰彇宸ヨ壓璺嚎鍒楄〃澶辫触锛�", e);
proxy.$modal.msgError("鑾峰彇宸ヨ壓璺嚎鍒楄〃澶辫触");
--
Gitblit v1.9.3