Quellcode durchsuchen

部门费用管理增加搜索条件

lxf vor 3 Monaten
Ursprung
Commit
9c70757328
1 geänderte Dateien mit 25 neuen und 1 gelöschten Zeilen
  1. 25 1
      src/views/finance/fundManage/depExpenses/index.vue

+ 25 - 1
src/views/finance/fundManage/depExpenses/index.vue

@@ -219,7 +219,25 @@ const status = ref([
 const accountCurrency = ref([]);
 import Cookies from "js-cookie";
 const { proxy } = getCurrentInstance();
-const selectConfig = [];
+const selectConfig = computed(() => {
+  return [
+    {
+      label: "收支类型",
+      prop: "status",
+      data: status.value,
+    },
+    {
+      label: "币种",
+      prop: "currency",
+      data: accountCurrency.value,
+    },
+    {
+      label: "归属部门",
+      prop: "deptId",
+      data: deptTreeData.value,
+    },
+  ];
+});
 const config = computed(() => {
   return [
     {
@@ -329,6 +347,12 @@ const getDept = async () => {
     })
     .then((message) => {
       recursive(message.data);
+      if(message.data && message.data.length > 0) {
+        message.data = message.data.map(item => {
+          item.value = item.deptId
+          return item
+        })
+      }
       deptTreeData.value = proxy.handleTree(message.data, "corporationId");
     });
 };