| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- @using ZXDT.CallCenter.MVCWeb.Models;
- @using ZXDT.CallCenter.Model;
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>layui</title>
- <meta name="renderer" content="webkit">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
- <link href="/Content/layui/css/layui.css" rel="stylesheet" />
- <link href="/Content/css/public.css" rel="stylesheet" />
- <link href="/Content/layui/css/modules/layui-icon-extend/iconfont.css" type="text/css" rel=" stylesheet" />
- <link href="/Content/css/font-awesome/css/font-awesome.min.css" type="text/css" rel=" stylesheet" />
- <link href="/Content/css/callrecord/callrecord.css" rel="stylesheet" />
- <script src="/Content/js/jquery-1.8.3.min.js"></script>
- <script src="/Content/js/ZXDT.http.js"></script>
- <link href="/Content/layui/zTree/v3/css/zTreeStyle/zTreeStyle.css" rel="stylesheet" />
- <link href="/Content/css/workflow/workflow.css" rel="stylesheet" />
- <script src="/Content/layui/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script>
- <script type="text/javascript" src="/Content/layui/layui.js" charset="utf-8"></script>
- <script src="/Content/js/CallRecord/dutyNumber.js" charset="utf-8"></script>
- <script src="/Content/layui/formatdate.js"></script>
-
- </head>
- <body>
- <form class="layui-form" id="form1">
- <div class="layui-card-header">
- <div class="layui-card-body">
- <div class="layui-row layui-col-space15">
- <div class="layui-col-md7" style="position: relative;">
- <label class="layui-form-label">审核状态</label>
- <div class="layui-input-block examineParam">
- <input type="radio" name="shenpiresult" value="1" title="同意" checked />
- <input type="radio" name="shenpiresult" value="0" title="不同意"/>
- </div>
- </div>
- <div class="layui-col-md7">
- <label class="layui-form-label">
- 审核内容:
- </label>
- <div class="layui-input-block">
- <textarea id="shenpiopinion" placeholder="" class="layui-textarea"></textarea>
- </div>
- </div>
-
- </div>
- </div>
-
- <div>
- <ul>
- <li class="layui-row">
- <div class="layui-col-md12 btndiv">
- <button class="layui-btn layui-btn-normal" lay-submit="" onclick="SaveWeb()"
- style="width: 80px;">保存</button>
- <div title="关闭窗口" class="layui-btn layui-btn-warm" onclick="CloseWeb();"
- style="width: 80px;">
- 取消
- </div>
- </div>
- </li>
- </ul>
- </div>
-
- </form>
- <input type="hidden" value="" id="F_CustomerId">
- </body>
- <script>
- @* layui.use(['form'], function () {
- var form = layui.form,
- form.on('radio(examineParam)', function (data) {
- var value = data.value; // 当前选中的value值
- });
- }) *@
- function SaveWeb() {
- console.log(helper.cookies.get('examineId'))
- console.log($('input:radio[name="shenpiresult"]:checked').val())
- console.log($('#shenpiopinion').val())
- if($('input:radio[name="shenpiresult"]:checked').val()=="0"){
- if(!$('#shenpiopinion').val()){
- alert("审批原因不能为空!");
- return
- }
-
- }
-
- var data = {
- workorderid: helper.cookies.get('examineId'),
- shenpiresult: $('input:radio[name="shenpiresult"]:checked').val(),
- shenpiopinion: $('#shenpiopinion').val()
- }
-
- $.ajax({
- url: "/order/SubmiShenPiYJ",
- type: "post",
- async: false,//同步请求
- contentType: "application/json",
- dataType: "text",
- cache: false,
- data: JSON.stringify(data),
- success: function (thisResult) {
- if ( thisResult.toLowerCase() == "true") {
- location.reload();
- var thisindex = parent.layer.getFrameIndex(window.name); //获取窗口索引
- parent.layer.close(thisindex);
- } else {
- alert(eval('(' + thisResult + ')'))
- }
- },
- error: function (error) {
- return false;
- }
- });
- }
- function CloseWeb(){
-
- location.reload();
- var thisindex = parent.layer.getFrameIndex(window.name); //获取窗口索引
- parent.layer.close(thisindex);
- }
- </script>
- </html>
|