@Override public void onLoad() throws Exception { super.onLoad(); //单据未生成凭证之前,"收款类型"为可编辑、“往来户”也可编辑 boolean hasFV = this.editData.isFiVouchered(); if(!hasFV){ //收款类型 f7RecBillType.setEnabled(true); f7RecBillType.setEditable(true); f7RecBillType.setReadOnly(false); //往来户 prmtPayer.setEnabled(true); prmtPayer.setEditable(true); prmtPayer.setReadOnly(false); } }