-- save purchase record
-- mysql
insert into `sys_menu` ( `name`, `parent_id`, `route`, `component`, `type`, `sort`, `tenant_id`, `status`) values ( 'menu.purchase', '0', '/manager/purchase', 'purchase', '0' , '0', '1' , '1');

insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `tenant_id`, `status`) values ( 'Query 采购单', '148', '1', 'manager:purchase:list', '0', '1', '1');
insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `tenant_id`, `status`) values ( 'Create 采购单', '148', '1', 'manager:purchase:save', '1', '1', '1');
insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `tenant_id`, `status`) values ( 'Update 采购单', '148', '1', 'manager:purchase:update', '2', '1', '1');
insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `tenant_id`, `status`) values ( 'Delete 采购单', '148', '1', 'manager:purchase:remove', '3', '1', '1');

-- locale menu name
purchase: 'Purchase',

-- locale field
purchase: {
    code: "code",
    erpId: "erpId",
    type: "type",
    wkType: "wkType",
    source: "source",
    preArr: "preArr",
    anfme: "anfme",
    qty: "qty",
    workQty: "workQty",
    channel: "channel",
    platCode: "platCode",
    project: "project",
    startTime: "startTime",
    endTime: "endTime",
},

-- ResourceContent
import purchase from './purchase';

case 'purchase':
    return purchase;
