|
@@ -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");
|
|
|
});
|
|
|
};
|