lxf 1 vuosi sitten
vanhempi
commit
85d56a1ba9
1 muutettua tiedostoa jossa 3 lisäystä ja 25 poistoa
  1. 3 25
      src/views/subsidiary/order/management/index.vue

+ 3 - 25
src/views/subsidiary/order/management/index.vue

@@ -38,31 +38,9 @@
 import byTable from "/src/components/byTable/index";
 import { ElMessage, ElMessageBox } from "element-plus";
 import refreshStore from "/src/store/modules/refresh";
-import { fa } from "element-plus/es/locale";
+import { flowStatus } from "/src/utils/flowStatus";
 
 const { proxy } = getCurrentInstance();
-const flowStatus = ref([
-  {
-    dictKey: 0,
-    dictValue: "未发起",
-  },
-  {
-    dictKey: 1,
-    dictValue: "进行中",
-  },
-  {
-    dictKey: 2,
-    dictValue: "已通过",
-  },
-  {
-    dictKey: 3,
-    dictValue: "已驳回",
-  },
-  {
-    dictKey: 4,
-    dictValue: "已作废",
-  },
-]);
 const sourceList = ref({
   data: [],
   pagination: {
@@ -94,7 +72,7 @@ const searchConfig = computed(() => {
       type: "select",
       prop: "flowStatus",
       label: "流程状态",
-      data: flowStatus.value,
+      data: flowStatus(),
     },
     {
       type: "select",
@@ -147,7 +125,7 @@ const config = computed(() => {
         width: 120,
       },
       render(val) {
-        return proxy.dictKeyValue(val, flowStatus.value);
+        return proxy.dictKeyValue(val, flowStatus());
       },
     },
     {