From 421db078050588b0e93008ffe93c78025dc939db Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期六, 14 三月 2026 15:40:50 +0800
Subject: [PATCH] 生产订单和生产工单增加优先级,生产批号字段
---
src/views/productionManagement/workOrder/index.vue | 22 +++++++++++++++++++---
1 files changed, 19 insertions(+), 3 deletions(-)
diff --git a/src/views/productionManagement/workOrder/index.vue b/src/views/productionManagement/workOrder/index.vue
index 59457e8..5b878d3 100644
--- a/src/views/productionManagement/workOrder/index.vue
+++ b/src/views/productionManagement/workOrder/index.vue
@@ -1,3 +1,4 @@
+// 鐢熶骇宸ュ崟
<template>
<div class="app-container">
<div class="search_form">
@@ -234,13 +235,28 @@
import { getCurrentInstance, reactive, toRefs } from "vue";
import FilesDia from "./components/filesDia.vue";
const { proxy } = getCurrentInstance();
+ const { priority_type } = proxy.useDict("priority_type");
const tableColumn = ref([
{
- label: "宸ュ崟绫诲瀷",
- prop: "workOrderType",
- width: "80",
+ label: "浼樺厛绾�",
+ prop: "priority",
+ width: '100px',
+ dataType: "tag",
+ formatData: val => proxy.selectDictLabel(priority_type.value, val),
+ formatType: val => {
+ const v = Number(val);
+ if (v === 0) return "danger"; // 绾㈣壊
+ if (v === 1) return "warning"; // 榛勮壊
+ if (v === 2) return "success"; // 缁胯壊
+ return "";
+ },
},
+ // {
+ // label: "宸ュ崟绫诲瀷",
+ // prop: "workOrderType",
+ // width: "80",
+ // },
{
label: "宸ュ崟缂栧彿",
prop: "workOrderNo",
--
Gitblit v1.9.3