diff --git a/ds-wms-admin-web/src/api/system/tenant.ts b/ds-wms-admin-web/src/api/system/tenant.ts new file mode 100644 index 00000000..15c3fd56 --- /dev/null +++ b/ds-wms-admin-web/src/api/system/tenant.ts @@ -0,0 +1,56 @@ +// @ts-ignore +import { DataResult, PageRequest } from '../model/baseModel' +import { request } from '/@/utils/request' + +enum Api { + list = '/adminApi/Tenant/GetTenantList', + GetTenantPermission = '/adminApi/Tenant/GetTenantPermission', + GetTenantInfo = '/adminApi/Tenant/GetTenantInfo', + UpdateTenantPermission = '/adminApi/Tenant/UpdateTenantPermission', + + editUser = '/adminApi/User/EditUser', + getUser = '/adminApi/User/GetUserInfo', + +} +export function GetTenantList(data: PageRequest) { + return request({ + url: Api.list, + method: 'post', + data, + }) +} +export function getPermission(query: { id: string }) { + return request({ + url: Api.GetTenantPermission, + method: 'get', + params: query, + }) +} +export function getInfo(query: { id: string }) { + return request({ + url: Api.GetTenantInfo, + method: 'get', + params: query, + }) +} +export function UpdatePermission(data: any) { + return request({ + url: Api.UpdateTenantPermission, + method: 'post', + data, + }) +} +export function editUser(data: any) { + return request({ + url: Api.editUser, + method: 'post', + data, + }) +} +export function getUser(query: { id: string }) { + return request({ + url: Api.getUser, + method: 'get', + params: query, + }) +} diff --git a/ds-wms-admin-web/src/views/flowcenter/flowInstances/Lowflow/Lowflow.vue b/ds-wms-admin-web/src/views/flowcenter/flowInstances/Lowflow/Lowflow.vue index 74f92990..203b712b 100644 --- a/ds-wms-admin-web/src/views/flowcenter/flowInstances/Lowflow/Lowflow.vue +++ b/ds-wms-admin-web/src/views/flowcenter/flowInstances/Lowflow/Lowflow.vue @@ -2,28 +2,25 @@ - - - - -

{{ item.content }}

-
-
-
+ + + + + + + +

{{ item.content }}

