在动态扩展方案中:销售出库单-编辑界面-扩展定义在左侧-模板方法-界面加载(onLoad)增加后置脚本即可varsourceBillType=pluginCtx.getKDBizPromptBox("kDBizPromptBoxSorBillType").getValue();if(sourceBillType!=null){pluginCtx.getKDWorkButton("btnAddLine").setEnabled(true);pluginCtx.getUI().getActionManager().getAction("actionAddLine").setEnabled(true);pluginCtx.getKDTable("detailTable").getColumn("materialNum").getStyleAttributes().setLocked(false);}