Ext.Ajax.request({

 method:'POST',

 url: MCLONIS+"/scm/planAuditAction!audit.action",

 params:{

 headId:getId 

 },

 success: function(response, options) {


 var r = Ext.util.JSON.decode(response.responseText).success;

 if(r){

 state.setValue(5);

 state.setRawValue("审批完成");

 auditbtn.setDisabled(true);

 rejectbtn.setDisabled(true);

 antiAuditbtn.setDisabled(false);

 savebtn.setDisabled(true);

 buildReplenishbtn.setDisabled(false);

 rescindbtn.setDisabled(true);

 Ext.Msg.alert("提示","审核成功!");

 }else{

 Ext.Msg.alert("提示","审核失败!");

 }

 },

 failure:function(){

 Ext.Msg.alert("提示","网络连接失败!");

 }


 });