-- 引入组织（企业管理）
DELETE FROM t_perm_permitem WHERE FID = '14T/OYDZ1/DJ';
INSERT INTO t_perm_permitem(FID,FPREPERMITEMID,FINHERITMODE,FBIZAPPID,FORDER,FDESCRIPTION,FGROUP,FBIZDOMAINID,FNUMBER) VALUES ('14T/OYDZ1/DJ',' ','20',' ',0,' ','20',0,'bdm_import_org');

DELETE FROM t_perm_permitem_L WHERE FPKID = '14T/OYDZ/2O2';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('14T/OYDZ1/DJ','14T/OYDZ/2O2','zh_CN','引入组织');


DELETE FROM t_perm_permitem WHERE FID = '15HOF7TUKBMK';
INSERT INTO t_perm_permitem(FID,FPREPERMITEMID,FINHERITMODE,FBIZAPPID,FORDER,FDESCRIPTION,FGROUP,FBIZDOMAINID,FNUMBER)
VALUES ('15HOF7TUKBMK','47150e89000000ac','10',' ',0,' ','10',0,'imc_import');

DELETE FROM t_perm_permitem_L WHERE FPKID = '15HOF7TUIA6A';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('15HOF7TUKBMK','15HOF7TUIA6A','zh_CN','批量导入');


-- 许可授权(许可授权)
DELETE FROM t_perm_permitem WHERE FID = '15RZ45JRDXTS';
INSERT INTO t_perm_permitem(FID,FPREPERMITEMID,FINHERITMODE,FBIZAPPID,FORDER,FDESCRIPTION,FGROUP,FBIZDOMAINID,FNUMBER)
VALUES ('15RZ45JRDXTS','47150e89000000ac','10','0QHC=8NRINCF',0,' ','20',0,'bdm_permission_auth');

DELETE FROM t_perm_permitem_L WHERE FPKID = '15RZ45JRHQLF';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('15RZ45JRDXTS','15RZ45JRHQLF','zh_CN','许可授权');

-- 发票领购（再领）
DELETE FROM t_perm_permitem WHERE FID = '15S68DU+7N63';
INSERT INTO t_perm_permitem(FID,FPREPERMITEMID,FINHERITMODE,FBIZAPPID,FORDER,FDESCRIPTION,FGROUP,FBIZDOMAINID,FNUMBER)
VALUES ('15S68DU+7N63','47150e89000000ac','10','0QHC5B1PZ/Z3',0,' ','20',0,'sim-imc-applys');

DELETE FROM t_perm_permitem_L WHERE FPKID = '15S68DU+89EB';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('15S68DU+7N63','15S68DU+89EB','zh_CN','再领');

-- 导出
DELETE FROM t_perm_permitem WHERE FID = '15SCCYOQO8TQ';
INSERT INTO t_perm_permitem(FID,FPREPERMITEMID,FINHERITMODE,FBIZAPPID,FORDER,FDESCRIPTION,FGROUP,FBIZDOMAINID,FNUMBER)
VALUES ('15SCCYOQO8TQ','47150e89000000ac','10','0QHC=8NRINCF',0,' ','20',0,'sim-bdm-derive');

DELETE FROM t_perm_permitem_L WHERE FPKID = '15SCCYOQOW0Z';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('15SCCYOQO8TQ','15SCCYOQOW0Z','zh_CN','导出');

-- 共享
DELETE FROM t_perm_permitem WHERE FID = '15SCS7/75PDQ';
INSERT INTO t_perm_permitem(FID,FPREPERMITEMID,FINHERITMODE,FBIZAPPID,FORDER,FDESCRIPTION,FGROUP,FBIZDOMAINID,FNUMBER)
VALUES ('15SCS7/75PDQ','47150e89000000ac','10','0QHC=8NRINCF',0,' ','20',0,'sim-bdm-share');

DELETE FROM t_perm_permitem_L WHERE FPKID = '15SCS7/76AMZ';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('15SCS7/75PDQ','15SCS7/76AMZ','zh_CN','共享');


DELETE FROM t_perm_permitem WHERE FID = '15ARFE+78DVS'
insert into t_perm_permitem (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FORDER, FDESCRIPTION, FBIZDOMAINID, FBIZAPPID, FNAME)
values ('15ARFE+78DVS', 'sim_exist', ' ', '10', ' ', '0', ' ', '0', ' ', '退出');

DELETE FROM t_perm_permitem WHERE FID = '15AR7IDZ0ABH'
insert into t_perm_permitem (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FORDER, FDESCRIPTION, FBIZDOMAINID, FBIZAPPID, FNAME)
values ('15AR7IDZ0ABH', 'sim_import_data', ' ', '10', ' ', '0', ' ', '0', ' ', '引出');

DELETE FROM t_perm_permitem WHERE FID = '15ARA8794A27'
insert into t_perm_permitem (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FORDER, FDESCRIPTION, FBIZDOMAINID, FBIZAPPID, FNAME)
values ('15ARA8794A27', 'sim_refresh', ' ', '10', ' ', '0', ' ', '0', ' ', '刷新');


DELETE FROM t_perm_permitem_L WHERE FPKID = '15ARFE+78YQQ';
insert into t_perm_permitem_l (FPKID, FID, FLOCALEID, FNAME)
values ('15ARFE+78YQQ', '15ARFE+78DVS', 'zh_CN', '退出');





DELETE FROM t_perm_permitem_L WHERE FPKID = '15AR7IDZ0V7F';
insert into t_perm_permitem_l (FPKID, FID, FLOCALEID, FNAME)
values ('15AR7IDZ0V7F', '15AR7IDZ0ABH', 'zh_CN', '引出');




