123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- <table width="100%" bordercolor="#000000" border="0" class="ke-zeroborder">
- <tbody>
- <tr>
- <td height="34" align="right" class="ys1">申请时间</td>
- <td colspan="3" class="ys2">{apply_time}</td>
- </tr>
- <tr>
- <td height="34" width="15%" align="right" class="ys1">申请部门</td>
- <td class="ys2" width="35%">{apply_deptname}</td>
- <td align="right" class="ys1" width="15%">会议室安排</td>
- <td class="ys2" width="35%">{hyname}</td>
- </tr>
- <tr>
- <td height="34" width="15%" align="right" class="ys1">经办人</td>
- <td class="ys2" width="35%"><span>{optname}</span><br/></td>
- <td align="right" class="ys1" width="15%">手机</td>
- <td class="ys2" width="35%">{apply_mobile}</td>
- </tr>
- <tr>
- <td height="34" align="right" class="ys1">开始时间</td>
- <td class="ys2">{startdt}</td>
- <td class="ys1" align="right">结束时间</td>
- <td class="ys2">{enddt}</td>
- </tr>
- <tr>
- <td height="34" align="right" class="ys1">会议议题</td>
- <td colspan="3" class="ys2">{title}</td>
- </tr>
- <tr>
- <td height="34" align="right" class="ys1">参会部门及人员</td>
- <td colspan="3" class="ys2">{joinname}</td>
- </tr>
- <tr>
- <td height="34" align="right" class="ys1">备注</td>
- <td colspan="3" class="ys2">{explain}</td>
- </tr>
- </tbody>
- </table>
- <script>
- setTimeout(function () {
- $("#check_btn").removeAttr('onclick');
- // 监听提交按钮的点击事件
- $("#check_btn").on("click", function() {
- handleCheckButtonClick();
- });
- function handleCheckButtonClick() {
- // 判断是否在最后一个 span 元素中
- var isLastStep = $("#process_flow span:last").attr("step") == "1";
- // 检查 radio 输入框是否选择了 "同意"
- var $radioInput = $("input[name='check_status']:checked");
- if (isLastStep) {
- if($radioInput.length > 0 && $radioInput.val() === "1") {
- // 构建 POST 请求体参数
- var requestBody = {
- "type": 1,
- "subject": "{title}",
- "start": "{startdt}",
- "end": "{enddt}",
- "room_id": 976,
- };
- var url = geturlact('createMeetingPost');
- if($("#imgqianming").length > 0) {
- // 发送 POST 请求
- console.log('请求接口');
- sendPostRequest(url, requestBody);
- return;
- } else {
- js.setmsg('此动作必须手写签名');return;
- }
- }
- // 执行原提交方法
- check(0);
- }
- // 执行原提交方法
- check(0);
- }
- function sendPostRequest(url, data) {
- $.ajax({
- type: "POST",
- url: url,
- data: JSON.stringify(data),
- contentType: "application/json",
- success: function(response) {
- var jsonArray = JSON.parse(response);
- var code = jsonArray['code'];
- if (code === 0) {
- console.log('提交方法1');
- check(0);
- } else {
- var msg = jsonArray['msg'];
- alert(msg);
- }
- },
- error: function(xhr, status, error) {
- // 处理错误
- console.error(error);
- alert(error);
- }
- });
- }
- },300);
- </script>
|