li.shaoyi 2 éve
szülő
commit
b991540df4

+ 17 - 0
src/constants/bank.ts

@@ -63,4 +63,21 @@ export function getExecuteTypeList() {
 export function getExecuteTypeName(value: number) {
     const enums = getExecuteTypeList()
     return getEnumTypeName(enums, value)
+}
+
+/**
+ * 获取资金流水操作类型列表
+ * @returns 
+ */
+export function getAccountBusinessCodeList() {
+    return getEnumTypeList('accountBusinessCode')
+}
+
+/**
+ * 获取资金流水操作类型名称
+ * @returns 
+ */
+export function getAccountBusinessCodeName(value: number) {
+    const enums = getAccountBusinessCodeList()
+    return getEnumTypeName(enums, value)
 }

+ 5 - 0
src/packages/pc/views/mine/statement/index.vue

@@ -20,6 +20,10 @@
             <template #createtime="{ value }">
                 {{ formatDate(value) }}
             </template>
+            <!-- 操作类型 -->
+            <template #businesscode="{ value }">
+                {{ getAccountBusinessCodeName(value) }}
+            </template>
             <template #footer>
                 <app-pagination :total="total" v-model:page-size="pageSize" v-model:page-index="pageIndex"
                     @change="onRefresh" />
@@ -34,6 +38,7 @@ import { ElMessage } from 'element-plus'
 import { formatDate } from '@/filters'
 import { useDataTable } from '@/hooks/datatable'
 import { useDataFilter } from '@/hooks/datatable'
+import { getAccountBusinessCodeName } from '@/constants/bank'
 import { queryAmountLog, queryHisAmountLog } from '@/services/api/bank'
 import AppTable from '@pc/components/base/table/index.vue'
 import AppFilter from '@pc/components/base/table-filter/index.vue'

+ 1 - 1
src/stores/modules/enum.ts

@@ -12,7 +12,7 @@ export interface EnumType {
     disabled?: boolean;
 }
 
-const enumKeys = ['ZSCategory', 'ZSCurrencyType', 'ZSCurrencyType', 'ZSColorType', 'ZSClarityType', 'ZSCutType', 'ZSShapeType', 'ZSSymmetryType', 'ZSPolishType', 'ZSFluorescenceType', 'ZSCertType', 'ZSCrystalType', 'ZSCZColor1Type', 'ZSCZColor2Type', 'ZSCZColor3Type', 'ZSStyleType', 'signstatus', 'applystatus', 'executetype', 'certificatetype', 'clientType', 'wrApplyStatus', 'performanceStatus', 'stepStatus', 'GZCJAccountType', 'GZCJCategoryType', 'GZCJDeliveryType', 'GZCJShapeType', 'GZCJMarkType', 'GZCJPublishType', 'GZCJServiceType', 'GZCJStatus', 'GZBSStatus', 'GZBSDeliveryType', 'GZBSCOrderType', 'GZBSCOrderStatus', 'GZBSCOutType', 'GZBSCPayStatus', 'GZBSCPayMode', 'YSZSCategory', 'YSProductionMode', 'WRPresaleStatus', 'inoutapplystatus', 'WRTradeOrderStatus'] as const
+const enumKeys = ['ZSCategory', 'ZSCurrencyType', 'ZSCurrencyType', 'ZSColorType', 'ZSClarityType', 'ZSCutType', 'ZSShapeType', 'ZSSymmetryType', 'ZSPolishType', 'ZSFluorescenceType', 'ZSCertType', 'ZSCrystalType', 'ZSCZColor1Type', 'ZSCZColor2Type', 'ZSCZColor3Type', 'ZSStyleType', 'signstatus', 'applystatus', 'executetype', 'certificatetype', 'clientType', 'wrApplyStatus', 'performanceStatus', 'stepStatus', 'GZCJAccountType', 'GZCJCategoryType', 'GZCJDeliveryType', 'GZCJShapeType', 'GZCJMarkType', 'GZCJPublishType', 'GZCJServiceType', 'GZCJStatus', 'GZBSStatus', 'GZBSDeliveryType', 'GZBSCOrderType', 'GZBSCOrderStatus', 'GZBSCOutType', 'GZBSCPayStatus', 'GZBSCPayMode', 'YSZSCategory', 'YSProductionMode', 'WRPresaleStatus', 'inoutapplystatus', 'WRTradeOrderStatus', 'accountBusinessCode'] as const
 
 const enumMap = new Map<typeof enumKeys[number], ShallowRef<Ermcp.EnumRsp[]>>()