diff --git a/src/hooks/Permissions/index.ts b/src/hooks/Permissions/index.ts
new file mode 100644
index 00000000..54aec9a1
--- /dev/null
+++ b/src/hooks/Permissions/index.ts
@@ -0,0 +1,7 @@
+import { intersection } from 'lodash-es'
+import { usePermissionStore } from '/@/store/modules/permission'
+export function checkPermissions(key) {
+ const permissionStore = usePermissionStore()
+ const allCodeList = permissionStore.getPermCodeList as string[]
+ return !((intersection([key], allCodeList) as string[]).length > 0)
+}
\ No newline at end of file
diff --git a/src/views/baseinfo/goodstype/columns.tsx b/src/views/baseinfo/goodstype/columns.tsx
index 8fe2dd88..f9c27de2 100644
--- a/src/views/baseinfo/goodstype/columns.tsx
+++ b/src/views/baseinfo/goodstype/columns.tsx
@@ -4,11 +4,13 @@ export const columns: BasicColumn[] = [
{
title: '商品类型代码',
dataIndex: 'goodsTypeCode',
+ sorter: true,
width: 150,
},
{
title: '商品类型名称',
dataIndex: 'goodsTypeName',
+ sorter: true,
width: 200,
},
// {
@@ -19,12 +21,14 @@ export const columns: BasicColumn[] = [
{
title: '描述',
dataIndex: 'description',
+ sorter: true,
width: 200,
},
{
title: '是否启用',
dataIndex: 'status',
- width: 80,
+ sorter: true,
+ width: 100,
customRender: ({ text }) => {
if (text === 0) {
return