/** * springHandle.js * 事件处理界面 * emial: yaoqiang@chinausky.com * create: 2018-12-08 */ Ext.Loader.setConfig({ enabled: true }); Ext.Loader.setPath('Ext.ux', '../../res/extjs/examples/ux'); Ext.require([ 'Ext.grid.*', 'Ext.data.*', 'Ext.ux.RowExpander', 'Ext.selection.CheckboxModel' ]); var company_code; var FilterWin; var myStore=null; var myStore1=null; var V_LOGINNAME='',V_PASSWORD=''; var menuidx = ''; var mouseon; var editMaintenancePresentation; var examineStatus; var mouseoff; var menu_click; var modifywin; var examin_win; var sm = Ext.create('Ext.selection.CheckboxModel'); var sm1 = Ext.create('Ext.selection.CheckboxModel'); Ext.define('CheckRecord2',{ extend: 'Ext.data.Model', fields: [ {name:'id', type:'string'}, {name:'xh', type:'int'}, {name:'wx_name', type:'string'}, {name:'spot_address', type:'string'}, {name:'sj_type_name', type:'string'}, {name:'y_complete_time', type:'string'}, {name:'cl_type_name', type:'string'}, {name:'cl_time', type:'string'}, {name:'dqzt', type:'string'}, {name:'person_liable_name', type:'string'}, {name:'phone', type:'string'}, {name:'zrs', type:'int'}, {name:'jrsj', type:'int'}, {name:'cssj', type:'int'}, {name:'jrjj', type:'int'}, {name:'name', type:'string'}, {name:'zrrid', type:'int'}, ] }); Ext.define('CheckRecord3',{ extend: 'Ext.data.Model', fields: [ {name:'jlid', type:'string'}, {name:'dwid', type:'string'}, {name:'xh', type:'int'}, {name:'spot_name', type:'string'}, {name:'spot_address', type:'string'}, {name:'wcqk', type:'string'}, {name:'wc_time', type:'string'}, {name:'wbr', type:'string'}, // {name:'completion_status', type:'string'}, ] }); function exportbtn_click(){ baseUrl = document.getElementById('basePath').value; V_LOGINNAME = $("#V_LOGINNAME").val(); V_PASSWORD = $("#V_PASSWORD").val(); wx_name = document.getElementById('wx_name').value; person_liable = document.getElementById('person_liable').value; sj_type = document.getElementById('sj_type').value; cl_type = document.getElementById('cl_type').value; cl_time_k = document.getElementById('cl_time_k').value; cl_time_j = document.getElementById('cl_time_j').value; // alert(plan_name); var fields = ''; var array = ['xh','wx_name','sj_type_name','y_complete_time','cl_time','dqzt','person_liable_name','phone','clzt']; var name = ['序号','报修任务名称','报修类型','应完成时间','实际完成时间','当前状态','相关责任人','联系电话','处理状态']; for(var i=0;i<9;i++){ if(i>0) fields += ','; fields += '{id:"'+array[i]+'",title:"'+name[i]+'",shown:"'+true+'"}'; } var query = new Object(); query.V_LOGINNAME = V_LOGINNAME; query.V_PASSWORD = V_PASSWORD; query.wx_name = wx_name; query.person_liable = person_liable; query.cl_time_k = cl_time_k; query.cl_time_j = cl_time_j; query.sj_type = sj_type; query.cl_type = cl_type; query.EXPORT_FILE = '巡检记录列表'; query.fields = '['+fields+']'; $.ajax({ type:'POST', url: baseUrl+"iot/excel/view/EventProcessingExcel", data: { queryJson : Ext.JSON.encode(query) }, success: function(result){ var json = eval('(' + result + ')'); if(json.action=='dormExport'){ ConfirmStore = json.RESULT; var elemIF = document.createElement("iframe"); elemIF.src = baseUrl+json.filename; elemIF.style.display = "none"; document.body.appendChild(elemIF); } } }); } Ext.onReady(function(){ var baseUrl = document.getElementById('basePath').value; var theme = document.getElementById('theme').value; var chkIcon = '' var unchkIcon = '' // company_code = document.getElementById('company_code').value; $("#V_LOGINNAME").val(sessionStorage.getItem('V_LOGINNAME')); $("#V_PASSWORD").val(sessionStorage.getItem('V_PASSWORD')); V_LOGINNAME = $("#V_LOGINNAME").val(); V_PASSWORD = $("#V_PASSWORD").val(); var countPerPage = 15; var maxHeight = 10000; var chkBoolean = function(flag) { if(flag) return chkIcon; return unchkIcon; } var queryJson = new Object(); queryJson.V_LOGINNAME = V_LOGINNAME; queryJson.V_PASSWORD = V_PASSWORD; // queryJson.COMMSTATUS = 'NO'; if((company_code!=null)&&(company_code!='null')&&(company_code.length>0)) queryJson.company_code = company_code; var states1 = Ext.create('Ext.data.Store', { fields: ['status', 'name'], data : [ // {"status":-1, "name":"全选"}, {"status":"待开通", "name":"待开通"}, {"status":"已开通", "name":"已开通"}, {"status":"已锁定", "name":"已锁定"}, {"status":"注销", "name":"注销"}, ] }); myStore = Ext.create('Ext.data.Store', { model: 'CheckRecord2', pageSize: countPerPage, proxy: { type: 'ajax', actionMethods: { create : 'POST', read : 'POST', // by default GET update : 'POST', destroy: 'POST' }, url: baseUrl+'iot/xjeventprocessing/getList', reader: { type: 'json', root: 'RESULT', totalProperty: 'totalCount' }, extraParams:{ queryJson:Ext.JSON.encode(queryJson) } }, // sorters:[{ // property:'data_time', // direction:'DESC' // }], remoteSort: true }); // myStore1 = Ext.create('Ext.data.Store', { // model: 'CheckRecord3', // pageSize: 10, // proxy: { // type: 'ajax', // url: baseUrl+'iot/spotoperationrecord/getJlPointsList1', // reader: { // type: 'json', // root: 'RESULT', // totalProperty: 'totalCount' // }, // extraParams:{ // queryJson:Ext.JSON.encode(queryJson) // } // }, // remoteSort: true // }); var data =Ext.Date.format(new Date(), 'm/d/Y'); var show_page = function(){ var wx_name = document.getElementById('springHandle_title2_input').value; var person_liable = document.getElementById('springHandle_title3_input1').value; var cl_time_j = document.getElementById('springHandle_title3_input2').value; var cl_time_k = document.getElementById('springHandle_title3_input3').value; var cl_type = document.getElementById('springHandle_title3_input4').value; var sj_type = document.getElementById('springHandle_title3_input5').value; var query = new Object(); if(wx_name.length>0){ query.wx_name = wx_name; $("#wx_name").val(wx_name); } if(person_liable.length>0){ query.person_liable = person_liable; $("#person_liable").val(person_liable); } if(cl_time_j.length>0){ query.cl_time_j = cl_time_j; $("#cl_time_j").val(cl_time_j); } if(cl_time_k.length>0){ query.cl_time_k = cl_time_k; $("#cl_time_k").val(cl_time_k); } if(cl_type.length>0){ query.cl_type = cl_type; $("#cl_type").val(cl_type); } if(sj_type.length>0){ query.sj_type = sj_type; $("#sj_type").val(sj_type); } query.V_LOGINNAME = V_LOGINNAME; query.V_PASSWORD = V_PASSWORD; var jsonstr = Ext.JSON.encode(query); myStore.getProxy().extraParams = { queryJson : jsonstr }; Ext.getCmp('SpringHandleListPageToolbar').moveFirst(); } var reset1 = function(){ document.getElementById('springHandle_title2_input').value = ''; document.getElementById('springHandle_title3_input1').value = ''; document.getElementById('springHandle_title3_input2').value = ''; document.getElementById('springHandle_title3_input3').value = ''; document.getElementById('springHandle_title3_input4').value = ''; document.getElementById('springHandle_title3_input5').value = ''; $("#wx_name").val(''); $("#person_liable").val(''); $("#cl_time_j").val(''); $("#cl_time_k").val(''); $("#cl_type").val(''); $("#sj_type").val(''); show_page(); } var highcharts1 = function () { var baifenbiywc = parseFloat(baifenbiywcbxrw); var baifenbicswc = parseFloat(baifenbicswcbxrw); var baifenbishwtgwc = parseFloat(baifenbishwtgwcbxrw); var baifenbiwcl = parseFloat(baifenbiwclbxrw); var baifenbiwsh = parseFloat(baifenbiwshbxrw); $('#container4').highcharts({ chart: { plotBackgroundColor: null, plotBorderWidth: null, plotShadow: false, type: 'pie' }, credits: { enabled: false }, exporting: { enabled:false }, title: { text: '报修任务总数:'+xjbxcsnum }, tooltip: { formatter: function() { return ''+ this.series.name +': '+ Highcharts.numberFormat(this.percentage, 1) +'%' } }, plotOptions: { pie: { allowPointSelect: true, cursor: 'pointer', dataLabels: { enabled: true, format: '{point.name}: {point.percentage:.1f} %', style: { color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black' } }, showInLegend: true } }, series: [{ name: '百分比', colorByPoint: true, data: [{ name: '已完成', y: baifenbiywc, sliced: true, selected: true },{ name: '超时完成', y: baifenbicswc },{ name: '审核未通过', y: baifenbishwtgwc },{ name: '未处理', y: baifenbiwcl },{ name: '未审核', y: baifenbiwsh }] }] }); } var highcharts2 = function () { var huidan15 = parseFloat(baifenbihuidan15); $('#container5').highcharts({ chart: { plotBackgroundColor: null, plotBorderWidth: null, plotShadow: false, type: 'pie' }, credits: { enabled: false }, exporting: { enabled:false }, title: { text: '巡检维保报修总数:'+xjbxcsnum }, tooltip: { pointFormat: '{series.name}: {point.percentage:.1f}%' }, plotOptions: { pie: { allowPointSelect: true, cursor: 'pointer', dataLabels: { enabled: true, format: '{point.name}: {point.percentage:.1f} %', style: { color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black' } }, showInLegend: true } }, series: [{ name: '百分比', colorByPoint: true, data: [{ name: '巡检报修', y: huidan15, sliced: true, selected: true },{ name: '维保报修', y: 100-huidan15 }] }] }); } var highcharts3 = function () { var ysmbaifenbi = parseFloat(xjysmbaifenbi); var wsmbaifenbi = parseFloat(xjwsmbaifenbi); $('#container6').highcharts({ chart: { plotBackgroundColor: null, plotBorderWidth: null, plotShadow: false, type: 'pie' }, credits: { enabled: false }, exporting: { enabled:false }, title: { text: '应扫码次数'+xjysmcsnum+'个' }, tooltip: { pointFormat: '{series.name}: {point.percentage:.1f}%' }, plotOptions: { pie: { allowPointSelect: true, cursor: 'pointer', dataLabels: { enabled: true, format: '{point.name}: {point.percentage:.1f} %', style: { color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black' } }, showInLegend: true } }, series: [{ name: '百分比', colorByPoint: true, data: [{ name: '已扫码次数', y: ysmbaifenbi, sliced: true, selected: true },{ name: '未扫码次数', y: wsmbaifenbi }] }] }); } var draw_confirm = function(start_data,end_data,project_date){ var start_data = start_data; var end_data = end_data; var project_date = project_date; var woker_talk = document.getElementById('woker_talkbx'); var div1 = document.createElement('div'); div1.style.width=580; div1.style.height=600; woker_talk.appendChild(div1); var title = document.createElement('h2'); title.style.fontSize='14px'; title.style.textAlign='center'; title.style.fontWeight='bold'; title.innerHTML='数据统计分析'; div1.appendChild(title); var title2 = document.createElement('h3'); title2.style.textAlign='left'; title2.style.fontSize='14px'; title2.style.fontWeight='bold'; title2.innerHTML='1 数据分析'; div1.appendChild(title2); var title88 = document.createElement('h4'); title88.style.textAlign='left'; title88.style.fontSize='14px'; title88.style.fontWeight='bold'; title88.innerHTML='1.1 资源及工作内容'; div1.appendChild(title88); var title3 = document.createElement('div'); title3.style.textAlign='left'; title3.style.fontSize='14px'; title3.style.marginTop='10px'; title3.style.marginBottom='10px'; title3.style.textIndent='2em'; title3.style.fontWeight='bold'; title3.innerHTML='人员:'+xjrysl+'个'; div1.appendChild(title3); var title34 = document.createElement('div'); title34.style.textAlign='left'; title34.style.fontSize='14px'; title34.style.marginBottom='10px'; title34.style.textIndent='2em'; title34.style.fontWeight='bold'; title34.innerHTML='报修总次数:'+xjbxcsnum+'个'; div1.appendChild(title34); // var title32 = document.createElement('div'); // title32.style.textAlign='left'; // title32.style.fontSize='14px'; // title32.style.marginBottom='10px'; // title32.style.textIndent='2em'; // title32.style.fontWeight='bold'; // title32.innerHTML='班组:'+xjbz+'个'; // div1.appendChild(title32); // var title4 = document.createElement('h4'); // title4.style.textAlign='left'; // title4.style.fontSize='14px'; // title4.style.fontWeight='bold'; // title4.innerHTML='1.2 工作内容'; // div1.appendChild(title4); var title9 = document.createElement('div'); title9.style.textAlign='left'; title9.style.fontSize='14px'; title9.style.marginTop='10px'; title9.style.marginBottom='10px'; title9.style.textIndent='2em'; title9.style.fontWeight='bold'; title9.innerHTML='已完成的报修任务:'+xjrwnum+'个'; div1.appendChild(title9); var title91 = document.createElement('div'); title91.style.textAlign='left'; title91.style.fontSize='14px'; title91.style.marginBottom='10px'; title91.style.textIndent='2em'; title91.style.fontWeight='bold'; title91.innerHTML='超时完成的报修任务:'+xjdwnum+'个'; div1.appendChild(title91); var title32 = document.createElement('div'); title32.style.textAlign='left'; title32.style.fontSize='14px'; title32.style.marginBottom='10px'; title32.style.textIndent='2em'; title32.style.fontWeight='bold'; title32.innerHTML='审核未通过的报修任务:'+xjysmcsnum+'个'; div1.appendChild(title32); var title33 = document.createElement('div'); title33.style.textAlign='left'; title33.style.fontSize='14px'; title33.style.marginBottom='10px'; title33.style.textIndent='2em'; title33.style.fontWeight='bold'; title33.innerHTML='未审核的报修任务:'+wshbxnum+'个'; div1.appendChild(title33); var title34 = document.createElement('div'); title34.style.textAlign='left'; title34.style.fontSize='14px'; title34.style.marginBottom='10px'; title34.style.textIndent='2em'; title34.style.fontWeight='bold'; title34.innerHTML='未处理的报修任务:'+zrrnum+'个'; div1.appendChild(title34); var title10 = document.createElement('h4'); title10.style.textAlign='left'; title10.style.fontSize='14px'; title10.style.fontWeight='bold'; title10.innerHTML='1.2任务进度情况'; div1.appendChild(title10); var title21_highcharts = document.createElement('div'); title21_highcharts.style.marginTop='20px'; title21_highcharts.style.marginBottom='46px'; title21_highcharts.setAttribute('id','container4'); title21_highcharts.style.textAlign='center'; div1.appendChild(title21_highcharts); // var title11 = document.createElement('h4'); // title11.style.textAlign='left'; // title11.style.fontSize='14px'; // title11.style.fontWeight='bold'; // title11.innerHTML='1.3出勤率分析'; // div1.appendChild(title11); // var title11_highcharts = document.createElement('div'); // title11_highcharts.style.marginTop='20px'; // title11_highcharts.style.marginBottom='46px'; // title11_highcharts.setAttribute('id','container6'); // title11_highcharts.style.textAlign='center'; // div1.appendChild(title11_highcharts); var div2 = document.createElement('div'); div2.style.width=580; div2.style.height=600; woker_talk.appendChild(div2); var patrolh41 = document.createElement('h4'); patrolh41.style.textAlign='left'; patrolh41.style.fontSize='14px'; patrolh41.style.fontWeight='bold'; patrolh41.innerHTML='1.4巡检维保报修占比'; div2.appendChild(patrolh41); var patrolh41_highcharts = document.createElement('div'); patrolh41_highcharts.style.marginTop='20px'; patrolh41_highcharts.style.marginBottom='46px'; patrolh41_highcharts.setAttribute('id','container5'); patrolh41_highcharts.style.textAlign='center'; div2.appendChild(patrolh41_highcharts); var sta2 = document.createElement('table'); sta2.style.marginTop='10px'; sta2.width='100%'; sta2.style.marginBottom='20px'; sta2.style.borderRight ='1px solid #BEBEBE'; sta2.style.borderBottom ='1px solid #BEBEBE'; div2.appendChild(sta2); var tr14 = document.createElement('tr'); sta2.appendChild(tr14); var th5 = document.createElement('th'); th5.width='20%'; th5.style.textAlign='center'; th5.innerHTML='报修任务名称'; th5.style.fontSize='14px'; th5.style.borderLeft ='1px solid #BEBEBE'; th5.style.borderTop ='1px solid #BEBEBE'; tr14.appendChild(th5); var th6 = document.createElement('th'); th6.width='20%'; th6.style.textAlign='center'; th6.innerHTML='任务来源'; th6.style.fontSize='14px'; th6.style.borderLeft ='1px solid #BEBEBE'; th6.style.borderTop ='1px solid #BEBEBE'; tr14.appendChild(th6); var th7 = document.createElement('th'); th7.width='25%'; th7.style.textAlign='center'; th7.innerHTML='上报人'; th7.style.fontSize='14px'; th7.style.borderLeft ='1px solid #BEBEBE'; th7.style.borderTop ='1px solid #BEBEBE'; tr14.appendChild(th7); var th8 = document.createElement('th'); th8.width='35%'; th8.style.textAlign='center'; th8.innerHTML='任务状态'; th8.style.fontSize='14px'; th8.style.borderLeft ='1px solid #BEBEBE'; th8.style.borderTop ='1px solid #BEBEBE'; tr14.appendChild(th8); if(ConfirmStore15.length>0){ if(ConfirmStore15.length==1){ var tr13 = document.createElement('tr'); sta2.appendChild(tr13); var td_details_num = document.createElement('td'); td_details_num.width='20%'; td_details_num.style.textAlign='center'; td_details_num.style.borderLeft ='1px solid #BEBEBE'; td_details_num.style.borderTop ='1px solid #BEBEBE'; td_details_num.innerHTML=ConfirmStore15[0].wx_name; td_details_num.style.fontSize='14px'; tr13.appendChild(td_details_num); var td_details_name= document.createElement('td'); td_details_name.width='20%'; td_details_name.style.textAlign='center'; td_details_name.innerHTML= ConfirmStore15[0].wx_laiyuan; td_details_name.style.borderLeft ='1px solid #BEBEBE'; td_details_name.style.borderTop ='1px solid #BEBEBE'; td_details_name.style.fontSize='14px'; tr13.appendChild(td_details_name); var td_details_specifications = document.createElement('td'); td_details_specifications.width='25%'; td_details_specifications.style.textAlign='center'; td_details_specifications.innerHTML=ConfirmStore15[0].bxrzr_name; td_details_specifications.style.fontSize='14px'; td_details_specifications.style.borderLeft ='1px solid #BEBEBE'; td_details_specifications.style.borderTop ='1px solid #BEBEBE'; tr13.appendChild(td_details_specifications); var td_details_device_num = document.createElement('td'); td_details_device_num.width='35%'; td_details_device_num.style.textAlign='center'; td_details_device_num.innerHTML=ConfirmStore15[0].renwu_zt; td_details_device_num.style.fontSize='14px'; td_details_device_num.style.borderLeft ='1px solid #BEBEBE'; td_details_device_num.style.borderTop ='1px solid #BEBEBE'; tr13.appendChild(td_details_device_num); }else{ for(var i=0;i0){ // if(ConfirmStore16.length==1){ // var tr16 = document.createElement('tr'); // sta3.appendChild(tr16); // var td_details_numlast = document.createElement('td'); // td_details_numlast.width='20%'; // td_details_numlast.style.textAlign='center'; // td_details_numlast.style.borderLeft ='1px solid #BEBEBE'; // td_details_numlast.style.borderTop ='1px solid #BEBEBE'; // td_details_numlast.innerHTML=ConfirmStore16[0].plan_name; // td_details_numlast.style.fontSize='14px'; // tr16.appendChild(td_details_numlast); // var td_details_num = document.createElement('td'); // td_details_num.width='20%'; // td_details_num.style.textAlign='center'; // td_details_num.style.borderLeft ='1px solid #BEBEBE'; // td_details_num.style.borderTop ='1px solid #BEBEBE'; // td_details_num.innerHTML=ConfirmStore16[0].dianwei_name; // td_details_num.style.fontSize='14px'; // tr16.appendChild(td_details_num); // var td_details_name= document.createElement('td'); // td_details_name.width='20%'; // td_details_name.style.textAlign='center'; // td_details_name.innerHTML= ConfirmStore16[0].banzu_name; // td_details_name.style.borderLeft ='1px solid #BEBEBE'; // td_details_name.style.borderTop ='1px solid #BEBEBE'; // td_details_name.style.fontSize='14px'; // tr16.appendChild(td_details_name); // var td_person= document.createElement('td'); // td_person.width='10%'; // td_person.style.textAlign='center'; // td_person.innerHTML= ConfirmStore16[0].renzeren_name; // td_person.style.borderLeft ='1px solid #BEBEBE'; // td_person.style.borderTop ='1px solid #BEBEBE'; // td_person.style.fontSize='14px'; // tr16.appendChild(td_person); // var td_details_specifications = document.createElement('td'); // td_details_specifications.width='10%'; // td_details_specifications.style.textAlign='center'; // td_details_specifications.innerHTML=ConfirmStore16[0].ywc_num1; // td_details_specifications.style.fontSize='14px'; // td_details_specifications.style.borderLeft ='1px solid #BEBEBE'; // td_details_specifications.style.borderTop ='1px solid #BEBEBE'; // tr16.appendChild(td_details_specifications); // var td_details_device_num = document.createElement('td'); // td_details_device_num.width='10%'; // td_details_device_num.style.textAlign='center'; // td_details_device_num.innerHTML=ConfirmStore16[0].ywc_num2; // td_details_device_num.style.fontSize='14px'; // td_details_device_num.style.borderLeft ='1px solid #BEBEBE'; // td_details_device_num.style.borderTop ='1px solid #BEBEBE'; // tr16.appendChild(td_details_device_num); // var td_wanchengdu= document.createElement('td'); // td_wanchengdu.width='10%'; // td_wanchengdu.style.textAlign='center'; // td_wanchengdu.innerHTML= ConfirmStore16[0].com_du+'%'; // td_wanchengdu.style.borderLeft ='1px solid #BEBEBE'; // td_wanchengdu.style.borderTop ='1px solid #BEBEBE'; // td_wanchengdu.style.fontSize='14px'; // tr16.appendChild(td_wanchengdu); // }else{ // for(var i=0;i0){ if(ConfirmStore17.length==1){ var tr18 = document.createElement('tr'); sta4.appendChild(tr18); var td_dianwei_name2 = document.createElement('td'); td_dianwei_name2.width='40%'; td_dianwei_name2.style.textAlign='center'; td_dianwei_name2.style.borderLeft ='1px solid #BEBEBE'; td_dianwei_name2.style.borderTop ='1px solid #BEBEBE'; td_dianwei_name2.innerHTML=ConfirmStore17[0].rezeren_name; td_dianwei_name2.style.fontSize='14px'; tr18.appendChild(td_dianwei_name2); var td_saoma_num3= document.createElement('td'); td_saoma_num3.width='20%'; td_saoma_num3.style.textAlign='center'; td_saoma_num3.innerHTML= ConfirmStore17[0].ywcbx_num; td_saoma_num3.style.borderLeft ='1px solid #BEBEBE'; td_saoma_num3.style.borderTop ='1px solid #BEBEBE'; td_saoma_num3.style.fontSize='14px'; tr18.appendChild(td_saoma_num3); var td_baoxiucishu= document.createElement('td'); td_baoxiucishu.width='20%'; td_baoxiucishu.style.textAlign='center'; td_baoxiucishu.innerHTML= ConfirmStore17[0].ywcbx_num1; td_baoxiucishu.style.borderLeft ='1px solid #BEBEBE'; td_baoxiucishu.style.borderTop ='1px solid #BEBEBE'; td_baoxiucishu.style.fontSize='14px'; tr18.appendChild(td_baoxiucishu); var td_baoxiupinlv = document.createElement('td'); td_baoxiupinlv.width='20%'; td_baoxiupinlv.style.textAlign='center'; td_baoxiupinlv.innerHTML=ConfirmStore17[0].wcd_baifenbi+'%'; td_baoxiupinlv.style.fontSize='14px'; td_baoxiupinlv.style.borderLeft ='1px solid #BEBEBE'; td_baoxiupinlv.style.borderTop ='1px solid #BEBEBE'; tr18.appendChild(td_baoxiupinlv); }else{ for(var i=0;i
' }).show(); var query = new Object(); query.V_LOGINNAME = $("#V_LOGINNAME").val(); query.V_PASSWORD = $("#V_PASSWORD").val(); query.start_data = start_data; query.end_data = end_data; query.type = 'baoxiu'; Ext.MessageBox.wait('Loading', '生成中…'); $.ajax({ type:'POST', url: baseUrl+"iot/spotoperationrecord/getxjfenxi", data: { queryJson : Ext.JSON.encode(query) }, success: function(result){ var json = eval('(' + result + ')'); if(json.action=='getxjfenxi'){ ConfirmStore15 = json.RESULT15; ConfirmStore17 = json.RESULT17; // ConfirmStore4 = json.RESULT4; heji1 = json.heji1; heji2 = json.heji2; xjrysl = json.xjrysl; xjbz = json.xjbz; zrrnum = json.zrrnum; wshbxnum = json.wshbxnum; xjrwnum = json.xjrwnum; xjdwnum = json.xjdwnum; xjysmcsnum = json.xjysmcsnum; xjbxcsnum = json.xjbxcsnum; xjwksbaifenbi = json.xjwksbaifenbi; baifenbishwtgwcbxrw = json.baifenbishwtgwcbxrw; baifenbicswcbxrw = json.baifenbicswcbxrw; baifenbiywcbxrw = json.baifenbiywcbxrw; xjwksnum = json.xjwksnum; xjjxznum = json.xjjxznum; xjcsnum = json.xjcsnum; xjywcnum = json.xjywcnum; xjysmbaifenbi = json.xjysmbaifenbi; xjwsmbaifenbi = json.xjwsmbaifenbi; baifenbiwclbxrw = json.baifenbiwclbxrw; baifenbiwshbxrw = json.baifenbiwshbxrw; baifenbiresult16 = json.baifenbiresult16; baifenbiresult17 = json.baifenbiresult17; baifenbiresult15 = json.baifenbiresult15; baifenbihuidan15 = json.baifenbihuidan15; Ext.MessageBox.hide(); draw_confirm(query.start_data,query.end_data,project_date); // highcharts(); highcharts1(); highcharts2(); highcharts3(); // highcharts4(); } } }); } FilterWin = Ext.create('Ext.form.Panel', { id: 'SpringHandleFilterForm', labelWidth: 55, defaultType: 'textfield', bodyPadding: 15, items: [{ xtype:'datefield', fieldLabel:"开始日期", minValue:'07/07/2017', minText:"当前日期选择应大于2017-07-07", format:"Y-m-d", value:Ext.util.Format.date(Ext.Date.add(new Date(),Ext.Date.MONTH,-1),"Y-m-01"), columnWidth:0.5, id: 'start_date', name:"start_date", editable:false,//只读约束 allowBlank:false, blankText:"不能为空", anchor:'95%' },{ xtype:'datefield', fieldLabel:"结束日期", minValue:'07/07/2017', minText:"当前日期选择应大于2017-07-07", format:"Y-m-d", value:Ext.util.Format.date(new Date(new Date(new Date().getUTCFullYear(), new Date().getMonth(), 1) - 86400000), "Y-m-d"), columnWidth:0.5, id: 'end_date', name:"end_date", editable:false,//只读约束 allowBlank:false, blankText:"不能为空", anchor:'95%' }, { id:'ff_queryJson', name:'queryJson', hidden:true }], buttons: [{ text: '下一步', iconCls:'ok_btn', handler: function() { var form = this.up('form').getForm(); if (form.isValid()) { var start_date=Ext.util.Format.date(Ext.getCmp('start_date').getValue(), 'Y-m-d'); var end_date=Ext.util.Format.date(Ext.getCmp('end_date').getValue(), 'Y-m-d'); var project_date=Ext.util.Format.date(Ext.getCmp('start_date').getValue(), 'Y-m'); show_detail_data(start_date,end_date,project_date); this.up('window').hide(); } } }] }); var filterwin = function() { Ext.create('Ext.window.Window',{ title: '工作分析', height: 300, width: 350, layout: 'fit', items: FilterWin, closeAction: 'hide' }).show(); }; mouseon = function(obj){ var id = obj.id; $("#"+id).removeClass(id); $("#"+id).addClass(id+'_on'); } mouseoff = function(obj){ var mid = "springHandle_"; for(var i=1;i<5;i++){ var id = "springHandle_title"+i+"_div"; $("#"+id).removeClass(id+'_on'); $("#"+id).addClass(id); } if(menuidx=='m1'){ mid += 'title1_div'; $("#"+mid).removeClass(mid); $("#"+mid).addClass(mid+'_on'); } else if(menuidx=='m2'){ mid += 'title2_div'; $("#"+mid).removeClass(mid); $("#"+mid).addClass(mid+'_on'); } else if(menuidx=='m3'){ mid += 'title3_div'; $("#"+mid).removeClass(mid); $("#"+mid).addClass(mid+'_on'); } else if(menuidx=='m4'){ mid += 'title4_div'; $("#"+mid).removeClass(mid); $("#"+mid).addClass(mid+'_on'); } } menu_click = function(obj){ var id = obj.id; if(id=='springHandle_title1_div'){ menuidx = 'm1'; show_page(); } else if(id=='springHandle_title2_div'){ menuidx = 'm2'; reset1(); } else if(id=='springHandle_title3_div'){ menuidx = 'm3'; exportbtn_click(); } else if(id=='springHandle_title4_div'){ menuidx = 'm4'; filterwin(); } } var maintenancedevice = function(){ var maintenance_look_device = document.getElementById('inspectorsCheck_look_device'); var img = document.createElement('img'); img.width=400; img.height=400; img.src = baseUrl+ConfirmStore[0].picture_route; // img.src = ConfirmStore[0].picture_route; img.setAttribute('class','maintenance_look_device_img'); maintenance_look_device.appendChild(img); var div4 = document.createElement('div'); div4.style.textAlign='center'; div4.innerHTML=ConfirmStore[0].remarks; maintenance_look_device.appendChild(div4); } var editMaintenance = function(spot_id){ var spot_id = spot_id; Ext.create('Ext.window.Window', { id:'inspectorsCheck_data_win1', height: 500, width: 400, layout: 'fit', modal:true, buttons:[ { text:'关闭', handler : function() { Ext.getCmp('inspectorsCheck_data_win1').destroy(); } } ], closeAction:'destroy', html:'
' }).show(); var query = new Object(); query.V_LOGINNAME = $("#V_LOGINNAME").val(); query.V_PASSWORD = $("#V_PASSWORD").val(); query.id = spot_id; $.ajax({ type:'POST', url: baseUrl+"iot/inspectionpoints/getList1", data: { queryJson : Ext.JSON.encode(query) }, success: function(result){ var json = eval('(' + result + ')'); if(json.action=='getInspectionPointsList'){ ConfirmStore = json.RESULT; maintenancedevice(ConfirmStore); } } }); } var maintenancePresentation = function(zyzp_status){ var maintenanceCheck_look_Presentation = document.getElementById('springHandle_look_Presentation'); var div = document.createElement('div'); div.setAttribute('class','SpringHandleDiv'); div.innerHTML='报修类型'; maintenanceCheck_look_Presentation.appendChild(div); var div1 = document.createElement('div'); div1.setAttribute('class','SpringHandleDiv1'); div1.innerHTML=ConfirmStore[0].sj_tytpe_name; maintenanceCheck_look_Presentation.appendChild(div1); var div2 = document.createElement('div'); div2.setAttribute('class','SpringHandleDiv2'); div2.innerHTML='发起账号'; maintenanceCheck_look_Presentation.appendChild(div2); var div3 = document.createElement('div'); div3.setAttribute('class','SpringHandleDiv3'); // div3.innerHTML='管理员账号'; div3.innerHTML=ConfirmStore[0].phone; maintenanceCheck_look_Presentation.appendChild(div3); var div4 = document.createElement('div'); div4.setAttribute('class','SpringHandleDiv4'); div4.innerHTML='应完成时间'; maintenanceCheck_look_Presentation.appendChild(div4); var div5 = document.createElement('div'); div5.setAttribute('class','SpringHandleDiv5'); // div5.innerHTML='2019-03-04 13:48:07'; div5.innerHTML=ConfirmStore[0].y_complete_time; maintenanceCheck_look_Presentation.appendChild(div5); var div6 = document.createElement('div'); div6.setAttribute('class','SpringHandleDiv6'); div6.innerHTML='备注'; maintenanceCheck_look_Presentation.appendChild(div6); var div7 = document.createElement('div'); div7.setAttribute('class','SpringHandleDiv7'); // div7.innerHTML='玻璃不知道被谁砸坏了,需要联系物业更换玻璃'; div7.innerHTML=ConfirmStore[0].zp_remarks; maintenanceCheck_look_Presentation.appendChild(div7); var div8 = document.createElement('div'); div8.setAttribute('class','SpringHandleDiv8'); div8.innerHTML='责任人'; maintenanceCheck_look_Presentation.appendChild(div8); var div9 = document.createElement('div'); div9.setAttribute('class','SpringHandleDiv9'); // div9.innerHTML='张某'; div9.innerHTML=ConfirmStore[0].name; maintenanceCheck_look_Presentation.appendChild(div9); var div10 = document.createElement('div'); div10.setAttribute('class','SpringHandleDiv10'); div10.innerHTML='发起时间'; maintenanceCheck_look_Presentation.appendChild(div10); var div11 = document.createElement('div'); div11.setAttribute('class','SpringHandleDiv11'); // div11.innerHTML='2019-03-04 13:48:07'; div11.innerHTML=ConfirmStore[0].sbsj; maintenanceCheck_look_Presentation.appendChild(div11); } var maintenancePresentation0 = function(zyzp_status){ var maintenanceCheck_look_Presentation = document.getElementById('springHandle_look_Presentation'); var date=new Date; var times = date.getHours()+':'+date.getMinutes()+':'+date.getSeconds(); //时 var dates=Ext.util.Format.date(date, 'Y-m-d'); var div12 = document.createElement('div'); div12.setAttribute('class','SpringHandleDiv12'); div12.innerHTML='报修类型'; maintenanceCheck_look_Presentation.appendChild(div12); var select = document.createElement('select'); select.setAttribute('class','SpringHandleSelect'); select.setAttribute('id','springHandle_select_id'); maintenanceCheck_look_Presentation.appendChild(select); var option6 = document.createElement('option'); option6.innerHTML='请选择'; option6.setAttribute('value','0'); select.appendChild(option6); var option7 = document.createElement('option'); option7.innerHTML='故障'; option7.setAttribute('value','1'); select.appendChild(option7); var option8 = document.createElement('option'); option8.innerHTML='隐患'; option8.setAttribute('value','2'); select.appendChild(option8); var option9 = document.createElement('option'); option9.innerHTML='其他'; option9.setAttribute('value','3'); select.appendChild(option9); var div13 = document.createElement('div'); div13.setAttribute('class','SpringHandleDiv13'); div13.innerHTML='应完成时间'; maintenanceCheck_look_Presentation.appendChild(div13); var input = document.createElement('input'); input.setAttribute('class','springHandleInput'); input.setAttribute('id','springHandle_input_id'); input.setAttribute('type','text'); input.setAttribute('readonly','true'); input.setAttribute('value',dates); maintenanceCheck_look_Presentation.appendChild(input); var endDate = laydate.render({ elem: '#springHandle_input_id' }); var input1 = document.createElement('input'); input1.setAttribute('class','springHandleInput1'); input1.setAttribute('id','springHandle_input1_id'); input1.setAttribute('type','text'); input1.setAttribute('readonly','true'); input1.setAttribute('value',times); maintenanceCheck_look_Presentation.appendChild(input1); var endTime = laydate.render({ elem: '#springHandle_input1_id', type: 'time' }); var div14 = document.createElement('div'); div14.setAttribute('class','SpringHandleDiv14'); div14.innerHTML='备注'; maintenanceCheck_look_Presentation.appendChild(div14); var textarea = document.createElement('textarea'); textarea.setAttribute('class','SpringHandleTextarea'); textarea.setAttribute('id','springHandle_textarea_id'); maintenanceCheck_look_Presentation.appendChild(textarea); var div15 = document.createElement('div'); div15.setAttribute('class','SpringHandleDiv15'); div15.innerHTML='责任人'; maintenanceCheck_look_Presentation.appendChild(div15); var select1 = document.createElement('select'); select1.setAttribute('class','SpringHandleSelect1'); select1.setAttribute('id','springHandle_select1_id'); maintenanceCheck_look_Presentation.appendChild(select1); for(var i=0;i0){ query.sj_type = lx; } if(data3b.length>0&&data3a.length>0){ query.y_complete_time = data3a+" "+data3b; } // if(){ // query.data3a = data3a; // } if(bz.length>0){ query.zp_remarks = bz; } if(zrr.length>0){ query.person_liable = zrr; } // if(spot_id.length>0){ query.id = spot_id; // } query.V_LOGINNAME = V_LOGINNAME; query.V_PASSWORD = V_PASSWORD; $.ajax({ type:'POST', url: baseUrl+"iot/xjeventprocessing/updatezp", data: { queryJson : Ext.JSON.encode(query) }, // success: function(result){ // Ext.Msg.alert('操作成功', '已指派', function(btn,txt){ // Ext.getCmp('SpringHandleListPanel').getStore().reload(); // }); // } success: function(result){ var json = eval('(' + result + ')'); if(json.action=='updateEventProcessingzp'){ if(json.success==true){ Ext.Msg.alert('操作成功', '已指派' , function(btn,txt){ Ext.getCmp('SpringHandleListPanel').getStore().reload(); }); }else{ Ext.Msg.alert('操作失败', json.MSG , function(btn,txt){ Ext.getCmp('SpringHandleListPanel').getStore().reload(); }); } } } }); Ext.getCmp('springHandle_peison_win').destroy(); } },{ text:'关闭', handler : function() { Ext.getCmp('springHandle_peison_win').destroy(); } } ], closeAction:'destroy', html:'
' }).show(); var query = new Object(); query.V_LOGINNAME = $("#V_LOGINNAME").val(); query.V_PASSWORD = $("#V_PASSWORD").val(); query.jlid = spot_id; $.ajax({ type:'POST', url: baseUrl+"iot/xjeventprocessing/getwxzrr", data: { queryJson : Ext.JSON.encode(query) }, success: function(result){ var json = eval('(' + result + ')'); if(json.action=='getwxzrr'){ ConfirmStore1 = json.RESULT; maintenancePresentation0(zyzp_status); } } }); }else{ Ext.create('Ext.window.Window', { title: '人员指派', height: 300, width: 500, modal:true, layout: 'fit', closeAction:'destroy', html:'
' }).show(); var query = new Object(); query.V_LOGINNAME = $("#V_LOGINNAME").val(); query.V_PASSWORD = $("#V_PASSWORD").val(); query.id = spot_id; $.ajax({ type:'POST', url: baseUrl+"iot/xjeventprocessing/getAssignJlList", data: { queryJson : Ext.JSON.encode(query) }, success: function(result){ var json = eval('(' + result + ')'); if(json.action=='getAssignJlList'){ ConfirmStore = json.RESULT; maintenancePresentation(zyzp_status); } } }); } } var examineStatusHtml = function(){ var springHandleHtml2 = document.getElementById('springHandleHtml2'); var div16 = document.createElement('div'); div16.setAttribute('class','SpringHandleHtml2Div16'); div16.innerHTML='处理状态'; springHandleHtml2.appendChild(div16); // if(ConfirmStore[0].cl_type==2){ var div17 = document.createElement('div'); div17.setAttribute('class','SpringHandleHtml2Div17'); div17.innerHTML='未审核'; springHandleHtml2.appendChild(div17); // }else if(ConfirmStore[0].cl_type==3){ // var div17 = document.createElement('div'); // div17.setAttribute('class','SpringHandleHtml2Div1713'); // div17.innerHTML='审核未通过'; // springHandleHtml2.appendChild(div17); // }else if(ConfirmStore[0].cl_type==4){ // var div17 = document.createElement('div'); // div17.setAttribute('class','SpringHandleHtml2Div17'); // div17.innerHTML='已完成'; // springHandleHtml2.appendChild(div17); // }else if(ConfirmStore[0].cl_type==5){ // var div17 = document.createElement('div'); // div17.setAttribute('class','SpringHandleHtml2Div1713'); // div17.innerHTML='超时完成'; // springHandleHtml2.appendChild(div17); // } var div18 = document.createElement('div'); div18.setAttribute('class','SpringHandleHtml2Div18'); div18.innerHTML='责任人'; springHandleHtml2.appendChild(div18); var div19 = document.createElement('div'); div19.setAttribute('class','SpringHandleHtml2Div19'); div19.innerHTML=ConfirmStore[0].person_liable_name; springHandleHtml2.appendChild(div19); var div20 = document.createElement('div'); div20.setAttribute('class','SpringHandleHtml2Div20'); div20.innerHTML='发起账号'; springHandleHtml2.appendChild(div20); var div21 = document.createElement('div'); div21.setAttribute('class','SpringHandleHtml2Div21'); div21.innerHTML=ConfirmStore[0].phone; springHandleHtml2.appendChild(div21); var div22 = document.createElement('div'); div22.setAttribute('class','SpringHandleHtml2Div22'); div22.innerHTML='应处理时间'; springHandleHtml2.appendChild(div22); var div23 = document.createElement('div'); div23.setAttribute('class','SpringHandleHtml2Div23'); div23.innerHTML=ConfirmStore[0].y_complete_time; springHandleHtml2.appendChild(div23); var div24 = document.createElement('div'); div24.setAttribute('class','SpringHandleHtml2Div24'); div24.innerHTML='上报时间'; springHandleHtml2.appendChild(div24); var div25 = document.createElement('div'); div25.setAttribute('class','SpringHandleHtml2Div25'); div25.innerHTML=ConfirmStore[0].sbsj; springHandleHtml2.appendChild(div25); } var examineStatusHtml1 = function(){ var springHandleHtml2 = document.getElementById('springHandleHtml3'); var div16 = document.createElement('div'); div16.setAttribute('class','SpringHandleHtml2Div16'); div16.innerHTML='处理状态'; springHandleHtml2.appendChild(div16); var div17 = document.createElement('div'); div17.setAttribute('class','SpringHandleHtml2Div1713'); div17.innerHTML='审核未通过'; springHandleHtml2.appendChild(div17); var div18 = document.createElement('div'); div18.setAttribute('class','SpringHandleHtml2Div18'); div18.innerHTML='责任人'; springHandleHtml2.appendChild(div18); var div19 = document.createElement('div'); div19.setAttribute('class','SpringHandleHtml2Div19'); div19.innerHTML=ConfirmStore[0].person_liable_name; springHandleHtml2.appendChild(div19); var div20 = document.createElement('div'); div20.setAttribute('class','SpringHandleHtml2Div20'); div20.innerHTML='发起账号'; springHandleHtml2.appendChild(div20); var div21 = document.createElement('div'); div21.setAttribute('class','SpringHandleHtml2Div21'); div21.innerHTML=ConfirmStore[0].phone; springHandleHtml2.appendChild(div21); var div22 = document.createElement('div'); div22.setAttribute('class','SpringHandleHtml2Div22'); div22.innerHTML='应处理时间'; springHandleHtml2.appendChild(div22); var div23 = document.createElement('div'); div23.setAttribute('class','SpringHandleHtml2Div23'); div23.innerHTML=ConfirmStore[0].y_complete_time; springHandleHtml2.appendChild(div23); var div24 = document.createElement('div'); div24.setAttribute('class','SpringHandleHtml2Div24'); div24.innerHTML='上报时间'; springHandleHtml2.appendChild(div24); var div25 = document.createElement('div'); div25.setAttribute('class','SpringHandleHtml2Div25'); div25.innerHTML=ConfirmStore[0].sbsj; springHandleHtml2.appendChild(div25); } var examineStatusHtml2 = function(){ var springHandleHtml2 = document.getElementById('springHandleHtml4'); var div16 = document.createElement('div'); div16.setAttribute('class','SpringHandleHtml2Div16'); div16.innerHTML='处理状态'; springHandleHtml2.appendChild(div16); var div17 = document.createElement('div'); div17.setAttribute('class','SpringHandleHtml2Div17'); div17.innerHTML='已完成'; springHandleHtml2.appendChild(div17); var div18 = document.createElement('div'); div18.setAttribute('class','SpringHandleHtml2Div18'); div18.innerHTML='责任人'; springHandleHtml2.appendChild(div18); var div19 = document.createElement('div'); div19.setAttribute('class','SpringHandleHtml2Div19'); div19.innerHTML=ConfirmStore[0].person_liable_name; springHandleHtml2.appendChild(div19); var div20 = document.createElement('div'); div20.setAttribute('class','SpringHandleHtml2Div20'); div20.innerHTML='发起账号'; springHandleHtml2.appendChild(div20); var div21 = document.createElement('div'); div21.setAttribute('class','SpringHandleHtml2Div21'); div21.innerHTML=ConfirmStore[0].phone; springHandleHtml2.appendChild(div21); var div22 = document.createElement('div'); div22.setAttribute('class','SpringHandleHtml2Div22'); div22.innerHTML='应处理时间'; springHandleHtml2.appendChild(div22); var div23 = document.createElement('div'); div23.setAttribute('class','SpringHandleHtml2Div23'); div23.innerHTML=ConfirmStore[0].y_complete_time; springHandleHtml2.appendChild(div23); var div24 = document.createElement('div'); div24.setAttribute('class','SpringHandleHtml2Div24'); div24.innerHTML='上报时间'; springHandleHtml2.appendChild(div24); var div25 = document.createElement('div'); div25.setAttribute('class','SpringHandleHtml2Div25'); div25.innerHTML=ConfirmStore[0].sbsj; springHandleHtml2.appendChild(div25); } var examineStatusHtml3 = function(){ var springHandleHtml2 = document.getElementById('springHandleHtml5'); var div16 = document.createElement('div'); div16.setAttribute('class','SpringHandleHtml2Div16'); div16.innerHTML='处理状态'; springHandleHtml2.appendChild(div16); var div17 = document.createElement('div'); div17.setAttribute('class','SpringHandleHtml2Div1713'); div17.innerHTML='超时完成'; springHandleHtml2.appendChild(div17); var div18 = document.createElement('div'); div18.setAttribute('class','SpringHandleHtml2Div18'); div18.innerHTML='责任人'; springHandleHtml2.appendChild(div18); var div19 = document.createElement('div'); div19.setAttribute('class','SpringHandleHtml2Div19'); div19.innerHTML=ConfirmStore[0].person_liable_name; springHandleHtml2.appendChild(div19); var div20 = document.createElement('div'); div20.setAttribute('class','SpringHandleHtml2Div20'); div20.innerHTML='发起账号'; springHandleHtml2.appendChild(div20); var div21 = document.createElement('div'); div21.setAttribute('class','SpringHandleHtml2Div21'); div21.innerHTML=ConfirmStore[0].phone; springHandleHtml2.appendChild(div21); var div22 = document.createElement('div'); div22.setAttribute('class','SpringHandleHtml2Div22'); div22.innerHTML='应处理时间'; springHandleHtml2.appendChild(div22); var div23 = document.createElement('div'); div23.setAttribute('class','SpringHandleHtml2Div23'); div23.innerHTML=ConfirmStore[0].y_complete_time; springHandleHtml2.appendChild(div23); var div24 = document.createElement('div'); div24.setAttribute('class','SpringHandleHtml2Div24'); div24.innerHTML='上报时间'; springHandleHtml2.appendChild(div24); var div25 = document.createElement('div'); div25.setAttribute('class','SpringHandleHtml2Div25'); div25.innerHTML=ConfirmStore[0].sbsj; springHandleHtml2.appendChild(div25); } var springHandlePanel1Html = function(){ var springHandlePanel1 = document.getElementById('springHandlePanel1'); var div26 = document.createElement('div'); div26.id='div26_id_springHandlePanel1'; div26.setAttribute('class','SpringHandleHtml2Div26'); div26.innerHTML='结果照片'; springHandlePanel1.appendChild(div26); var springHandlePanel1title = document.createElement('img'); springHandlePanel1title.setAttribute('class','SpringHandlePanel1Title'); // springHandlePanel1title.src='../../res/img/common/shangchaun.png'; springHandlePanel1title.src=ConfirmStore[0].picture_path; springHandlePanel1.appendChild(springHandlePanel1title); var div27 = document.createElement('div'); div27.setAttribute('class','SpringHandleHtml2Div27'); div27.innerHTML='结果备注'; springHandlePanel1.appendChild(div27); var div28 = document.createElement('div'); div28.setAttribute('class','SpringHandleHtml2Div28'); div28.innerHTML=ConfirmStore[0].jg_remarks; springHandlePanel1.appendChild(div28); var div29 = document.createElement('div'); div29.setAttribute('class','SpringHandleHtml2Div29'); div29.innerHTML='处理时间'; springHandlePanel1.appendChild(div29); var div30 = document.createElement('div'); div30.setAttribute('class','SpringHandleHtml2Div30'); div30.innerHTML=ConfirmStore[0].cl_time; springHandlePanel1.appendChild(div30); var div31 = document.createElement('div'); div31.setAttribute('class','SpringHandleHtml2Div31'); div31.innerHTML='审核结果'; springHandlePanel1.appendChild(div31); var div32 = document.createElement('div'); div32.setAttribute('class','SpringHandleHtml2Div32'); div32.innerHTML='无'; springHandlePanel1.appendChild(div32); var div33 = document.createElement('div'); div33.setAttribute('class','SpringHandleHtml2Div33'); div33.innerHTML='审核时间'; springHandlePanel1.appendChild(div33); var div34 = document.createElement('div'); div34.setAttribute('class','SpringHandleHtml2Div34'); div34.innerHTML='无'; springHandlePanel1.appendChild(div34); var div35 = document.createElement('div'); div35.setAttribute('class','SpringHandleHtml2Div35'); div35.innerHTML='审核'; springHandlePanel1.appendChild(div35); var select36 = document.createElement('select'); select36.setAttribute('class','SpringHandleSelect36'); select36.setAttribute('id','springHandle_select36_id'); // select36.setAttribute('onchange',"changeon(this)"); springHandlePanel1.appendChild(select36); var option6 = document.createElement('option'); option6.innerHTML='请选择'; option6.setAttribute('value','0'); select36.appendChild(option6); var option7 = document.createElement('option'); option7.innerHTML='审核不通过'; option7.setAttribute('value','3'); select36.appendChild(option7); var option8 = document.createElement('option'); option8.innerHTML='完成'; option8.setAttribute('value','4'); select36.appendChild(option8); var option9 = document.createElement('option'); option9.innerHTML='超时完成'; option9.setAttribute('value','5'); select36.appendChild(option9); var div37 = document.createElement('div'); div37.setAttribute('class','SpringHandleHtml2Div37'); div37.innerHTML='备注'; springHandlePanel1.appendChild(div37); var textarea2 = document.createElement('textarea'); textarea2.setAttribute('class','SpringHandleTextarea2'); textarea2.setAttribute('id','springHandle_textarea2_id'); springHandlePanel1.appendChild(textarea2); } var springHandlePanel2Html = function(){ var springHandlePanel2 = document.getElementById('springHandlePanel2'); if(ConfirmStore[0].data1=='0'){ var div26 = document.createElement('div'); div26.id='div26_id_springHandlePanel2'; div26.setAttribute('class','SpringHandleHtml2Div26'); div26.innerHTML='结果照片'; springHandlePanel2.appendChild(div26); var springHandlePanel1title = document.createElement('img'); springHandlePanel1title.setAttribute('class','SpringHandlePanel1Title'); springHandlePanel1title.src='../../res/img/common/wutu.png'; // springHandlePanel1title.src=ConfirmStore[0].picture_path; springHandlePanel2.appendChild(springHandlePanel1title); var div27 = document.createElement('div'); div27.setAttribute('class','SpringHandleHtml2Div27'); div27.innerHTML='结果备注'; springHandlePanel2.appendChild(div27); var div28 = document.createElement('div'); div28.setAttribute('class','SpringHandleHtml2Div28'); div28.innerHTML="无"; springHandlePanel2.appendChild(div28); var div29 = document.createElement('div'); div29.setAttribute('class','SpringHandleHtml2Div29'); div29.innerHTML='处理时间'; springHandlePanel2.appendChild(div29); var div30 = document.createElement('div'); div30.setAttribute('class','SpringHandleHtml2Div30'); div30.innerHTML="无"; springHandlePanel2.appendChild(div30); var div31 = document.createElement('div'); div31.setAttribute('class','SpringHandleHtml2Div31'); div31.innerHTML='审核结果'; springHandlePanel2.appendChild(div31); var div32 = document.createElement('div'); div32.setAttribute('class','SpringHandleHtml2Div32'); div32.innerHTML='无'; springHandlePanel2.appendChild(div32); var div33 = document.createElement('div'); div33.setAttribute('class','SpringHandleHtml2Div33'); div33.innerHTML='审核时间'; springHandlePanel2.appendChild(div33); var div34 = document.createElement('div'); div34.setAttribute('class','SpringHandleHtml2Div34'); div34.innerHTML='无'; springHandlePanel2.appendChild(div34); }else if(ConfirmStore[0].data1=='1'){ var div26 = document.createElement('div'); div26.id='div26_id_springHandlePanel2'; div26.setAttribute('class','SpringHandleHtml2Div26'); div26.innerHTML='结果照片'; springHandlePanel2.appendChild(div26); var springHandlePanel1title = document.createElement('img'); springHandlePanel1title.setAttribute('class','SpringHandlePanel1Title'); // springHandlePanel1title.src='../../res/img/common/wutu.png'; springHandlePanel1title.src=ConfirmStore[0].picture_path; springHandlePanel2.appendChild(springHandlePanel1title); var div27 = document.createElement('div'); div27.setAttribute('class','SpringHandleHtml2Div27'); div27.innerHTML='结果备注'; springHandlePanel2.appendChild(div27); var div28 = document.createElement('div'); div28.setAttribute('class','SpringHandleHtml2Div28'); div28.innerHTML=ConfirmStore[0].jg_remarks; springHandlePanel2.appendChild(div28); var div29 = document.createElement('div'); div29.setAttribute('class','SpringHandleHtml2Div29'); div29.innerHTML='处理时间'; springHandlePanel2.appendChild(div29); var div30 = document.createElement('div'); div30.setAttribute('class','SpringHandleHtml2Div30'); div30.innerHTML=ConfirmStore[0].cl_time; springHandlePanel2.appendChild(div30); var div31 = document.createElement('div'); div31.setAttribute('class','SpringHandleHtml2Div31'); div31.innerHTML='审核结果'; springHandlePanel2.appendChild(div31); var div32 = document.createElement('div'); div32.setAttribute('class','SpringHandleHtml2Div32'); div32.innerHTML='无'; springHandlePanel2.appendChild(div32); var div33 = document.createElement('div'); div33.setAttribute('class','SpringHandleHtml2Div33'); div33.innerHTML='审核时间'; springHandlePanel2.appendChild(div33); var div34 = document.createElement('div'); div34.setAttribute('class','SpringHandleHtml2Div34'); div34.innerHTML='无'; springHandlePanel2.appendChild(div34); var div35 = document.createElement('div'); div35.setAttribute('class','SpringHandleHtml2Div35'); div35.innerHTML='审核'; springHandlePanel2.appendChild(div35); var select36 = document.createElement('select'); select36.setAttribute('class','SpringHandleSelect36'); select36.setAttribute('id','springHandle_select36_id2'); // select36.setAttribute('onchange',"changeon(this)"); springHandlePanel2.appendChild(select36); var option6 = document.createElement('option'); option6.innerHTML='请选择'; option6.setAttribute('value','0'); select36.appendChild(option6); var option7 = document.createElement('option'); option7.innerHTML='审核不通过'; option7.setAttribute('value','3'); select36.appendChild(option7); var option8 = document.createElement('option'); option8.innerHTML='完成'; option8.setAttribute('value','4'); select36.appendChild(option8); var option9 = document.createElement('option'); option9.innerHTML='超时完成'; option9.setAttribute('value','5'); select36.appendChild(option9); var div37 = document.createElement('div'); div37.setAttribute('class','SpringHandleHtml2Div37'); div37.innerHTML='备注'; springHandlePanel2.appendChild(div37); var textarea2 = document.createElement('textarea'); textarea2.setAttribute('class','SpringHandleTextarea2'); textarea2.setAttribute('id','springHandle_textarea2_id2'); springHandlePanel2.appendChild(textarea2); } } var springHandlePanel3Html = function(){ var springHandlePanel3 = document.getElementById('springHandlePanel3'); var divhiddle = document.createElement('div'); divhiddle.id='div26_id_springHandlePanel3'; divhiddle.setAttribute('class','SpringHandleHtml3DivHiddle'); springHandlePanel3.appendChild(divhiddle); for(var i=0;i
' }); var panel4 = Ext.create('Ext.panel.Panel',{ // id:'springHandlePanel3', width:490, height:360, layout:'fit', bodyStyle :'overflow-x:hidden;overflow-y:auto', defaults:{ border:false }, html:'
' }); var reset11 = function(){ document.getElementById('springHandle_textarea2_id').value = ''; document.getElementById('springHandle_select36_id').value = '0'; Ext.getCmp('SpringHandleListPageToolbar').moveFirst(); } var reset12 = function(){ document.getElementById('springHandle_textarea2_id2').value = ''; document.getElementById('springHandle_select36_id2').value = '0'; Ext.getCmp('SpringHandleListPageToolbar').moveFirst(); } var examinwin = function(id){ // if(examin_win!=undefined) // examin_win.show(); // var id=ConfirmStore[0].id; Ext.create('Ext.window.Window', { title: '处理状态', height: 600, width: 500, modal:true, layout: 'border', items: [ piebar2, Ext.create('Ext.tab.Panel', { activeTab: 0, items: [ { title: '处理反馈', items : [panel1] } ] }) ], buttons:[ { text:'确定', iconCls:'ok_btn', handler : function () { var date=new Date; var times = date.getHours()+':'+date.getMinutes()+':'+date.getSeconds(); //时 var dates=Ext.util.Format.date(date, 'Y-m-d'); var shid = document.getElementById('springHandle_select36_id'); var shIndex = shid.selectedIndex; var sh = shid.options[shIndex].value; var bz = document.getElementById('springHandle_textarea2_id').value; // alert(bz); var query = new Object(); if(sh.length>0){ query.cl_type = sh; } if(bz.length>0){ query.sh_remarks = bz; } query.id = id; query.V_LOGINNAME = V_LOGINNAME; query.V_PASSWORD = V_PASSWORD; $.ajax({ type:'POST', url: baseUrl+"iot/xjeventprocessing/updatesh", data: { queryJson : Ext.JSON.encode(query) }, // success: function(result){ // Ext.Msg.alert('操作成功', '已审核', function(btn,txt){ // reset11(); // }); // } success: function(result){ var json = eval('(' + result + ')'); if(json.action=='updateEventProcessingsh'){ if(json.success==true){ Ext.Msg.alert('操作成功', '已审核' , function(btn,txt){ reset11(); }); }else{ Ext.Msg.alert('操作失败', json.MSG , function(btn,txt){ reset11(); }); } } } }); this.up('window').hide(); } },{ text:'关闭', handler : function() { this.up('window').hide(); } } ], closeAction:'hide' }).show(); } var examinwin1 = function(id){ // if(examin_win!=undefined) // examin_win.show(); // var id=ConfirmStore[0].id; Ext.create('Ext.window.Window', { title: '处理状态', height: 600, width: 500, modal:true, layout: 'border', items: [ piebar3,Ext.create('Ext.tab.Panel', { activeTab: 0, items: [ { itemId:'chulifankui', title: '处理反馈', items : [panel2] } , { itemId:'shenhejilu', title: '反馈与审核记录', items : [panel3] } ], listeners:{ 'tabchange':function (t, n) { var item = n.itemId; if(item=='shenhejilu'){ // if(document.getElementById('div26_id_springHandlePanel3')==undefined) springHandlePanel3Ajax(id); } } } })], buttons:[ { text:'确定', iconCls:'ok_btn', handler : function () { var date=new Date; var times = date.getHours()+':'+date.getMinutes()+':'+date.getSeconds(); //时 var dates=Ext.util.Format.date(date, 'Y-m-d'); var shid = document.getElementById('springHandle_select36_id2'); var shIndex = shid.selectedIndex; var sh = shid.options[shIndex].value; var bz = document.getElementById('springHandle_textarea2_id2').value; // alert(bz); var query = new Object(); if(sh.length>0){ query.cl_type = sh; } if(bz.length>0){ query.sh_remarks = bz; } query.id = id; query.V_LOGINNAME = V_LOGINNAME; query.V_PASSWORD = V_PASSWORD; $.ajax({ type:'POST', url: baseUrl+"iot/xjeventprocessing/updatesh", data: { queryJson : Ext.JSON.encode(query) }, // success: function(result){ // Ext.Msg.alert('操作成功', '已审核', function(btn,txt){ // reset12(); // }); // } success: function(result){ var json = eval('(' + result + ')'); if(json.action=='updateEventProcessingsh'){ if(json.success==true){ Ext.Msg.alert('操作成功', '已审核' , function(btn,txt){ reset12(); }); }else{ Ext.Msg.alert('操作失败', json.MSG , function(btn,txt){ reset12(); }); } } } }); this.up('window').hide(); } },{ text:'关闭', handler : function() { this.up('window').hide(); } } ], closeAction:'hide' }).show(); } var examinwin2 = function(){ Ext.create('Ext.window.Window', { title: '处理状态', height: 600, width: 500, modal:true, layout: 'border', items: [ piebar4, Ext.create('Ext.tab.Panel', { activeTab: 0, items: [ { title: '反馈与审核记录', items : [panel3] } ] }) ], buttons:[ { text:'关闭', handler : function() { this.up('window').hide(); } } ], closeAction:'hide' }).show(); } var examinwin3 = function(){ Ext.create('Ext.window.Window', { title: '处理状态', height: 600, width: 500, modal:true, layout: 'border', items: [ piebar5, Ext.create('Ext.tab.Panel', { activeTab: 0, items: [ { title: '反馈与审核记录', items : [panel4] } ] }) ], buttons:[ { text:'关闭', handler : function() { this.up('window').hide(); } } ], closeAction:'hide' }).show(); } examineStatus = function(status,id){ var zyzp_status = status; var spot_id = id; // alert(spot_id); if(zyzp_status==0){ if(document.getElementById('springHandleHtml5')!=undefined) document.getElementById('springHandleHtml5').innerHTML=""; if(document.getElementById('springHandlePanel1')!=undefined) document.getElementById('springHandlePanel1').innerHTML=""; var query = new Object(); query.V_LOGINNAME = $("#V_LOGINNAME").val(); query.V_PASSWORD = $("#V_PASSWORD").val(); query.id = spot_id; $.ajax({ type:'POST', url: baseUrl+"iot/xjeventprocessing/getNotAudited", data: { queryJson : Ext.JSON.encode(query) }, success: function(result){ var json = eval('(' + result + ')'); if(json.action=='getNotAudited'){ ConfirmStore = json.RESULT; examinwin(spot_id); examineStatusHtml(); if(document.getElementById('div26_id_springHandlePanel1')==undefined) springHandlePanel1Html(); } } }); }else if(zyzp_status==1){ if(document.getElementById('springHandleHtml3')!=undefined) document.getElementById('springHandleHtml3').innerHTML=""; if(document.getElementById('springHandlePanel2')!=undefined) document.getElementById('springHandlePanel2').innerHTML=""; var query = new Object(); query.V_LOGINNAME = $("#V_LOGINNAME").val(); query.V_PASSWORD = $("#V_PASSWORD").val(); query.id = spot_id; $.ajax({ type:'POST', url: baseUrl+"iot/xjeventprocessing/getNotAudited", data: { queryJson : Ext.JSON.encode(query) }, success: function(result){ var json = eval('(' + result + ')'); if(json.action=='getNotAudited'){ ConfirmStore = json.RESULT; examinwin1(spot_id); examineStatusHtml1(); if(document.getElementById('div26_id_springHandlePanel2')==undefined) springHandlePanel2Html(); } } }); }else if(zyzp_status==2){ if(document.getElementById('springHandlePanel3')!=undefined) document.getElementById('springHandlePanel3').innerHTML=""; if(document.getElementById('springHandleHtml4')!=undefined) document.getElementById('springHandleHtml4').innerHTML=""; var query = new Object(); query.V_LOGINNAME = $("#V_LOGINNAME").val(); query.V_PASSWORD = $("#V_PASSWORD").val(); query.event_processing_id = spot_id; $.ajax({ type:'POST', url: baseUrl+"iot/xjeventprocessing/getFeedback", data: { queryJson : Ext.JSON.encode(query) }, success: function(result){ var json = eval('(' + result + ')'); if(json.action=='getFeedback'){ ConfirmStore = json.RESULT; examinwin2(); examineStatusHtml2(); if(document.getElementById('div26_id_springHandlePanel3')==undefined) springHandlePanel3Html(); } } }); }else if(zyzp_status==3){ if(document.getElementById('springHandleHtml5')!=undefined) document.getElementById('springHandleHtml5').innerHTML=""; if(document.getElementById('springHandlePanel4')!=undefined) document.getElementById('springHandlePanel4').innerHTML=""; var query = new Object(); query.V_LOGINNAME = $("#V_LOGINNAME").val(); query.V_PASSWORD = $("#V_PASSWORD").val(); query.event_processing_id = spot_id; $.ajax({ type:'POST', url: baseUrl+"iot/xjeventprocessing/getFeedback", data: { queryJson : Ext.JSON.encode(query) }, success: function(result){ var json = eval('(' + result + ')'); if(json.action=='getFeedback'){ ConfirmStore = json.RESULT; examinwin3(); examineStatusHtml3(); if(document.getElementById('div26_id_springHandlePanel4')==undefined) springHandlePanel4Html(); } } }); } } var inspectorsCheckHtml2 =function(){ var maintenanceCheckHtml21 = document.getElementById('shangbao_xiangqing'); var title = document.createElement('div'); title.setAttribute('class','SpringHandleTitle'); title.innerHTML='上报人员'; maintenanceCheckHtml21.appendChild(title); var title1 = document.createElement('div'); title1.setAttribute('class','SpringHandleTitle1'); // title1.innerHTML='韩锐'; title1.innerHTML=ConfirmStore[0].name; maintenanceCheckHtml21.appendChild(title1); var title2 = document.createElement('div'); title2.setAttribute('class','SpringHandleTitle2'); title2.innerHTML='上报时间'; maintenanceCheckHtml21.appendChild(title2); var title3 = document.createElement('div'); title3.setAttribute('class','SpringHandleTitle3'); // title3.innerHTML='2019-03-04 13:48:07'; title3.innerHTML=ConfirmStore[0].sbsj; maintenanceCheckHtml21.appendChild(title3); var title4 = document.createElement('div'); title4.setAttribute('class','SpringHandleTitle4'); title4.innerHTML='现场照片'; maintenanceCheckHtml21.appendChild(title4); var title5 = document.createElement('img'); title5.setAttribute('class','SpringHandleTitle5'); title5.src='../../res/img/common/shangchaun.png'; title5.src=ConfirmStore[0].report_photos; maintenanceCheckHtml21.appendChild(title5); var title6 = document.createElement('div'); title6.setAttribute('class','SpringHandleTitle6'); title6.innerHTML='备注'; maintenanceCheckHtml21.appendChild(title6); var title7 = document.createElement('div'); title7.setAttribute('class','SpringHandleTitle7'); // title7.innerHTML='玻璃不知道被谁砸坏了,需要联系物业更换玻璃'; title7.innerHTML=ConfirmStore[0].dwsb_remarks; maintenanceCheckHtml21.appendChild(title7); } modifywin = function(id){ Ext.create('Ext.window.Window', { title: '上报详情', height: 300, width: 500, modal:true, layout:'fit', closeAction: 'destroy', html:'
' }).show(); var query = new Object(); query.V_LOGINNAME = $("#V_LOGINNAME").val(); query.V_PASSWORD = $("#V_PASSWORD").val(); query.id = id; $.ajax({ type:'POST', url: baseUrl+'iot/xjeventprocessing/getReportDetailsList', data: { queryJson : Ext.JSON.encode(query) }, success: function(result){ var json = eval('(' + result + ')'); // if(json.action=='getVProjectNameList'){ ConfirmStore = json.RESULT; inspectorsCheckHtml2(); // } } }); } var piedarHtml2 = function() { var date=new Date; var dates=Ext.util.Format.date(date, 'Y-m-d'); var preDate = new Date(date.getTime() - 24*60*60*1000); var dates2=Ext.util.Format.date(preDate, 'Y-m-d'); var maintenanceCheckHtml = document.getElementById('inspectorsCheckHtml'); // var title = document.createElement('div'); // title.setAttribute('class','MaintenancePersonTitle'); // title.innerHTML='巡检记录'; // maintenanceCheckHtml.appendChild(title); var title2 = document.createElement('div'); title2.setAttribute('class','springHandle_title2_div_font'); title2.innerHTML='任务名称'; maintenanceCheckHtml.appendChild(title2); var input = document.createElement('input'); input.setAttribute('class','springHandle_input_class'); input.setAttribute('id','springHandle_title2_input'); input.setAttribute('type','text'); input.setAttribute('value',''); maintenanceCheckHtml.appendChild(input); var title3 = document.createElement('div'); title3.setAttribute('class','springHandle_title3_div_font'); title3.innerHTML='责任人'; maintenanceCheckHtml.appendChild(title3); var select = document.createElement('select'); select.setAttribute('class','springHandle_input1_class'); select.setAttribute('id','springHandle_title3_input1'); maintenanceCheckHtml.appendChild(select); var option2 = document.createElement('option'); option2.innerHTML='所有人'; option2.setAttribute('value','0'); select.appendChild(option2); for(var i=0;i