78 lines
2.8 KiB
JavaScript
78 lines
2.8 KiB
JavaScript
import {
|
|
apiGet,
|
|
checkerOnly,
|
|
checkOverMapping,
|
|
checkTypeMapping,
|
|
crudCommonOptions,
|
|
mappingField
|
|
} 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: [
|
|
{
|
|
name: 'description',
|
|
label: '描述',
|
|
},
|
|
{
|
|
label: '类型',
|
|
width: 80,
|
|
align: 'center',
|
|
...mappingField('type', checkTypeMapping)
|
|
},
|
|
{
|
|
label: '状态',
|
|
width: 80,
|
|
align: 'center',
|
|
...mappingField('over', checkOverMapping)
|
|
},
|
|
{
|
|
label: '操作',
|
|
width: 100,
|
|
type: 'operation',
|
|
fixed: 'right',
|
|
className: 'nowrap',
|
|
buttons: [
|
|
{
|
|
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')
|
|
}
|
|
]
|
|
),
|
|
},
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
} |