浏览代码

生产订单:列表增加生产状态

lxf 1 年之前
父节点
当前提交
5e403232d6
共有 1 个文件被更改,包括 24 次插入0 次删除
  1. 24 0
      src/views/production/schedule/production-order/index.vue

+ 24 - 0
src/views/production/schedule/production-order/index.vue

@@ -147,6 +147,20 @@ const tagList = ref({
   40: "info",
   50: "success",
 });
+const status = ref([
+  {
+    dictKey: 30,
+    dictValue: "生产中",
+  },
+  {
+    dictKey: 40,
+    dictValue: "已完成",
+  },
+  {
+    dictKey: 50,
+    dictValue: "已发货",
+  },
+]);
 const sourceList = ref({
   data: [],
   pagination: {
@@ -240,6 +254,16 @@ const config = computed(() => {
     },
     {
       attrs: {
+        label: "生产状态",
+        prop: "status",
+        width: 120,
+      },
+      render(val) {
+        return proxy.dictKeyValue(val, status.value);
+      },
+    },
+    {
+      attrs: {
         label: "各款SKU生产进度",
         slot: "schedule",
         "min-width": 220,