|
@@ -16,17 +16,17 @@
|
|
|
:actions="[
|
|
|
{
|
|
|
icon: 'mdi:information-outline',
|
|
|
- label: '详情',
|
|
|
+ label: t('common.details'),
|
|
|
onClick: () => {
|
|
|
go(`/order/list/detail/${record.orderNo}`);
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
icon: 'mdi:printer-outline',
|
|
|
- label: '打印',
|
|
|
+ label: t('common.print'),
|
|
|
color: 'error',
|
|
|
onClick: () => {
|
|
|
- createMessage.info(`暂未接入`);
|
|
|
+ createMessage.info(t('common.notConnect'));
|
|
|
},
|
|
|
},
|
|
|
]"
|
|
@@ -86,34 +86,35 @@
|
|
|
width: 60,
|
|
|
},
|
|
|
{
|
|
|
- title: '所属公司',
|
|
|
+ title: t('routes.staff.deptName'),
|
|
|
dataIndex: 'companyName',
|
|
|
width: 160,
|
|
|
},
|
|
|
{
|
|
|
- title: '员工名称',
|
|
|
+ title: t('routes.staff.userName'),
|
|
|
dataIndex: 'userName',
|
|
|
width: 80,
|
|
|
},
|
|
|
{
|
|
|
- title: '员工妮称',
|
|
|
+ title: t('routes.staff.nickName'),
|
|
|
dataIndex: 'nickName',
|
|
|
width: 80,
|
|
|
},
|
|
|
{
|
|
|
title: '手机',
|
|
|
dataIndex: 'phone',
|
|
|
- width: 80,
|
|
|
+ width: 160,
|
|
|
},
|
|
|
+
|
|
|
{
|
|
|
- title: '角色',
|
|
|
+ title: t('common.roleName'),
|
|
|
dataIndex: 'roleName',
|
|
|
// slots: { customRender: 'role' },
|
|
|
sorter: true,
|
|
|
width: 80,
|
|
|
},
|
|
|
{
|
|
|
- title: '状态',
|
|
|
+ title: t('common.state'),
|
|
|
dataIndex: 'status',
|
|
|
slots: { customRender: 'status' },
|
|
|
sorter: true,
|
|
@@ -121,7 +122,7 @@
|
|
|
},
|
|
|
|
|
|
{
|
|
|
- title: '创建时间',
|
|
|
+ title: t('routes.staff.createTime'),
|
|
|
dataIndex: 'createTime',
|
|
|
slots: { customRender: 'createTime' },
|
|
|
width: 130,
|
|
@@ -140,7 +141,7 @@
|
|
|
schemas: [
|
|
|
{
|
|
|
field: 'phone',
|
|
|
- label: '手机号',
|
|
|
+ label: t('routes.corporation.phone'),
|
|
|
component: 'Input',
|
|
|
colProps: {
|
|
|
xl: 5,
|
|
@@ -151,7 +152,7 @@
|
|
|
};
|
|
|
|
|
|
const [registerTable] = useTable({
|
|
|
- title: '员工列表',
|
|
|
+ title: t('routes.staff.staffList'),
|
|
|
api: ListApi,
|
|
|
columns: columns,
|
|
|
useSearchForm: true,
|
|
@@ -173,9 +174,9 @@
|
|
|
function renderRoleType(type: number): string {
|
|
|
switch (type) {
|
|
|
case 0:
|
|
|
- return '公司管理员';
|
|
|
+ return t('routes.staff.roleType.0');
|
|
|
case 1:
|
|
|
- return '公司员工';
|
|
|
+ return t('routes.staff.roleType.1');
|
|
|
default:
|
|
|
return '';
|
|
|
}
|
|
@@ -183,9 +184,9 @@
|
|
|
function renderStatus(type: number): string {
|
|
|
switch (type) {
|
|
|
case 1:
|
|
|
- return '正常';
|
|
|
+ return t('common.normal');
|
|
|
case 0:
|
|
|
- return '非正常';
|
|
|
+ return t('common.unNormal');
|
|
|
default:
|
|
|
return '';
|
|
|
}
|