From 4b896d2c15f73248a5571a9952f3bbdefe6e230f Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期五, 05 九月 2025 16:02:53 +0800
Subject: [PATCH] Merge branch 'master' of http://120.26.58.240:8888/r/flexJobAdmin

---
 src/views/FinanceManage/components/BalanceDetailDialog.vue |  141 +++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 141 insertions(+), 0 deletions(-)

diff --git a/src/views/FinanceManage/components/BalanceDetailDialog.vue b/src/views/FinanceManage/components/BalanceDetailDialog.vue
new file mode 100644
index 0000000..a81d09f
--- /dev/null
+++ b/src/views/FinanceManage/components/BalanceDetailDialog.vue
@@ -0,0 +1,141 @@
+<template>
+  <ProDialog title="浣欓鏄庣粏" v-model="visible" destroy-on-close draggable>
+    <ProDialogTableWrapper :height="500">
+      <ProTableQueryFilterBar @on-reset="reset">
+        <template #query>
+          <QueryFilterItem>
+            <FieldSelect
+              v-model="extraParamState.status"
+              :valueEnum="[]"
+              clearable
+              filterable
+              placeholder="浜ゆ槗绫诲瀷"
+            />
+          </QueryFilterItem>
+          <QueryFilterItem tip-content="鏌ヨ鏃ユ湡">
+            <FieldDatePicker
+              v-model="extraParamState.creationTime"
+              type="daterange"
+              range-separator="~"
+              start-placeholder="璧峰鏃ユ湡"
+              end-placeholder="鎴鏃ユ湡"
+              clearable
+              @change="getList()"
+            ></FieldDatePicker>
+          </QueryFilterItem>
+        </template>
+      </ProTableQueryFilterBar>
+      <ProTableV2 v-bind="proTableProps" :columns="columns" :showOperationColumn="false">
+      </ProTableV2>
+    </ProDialogTableWrapper>
+  </ProDialog>
+</template>
+
+<script setup lang="ts">
+import {
+  defineColumns,
+  ProDialog,
+  useTable,
+  ProDialogTableWrapper,
+  QueryFilterItem,
+  FieldDatePicker,
+  FieldSelect,
+  ProTableV2,
+  ProTableQueryFilterBar,
+} from '@bole-core/components';
+import * as enterpriseServices from '@/services/api/enterprise';
+import { ModelValueType } from 'element-plus';
+
+defineOptions({
+  name: 'FinanceDetailDialog',
+});
+
+type Form = {
+  id?: string;
+};
+
+const visible = defineModel({ type: Boolean });
+const form = defineModel<Form>('form');
+
+const emit = defineEmits<{
+  (e: 'update:modelValue', value: boolean): void;
+  (e: 'onCancel'): void;
+}>();
+
+const columns = defineColumns([
+  {
+    id: '1',
+    enCode: 'name',
+    name: '浜ゆ槗鏃堕棿',
+  },
+  {
+    id: '2',
+    enCode: 'name',
+    name: '鏀跺叆',
+  },
+  {
+    id: '3',
+    enCode: 'name',
+    name: '鏀嚭',
+  },
+  {
+    id: '4',
+    enCode: 'name',
+    name: '璐︽埛浣欓',
+  },
+  {
+    id: '4',
+    enCode: 'name',
+    name: '瀵规柟甯愬彿/鎴峰悕',
+  },
+  {
+    id: '4',
+    enCode: 'name',
+    name: '鐢ㄩ��',
+  },
+]);
+
+watch(
+  () => visible.value,
+  (value) => {
+    if (value) {
+      getList();
+    }
+  }
+);
+
+const {
+  getDataSource: getList,
+  proTableProps,
+  paginationState,
+  extraParamState,
+  reset,
+} = useTable(
+  async ({ pageIndex, pageSize }, extraParamState) => {
+    try {
+      let params: API.GetEnterprisesQuery = {
+        pageModel: {
+          rows: pageSize,
+          page: pageIndex,
+          orderInput: extraParamState.orderInput,
+        },
+        // searchKeys: extraParamState.keyword,
+      };
+      let res = await enterpriseServices.getEnterprises(params);
+      return res;
+    } catch (error) {}
+  },
+  {
+    defaultExtraParams: {
+      status: '',
+      creationTime: [] as unknown as ModelValueType,
+      orderInput: [{ property: 'id', order: EnumPagedListOrder.Asc }],
+    },
+    columnsRenderProps: {},
+  }
+);
+</script>
+
+<style lang="scss" scoped>
+@use '@/style/common.scss' as *;
+</style>

--
Gitblit v1.9.1