+
+
+
+
+
+ + + diff --git a/ds-wms-admin-web/src/views/system/tenant/PermissionSetStep.vue b/ds-wms-admin-web/src/views/system/tenant/PermissionSetStep.vue new file mode 100644 index 00000000..1ddfa7e5 --- /dev/null +++ b/ds-wms-admin-web/src/views/system/tenant/PermissionSetStep.vue @@ -0,0 +1,128 @@ + + + + diff --git a/ds-wms-admin-web/src/views/system/tenant/UserModal.vue b/ds-wms-admin-web/src/views/system/tenant/UserModal.vue new file mode 100644 index 00000000..c32ec8ef --- /dev/null +++ b/ds-wms-admin-web/src/views/system/tenant/UserModal.vue @@ -0,0 +1,236 @@ + + diff --git a/ds-wms-admin-web/src/views/system/tenant/api.ts b/ds-wms-admin-web/src/views/system/tenant/api.ts new file mode 100644 index 00000000..069fcb01 --- /dev/null +++ b/ds-wms-admin-web/src/views/system/tenant/api.ts @@ -0,0 +1,56 @@ +// @ts-ignore +import { request } from '/@/utils/request' +import { DataResult, PageRequest } from '/@/api/model/baseModel' +enum Api { + list = '/adminApi/TenantApply/GetTenantApplyList', + getTenantAuditInfo = '/adminApi/TenantApply/GetTenantAuditInfo', + auditInfo = '/adminApi/TenantApply/AuditTenantApply', + getClientPermissionTreeList = '/adminApi/Common/GetClientPermissionTreeList', + RejectTenantApply = '/adminApi/TenantApply/RejectTenantApply', + TenantApplyAudit = '/adminApi/TenantApply/TenantApplyAudit', +} +export function getTenantApplyList(data: PageRequest) { + return request({ + url: Api.list, + method: 'post', + data, + }) +} + +export function getTenantAuditInfo(query: { id: string }) { + return request({ + url: Api.getTenantAuditInfo, + method: 'get', + params: query, + }) +} + +export function auditInfo(data: any) { + return request({ + url: Api.auditInfo, + method: 'post', + data, + }) +} +export function getClientPermissionTreeList() { + return request({ + url: Api.getClientPermissionTreeList, + method: 'get', + }) +} +// 企业用户审批-驳回 (Auth) +export function RejectTenantApply(data: any) { + return request({ + url: Api.RejectTenantApply, + method: 'post', + data, + }) +} +// 企业用户审批-审核通过 (Auth) +export function TenantApplyAudit(data: any) { + return request({ + url: Api.TenantApplyAudit, + method: 'post', + data, + }) +} \ No newline at end of file diff --git a/ds-wms-admin-web/src/views/system/tenant/columns.tsx b/ds-wms-admin-web/src/views/system/tenant/columns.tsx new file mode 100644 index 00000000..b708410d --- /dev/null +++ b/ds-wms-admin-web/src/views/system/tenant/columns.tsx @@ -0,0 +1,263 @@ +// import { filterDictTextByCache } from '/@/utils/dictUtil' +import { BasicColumn, FormSchema } from '/@/components/Table' +// import { getDictDropDown } from '/@/api/common/index'; +import { getRoleList } from '/@/api/common' +import { Tag } from 'ant-design-vue' +export const columns: BasicColumn[] = [ + { + title: '公司名称', + dataIndex: 'name', + width: 100, + }, + { + title: '助记码', + dataIndex: 'pinYinCode', + width: 200, + }, + { + title: '公司地址', + dataIndex: 'address', + width: 200, + }, + { + title: '租户管理员手机', + dataIndex: 'phone', + width: 150, + }, + { + title: '公司电话', + dataIndex: 'tel', + width: 150, + }, + { + title: '邮箱', + dataIndex: 'email', + width: 150, + }, + { + title: '企业法人', + dataIndex: 'chief', + width: 150, + }, + { + title: '企业税号', + dataIndex: 'taxNo', + width: 150, + }, + { + title: '租户类型', + dataIndex: 'tenantType', + width: 200, + customRender: ({ text }) => { + if (text === 1) { + return 系统租户 + } else if (text === 0) { + return 普通租户 + } + return text + }, + }, + // { + // title: '性别', + // dataIndex: 'sex', + // width: 200, + // customRender: ({ text }) => { + // if (text === 1) { + // return + // } else if (text === 2) { + // return + // } + // return text + // }, + // }, + +] +export const permissionFormSchema: FormSchema[] = [ + { + field: 'divider-selects', + component: 'Divider', + label: '审批步骤', + colProps: { span: 24 }, + }, + { + label: '', + field: 'id', + component: 'Input', + defaultValue: '', + show: false, + }, +] +export const searchFormSchema: FormSchema[] = [ + { + field: 'UserName', + label: '用户名称', + component: 'Input', + colProps: { span: 8 }, + }, + { + field: 'UserCode', + label: '用户唯一编码', + component: 'Input', + colProps: { span: 8 }, + }, +] +export const formSchema: FormSchema[] = [ + { + field: 'divider-selects', + component: 'Divider', + label: '基本用户信息', + colProps: { + span: 24, + }, + }, + { + label: '', + field: 'id', + component: 'Input', + defaultValue: '', + show: false, + }, + { + label: '', + field: 'permissionIdentity', + component: 'Input', + defaultValue: '', + show: false, + }, + { + field: 'userCode', + label: '用户唯一码', + component: 'Input', + required: true, + colProps: { span: 12 }, + dynamicDisabled: ({ values }) => { + return !!values.id + }, + }, + { + field: 'sex', + component: 'RadioButtonGroup', + label: '性别', + required: true, + componentProps: { + options: [ + { label: '男', value: 1 }, + { label: '女', value: 2 }, + ], + }, + defaultValue: 1, + colProps: { + span: 8, + }, + }, + { + field: 'userName', + label: '用户名称', + component: 'Input', + required: true, + colProps: { span: 12 }, + }, + { + field: 'userType', + label: '用户类型', + component: 'RadioButtonGroup', + required: true, + colProps: { + span: 12, + }, + defaultValue: 2, + componentProps: { + options: [ + // { label: '超级管理员', value: 0, disabled: true }, + { label: '管理员', value: 1 }, + { label: '普通用户', value: 2 }, + ], + }, + }, + { + field: 'pinYinCode', + label: '助记码', + component: 'Input', + colProps: { span: 12 }, + dynamicDisabled: () => { + return true + }, + }, + { + field: 'password', + label: '密码', + component: 'Input', + colProps: { span: 12 }, + defaultValue: '0000', + dynamicDisabled: () => { + return true + }, + itemProps: { + extra: '请及时重置初始密码!', + }, + }, + { + field: 'birthday', + label: '出生日期', + component: 'DatePicker', + // required: true, + colProps: { + span: 12, + }, + componentProps: {}, + }, + { + field: 'nickName', + label: '用户昵称', + component: 'Input', + required: true, + colProps: { span: 12 }, + }, + { + field: 'phone', + label: '手机号', + component: 'Input', + colProps: { span: 12 }, + }, + { + field: 'email', + label: '邮箱', + component: 'Input', + colProps: { span: 12 }, + }, + { + field: 'duty', + label: '职位', + component: 'Input', + colProps: { span: 12 }, + }, + { + field: 'note', + label: '备注', + component: 'InputTextArea', + colProps: { span: 24 }, + // ifShow: ({ values }) => !isButton(values.menuType), + }, + { + field: 'divider-selects', + component: 'Divider', + label: '附属信息', + componentProps: {}, + colProps: { + span: 24, + }, + }, + { + field: 'roleIds', + label: '所属角色', + component: 'ApiSelect', + // required: true, + defaultValue: [], + colProps: { span: 12 }, + componentProps: { + // mode: 'multiple', + api: getRoleList, + resultField: 'data', + }, + }, +] diff --git a/ds-wms-admin-web/src/views/system/tenant/index.vue b/ds-wms-admin-web/src/views/system/tenant/index.vue new file mode 100644 index 00000000..0b6bc541 --- /dev/null +++ b/ds-wms-admin-web/src/views/system/tenant/index.vue @@ -0,0 +1,121 @@ + +