| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <script src="../Script/Common/huayi.load.js"></script>
- <script src="../Script/Common/huayi.config.js"></script>
- <link href="../css/layer/need/layer.css" />
- <link rel="stylesheet" href="../css/init.css" />
- <title>审核</title>
- </head>
- <body>
- <div class="Common">
- <table>
- <tr>
- <th class="Importent">是否同意:</th>
- <td>
- <select class="select_" id='isBulletin'>
- <option value="0">否</option>
- <option value="1">是</option>
- </select>
- </td>
- </tr>
- <tr>
- <th class="Importent">是否交办:</th>
- <td>
- <select class="select_" id='isjb'>
- <option value="0">否</option>
- <option value="1">是</option>
- </select>
- </td>
- <th></th>
- </tr>
- <tr>
- <th>主办单位:</th>
- <td colspan="1">
- <select id="maindeptid" name="select" class="selectpicker show-tick form-control" multiple
- data-live-search="true">
- </select>
- </td>
- </tr>
- <tr>
- <th>协办单位:</th>
- <td colspan="1">
- <select id="otherdeptids" name="select" class="selectpicker show-tick form-control" multiple
- data-live-search="true">
- </select>
- </td>
- </tr>
- <tr class="limittimeWrapper">
- <th>办理时限:</th>
- <td colspan="">
- <select class="limittime" id="limittime" style="width: 200px; height: 30px; line-height: 30px;">
- <!--<option value="0">选择</option>-->
- <option value="1">一天</option>
- <option value="3">三天</option>
- <option value="5">五天</option>
- <option value="7">七天</option>
- </select>
- </td>
- </tr>
- <tr class="limittimesWrapper">
- <th>紧急时限:</th>
- <td colspan="">
- <input type="text" id="limittimes">
- </td>
- </tr>
- <tr>
- <th class="Importent">交办意见:</th>
- <td colspan="7"><textarea data-adaptheight id="assignedopinion" name="" rows="4" cols=""></textarea>
- </td>
- </tr>
- <tr class="divShow">
- <th class="Importent">审核不通过原因:</th>
- <td colspan="7"><textarea data-adaptheight id="result" name="" rows="4" cols=""></textarea></td>
- </tr>
- </table>
- <div class="btn_box">
- <button class="btns BC">保存</button>
- </div>
- </div>
- <script src="../js/adjustHeight.js"></script>
- <script src="../css/laydate/laydate.js"></script>
- <script>
- var wid = helper.request.queryString("wid");
- $(document).ready(function () {
- if ($("#isBulletin").val() == "1") {
- $(".divShow").hide();
- } else {
- $(".divShow").show();
- }
- $('.BC').click(function () {
- if ($("#isBulletin").val() == "1") {
- JA();
- } else {
- if (!$("#result").val()) {
- layer.msg("原因不能为空");
- } else {
- JA();
- }
- }
- })
- $("#isBulletin").change(function () {
- if ($("#isBulletin").val() == "1") {
- $(".divShow").hide();
- } else {
- $(".divShow").show();
- }
- })
- getDetail();
- jbSelect($("#maindeptid"));
- getOtherdeptids($("#otherdeptids"))
- laydate.skin("blue");
- laydate({
- elem: "#limittimes",
- event: "focus",
- istime: true,
- format: 'YYYY-MM-DD hh:mm:ss'
- });
- });
- //回退
- function JA() {
- $.post(huayi.config.callcenter_url + 'WorkOrder/AuditWorkOrder', {
- workorderid: wid,
- state: $("#isBulletin").val(),
- reason: $("#result").val(), //回访内容
- isjb: $("isjb").val(), //是否交办
- assignid: "", // 交办id
- maindeptid: $("#maindeptid").val(), // 主办单位
- otherdeptids: $("#otherdeptids").val(), // 协办单位
- limittime: $("#limittime").val(), // 时限
- limittimes: $("#limittimes").val(), // 紧急时限
- assignedopinion: $("#assignedopinion").val(), // 交办意见
- token: $.cookie("token")
- }, function (result) {
- result = JSON.parse(result);
- if (result.state.toLowerCase() == "success") {
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- console.log(index);
- parent.layer.close(index); //再执行关闭
- parent.$('#orderlist').bootstrapTable('refresh');
- parent.layer.msg("操作成功");
- }
- })
- }
- // 主办单位
- function jbSelect(obj) {
- obj.empty();
- $.getJSON(huayi.config.callcenter_url + "Department/GetDeptList", {
- "token": $.cookie("token"),
- "iscbdw": 1,
- }, function (data) {
- if (data.state.toLowerCase() == "success") {
- var content = data.data;
- $("<option value=''>请选择</option>").appendTo(obj);
- $(content).each(function (i, n) {
- $("<option value='" + n.F_DeptId + "'>" + n.F_DeptName + "</option>").appendTo(
- obj);
- })
- obj.selectpicker({
- noneSelectedText: '请选择' //默认显示内容
- });
- obj.selectpicker('refresh');
- }
- })
- }
- // 协办单位
- function getOtherdeptids(obj) {
- obj.empty();
- $.getJSON(huayi.config.callcenter_url + "Department/GetDeptList", {
- "token": $.cookie("token"),
- "iscbdw": 1,
- }, function (data) {
- if (data.state.toLowerCase() == "success") {
- var content = data.data;
- $("<option value=''>请选择</option>").appendTo(obj);
- $(content).each(function (i, n) {
- $("<option value='" + n.F_DeptId + "'>" + n.F_DeptName + "</option>").appendTo(
- obj);
- })
- obj.selectpicker({
- noneSelectedText: '请选择' //默认显示内容
- });
- obj.selectpicker('refresh');
- }
- })
- }
- // 获取详情
- function getDetail() {
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + "WorkOrder/GetWorkOrder",
- dataType: 'json',
- async: false,
- data: {
- workorderid: wid,
- token: $.cookie("token")
- },
- success: function (result) {
- if (result.state.toLowerCase() == "success") {
- var level = Data[0].F_Level + "";
- if (level === "1") {
- $(".limittimesWrapper").hide()
- $(".limittimeWrapper").show()
- } else if (level === "2"){
- $(".limittimesWrapper").show()
- $(".limittimeWrapper").hide()
- }
- }
- }
- })
- }
- </script>
- </body>
- </html>
|