From ebea958ab2324104b59f83675a6347d4a6b1d9d1 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期三, 29 十月 2025 16:58:13 +0800
Subject: [PATCH] feat: 页面

---
 src/views/SupplierManage/constants/index.ts                       |    1 
 src/views/SupplierManage/SupplierManageList.vue                   |  124 ++++++++++++++++++++++++
 src/views/SupplierManage/constants/columns.ts                     |   59 +++++++++++
 src/views/EmploymentManage/constants/columns.ts                   |   39 +++++--
 src/views/EmploymentManage/components/AddOrEditEmploymentView.vue |   11 ++
 src/router/index.ts                                               |   28 +++++
 6 files changed, 250 insertions(+), 12 deletions(-)

diff --git a/src/router/index.ts b/src/router/index.ts
index 51af27c..6ccf758 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -96,6 +96,34 @@
     },
   },
   {
+    path: '/SupplierManage',
+    redirect: 'noRedirect',
+    component: Layout,
+    hidden: false,
+    alwaysShow: true,
+    meta: {
+      rank: 10005,
+      title: '渚涘簲鍟嗙鐞�',
+      rootMenu: true,
+      icon: 'home',
+    },
+    children: [
+      {
+        path: '/SupplierManageList',
+        name: 'SupplierManageList',
+        hidden: false,
+        alwaysShow: true,
+        component: () => import('@/views/SupplierManage/SupplierManageList.vue'),
+        meta: {
+          rank: 10005,
+          title: '渚涘簲鍟嗙鐞�',
+          // rootMenu: true,
+          icon: 'home',
+        },
+      },
+    ],
+  },
+  {
     path: '/FlexJobManage',
     redirect: 'noRedirect',
     component: Layout,
diff --git a/src/views/EmploymentManage/components/AddOrEditEmploymentView.vue b/src/views/EmploymentManage/components/AddOrEditEmploymentView.vue
index d2e82ea..8c2f0c5 100644
--- a/src/views/EmploymentManage/components/AddOrEditEmploymentView.vue
+++ b/src/views/EmploymentManage/components/AddOrEditEmploymentView.vue
@@ -3,6 +3,17 @@
     <AppContainer>
       <PageFormLayout title="鍩烘湰淇℃伅">
         <ProForm :model="form" ref="productFormRef" label-width="110px" :is-read="isDetail">
+          <ProFormItemV2
+            label="渚涘簲鍟�:"
+            prop="settlementAccess"
+            :check-rules="[{ message: '璇烽�夋嫨渚涘簲鍟�' }]"
+          >
+            <ProFormSelect
+              v-model="form.settlementAccess"
+              :value-enum="[]"
+              placeholder="璇烽�夋嫨渚涘簲鍟�"
+            ></ProFormSelect>
+          </ProFormItemV2>
           <ProFormCol>
             <ProFormColItem :span="12">
               <ProFormItemV2
diff --git a/src/views/EmploymentManage/constants/columns.ts b/src/views/EmploymentManage/constants/columns.ts
index 2cd5a95..2761a58 100644
--- a/src/views/EmploymentManage/constants/columns.ts
+++ b/src/views/EmploymentManage/constants/columns.ts
@@ -13,66 +13,81 @@
   },
   {
     id: '3',
+    enCode: 'a',
+    name: '鎵�灞炲鎴�',
+  },
+  {
+    id: '4',
+    enCode: 'a',
+    name: '瀹㈡埛ID',
+  },
+  {
+    id: '5',
     enCode: 'billingMethod',
     name: '缁撶畻鍛ㄦ湡',
   },
   {
-    id: '4',
+    id: '6',
     enCode: 'serviceFee',
     name: '鏈嶅姟璐归噾棰�',
   },
   {
-    id: '5',
+    id: '7',
     enCode: 'settlementCycle',
     name: '缁撶畻鏂瑰紡',
   },
   {
-    id: '6',
+    id: '8',
     enCode: 'genderLimit',
     name: '鎬у埆瑕佹眰',
   },
   {
-    id: '7',
+    id: '9',
+    enCode: 'a',
+    name: '闇�姹備汉鏁�',
+  },
+  {
+    id: '10',
     enCode: 'userCount',
     name: '鎶ュ悕浜烘暟',
   },
   {
-    id: '8',
+    id: '11',
     enCode: 'applyBeginTime',
     name: '鎶ュ悕寮�濮�',
   },
   {
-    id: '9',
+    id: '12',
     enCode: 'applyEndTime',
     name: '鎶ュ悕缁撴潫',
   },
   {
-    id: '10',
+    id: '13',
     enCode: 'applyStatus',
     name: '鎶ュ悕鐘舵��',
   },
   {
-    id: '11',
+    id: '14',
     enCode: 'status',
     name: '浠诲姟鐘舵��',
   },
   {
-    id: '12',
+    id: '15',
     enCode: 'createdTime',
     name: '鍙戝竷鏃ユ湡',
   },
   {
-    id: '13',
+    id: '16',
     enCode: 'beginTime',
     name: '浠诲姟寮�濮嬫棩鏈�',
   },
   {
-    id: '14',
+    id: '17',
     enCode: 'endTime',
     name: '浠诲姟缁撴潫鏃ユ湡',
   },
   {
-    id: '15',
+    id: '18',
     enCode: 'releaseStatus',
     name: '鍙戝竷鐘舵��',
   },
