-- 红冲（红字信息表）
DELETE FROM t_perm_permitem WHERE FID = '15GYBVUBRY7O';
INSERT INTO t_perm_permitem(FID,FPREPERMITEMID,FINHERITMODE,FBIZAPPID,FORDER,FDESCRIPTION,FGROUP,FBIZDOMAINID,FNUMBER) VALUES ('15GYBVUBRY7O','47150e89000000ac','10','0QHC5B1PZ/Z3',0,' ','20',0,'sim_red');

DELETE FROM t_perm_permitem_L WHERE FPKID = '15GYBVUBVP+K';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('15GYBVUBRY7O','15GYBVUBVP+K','zh_CN','红冲');
DELETE FROM t_perm_permitem_L WHERE FPKID = '15GYBVUBVP+L';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('15GYBVUBRY7O','15GYBVUBVP+L','zh_TW','紅衝');


-- 发票分发(库存管理)
DELETE FROM t_perm_permitem WHERE FID = '15HGZPNKDOSR';
INSERT INTO t_perm_permitem(FID,FPREPERMITEMID,FINHERITMODE,FBIZAPPID,FORDER,FDESCRIPTION,FGROUP,FBIZDOMAINID,FNUMBER)
VALUES ('15HGZPNKDOSR','47150e89000000ac','10','0QHC5B1PZ/Z3',0,' ','20',0,'sim_distribute');

DELETE FROM t_perm_permitem_L WHERE FPKID = '15HGZPNKDPG/';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('15HGZPNKDOSR','15HGZPNKDPG/','zh_CN','分发');
DELETE FROM t_perm_permitem_L WHERE FPKID = '15HGZPNKDPG0';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('15HGZPNKDOSR','15HGZPNKDPG0','zh_TW','分發');

-- 发票申领(库存管理)
DELETE FROM t_perm_permitem WHERE FID = '15=UMKHQG7YC';
INSERT INTO t_perm_permitem(FID,FPREPERMITEMID,FINHERITMODE,FBIZAPPID,FORDER,FDESCRIPTION,FGROUP,FBIZDOMAINID,FNUMBER)
VALUES ('15=UMKHQG7YC','47150e89000000ac','10','0QHC5B1PZ/Z3',0,'发票申领','20',0,'imc-sim-apply');

DELETE FROM t_perm_permitem_L WHERE FPKID = '15=UMKHQC2BU';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('15=UMKHQG7YC','15=UMKHQC2BU','zh_CN','申领');
DELETE FROM t_perm_permitem_L WHERE FPKID = '15=UMKHQC2BV';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('15=UMKHQG7YC','15=UMKHQC2BV','zh_TW','申領');

-- 发票回收(库存管理)
DELETE FROM t_perm_permitem WHERE FID = '15=V=6CGOIVJ';
INSERT INTO t_perm_permitem(FID,FPREPERMITEMID,FINHERITMODE,FBIZAPPID,FORDER,FDESCRIPTION,FGROUP,FBIZDOMAINID,FNUMBER)
VALUES ('15=V=6CGOIVJ','47150e89000000ac','10','0QHC5B1PZ/Z3',0,'发票回收','20',0,'imc-sim-recycle');

DELETE FROM t_perm_permitem_L WHERE FPKID = '15=V=6CGKD=/';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('15=V=6CGOIVJ','15=V=6CGKD=/','zh_CN','回收');
DELETE FROM t_perm_permitem_L WHERE FPKID = '15=V=6CGKD=0';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('15=V=6CGOIVJ','15=V=6CGKD=0','zh_TW','回收');


-- 发票回退(库存管理)
DELETE FROM t_perm_permitem WHERE FID = '15=VBKPU=3BI';
INSERT INTO t_perm_permitem(FID,FPREPERMITEMID,FINHERITMODE,FBIZAPPID,FORDER,FDESCRIPTION,FGROUP,FBIZDOMAINID,FNUMBER)
VALUES ('15=VBKPU=3BI','47150e89000000ac','10','0QHC5B1PZ/Z3',0,'发票回退','20',0,'imc-sim-rollback');

DELETE FROM t_perm_permitem_L WHERE FPKID = '15=VBKPU5ZS+';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('15=VBKPU=3BI','15=VBKPU5ZS+','zh_CN','退票');
DELETE FROM t_perm_permitem_L WHERE FPKID = '15=VBKPU5ZS/';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('15=VBKPU=3BI','15=VBKPU5ZS/','zh_TW','退票');

-- 发票同步(开票查询)
DELETE FROM t_perm_permitem WHERE FID = '15HR7SMRU=QU';
INSERT INTO t_perm_permitem(FID,FPREPERMITEMID,FINHERITMODE,FBIZAPPID,FORDER,FDESCRIPTION,FGROUP,FBIZDOMAINID,FNUMBER)
VALUES ('15HR7SMRU=QU','47150e89000000ac','10','0QHC5B1PZ/Z3',0,' ','20',0,'IMC-SIM-INVOICESYNC');

DELETE FROM t_perm_permitem_L WHERE FPKID = '15HR7SMRUAE2';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('15HR7SMRU=QU','15HR7SMRUAE2','zh_CN','发票同步');
DELETE FROM t_perm_permitem_L WHERE FPKID = '15HR7SMRUAE3';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('15HR7SMRU=QU','15HR7SMRUAE3','zh_TW','發票同步');

-- 第三方应用接入配置列表(启用/禁用)
DELETE FROM t_perm_permitem WHERE FID = '15S/LUIWFD0S';
INSERT INTO t_perm_permitem(FID,FPREPERMITEMID,FINHERITMODE,FBIZAPPID,FORDER,FDESCRIPTION,FGROUP,FBIZDOMAINID,FNUMBER) VALUES
('15S/LUIWFD0S','47150e89000000ac','10','0V=XTCQHTQ2E',0,' ','20',0,'invsm_app_access_config_enable');

DELETE FROM t_perm_permitem_L WHERE FPKID = '15S/LUIWHF5=';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('15S/LUIWFD0S','15S/LUIWHF5=','zh_CN','启用/禁用');
DELETE FROM t_perm_permitem_L WHERE FPKID = '15S/LUIWHF5A';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('15S/LUIWFD0S','15S/LUIWHF5A','zh_TW','啟用/禁用');

--批量导入
DELETE FROM t_perm_permitem WHERE FID = '15S7EIWD=696';
INSERT INTO t_perm_permitem(FID,FPREPERMITEMID,FINHERITMODE,FBIZAPPID,FORDER,FDESCRIPTION,FGROUP,FBIZDOMAINID,FNUMBER) VALUES
('15S7EIWD=696','47150e89000000ac','10','0QHC5B1PZ/Z3',0,'发票云批量导入','20',0,'sim_batch_import');

DELETE FROM t_perm_permitem_L WHERE FPKID = '15S7EIWDB8CP';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('15S7EIWD=696','15S7EIWDB8CP','zh_CN','批量导入');
DELETE FROM t_perm_permitem_L WHERE FPKID = '15S7EIWDB8CQ';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('15S7EIWD=696','15S7EIWDB8CQ','zh_TW','批量導入');

-- 回退
DELETE FROM t_perm_permitem WHERE FID = '17MYAG/Z362P';
INSERT INTO t_perm_permitem(FID,FPREPERMITEMID,FINHERITMODE,FBIZAPPID,FORDER,FDESCRIPTION,FGROUP,FBIZDOMAINID,FNUMBER) VALUES
('17MYAG/Z362P','47150e89000000ac','10','0QHC5B1PZ/Z3',0,'回退','20',0,'imc_rollback');
DELETE FROM t_perm_permitem_L WHERE FPKID = '17MYAG00KNP/';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('17MYAG/Z362P','17MYAG00KNP/','zh_CN','回退');
DELETE FROM t_perm_permitem_L WHERE FPKID = '17MYAG00KNP0';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('17MYAG/Z362P','17MYAG00KNP0','zh_TW','回退');

--预览开票
DELETE FROM t_perm_permitem WHERE FID = '1DH/T421M=KA';
INSERT INTO t_perm_permitem(FID,FPREPERMITEMID,FINHERITMODE,FBIZAPPID,FORDER,FDESCRIPTION,FGROUP,FBIZDOMAINID,FNUMBER) VALUES
('1DH/T421M=KA','47150e89000000ac','10','0QHC5B1PZ/Z3',0,'发票云单据发票预览','20',0,'IMC-SIM-SHOW-INVOICE');
DELETE FROM t_perm_permitem_L WHERE FPKID = '1DH/T421MAXU';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('1DH/T421M=KA','1DH/T421MAXU','zh_CN','预览开票');
DELETE FROM t_perm_permitem_L WHERE FPKID = '1DH/T421MAXV';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('1DH/T421M=KA','1DH/T421MAXV','zh_TW','預覽開票');

--一键开票
DELETE FROM t_perm_permitem WHERE FID = '1DH003IHRHAF';
INSERT INTO t_perm_permitem(FID,FPREPERMITEMID,FINHERITMODE,FBIZAPPID,FORDER,FDESCRIPTION,FGROUP,FBIZDOMAINID,FNUMBER) VALUES
('1DH003IHRHAF','47150e89000000ac','10','0QHC5B1PZ/Z3',0,'发票云单据一键开票','20',0,'IMC-SIM-OPEN-INVOICE');
DELETE FROM t_perm_permitem_L WHERE FPKID = '1DH003IHRINZ';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('1DH003IHRHAF','1DH003IHRINZ','zh_CN','一键开票');
DELETE FROM t_perm_permitem_L WHERE FPKID = '1DH003IHRIO+';
INSERT INTO t_perm_permitem_L(FID,FPKID,FLOCALEID,FNAME) VALUES ('1DH003IHRHAF','1DH003IHRIO+','zh_TW','一鍵開票');
