From bd1012f4b22bac3b40aba28ea4598e77ca92c824 Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期一, 23 三月 2026 13:47:36 +0800
Subject: [PATCH] Merge branch 'dev_银川_中盛建材' of http://114.132.189.42:9002/r/product-inventory-management into dev_银川_中盛建材
---
src/views/productionManagement/processRoute/index.vue | 81 ++++++++++++++++++++++++++++++++++++----
1 files changed, 73 insertions(+), 8 deletions(-)
diff --git a/src/views/productionManagement/processRoute/index.vue b/src/views/productionManagement/processRoute/index.vue
index 5e58f09..f907915 100644
--- a/src/views/productionManagement/processRoute/index.vue
+++ b/src/views/productionManagement/processRoute/index.vue
@@ -3,13 +3,29 @@
<div class="search_form">
<el-form :model="searchForm"
:inline="true">
- <el-form-item label="瑙勬牸鍚嶇О:">
- <el-input v-model="searchForm.model"
- placeholder="璇疯緭鍏�"
- clearable
- prefix-icon="Search"
- style="width: 200px;"
- @change="handleQuery" />
+ <el-form-item label="浜у搧绫诲瀷:">
+ <el-select v-model="searchForm.dictCode"
+ style="width: 200px;"
+ placeholder="璇烽�夋嫨浜у搧绫诲瀷"
+ clearable
+ @change="handleQuery">
+ <el-option v-for="option in productTypeOptions"
+ :key="option.dictCode"
+ :label="option.dictLabel"
+ :value="option.dictCode" />
+ </el-select>
+ </el-form-item>
+ <el-form-item label="鐘舵��:">
+ <el-select v-model="searchForm.status"
+ style="width: 200px;"
+ placeholder="璇烽�夋嫨鐘舵��"
+ clearable
+ @change="handleQuery">
+ <el-option label="宸叉壒鍑�"
+ :value="true" />
+ <el-option label="鑽夌"
+ :value="false" />
+ </el-select>
</el-form-item>
<el-form-item>
<el-button type="primary"
@@ -63,11 +79,13 @@
} from "@/api/productionManagement/processRoute.js";
import { useRouter } from "vue-router";
import { ElMessageBox, ElMessage } from "element-plus";
+ import { getDicts } from "@/api/system/dict/data";
const router = useRouter();
const data = reactive({
searchForm: {
- model: "",
+ dictCode: "",
+ status: "",
},
});
const { searchForm } = toRefs(data);
@@ -75,10 +93,33 @@
{
label: "宸ヨ壓璺嚎缂栧彿",
prop: "processRouteCode",
+ width: "200px",
+ className: "status-cell",
+ },
+ {
+ label: "鐘舵��",
+ prop: "status",
+ dataType: "tag",
+
+ formatData: params => {
+ if (params) {
+ return "宸叉壒鍑�";
+ } else {
+ return "鑽夌";
+ }
+ },
+ formatType: params => {
+ if (params) {
+ return "success";
+ } else {
+ return "info";
+ }
+ },
},
{
label: "浜у搧绫诲瀷",
prop: "dictLabel",
+ dataType: "tag",
},
{
label: "BOM缂栧彿",
@@ -141,6 +182,7 @@
const isShowEditModal = ref(false);
const isShowItemModal = ref(false);
const record = ref({});
+ const productTypeOptions = ref([]);
const page = reactive({
current: 1,
size: 100,
@@ -201,6 +243,7 @@
model: row.model || "",
bomNo: row.bomNo || "",
dictLabel: row.dictLabel || "",
+ orderId: row.id || "",
bomId: row.bomId || null,
description: row.description || "",
type: "route",
@@ -261,9 +304,31 @@
});
};
+ // 鑾峰彇浜у搧绫诲瀷瀛楀吀
+ const getProductTypeOptions = () => {
+ getDicts("product_type")
+ .then(res => {
+ if (res.code === 200) {
+ productTypeOptions.value = res.data;
+ }
+ })
+ .catch(err => {
+ console.error("鑾峰彇浜у搧绫诲瀷瀛楀吀澶辫触锛�", err);
+ });
+ };
+
onMounted(() => {
+ getProductTypeOptions();
getList();
});
</script>
<style scoped></style>
+<style lang="scss">
+ .status-cell {
+ font-weight: 600;
+ color: #409eff;
+ font-family: "Courier New", monospace;
+ text-shadow: 0 1px 2px rgba(64, 158, 255, 0.2);
+ }
+</style>
\ No newline at end of file
--
Gitblit v1.9.3