enterprise_examine.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. $("#field").css("display", "none");
  36. if (checkMsg == null || checkMsg == '') {
  37. $("#checkMsg").val("机构账号注册审核通过。");
  38. }
  39. } else {
  40. $("#checkMsg").val("");
  41. $("#field").css("display", "block");
  42. }
  43. }
  44. $(function () {
  45. var checkStateTemp = $("#checkStateTemp").val();
  46. if (checkStateTemp != null && checkStateTemp != '' && checkStateTemp != 1) {
  47. $("#checkState").val(checkStateTemp);
  48. }
  49. });