enterprise_examine.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. var EpExam = {};
  2. var locked = false;
  3. EpExam.addSubmit = function() {
  4. var id = $("#id").val();
  5. var checkState = $("#checkState").val();
  6. var checkMsg = $("#checkMsg").val();
  7. if(checkState == null || checkState == ""){
  8. Feng.info("请选择审核状态");
  9. return ;
  10. }
  11. if(checkMsg == null || checkMsg == ""){
  12. Feng.info("请填写审核意见");
  13. return ;
  14. }
  15. var da = {"id":id, "checkState":checkState, "checkMsg":checkMsg};
  16. var operation = function() {
  17. var ajax = new $ax(Feng.ctxPath + "/admin/enterprise/doExamine", function (data) {
  18. if (data.code == 200) {
  19. window.parent.Enterprise.table.refresh();
  20. parent.layer.closeAll();
  21. }
  22. Feng.info(data.msg);
  23. }, function (data) {
  24. Feng.error("操作失败!" + data.responseJSON.message + "!");
  25. });
  26. ajax.set(da);
  27. ajax.start();
  28. };
  29. Feng.confirm("确定提交吗?", operation);
  30. };
  31. EpExam.toggleField = function(){
  32. var checkState = $("#checkState").val();
  33. var checkMsg = $("#checkMsg").val();
  34. if(checkState==3){
  35. if(checkMsg == null || checkMsg == ''){
  36. $("#checkMsg").val("机构账号注册审核通过。");
  37. }
  38. }else{
  39. $("#checkMsg").val("");
  40. }
  41. }
  42. $(function () {
  43. var checkStateTemp = $("#checkStateTemp").val();
  44. if (checkStateTemp!=null && checkStateTemp!='' && checkStateTemp!=1) {
  45. $("#checkState").val(checkStateTemp);
  46. }
  47. });