view_meet_0.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <table width="100%" bordercolor="#000000" border="0" class="ke-zeroborder">
  2. <tbody>
  3. <tr>
  4. <td height="34" align="right" class="ys1">申请时间</td>
  5. <td colspan="3" class="ys2">{apply_time}</td>
  6. </tr>
  7. <tr>
  8. <td height="34" width="15%" align="right" class="ys1">申请部门</td>
  9. <td class="ys2" width="35%">{apply_deptname}</td>
  10. <td align="right" class="ys1" width="15%">会议室安排</td>
  11. <td class="ys2" width="35%">{hyname}</td>
  12. </tr>
  13. <tr>
  14. <td height="34" width="15%" align="right" class="ys1">经办人</td>
  15. <td class="ys2" width="35%"><span>{optname}</span><br/></td>
  16. <td align="right" class="ys1" width="15%">手机</td>
  17. <td class="ys2" width="35%">{apply_mobile}</td>
  18. </tr>
  19. <tr>
  20. <td height="34" align="right" class="ys1">开始时间</td>
  21. <td class="ys2">{startdt}</td>
  22. <td class="ys1" align="right">结束时间</td>
  23. <td class="ys2">{enddt}</td>
  24. </tr>
  25. <tr>
  26. <td height="34" align="right" class="ys1">会议议题</td>
  27. <td colspan="3" class="ys2">{title}</td>
  28. </tr>
  29. <tr>
  30. <td height="34" align="right" class="ys1">参会部门及人员</td>
  31. <td colspan="3" class="ys2">{joinname}</td>
  32. </tr>
  33. <tr>
  34. <td height="34" align="right" class="ys1">备注</td>
  35. <td colspan="3" class="ys2">{explain}</td>
  36. </tr>
  37. </tbody>
  38. </table>
  39. <script>
  40. setTimeout(function () {
  41. $("#check_btn").removeAttr('onclick');
  42. // 监听提交按钮的点击事件
  43. $("#check_btn").on("click", function() {
  44. handleCheckButtonClick();
  45. });
  46. function handleCheckButtonClick() {
  47. // 判断是否在最后一个 span 元素中
  48. var isLastStep = $("#process_flow span:last").attr("step") == "1";
  49. // 检查 radio 输入框是否选择了 "同意"
  50. var $radioInput = $("input[name='check_status']:checked");
  51. if (isLastStep) {
  52. if($radioInput.length > 0 && $radioInput.val() === "1") {
  53. // 构建 POST 请求体参数
  54. var requestBody = {
  55. "type": 1,
  56. "subject": "{title}",
  57. "start": "{startdt}",
  58. "end": "{enddt}",
  59. "room_id": 976,
  60. };
  61. var url = geturlact('createMeetingPost');
  62. if($("#imgqianming").length > 0) {
  63. // 发送 POST 请求
  64. console.log('请求接口');
  65. sendPostRequest(url, requestBody);
  66. return;
  67. } else {
  68. js.setmsg('此动作必须手写签名');return;
  69. }
  70. }
  71. // 执行原提交方法
  72. check(0);
  73. }
  74. // 执行原提交方法
  75. check(0);
  76. }
  77. function sendPostRequest(url, data) {
  78. $.ajax({
  79. type: "POST",
  80. url: url,
  81. data: JSON.stringify(data),
  82. contentType: "application/json",
  83. success: function(response) {
  84. var jsonArray = JSON.parse(response);
  85. var code = jsonArray['code'];
  86. if (code === 0) {
  87. console.log('提交方法1');
  88. check(0);
  89. } else {
  90. var msg = jsonArray['msg'];
  91. alert(msg);
  92. }
  93. },
  94. error: function(xhr, status, error) {
  95. // 处理错误
  96. console.error(error);
  97. alert(error);
  98. }
  99. });
  100. }
  101. },300);
  102. </script>