| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- <!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>
- <style>
- .input {
- background-color: #FFF;
- background-image: none;
- border: 1px solid #ccc;
- border-radius: 1px;
- color: inherit;
- padding: 6px 12px
- }
-
- .fjnr {
- padding: 0!important;
- border: none!important;
- }
-
- .HT {
- display: none;
- }
- </style>
- </head>
- <body>
- <div class="Common">
- <table>
- <th class="Importent">回访结果:</th>
- <td>
- <input checked="true" type="radio" value="1" name="huifang" />满意
- <input type="radio" value="0" name="huifang" />不满意
- </td>
-
- <tr>
- <th>附件上传:</th>
- <td colspan="7">
- <div class="fileBox"></div>
- <input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
- <input class="input" type="button" value="上传" id="scwj" />
- <input type="hidden" id="file" />
- <span style="color:#FF0000; border: none;">
- (文件格式为png,jpg,mp4,mp3,pdf,doc,docx,xls,xlsx)
- </span>
- </td>
- </tr>
- </table>
- <div class="btn_box">
- <button class="btns">保存</button>
- </div>
- </div>
- <script src="../../css/laydate/laydate.js"></script>
- <script src="../../js/adjustHeight.js"></script>
- <script src="../../Script/Common/huayi.common.js"></script>
- <script>
- var wid = helper.request.queryString("wid");
- var type = helper.request.queryString("type");
- console.log(type)
- $(document).ready(function() {
- XQ();
- })
- //上传附件
- $("#scwj").click(function() {
- $("#upFile").trigger("click");
- })
- $("#upFile").change(function() {
- upload('upFile', '.fileBox', ['png', 'jpg', 'mp3', 'mp4', 'pdf', 'doc', 'docx', 'xls', 'xlsx'], "#file");
- })
- $("#scfj").click(function() {
- $(".fjnr").text("");
- $("#scfj").hide();
- })
- $(".btns").click(function() {
- JA();
- })
- //批示
- function JA() {
- $.post(huayi.config.callcenter_url + 'WorkOrder/EditSuperInfoByAdmin', {
- id: wid,
- type: $("#Types").val(), //(1领导批示 2市长指示)
- superuser: $("#superuser").val(), //批示人&
- superopinion: $('#superopinion').val(), //批示内容&
- files: $("#file").val(), //附件id(多个用英文逗号,隔开
- "token": $.cookie("token")
- }, function(result) {
- result = JSON.parse(result);
- if(result.state.toLowerCase() == "success") {
- parent.parent.layer.closeAll();
- parent.parent.$('#orderlist').bootstrapTable('refresh');
- parent.parent.layer.msg("操作成功!");
- }
- })
- }
- function XQ() {
- $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetWorkOrderNew', {
- workorderid: wid,
- type: 6,
- token: $.cookie("token")
- }, function(result) {
- if(result.state.toLowerCase() == "success") {
- console.log(result)
- }
- })
- }
- </script>
- </body>
- </html>
|