fix: 新增直接申请license等

This commit is contained in:
caiyuchao
2025-07-21 11:15:06 +08:00
parent ef8c083ea6
commit 99667bc0e7
4 changed files with 14 additions and 14 deletions

View File

@@ -153,14 +153,6 @@ export function useGridFormSchema(): VbenFormSchema[] {
allowClear: true, allowClear: true,
}, },
}, },
{
fieldName: 'code',
label: $t('customer.customerSn'),
component: 'Input',
componentProps: {
allowClear: true,
},
},
{ {
fieldName: 'type', fieldName: 'type',
label: $t('customer.customerType'), label: $t('customer.customerType'),
@@ -170,6 +162,14 @@ export function useGridFormSchema(): VbenFormSchema[] {
options: getDictOptions(DICT_TYPE.LIC_CUSTOMER_TYPE, 'number'), options: getDictOptions(DICT_TYPE.LIC_CUSTOMER_TYPE, 'number'),
}, },
}, },
{
fieldName: 'code',
label: $t('customer.customerSn'),
component: 'Input',
componentProps: {
allowClear: true,
},
},
{ {
fieldName: 'contacts', fieldName: 'contacts',
label: $t('customer.contacts'), label: $t('customer.contacts'),

View File

@@ -477,10 +477,10 @@ export function useGridColumns(
}, },
name: 'CellOperation', name: 'CellOperation',
options: [ options: [
{ // {
code: 'edit', // code: 'edit',
show: hasAccessByCodes(['license:license:update']), // show: hasAccessByCodes(['license:license:update']),
}, // },
{ {
code: 'apply', code: 'apply',
text: $t('license.apply'), text: $t('license.apply'),

View File

@@ -37,7 +37,7 @@ function onRefresh() {
/** 创建License */ /** 创建License */
function onCreate() { function onCreate() {
formModalApi.setData({}).open(); formModalApi.setData({ action: 1 }).open();
} }
/** 申请License */ /** 申请License */

View File

@@ -416,7 +416,7 @@ export function useGridColumns(
{ {
field: 'createTime', field: 'createTime',
title: $t('project.creationTime'), title: $t('project.creationTime'),
visible: false, // visible: false,
minWidth: 120, minWidth: 120,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },