Browse Source

增加用户字段

chenlei1231 1 month ago
parent
commit
eedbc4b469
2 changed files with 28 additions and 7 deletions
  1. 2 2
      src/views/adweb/site/AdwebSite.data.ts
  2. 26 5
      src/views/system/user/user.data.ts

+ 2 - 2
src/views/adweb/site/AdwebSite.data.ts

@@ -68,8 +68,8 @@ export const columns: BasicColumn[] = [
     title: '订单url',
     align: 'left',
     dataIndex: 'orderUrl',
-    // 编辑时隐藏密码框
-    ifShow: isSohoeb2b({}),
+    // 针对苏豪租户管理员展示订单url
+    ifShow: await isSohoeb2b({}),
   },
   {
     title: '创建时间',

+ 26 - 5
src/views/system/user/user.data.ts

@@ -195,6 +195,27 @@ export const formSchema: FormSchema[] = [
     component: 'Input',
   },
   {
+    label: '企业全称',
+    field: 'companyName',
+    required: true,
+    component: 'Input',
+  },
+  {
+    label: '社会信用代码',
+    field: 'socialCreditCode',
+    labelWidth: 120,
+    required: true,
+    component: 'Input',
+  },
+  {
+    label: '营业执照',
+    field: 'businessLicense',
+    component: 'JImageUpload',
+    componentProps: {
+      fileMax: 1,
+    },
+  },
+  {
     label: '工号',
     field: 'workNo',
     required: true,
@@ -608,7 +629,7 @@ export const formResourceQuotaSchema: FormSchema[] = [
   },
   {
     field: 'websiteUsage',
-    label: "已创建站点",
+    label: '已创建站点',
     component: 'InputNumber',
     componentProps: {
       disabled: true,
@@ -627,7 +648,7 @@ export const formResourceQuotaSchema: FormSchema[] = [
     label: 'AI算力用量',
     component: 'InputNumber',
     componentProps: {
-      disabled: true
+      disabled: true,
     },
   },
   {
@@ -635,7 +656,7 @@ export const formResourceQuotaSchema: FormSchema[] = [
     label: '外贸大数据额度',
     component: 'InputNumber',
     componentProps: {
-      readonly: false
+      readonly: false,
     },
   },
   {
@@ -643,7 +664,7 @@ export const formResourceQuotaSchema: FormSchema[] = [
     label: '外贸大数据用量',
     component: 'InputNumber',
     componentProps: {
-      disabled: true
+      disabled: true,
     },
   },
-];
+];