DELETE FROM t_meta_pluginscript WHERE FID = '6cIzjiU6';
INSERT INTO t_meta_pluginscript(FID,FSCRIPTNUMBER,FCREATEDATE,FCREATER,FSCRIPTCONTEXT,FTYPE,FSCRIPTTYPE,FSCRIPTMODULE,FSCRIPTNAME,FBIZAPPID,FCLASSNAME,FINDUSTRY,FSCRIPTCONTEXT_TAG,FMODIFIER,FMODIFYDATE,FDESCRIPTION,FISV,FBIZUNITID,FENGINETYPE) VALUES ('6cIzjiU6','botp_convertplugin_ts',{ts'2024-03-15  00:00:00'},13466739,' ',' ','10','@cosmic/dev','转换规则插件模版','0a1f79d7000000ac','@cosmic/dev/ide/mainpage/plugins/botp_convertplugin_ts.ts',0,'import { ConvertPlugin } from "@cosmic/bos-framework/plugin/botp/ConvertPlugin"
import * as args from "@cosmic/bos-core/kd/bos/entity/botp/plugin/args"

let plugin = new ConvertPlugin()

/**
 * 创建目标单据数据包后事件：把根据分单规则创建好的目标单，传递给插件
 */
plugin.onAfterCreateTarget((arg: args.AfterCreateTargetEventArgs) => {

})

/**
 * 目标字段赋值完毕后事件：插件可以在此基础上，继续填写目标字段
 */
plugin.onAfterFieldMapping((arg: args.AfterFieldMappingEventArgs) => {

})

/**
 * 单据转换后事件，最后执行：插件可以在这个事件中，对生成的目标单数据，进行最后的修改
 */
plugin.onAfterConvert((arg: args.AfterConvertEventArgs) => {

})',13466739,{ts'2024-03-15  00:00:00'},' ','kingdee','11FUEXZBA3UJ','1'); 
