商丘12345 前端

banli_zilei.html 29KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <script src="../Script/Common/huayi.load.js"></script>
  6. <script src="../Script/Common/huayi.config.js"></script>
  7. <link href="../css/layer/need/layer.css" />
  8. <link rel="stylesheet" href="../css/init.css" />
  9. <title>办理工单</title>
  10. <style>
  11. .input {
  12. background-color: #FFF;
  13. background-image: none;
  14. border: 1px solid #ccc;
  15. border-radius: 1px;
  16. color: inherit;
  17. padding: 6px 12px
  18. }
  19. .fjnr {
  20. padding: 0 !important;
  21. border: none !important;
  22. }
  23. .HGXX td {
  24. padding: 8px;
  25. }
  26. </style>
  27. </head>
  28. <body>
  29. <!--办理内容-->
  30. <div style="width: 100%;padding: 10px;">
  31. <table class="table" border="" cellspacing="0" cellpadding="0" style="border: 1px solid #e7eaec;">
  32. <theard>
  33. <tr>
  34. <td class="text-center" style="min-width: 100px;">派单时间</td>
  35. <td class="text-center" style="min-width: 100px;">办理期限</td>
  36. <td class="text-center" style="min-width: 100px;">内容</td>
  37. </tr>
  38. </theard>
  39. <tbody class="BLNR" style="border-top: none; padding: 8px;"></tbody>
  40. </table>
  41. </div>
  42. <!--重新办理-->
  43. <div style="width: 100%;padding: 10px;">
  44. <table class="table" border="" cellspacing="0" cellpadding="0" style="border: 1px solid #e7eaec;">
  45. <theard>
  46. <tr>
  47. <td class="text-center" style="min-width:70px;">序号</td>
  48. <td class="text-center" style="min-width:70px;">承办人</td>
  49. <td class="text-center" style="min-width:70px;">联系方式</td>
  50. <td class="text-center" style="min-width:70px;">职务</td>
  51. <td class="text-center" style="min-width:70px;">处理结果</td>
  52. <td class="text-center" style="min-width:70px;">办理时间</td>
  53. <td class="text-center" style="min-width:70px;">办理结果</td>
  54. <td class="text-center" style="min-width:70px;">审批时间</td>
  55. <td class="text-center" style="min-width:70px;">审批内容</td>
  56. <td class="text-center" style="min-width:70px;">审批意见</td>
  57. <td class="text-center" style="min-width:70px;">类型</td>
  58. <td class="text-center" style="min-width:70px;">是否有处理结果</td>
  59. <td class="text-center" style="min-width:70px;">处理方案/进程</td>
  60. <td class="text-center" style="min-width:70px;">沟通时间</td>
  61. <td class="text-center" style="min-width:70px;">沟通方式</td>
  62. <td class="text-center" style="min-width:70px;">是否满意</td>
  63. <td class="text-center" style="min-width:70px;">附件</td>
  64. </tr>
  65. </theard>
  66. <tbody class="HGXX" style="border-top: none; padding: 8px;"></tbody>
  67. <!--<div class="FJ"></div>-->
  68. </table>
  69. </div>
  70. <div class="Common">
  71. <table>
  72. <tr>
  73. <th class="Importent">承办人:</th>
  74. <td>
  75. <input id="dealman" type="text" style="height: 32px;">
  76. </td>
  77. <th class="Importent">联系方式:</th>
  78. <td>
  79. <input type="text" id="dealcontact">
  80. </td>
  81. <th class="Importent">职务:</th>
  82. <td>
  83. <input type="text" id="duties">
  84. </td>
  85. </tr>
  86. <tr>
  87. <th class="Importent">处理结果:</th>
  88. <td colspan="5"><textarea data-adaptheight id="situation" name="" rows="6" cols=""></textarea></td>
  89. </tr>
  90. <tr>
  91. <th class="Importent">是否有处理结果:</th>
  92. <td id="isProResultRadio" style="font-size: 12px">
  93. <label style="margin-right: 10px">
  94. <input type="radio" value="1" name="isDisposeResult" style="vertical-align: -2px;" />是
  95. </label>
  96. <label>
  97. <input type="radio" value="2" name="isDisposeResult" style="vertical-align: -2px;" />否
  98. </label>
  99. </td>
  100. </tr>
  101. <tr class="prosituation-wrapper">
  102. <th>处理方案/进程:</th>
  103. <td colspan="5">
  104. <textarea data-adaptheight id="prosituation" name="" rows="6" cols="" ></textarea>
  105. </td>
  106. </tr>
  107. <tr class="annotation-wrapper">
  108. <th style="color:#FF0000;">注释:</th>
  109. <td style="color:#FF0000" colspan="5">请提交加盖单位公章的相关说明文件,不添加文件说明将被扣考核分</td>
  110. </tr>
  111. <tr class="connecttime-wrapper">
  112. <th>沟通时间:</th>
  113. <td>
  114. <input type="text" class="laydate-icon" id="connecttime" style="width: 172px; height: 32px; border-color: rgb(158, 158, 158);">
  115. </td>
  116. </tr>
  117. <tr class="connectmode-wrapper">
  118. <th>沟通方式:</th>
  119. <td>
  120. <input type="text" id="connectmode">
  121. </td>
  122. </tr>
  123. <!--<tr class="replycontent-wrapper">
  124. <th>答复内容:</th>
  125. <td colspan="5">
  126. <textarea id="replycontent" name="" rows="6" cols="" ></textarea>
  127. </td>
  128. </tr>-->
  129. <tr class="isstaisfied-wrapper">
  130. <th>是否满意:</th>
  131. <td id="isStaisfiedRadio" style="font-size: 12px" colspan="5">
  132. <label style="margin-right: 10px;">
  133. <input type="radio" value="1" name="isstaisfied" style="vertical-align: -2px;" />满意
  134. </label>
  135. <label style="margin-right: 10px;">
  136. <input type="radio" value="2" name="isstaisfied" style="vertical-align: -2px;" />基本满意
  137. </label>
  138. <label style="margin-right: 10px;">
  139. <input type="radio" value="3" name="isstaisfied" style="vertical-align: -2px;" />不满意
  140. </label>
  141. </td>
  142. </tr>
  143. <tr>
  144. <th class="Importent">附件:</th>
  145. <td colspan="5">
  146. <div class="fileBox">
  147. </div>
  148. <span class="fjnr"></span>
  149. <input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
  150. <input class="input" type="button" value="上传" id="scwj" />
  151. <!--<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />-->
  152. <input type="hidden" id="file" />
  153. <span style="color:#FF0000; border: none;">
  154. (文件格式为png,jpg,mp4,mp3,pdf,doc,docx,xls,xlsx)
  155. </span>
  156. </td>
  157. </tr>
  158. <tr>
  159. <td style="text-align: right"><button class="btns handleBtn">查看办理结果</button></td>
  160. <td colspan="5">
  161. <textarea data-adaptheight id="result" name="" rows="4" cols=""></textarea>
  162. </td>
  163. <input type="hidden" id="ID" />
  164. </tr>
  165. </table>
  166. <div class="btn_box">
  167. <button class="btns Submit">保存并办理</button>
  168. </div>
  169. </div>
  170. <script src="../css/laydate/laydate.js"></script>
  171. <script src="../js/adjustHeight.js"></script>
  172. <script src="../Script/Common/huayi.common.js"></script>
  173. <script>
  174. var wid = helper.request.queryString("wid");
  175. var isProtect = helper.request.queryString("isProtect");
  176. var State;
  177. var a = $("#ID").val();
  178. var simpleDetailStrStart = "";
  179. var simpleDetailStrEnd = "";
  180. var simpleDetailStr = "";
  181. Detail();
  182. $(document).ready(function () {
  183. laydate.skin('blue');
  184. laydate({
  185. elem: '#connecttime',
  186. event: 'focus',
  187. istoday: true,
  188. istime: true,
  189. type: 'datetime',
  190. format: 'YYYY-MM-DD hh:mm:ss',
  191. });
  192. simpleDetail();
  193. HGXX();
  194. BLNR();
  195. // Hove();
  196. // LOAD();
  197. //上传附件
  198. $("#scwj").click(function () {
  199. $("#upFile").trigger("click");
  200. })
  201. $("#upFile").change(function () {
  202. upload('upFile','.fileBox',['png','jpg','mp3','mp4','pdf','doc','docx','xls','xlsx'],'#file');
  203. })
  204. $("#scfj").click(function () {
  205. $(".fjnr").text("");
  206. $("#scfj").hide();
  207. })
  208. // $('.BC').click(function() {
  209. // if($("#dealman").val()==""){
  210. // layer.msg("办理人不能为空");
  211. // }else if($("#result").val()==""){
  212. // layer.msg("办理内容不能为空");
  213. // }else{
  214. // State = 0;
  215. // JA();
  216. // }
  217. //
  218. // })
  219. $('.Submit').click(function () {
  220. if ($("#dealman").val() == "") {
  221. layer.msg("办理人不能为空");
  222. } else if ($("#situation").val() == "") {
  223. layer.msg("处理结果不能为空");
  224. } else if ($('#isProResultRadio input[name="isDisposeResult"]:checked').val() == null) {
  225. layer.msg("处理结果不能为空");
  226. } else if ($("#dealcontact").val() == "") {
  227. layer.msg("联系方式不能为空")
  228. } else if ($("#duties").val() == "") {
  229. layer.msg("职务不能为空")
  230. } else if ($("#result").val() == "") {
  231. layer.msg("请生成办理结果")
  232. } else {
  233. State = 1;
  234. JA();
  235. }
  236. })
  237. $(".prosituation-wrapper").hide(); //处理方案/进程
  238. $(".annotation-wrapper").hide(); //注释
  239. $(".connecttime-wrapper").hide(); //沟通时间
  240. $(".connectmode-wrapper").hide(); //沟通方式
  241. // $(".replycontent-wrapper").hide(); //答复内容
  242. $(".isstaisfied-wrapper").hide(); //是否满意
  243. /*
  244. * 处理结果
  245. * 是 1
  246. * 否 2
  247. */
  248. $('#isProResultRadio').find('input[type="radio"]').on('change', function() {
  249. $("#prosituation").val(""); //处理方案/进程
  250. $("#connecttime").val(""); //沟通时间
  251. $("#connectmode").val(""); //沟通方式
  252. $("#result").val(""); //办理结果
  253. // $("#replycontent").val(""); //答复内容
  254. $('#isStaisfiedRadio input[name="isstaisfied"]:checked').prop("checked", false); //是否满意
  255. isProResultJudge($(this).val());
  256. });
  257. //办理结果
  258. $('.handleBtn').click(function() {
  259. if($('#isProResultRadio input[name="isDisposeResult"]:checked').val() === '1') {
  260. if (isProtect === "1" ) {
  261. simpleDetailStrEnd = "经落实,具体情况回复如下:" + $("#situation").val() + " 办理结果:" + "已办理 承办人:" + $("#dealman").val() + " 职务:" + $("#duties").val() + " 联系电话:" + $("#dealcontact").val()
  262. simpleDetailStr = simpleDetailStrStart + simpleDetailStrEnd;
  263. $("#result").val(simpleDetailStr);
  264. } else if (isProtect === "0") {
  265. if ($('#isStaisfiedRadio input[name="isstaisfied"]:checked').val() === "0") {
  266. var isStaisfiedRadioData = "未评价";
  267. } else if ($('#isStaisfiedRadio input[name="isstaisfied"]:checked').val() === "1") {
  268. var isStaisfiedRadioData = "满意";
  269. } else if ($('#isStaisfiedRadio input[name="isstaisfied"]:checked').val() === "2") {
  270. var isStaisfiedRadioData = "基本满意";
  271. } else if ($('#isStaisfiedRadio input[name="isstaisfied"]:checked').val() === "3") {
  272. var isStaisfiedRadioData = "不满意";
  273. } else {
  274. var isStaisfiedRadioData = "未评价";
  275. }
  276. simpleDetailStrEnd = "经落实,具体情况回复如下:" + $("#situation").val() + " 办理结果:" + "已办理 承办人:" + $("#dealman").val() + " 职务:" + $("#duties").val() + " 联系电话:" + $("#dealcontact").val() + "; " + $("#dealman").val() + "用" + $("#connectmode").val() + "方式在" + $("#connecttime").val() + "对反映人进行了回复,反映人对结果表示" + isStaisfiedRadioData
  277. simpleDetailStr = simpleDetailStrStart + simpleDetailStrEnd;
  278. $("#result").val(simpleDetailStr);
  279. }
  280. } else if ($('#isProResultRadio input[name="isDisposeResult"]:checked').val() === '2') {
  281. simpleDetailStrEnd = "经落实,具体情况回复如下:" + $("#situation").val() + " 办理结果:" + "未办理 承办人:" + $("#dealman").val() + " 职务:" + $("#duties").val() + " 联系电话:" + $("#dealcontact").val() + "; 处理方案/进程:" + $("#prosituation").val();
  282. simpleDetailStr = simpleDetailStrStart + simpleDetailStrEnd;
  283. $("#result").val(simpleDetailStr);
  284. } else {
  285. simpleDetailStr = simpleDetailStrStart + simpleDetailStrEnd;
  286. $("#result").val(simpleDetailStr);
  287. }
  288. })
  289. });
  290. //交办
  291. function JA() {
  292. $.post(huayi.config.callcenter_url + 'WorkOrder/DealWorkOrder', {
  293. workorderid: wid,
  294. dealman: $("#dealman").val(), //承办人
  295. result: $('#result').val(), //处理情况
  296. situation: $("#situation").val(), //办理结果
  297. isproresult: $('#isProResultRadio input[name="isDisposeResult"]:checked').val(), //处理结果
  298. prosituation: $("#prosituation").val(), //处理方案/进程
  299. dealcontact: $("#dealcontact").val(), //联系方式
  300. duties: $("#duties").val(), //职务
  301. connecttime: $("#connecttime").val(), //沟通时间
  302. connectmode: $("#connectmode").val(), //沟通方式
  303. // replycontent: $("#replycontent").val(), //答复内容
  304. isstaisfied: $('#isStaisfiedRadio input[name="isstaisfied"]:checked').val(), //是否满意
  305. state: State,
  306. feedbackid: a,
  307. files: $("#file").val(),
  308. token: $.cookie("token")
  309. }, function (result) {
  310. result = JSON.parse(result);
  311. if (result.state.toLowerCase() == "success") {
  312. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  313. parent.layer.close(index); //再执行关闭
  314. parent.load();
  315. parent.layer.msg("办理成功");
  316. $('.fileBox').html('');
  317. }
  318. })
  319. }
  320. // 工单详情
  321. function HGXX() {
  322. $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetSecondDealInfo', {
  323. workorderid: wid,
  324. token: $.cookie("token")
  325. }, function (result) {
  326. // result = JSON.stringify(result)
  327. // alert(result)
  328. console.log(result);
  329. if (result.state.toLowerCase() == "success") {
  330. var temp;
  331. var Agree;
  332. $.each(result.data.fkinfo, function (i, n) {
  333. // var r = JSON.stringify(n.File);
  334. if (n.F_IsAudit == 1) {
  335. Agree = "同意";
  336. } else if (n.F_IsAudit == 2) {
  337. Agree = "拒绝";
  338. } else if (n.F_IsAudit == 0) {
  339. Agree = "";
  340. }
  341. var bval = n.F_Type;
  342. switch(bval + '') {
  343. case '1':
  344. bval = '主办';
  345. break;
  346. case '2':
  347. bval = '协办';
  348. break;
  349. }
  350. //是否有处理结果
  351. var isProResultValue = n.F_IsProResult + "";
  352. switch (isProResultValue) {
  353. case "0":
  354. isProResultValue = "默认";
  355. break;
  356. case "1":
  357. isProResultValue = "是";
  358. break;
  359. case "2":
  360. isProResultValue = "否";
  361. break;
  362. }
  363. //是否满意
  364. var isSatisfiedValue = n.F_IsSatisfied + "";
  365. switch (isSatisfiedValue) {
  366. case "0":
  367. isSatisfiedValue = "未评价";
  368. break;
  369. case "1":
  370. isSatisfiedValue = "满意";
  371. break;
  372. case "2":
  373. isSatisfiedValue = "基本满意";
  374. break;
  375. case "3":
  376. isSatisfiedValue = "不满意";
  377. break;
  378. }
  379. //沟通时间
  380. var connectTimeValue = n.F_ConnectTime;
  381. switch (connectTimeValue) {
  382. case null:
  383. connectTimeValue = "";
  384. break;
  385. default :
  386. connectTimeValue = n.F_ConnectTime;
  387. }
  388. // 审批时间
  389. var auditTimeValue
  390. switch (n.F_AuditTime) {
  391. case "":
  392. auditTimeValue = ""
  393. break;
  394. case null:
  395. auditTimeValue = ""
  396. break;
  397. default:
  398. auditTimeValue = n.F_AuditTime
  399. break;
  400. }
  401. //审批内容
  402. var auditReasonValue
  403. switch (n.F_AuditReason) {
  404. case "":
  405. auditReasonValue = ""
  406. break;
  407. case null:
  408. auditReasonValue = ""
  409. break;
  410. default:
  411. auditReasonValue = n.F_AuditReason
  412. break;
  413. }
  414. //职务
  415. var dutiesValue
  416. switch (n.F_Duties) {
  417. case "":
  418. dutiesValue = ""
  419. break;
  420. case null:
  421. dutiesValue = ""
  422. break;
  423. default:
  424. dutiesValue = n.F_Duties
  425. break;
  426. }
  427. //处理情况
  428. var situationValue
  429. switch (n.F_Situation) {
  430. case "":
  431. situationValue = ""
  432. break;
  433. case null:
  434. situationValue = ""
  435. break;
  436. default:
  437. situationValue = n.F_Situation
  438. break;
  439. }
  440. temp = '<tr>' +
  441. '<td class="text-center">' + (i + 1) + '</td>' +
  442. '<td class="text-center">' + n.F_DealUser + '</td>' +
  443. '<td class="text-center">' + n.F_DealUserContact + '</td>' +
  444. '<td class="text-center">' + dutiesValue + '</td>' +
  445. '<td class="text-center">' + situationValue + '</td>' +
  446. '<td class="text-center">' + n.F_CreateTime + '</td>' +
  447. '<td class="text-center">' + n.F_Result + '</td>' +
  448. '<td class="text-center">' + auditTimeValue + '</td>' +
  449. '<td class="text-center">' + auditReasonValue + '</td>' +
  450. '<td class="text-center">' + Agree + '</td>' +
  451. '<td class="text-center" data-formatter="shtype">' + bval + '</td>' +
  452. '<td class="text-center">' + isProResultValue + '</td>' +
  453. '<td class="text-center">' + n.F_ProSituation + '</td>' +
  454. '<td class="text-center">' + connectTimeValue + '</td>' +
  455. '<td class="text-center">' + n.F_ConnectMode + '</td>' +
  456. '<td class="text-center">' + isSatisfiedValue + '</td>' +
  457. '<td class="text-center FJ" style="color:#00a1cb;"></td>' +
  458. '</tr>';
  459. var tmp = '';
  460. if (n.File) {
  461. $.each(n.File, function (d, f) {
  462. tmp += '<a style="margin-right:5px;" href="' + f.F_FileUrl + '" download="' + f.F_FileUrl + '">' + f.F_FileName.substring(19) + '</a>';
  463. })
  464. }
  465. $(temp).appendTo($('.HGXX'))
  466. .find('.FJ')
  467. .append(tmp);
  468. });
  469. //
  470. // alert(i);
  471. }
  472. })
  473. }
  474. // <a class="tiaozhuan" style="margin-right:5px;" href="' + (n.File == null ? '' : n.File[0].F_FileUrl) + '" download="' + (n.File == null ? '' : n.File[0].F_FileUrl) + '" >附件</a>
  475. // function Hove(){
  476. // $(document).on("mouseover mouseout",'.tiaozhuan',function(event){
  477. // if(event.type == "mouseover"){
  478. // //鼠标悬浮
  479. // var miao=$(this).attr("href");
  480. // if (miao=="") {
  481. // $(this).removeAttr("href");
  482. // $(this).removeAttr("download");
  483. // $(this).html("");
  484. //
  485. // } else{
  486. // $(this).attr("href");
  487. // $(this).attr("download");
  488. // }
  489. // }else if(event.type == "mouseout"){
  490. // //鼠标离开
  491. // }
  492. // })
  493. //
  494. //
  495. // }
  496. // $(window).load(function(){
  497. // alert("DDD");
  498. // alert($(".tiaozhuan").attr("href"));
  499. // var miao1=$(".tiaozhuan").attr("href");
  500. // if (miao1=="") {
  501. // alert("aaa");
  502. //// $(this).html("");
  503. // } else{
  504. // alert("bbb");
  505. // $(this).html("");
  506. // }
  507. // });
  508. // 派单内容给
  509. function BLNR() {
  510. $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetSecondDealInfo', {
  511. workorderid: wid,
  512. token: $.cookie("token")
  513. }, function (result) {
  514. // result = JSON.stringify(result)
  515. // console.log(result);
  516. if (result.state.toLowerCase() == "success") {
  517. var temp2;
  518. $.each(result.data.pdinfo, function (i, n) {
  519. temp2 = temp2 + '<tr><td class="text-center">' + n.F_CreateTime + '</td><td class="text-center">' + n.F_LimitTime + '</td><td class="text-center">' + n.F_AssignedOpinion + '</td></tr>';
  520. });
  521. $('.BLNR').append(temp2);
  522. }
  523. })
  524. }
  525. //草稿详情
  526. function Detail() {
  527. $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetDraftInfo', {
  528. workorderid: wid,
  529. type: 2,
  530. token: $.cookie("token")
  531. }, function (result) {
  532. if (result.state.toLowerCase() == "success") {
  533. if (result.data.length > 0) {
  534. var IsProResultValue = result.data[0].F_IsProResult + "";
  535. isProResultJudge(IsProResultValue);
  536. $("#dealman").val(result.data[0].F_DealUser); //承办人
  537. $("#duties").val(result.data[0].F_Duties); //职务
  538. // $("#result").text(result.data[0].F_Result); //处理结果
  539. $("#situation").val(result.data[0].F_Situation); //处理情况
  540. $('#isProResultRadio input[name="isDisposeResult"][value="' + result.data[0].F_IsProResult +'"]').prop("checked", true);//是否有处理结果
  541. $("#prosituation").val(result.data[0].F_ProSituation); //处理方案/进程
  542. $("#dealcontact").val(result.data[0].F_DealUserContact); //联系方式
  543. $("#connecttime").val(result.data[0].F_ConnectTime); //沟通时间
  544. $("#connectmode").val(result.data[0].F_ConnectMode); //沟通方式
  545. // $("#replycontent").val(result.data[0].F_ReplyContent); //答复内容
  546. $('#isStaisfiedRadio input[name="isstaisfied"][value="' + result.data[0].F_IsSatisfied +'"]').prop("checked", true); //是否满意
  547. a = result.data[0].F_Id;
  548. };
  549. }
  550. })
  551. }
  552. //清除
  553. function Clean() {
  554. $("#startTime").val(''),
  555. $('#assignedopinion').val('')
  556. }
  557. // //上传文件
  558. // function upload() {
  559. // var Files = document.getElementById("upFile").files;
  560. // if (Files.length > 0) {
  561. // var formData = new FormData();
  562. // for (var i = 0; i < Files.length; i++) {
  563. // formData.append('file' + i, Files[i]);
  564. // }
  565. // formData.append("token", $.cookie("token"));
  566. // var typeName=Files[0].name.split('.')[1];
  567. // if (typeName=="png"||typeName=='jpg'||typeName=='mp4'||typeName=='mp3'||typeName=='pdf'||typeName=='doc'||typeName=='docx'||typeName=='xls'||typeName=='xlsx') {
  568. // $.ajax({
  569. // url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
  570. // type: "POST",
  571. // data: formData,
  572. // /**
  573. // *必须false才会自动加上正确的Content-Type
  574. // */
  575. // contentType: false,
  576. // /**
  577. // * 必须false才会避开jQuery对 formdata 的默认处理
  578. // * XMLHttpRequest会对 formdata 进行正确的处理
  579. // */
  580. // processData: false,
  581. // success: function (result) {
  582. // document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
  583. // $("#upFile").change(function () {
  584. // upload();
  585. // });
  586. // var r = $.parseJSON(result);
  587. // if (r.state.toLowerCase() == "success") {
  588. // //$(".fjnr").text(r.data[0].F_FileName);
  589. // var a = r.data;
  590. // $(a).each(function (i, n) {
  591. // var strs = '<span class="files" fiel-num="' + n.F_FileId + '">' + n.F_FileName.substring(19) + '<i class="fa fa-remove del_file"></i></span>'
  592. // $(strs).appendTo($('.fileBox')).find('.del_file').click(function (event) {
  593. // event.stopPropagation();
  594. // $(this).parent().remove();
  595. // file_num()
  596. // })
  597. // })
  598. // file_num();
  599. // }
  600. // }
  601. // });
  602. // }else{
  603. // layer.msg("格式不正确");
  604. // }
  605. // } else {
  606. // layer.confirm('请上传文件!', {
  607. // btn: ['确定']
  608. // });
  609. // }
  610. // }
  611. // //上传文件隐藏域值
  612. // function file_num() {
  613. // var str = '';
  614. // var Str;
  615. // $('.fileBox .files').each(function (j, m) {
  616. // var aa = $(m).attr("fiel-num")
  617. // console.log(aa);
  618. // str += aa + ",";
  619. // Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
  620. // })
  621. // $("#file").val(Str);
  622. // }
  623. // 处理结果判断
  624. function isProResultJudge (isProResultdata) {
  625. if(isProResultdata === '1') {
  626. if (isProtect === "1" ) {
  627. $(".prosituation-wrapper").hide(); //处理方案/进程
  628. $(".annotation-wrapper").hide(); //注释
  629. $(".connecttime-wrapper").hide(); //沟通时间
  630. $(".connectmode-wrapper").hide(); //沟通方式
  631. // $(".replycontent-wrapper").hide(); //答复内容
  632. $(".isstaisfied-wrapper").hide(); //是否满意
  633. } else if (isProtect === "0") {
  634. $(".prosituation-wrapper").hide(); //处理方案/进程
  635. $(".annotation-wrapper").hide(); //注释
  636. $(".connecttime-wrapper").show(); //沟通时间
  637. $(".connectmode-wrapper").show(); //沟通方式
  638. // $(".replycontent-wrapper").show(); //答复内容
  639. $(".isstaisfied-wrapper").show(); //是否满意
  640. }
  641. } else if (isProResultdata === '2') {
  642. $(".prosituation-wrapper").show(); //处理方案/进程
  643. $(".annotation-wrapper").show(); //注释
  644. $(".connecttime-wrapper").hide(); //沟通时间
  645. $(".connectmode-wrapper").hide(); //沟通方式
  646. // $(".replycontent-wrapper").hide(); //答复内容
  647. $(".isstaisfied-wrapper").hide(); //是否满意
  648. }
  649. }
  650. //简易版工单详情
  651. function simpleDetail() {
  652. $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetWorkorderSimp', {
  653. workorderid: wid,
  654. token: $.cookie("token")
  655. }, function (result) {
  656. if (result.state.toLowerCase() == "success") {
  657. var data = result.data[0];
  658. simpleDetailStrStart = data.F_CreateTime + " " + data.deptname + "部门接到" + data.SourceName + "来源工单(编号:" + data.F_WorkOrderId + ")反映" + data.F_ComTitle + "问题,"
  659. }
  660. })
  661. }
  662. </script>
  663. </body>
  664. </html>