65 lines
2.4 KiB
JavaScript
65 lines
2.4 KiB
JavaScript
import {
|
|
apiGet,
|
|
checkerOnly,
|
|
checkOverMapping,
|
|
checkTypeMapping,
|
|
crudCommonOptions,
|
|
mappingField,
|
|
operationField,
|
|
stringField,
|
|
timeField
|
|
} from "../../components/constants.js";
|
|
import {permissionDetailDialog} from "../../components/permission/dialog-permission.js";
|
|
|
|
export function tabCheck() {
|
|
return {
|
|
visibleOn: checkerOnly,
|
|
title: '审核审查',
|
|
icon: 'fa fa-shield-halved',
|
|
reload: true,
|
|
body: [
|
|
{
|
|
type: 'crud',
|
|
api: apiGet('${base}/check_order/list'),
|
|
...crudCommonOptions(),
|
|
headerToolbar: [
|
|
'reload',
|
|
],
|
|
columns: [
|
|
stringField('description', '描述'),
|
|
mappingField('type', '类型', checkTypeMapping),
|
|
mappingField('over', '状态', checkOverMapping),
|
|
timeField('createdTime', '创建时间'),
|
|
stringField('createdUsername', '创建人', 100),
|
|
timeField('modifiedTime', '最后修改时间'),
|
|
stringField('modifiedUsername', '最后操作人', 100),
|
|
operationField('操作', undefined, [
|
|
{
|
|
visibleOn: '${!over}',
|
|
type: 'action',
|
|
label: '处理',
|
|
level: 'link',
|
|
...permissionDetailDialog(
|
|
'parameters.confirmationId',
|
|
[
|
|
{
|
|
type: 'action',
|
|
label: '同意',
|
|
actionType: 'ajax',
|
|
api: apiGet('${base}/check_order/operation/${checkOrderId}/APPLY')
|
|
},
|
|
{
|
|
type: 'action',
|
|
label: '拒绝',
|
|
actionType: 'ajax',
|
|
api: apiGet('${base}/check_order/operation/${checkOrderId}/REJECT')
|
|
}
|
|
]
|
|
),
|
|
},
|
|
]),
|
|
]
|
|
}
|
|
]
|
|
}
|
|
} |