tangning 1 anno fa
parent
commit
bebe8685a8

+ 11 - 0
src/api/account/index.ts

@@ -16,6 +16,7 @@ enum Api {
   wifiPrefixAll = '/service/manage/cameraWifiPrefix/allList',
   incrementUseTypeList = '/service/manage/incrementUseType/allList',
   getAddUserIncrementTime = '/service/manage/user/getAddUserIncrementTime',
+  currencyList = '/service/manage/currency/allList',
 }
 
 /**
@@ -145,6 +146,16 @@ export const incrementUseTypeList = (params: PageParams) =>
     },
   });
 
+//全部权益使用类型
+export const currencyList = (params: PageParams) =>
+  defHttp.get<userList>({
+    url: Api.currencyList,
+    params: params,
+    headers: {
+      // @ts-ignore
+      ignoreCancelToken: true,
+    },
+  });
 //设备类型字典
 export const cameraAllType = (params: PageParams) =>
   defHttp.get<userList>({

+ 10 - 0
src/views/account/details/data.ts

@@ -214,6 +214,11 @@ export const equityColumns: BasicColumn[] = [
     width: 80,
   },
   {
+    title: '币种',
+    dataIndex: 'currencySymbol',
+    width: 80,
+  },
+  {
     title: '数量',
     dataIndex: 'count',
     width: 80,
@@ -522,6 +527,11 @@ export const dowmColumns: BasicColumn[] = [
     width: 80,
   },
   {
+    title: '币种',
+    dataIndex: 'currencySymbol',
+    width: 80,
+  },
+  {
     title: '数量',
     dataIndex: 'count',
     width: 100,

+ 31 - 1
src/views/account/overview/AddDownModal.vue

@@ -23,7 +23,7 @@
   import { useI18n } from '/@/hooks/web/useI18n';
   import { uploadApi } from '/@/api/product/index';
   import { ResultEnum } from '/@/enums/httpEnum';
-  import { DetailsApi, dincrementList, AddUserIncrementApi, AddDownNumApi } from '/@/api/account';
+  import { currencyList, dincrementList, AddUserIncrementApi, AddDownNumApi } from '/@/api/account';
   import dayjs from 'dayjs';
   import { remarkschemas, Addschemas } from "./data";
   import { otherInfoStore } from '/@/store/modules/other';
@@ -66,6 +66,36 @@
             span: 22,
           },
         },
+        {
+          field: 'amount',
+          component: 'InputNumber',
+          label: '订单金额',
+          required: true,
+          colProps: {
+            span: 16,
+          },
+          componentProps: {
+            precision: 2,
+            step: 1
+          },
+        },
+        {
+          field: 'currencySymbol',
+          component: 'ApiSelect',
+          required: true,
+          label: '币种',
+          componentProps: {
+            // filterOption: onFilterOption,
+            // showSearch: true,
+            api: currencyList,
+            labelField: 'name',
+            valueField: 'symbol',
+            immediate: true,
+          },
+          colProps: {
+            span: 20,
+          },
+        },
         ...remarkschemas,
       ];
 

+ 19 - 2
src/views/account/overview/AddModal.vue

@@ -24,7 +24,7 @@
   import { useI18n } from '/@/hooks/web/useI18n';
   import { uploadApi } from '/@/api/product/index';
   import { ResultEnum } from '/@/enums/httpEnum';
-  import { DetailsApi, dincrementList, AddUserIncrementApi, getAddUserIncrementTime } from '/@/api/account';
+  import { DetailsApi, dincrementList, AddUserIncrementApi, getAddUserIncrementTime, currencyList } from '/@/api/account';
   import dayjs from 'dayjs';
   import { otherInfoStore } from '/@/store/modules/other';
 
@@ -195,7 +195,24 @@
             precision: 2,
             step: 1
           },
-        }
+        },
+        {
+          field: 'currencySymbol',
+          component: 'ApiSelect',
+          required: true,
+          label: '币种',
+          componentProps: {
+            // filterOption: onFilterOption,
+            // showSearch: true,
+            api: currencyList,
+            labelField: 'name',
+            valueField: 'symbol',
+            immediate: true,
+          },
+          colProps: {
+            span: 20,
+          },
+        },
       ];
 
       const [registerForm, { validate, getFieldsValue, resetFields, setFieldsValue, updateSchema }] = useForm({

+ 1 - 1
src/views/account/overview/data.tsx

@@ -264,7 +264,7 @@ export const Addschemas: FormSchema[] = [
       immediate: true,
     },
     colProps: {
-      span: 18,
+      span: 20,
     },
   },
   {