| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359 |
- <!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>
- <style>
- .text-center{
- text-align: center !important;
- }
- .textarea_audio{
- width: 96% !important;
- }
- </style>
- <body>
- <div class="Common">
- <div style="width: 100%;padding: 10px;">
- <table class="Table" border="" cellspacing="0" cellpadding="0">
- <theard>
- <tr>
- <td class="text-center" style="min-width:80px;">承办人</td>
- <td class="text-center" style="min-width:80px;">联系方式</td>
- <td class="text-center" style="min-width:80px;">办理结果</td>
- <td class="text-center" style="min-width:80px;">办理时间</td>
- <td class="text-center" style="min-width:80px;">是/否向当事人反馈</td>
- <td class="text-center" style="min-width:80px;">是否满意</td>
- <td class="text-center" style="min-width:80px;">附件</td>
- <td class="text-center" style="min-width:80px;">追加回复附件</td>
- <td class="text-center" style="min-width:100px;">审核状态</td>
- <td class="text-center" style="min-width:500px;">审核原因</td>
- </tr>
- </theard>
- <tbody class="BLQK">
- </tbody>
- </table>
- <div class="Common">
- <div class="btn_box">
- <button class="btns BC">提交</button>
- </div>
- </div>
-
- </div>
- </div>
- <script src="../js/adjustHeight.js"></script>
- <script src="../css/laydate/laydate.js"></script>
- <script>
- var wid = helper.request.queryString("wid");
-
- var idData = []
- $(document).ready(function() {
- getDetail(16);
- });
- $(".BC").click(function(){
- var isaudit
- var params = getParams()
- if (params.nexttype ===0|| params.nexttype ===2 ) {
- params.isaudit = 1
- if (params.nexttype === 0) {
- layer.confirm('是否发送短信?', {
- btn: ['是', '否'] // 按钮
- }, function() {
- params.issms = 1
- handleAuditAppend(params)
- }, function() {
- params.issms =0
- handleAuditAppend(params)
- });
- }else{
- handleAuditAppend(params)
- }
- }else {
- params.isaudit = 0
- handleAuditAppend(params)
- }
- })
- function handleAuditAppend (params) {
- params.workorderid = wid
- params.token = $.cookie("token")
- console.log(params)
- $.post(huayi.config.callcenter_url + 'WorkOrder/AuditAppend', params, function(result) {
- result = JSON.parse(result);
- if(result.state.toLowerCase() == "success") {
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- parent.layer.close(index); //再执行关闭
- parent.$("#orderlist").bootstrapTable("refresh");
- parent.layer.msg("操作成功");
- }
- })
- }
- // 获取详情
- function getDetail(type) {
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + "WorkOrder/GetWorkOrderNew",
- dataType: 'json',
- async: false,
- data: {
- workorderid: wid,
- type: type,
- token: $.cookie("token")
- },
- success: function(result) {
- if(result.state.toLowerCase() == "success") {
- var htmls = ''
- var banliHtml;
- var creatTime;
- var number = 0
- $(".BLQK").empty();
- $(result.data.bldata).each(function(i, n) {
- idData.push(n.F_Id)
- //是/否向当事人反馈
- var isProResultValue = n.F_IsProResult + "";
- switch(isProResultValue) {
- case "0":
- isProResultValue = "否";
- break;
- case "1":
- isProResultValue = "是";
- break;
- case "2":
- isProResultValue = "已办未果";
- break;
- }
- //是否满意
- var isSatisfiedValue = n.F_IsSatisfied + "";
- switch(isSatisfiedValue) {
- case "0":
- isSatisfiedValue = "未评价";
- break;
- case "1":
- isSatisfiedValue = "满意";
- break;
- case "2":
- isSatisfiedValue = "基本满意";
- break;
- case "3":
- isSatisfiedValue = "不满意";
- break;
- }
- if(n.F_Type === 4){
- htmls += '<tr>' +
- '<td class="text-center">' + n.F_DealUser +
- '</td>' +
- '<td class="text-center">' + n.F_DealUserContact +
- '</td>' +
-
- '<td class="text-center">' + n.F_Result +
- '</td>' +
- '<td class="text-center">' + n.F_CreateTime +
- '</td>' +
- '<td class="text-center">' + isProResultValue +
- '</td>' +
- '<td class="text-center">' + isSatisfiedValue +
- '</td>'
-
- //办理情况附件
- htmls += '<td class="gallerys">';
- var FileHtml;
- $(n.File).each(function(j, m) {
- if(m.F_FileType == ".jpg" || m.F_FileType ===".png") {
- FileHtml =
- '<img class="gallery-pic" style="width:60px; height:60px" border="0" ondblclick="$.openPhotoGallery(this)" src="' +
- m.F_FileUrl + '" alt="' + m
- .F_FileName +
- '" fileId="' + m.F_FileId + '">'
- } else {
- FileHtml =
- '<div><a style="margin-right:5px;" target="view_window" href="' +
- m.F_FileUrl + '" download="' + m
- .F_FileName + '">' + m
- .F_FileName.substring(
- 19) + '</a></div>'
- }
- htmls += FileHtml;
- })
- htmls += '</td>' +
- '<td class="gallerys">'
- var FileHtmls;
-
-
-
- $(n.Files).each(function(j, m) {
- if(m.F_FileType == ".jpg" || m
- .F_FileType ==
- ".png") {
- FileHtmls =
- '<img style="width:60px; height:60px" border="0" ondblclick="$.openPhotoGallery(this)" src="' +
- m.F_FileUrl + '" alt="' + m
- .F_FileName +
- '" fileId="' + m.F_FileId +
- '">';
- } else {
- FileHtmls =
- '<div><a style="margin-right:5px;" target="view_window" href="' +
- m.F_FileUrl + '" download="' + m
- .F_FileName + '">' + m
- .F_FileName.substring(
- 19) + '</a></div>'
- }
- htmls += FileHtmls
- })
- htmls += '</td>';
- htmls +='<td class="text-center"><select class="select_" id="audio_'+n.F_Id+'"><option value="1">同意</option><option value="2">同意并公开</option><option value="3">拒绝</option></select></td>'
- htmls +='<td class="text-center"><textarea class="select_ textarea_audio" id="reason'+n.F_Id+'"></textarea></td></tr>'
- }else if (n.F_Type === 1) {
- number++
- if (number === 1) {
- creatTime = n.F_CreateTime
- banliHtml = getHtml(n,isProResultValue,isSatisfiedValue)
- } else {
- if (new Date(n.F_CreateTime)>new Date(creatTime) ) {
- creatTime = n.F_CreateTime
- if (n.F_IsAudit) {
- banliHtml = ''
- } else{
- banliHtml = getHtml(n,isProResultValue,isSatisfiedValue)
- }
-
- }
- }
- }
-
- })
- if (banliHtml) {
- $(banliHtml).appendTo($(".BLQK"));
- }
- $(htmls).appendTo($(".BLQK"));
- }
- }
- })
- }
- function getHtml(n,isProResultValue,isSatisfiedValue){
- var returnHtml = ''
- returnHtml += '<tr>' +
- '<td class="text-center">' + n.F_DealUser +
- '</td>' +
- '<td class="text-center">' + n.F_DealUserContact +
- '</td>' +
-
- '<td class="text-center">' + n.F_Result +
- '</td>' +
- '<td class="text-center">' + n.F_CreateTime +
- '</td>' +
- '<td class="text-center">' + isProResultValue +
- '</td>' +
- '<td class="text-center">' + isSatisfiedValue +
- '</td>'
- //办理情况附件
- returnHtml += '<td class="gallerys">';
- var FileHtml;
- $(n.File).each(function(j, m) {
- if(m.F_FileType == ".jpg" || m.F_FileType ===".png") {
- FileHtml =
- '<img class="gallery-pic" style="width:60px; height:60px" border="0" ondblclick="$.openPhotoGallery(this)" src="' +
- m.F_FileUrl + '" alt="' + m
- .F_FileName +
- '" fileId="' + m.F_FileId + '">'
- } else {
- FileHtml =
- '<div><a style="margin-right:5px;" target="view_window" href="' +
- m.F_FileUrl + '" download="' + m
- .F_FileName + '">' + m
- .F_FileName.substring(
- 19) + '</a></div>'
- }
- returnHtml += FileHtml;
- })
- returnHtml += '</td><td class="gallerys">';
- var FileHtmls;
- var creatTime;
- var number = 0
- $(n.Files).each(function(j, m) {
- if(m.F_FileType == ".jpg" || m
- .F_FileType ==
- ".png") {
- FileHtmls =
- '<img style="width:60px; height:60px" border="0" ondblclick="$.openPhotoGallery(this)" src="' +
- m.F_FileUrl + '" alt="' + m
- .F_FileName +
- '" fileId="' + m.F_FileId +
- '">';
- } else {
- FileHtmls =
- '<div><a style="margin-right:5px;" target="view_window" href="' +
- m.F_FileUrl + '" download="' + m
- .F_FileName + '">' + m
- .F_FileName.substring(
- 19) + '</a></div>'
- }
- returnHtml += FileHtmls
- })
- returnHtml += '</td>';
- returnHtml += '<td class="text-center"><select class="select_" id="audio_'+n.F_Id+'"><option value="4">审核通过</option><option value="5">审核不通过</option><option value="6">审核通过并转办</option></select></td>'
- returnHtml += '<td class="text-center"><textarea class="select_ textarea_audio" id="reason'+n.F_Id+'"></textarea></td></tr>'
- return returnHtml
- }
- function getParams(){
- var paramsAppend = []
- var dataParams = {}
- idData.forEach((ele)=>{
- var obj = {}
- if ($("#audio_"+ele).val() =='1') { // 同意
- obj.backid = ele
- obj.reason =$("#reason"+ele).val()
- obj.state = 1
- obj.isopen = 0
- paramsAppend.push(obj)
- } else if ($("#audio_"+ele).val() =='2' ) { // 同意并公开
- obj.backid = ele
- obj.reason =$("#reason"+ele).val()
- obj.state = 1
- obj.isopen = 1
- paramsAppend.push(obj)
- } else if ($("#audio_"+ele).val() =='3' ){ // 拒绝
- obj.backid = ele
- obj.reason =$("#reason"+ele).val()
- obj.state =2
- obj.isopen = 0
- paramsAppend.push(obj)
- } else if ($("#audio_"+ele).val() =='4') { // 审核通过
- dataParams.nexttype = 0
- dataParams.cbreason = $("#reason"+ele).val()
- dataParams.backid = ele
- } else if ($("#audio_"+ele).val() =='5') { // 审核不通过
- dataParams.nexttype = 1
- dataParams.cbreason = $("#reason"+ele).val()
- dataParams.backid = ele
- } else if ($("#audio_"+ele).val() =='6') { // 审核通过并转办
- dataParams.nexttype = 2
- dataParams.backid = ele
- dataParams.cbreason = $("#reason"+ele).val()
- }
-
-
- })
- dataParams.Append = paramsAppend
- return dataParams
- }
- // 追加回复 69
- function audioAddReply(str){
- layer.open({
- type: 2,
- content: "../CommonHtml/auditHandleAddReply.html?wid=" + str , //iframe的url,no代表不显示滚动条
- title: "办理工单",
- area: ["100%", "80%"], //宽高
- });
- }
- </script>
- </body>
- </html>
|