mode_goodgh.js 795 B

12345678910111213141516171819202122232425262728293031323334
  1. //流程模块【goodgh.物品归还】下录入页面自定义js页面,初始函数
  2. function initbodys(){
  3. }
  4. c.addrow=function(o1){
  5. js.msg('msg','请用读取领用单,无需要自己新增');
  6. $(o1).remove();
  7. }
  8. c.delrow=function(o1){
  9. js.msg('msg','是不能删除的哦');
  10. $(o1).remove();
  11. }
  12. //读取需要归还的物品子表
  13. c.onselectdata['custname']=function(d){
  14. js.ajax(geturlact('getgoodn'),{'wmid':d.value},function(ret){
  15. for(var i=0;i<ret.length;i++){
  16. if(i==0){
  17. c.setrowdata(0,0,ret[i]);
  18. }else{
  19. c.insertrow(0,ret[i],true);
  20. }
  21. }
  22. },'get,json');
  23. }
  24. c.onselectdatabefore=function(fid,zb){
  25. if(fid=='custname'){
  26. if(form('custid').value>'0')return '已经选择就不要重复选择,可刷新页面也重新选择';
  27. }
  28. }