diff --git a/src/views/SupplierManage/SupplierManageList.vue b/src/views/SupplierManage/SupplierManageList.vue
new file mode 100644
index 0000000..5fc8c22
--- /dev/null
+++ b/src/views/SupplierManage/SupplierManageList.vue
@@ -0,0 +1,124 @@
+<template>
+  <LoadingLayout :loading="state.loading">
+    <AppContainer>
+      <ProTableQueryFilterBar @on-reset="reset">
+        <template #query>
+          <QueryFilterItem tip-content="鍚堜綔鐘舵��">
+            <FieldRadio
+              v-model="extraParamState.status"
+              :value-enum="[]"
+              buttonStyle
+              showAllBtn
+              @change="getList()"
+            />
+          </QueryFilterItem>
+          <QueryFilterItem tip-content="绛剧害鐘舵��">
+            <FieldRadio
+              v-model="extraParamState.status"
+              :value-enum="[]"
+              buttonStyle
+              showAllBtn
+              @change="getList()"
+            />
+          </QueryFilterItem>
+          <QueryFilterItem>
+            <SearchInput
+              v-model="extraParamState.keywords"
+              style="width: 260px"
+              placeholder="浼佷笟鍚嶇О/淇$敤浠g爜/濮撳悕/鐢佃瘽"
+              @on-click-search="getList"
+            >
+            </SearchInput>
+          </QueryFilterItem>
+        </template>
+      </ProTableQueryFilterBar>
+      <ProTableV2
+        v-bind="proTableProps"
+        :columns="SupplierManageColumns"
+        :show-operation-column="false"
+      >
+      </ProTableV2>
+    </AppContainer>
+  </LoadingLayout>
+</template>
+
+<script setup lang="ts">
+import {
+  ProTableQueryFilterBar,
+  ProTableV2,
+  SearchInput,
+  LoadingLayout,
+  AppContainer,
+  QueryFilterItem,
+  useTable,
+  FieldRadio,
+} from '@bole-core/components';
+import * as userServices from '@/services/api/user';
+import { SupplierManageColumns } from './constants';
+import { ModelValueType } from 'element-plus';
+
+defineOptions({
+  name: 'SupplierManageList',
+});
+
+// const operationBtns = defineOperationBtns([
+//   {
+//     data: {
+//       enCode: 'detailBtn',
+//       name: '璇︽儏',
+//     },
+//     emits: {
+//       onClick: (role) => openDialog(role),
+//     },
+//   },
+// ]);
+
+const router = useRouter();
+const BaseState = {
+  loading: true,
+};
+
+const state = reactive({ ...BaseState });
+
+onMounted(async () => {
+  await getList();
+  state.loading = false;
+});
+
+const {
+  getDataSource: getList,
+  proTableProps,
+  paginationState,
+  extraParamState,
+  reset,
+} = useTable(
+  async ({ pageIndex, pageSize }, extraParamState) => {
+    try {
+      let params: API.GetPersonalUserWalletBalancesQuery = {
+        pageModel: {
+          rows: pageSize,
+          page: pageIndex,
+          orderInput: extraParamState.orderInput,
+        },
+        keywords: extraParamState.keywords,
+      };
+
+      let res = await userServices.getPersonalUserWalletBalances(params, {
+        showLoading: !state.loading,
+      });
+      return res;
+    } catch (error) {}
+  },
+  {
+    defaultExtraParams: {
+      keywords: '',
+      status: '',
+      time: [] as unknown as ModelValueType,
+      orderInput: [{ property: 'id', order: EnumPagedListOrder.Desc }],
+    },
+    columnsRenderProps: {
+      balance: { type: 'money' },
+    },
+  }
+);
+</script>
diff --git a/src/views/SupplierManage/constants/columns.ts b/src/views/SupplierManage/constants/columns.ts
new file mode 100644
index 0000000..b0fec19
--- /dev/null
+++ b/src/views/SupplierManage/constants/columns.ts
@@ -0,0 +1,59 @@
+import { defineColumns } from '@bole-core/components';
+
+export const SupplierManageColumns = defineColumns([
+  {
+    id: '1',
+    enCode: 'name',
+    name: '浼佷笟鍚嶇О',
+  },
+  {
+    id: '2',
+    enCode: 'name',
+    name: '缁熶竴淇$敤浠g爜',
+  },
+  {
+    id: '3',
+    enCode: 'name',
+    name: '渚涘簲鍟咺D',
+  },
+  {
+    id: '4',
+    enCode: 'name',
+    name: '娉曚汉濮撳悕',
+  },
+  {
+    id: '5',
+    enCode: 'name',
+    name: '鑱旂郴浜哄悕绉�',
+  },
+  {
+    id: '6',
+    enCode: 'name',
+    name: '鑱旂郴鐢佃瘽',
+  },
+  {
+    id: '7',
+    enCode: 'name',
+    name: '鎵�鍦ㄧ渷浠�',
+  },
+  {
+    id: '8',
+    enCode: 'name',
+    name: '鎵�鍦ㄥ煄甯�',
+  },
+  {
+    id: '9',
+    enCode: 'name',
+    name: '鎵�灞炶涓�',
+  },
+  {
+    id: '10',
+    enCode: 'name',
+    name: '鍚堜綔鐘舵��',
+  },
+  {
+    id: '11',
+    enCode: 'name',
+    name: '绛剧害鐘舵��',
+  },
+]);
diff --git a/src/views/SupplierManage/constants/index.ts b/src/views/SupplierManage/constants/index.ts
new file mode 100644
index 0000000..a7f066b
--- /dev/null
+++ b/src/views/SupplierManage/constants/index.ts
@@ -0,0 +1 @@
+export * from './columns';

--
Gitblit v1.9.1