DELETE FROM t_perm_permitem_L WHERE FPKID = '15ARA8794UZ5';
insert into t_perm_permitem_l (FPKID, FID, FLOCALEID, FNAME)
values ('15ARA8794UZ5', '15ARA8794A27', 'zh_CN', '刷新');




-- 发票抬头 start
DELETE FROM t_perm_permitem WHERE FID = '15UY94S6FBVN';
INSERT INTO t_perm_permitem(FID,FPREPERMITEMID,FINHERITMODE,FBIZAPPID,FORDER,FDESCRIPTION,FGROUP,FBIZDOMAINID,FNUMBER) VALUES
('15UY94S6FBVN','47150e89000000ac','10','0QHC=8NRINCF',0,' ','20',0,'bdm_title_able');
DELETE FROM t_perm_permitem WHERE FID = '15AU3UXBBL+T'
insert into t_perm_permitem (FID, FNUMBER, FINHERITMODE, FGROUP, FPREPERMITEMID, FORDER, FDESCRIPTION, FBIZDOMAINID, FBIZAPPID, FNAME)
values ('15AU3UXBBL+T', 'bdm_add_enterprise', ' ', '10', ' ', '0', ' ', '0', ' ', '添加企业');

DELETE FROM t_perm_permitem WHERE FID = '15UUP0AFH528';
INSERT INTO t_perm_permitem(FID,FPREPERMITEMID,FINHERITMODE,FBIZAPPID,FORDER,FDESCRIPTION,FGROUP,FBIZDOMAINID,FNUMBER) VALUES
('15UUP0AFH528','47150e89000000ac','10','0QHC=8NRINCF',0,' ','20',0,'bdm_title_add');

DELETE FROM t_perm_permitem WHERE FID = '15UYCNQHI3ZX';
INSERT INTO t_perm_permitem(FID,FPREPERMITEMID,FINHERITMODE,FBIZAPPID,FORDER,FDESCRIPTION,FGROUP,FBIZDOMAINID,FNUMBER) VALUES
('15UYCNQHI3ZX','47150e89000000ac','10','0QHC=8NRINCF',0,' ','20',0,'bdm_title_delete');

DELETE FROM t_perm_permitem_L WHERE FPKID = '15AU3UXBBI=S';
insert into t_perm_permitem_l (FPKID, FID, FLOCALEID, FNAME)
values ('15AU3UXBBI=S', '15AU3UXBBL+T', 'zh_CN', '添加企业');

DELETE FROM t_perm_permitem WHERE FID = '15UY5E9FNW=N';
INSERT INTO t_perm_permitem(FID,FPREPERMITEMID,FINHERITMODE,FBIZAPPID,FORDER,FDESCRIPTION,FGROUP,FBIZDOMAINID,FNUMBER) VALUES
('15UY5E9FNW=N','47150e89000000ac','10','0QHC=8NRINCF',0,' ','20',0,'bdm_title_export');

DELETE FROM t_perm_permitem WHERE FID = '15UXTUP82IM8';
INSERT INTO t_perm_permitem(FID,FPREPERMITEMID,FINHERITMODE,FBIZAPPID,FORDER,FDESCRIPTION,FGROUP,FBIZDOMAINID,FNUMBER) VALUES
('15UXTUP82IM8','47150e89000000ac','10','0QHC=8NRINCF',0,' ','20',0,'bdm_title_import');

DELETE FROM t_perm_permitem_L WHERE FPKID = '15UUP0AFH5RH';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('15UUP0AFH528','15UUP0AFH5RH','zh_CN','开票抬头新增');

DELETE FROM t_perm_permitem_L WHERE FPKID = '15UXTUP82J=H';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('15UXTUP82IM8','15UXTUP82J=H','zh_CN','导入');

DELETE FROM t_perm_permitem_L WHERE FPKID = '15UY5E9FNWZX';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('15UY5E9FNW=N','15UY5E9FNWZX','zh_CN','开票抬头导出');

DELETE FROM t_perm_permitem_L WHERE FPKID = '15UY94S6FCIX';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('15UY94S6FBVN','15UY94S6FCIX','zh_CN','开票抬头启用禁用');

DELETE FROM t_perm_permitem_L WHERE FPKID = '15UYCNQHI4N5';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('15UYCNQHI3ZX','15UYCNQHI4N5','zh_CN','开票抬头删除');

-- 发票抬头 end

-- 拆合规则配置
DELETE FROM t_perm_permitem WHERE FID = '175ZQJ5S/K1K';
INSERT INTO t_perm_permitem(FID,FPREPERMITEMID,FINHERITMODE,FBIZAPPID,FORDER,FDESCRIPTION,FGROUP,FBIZDOMAINID,FNUMBER)
VALUES ('175ZQJ5S/K1K','47150e89000000ac','10',' ',0,' ','10',0,'edit_setting_rule');

DELETE FROM t_perm_permitem_L WHERE FPKID = '175ZQJ5RZIMA';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('175ZQJ5S/K1K','175ZQJ5RZIMA','zh_CN','规则设置');

-- 拆合规则配置 end


DELETE FROM t_perm_permitem WHERE FID = '15AD9XINN0BE';
INSERT INTO t_perm_permitem(FID,FPREPERMITEMID,FINHERITMODE,FBIZAPPID,FORDER,FDESCRIPTION,FGROUP,FBIZDOMAINID,FNUMBER)
VALUES ('15AD9XINN0BE','47150e89000000ac','10','0QHC5B1PZ/Z3',0,'发票云开票权限','20',0,'imc-sim-invoice');

DELETE FROM t_perm_permitem_L WHERE FPKID = '15AD9XINR5XZ';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('15AD9XINN0BE','15AD9XINR5XZ','zh_CN','开票');
