1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028 |
- /**
- * 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 = '<img src="'+baseUrl+'res/img/common/check.gif"/>'
- var unchkIcon = '<img src="'+baseUrl+'res/img/common/uncheck.gif"/>'
- // 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 = '0';
- document.getElementById('springHandle_title3_input2').value = '';
- document.getElementById('springHandle_title3_input3').value = '';
- document.getElementById('springHandle_title3_input4').value = '0';
- document.getElementById('springHandle_title3_input5').value = '0';
- $("#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 '<b>'+ this.series.name +'</b>: '+ Highcharts.numberFormat(this.percentage, 1) +'%'
- }
- },
- plotOptions: {
- pie: {
- allowPointSelect: true,
- cursor: 'pointer',
- dataLabels: {
- enabled: true,
- format: '<b>{point.name}</b>: {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}: <b>{point.percentage:.1f}%</b>'
- },
- plotOptions: {
- pie: {
- allowPointSelect: true,
- cursor: 'pointer',
- dataLabels: {
- enabled: true,
- format: '<b>{point.name}</b>: {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}: <b>{point.percentage:.1f}%</b>'
- },
- plotOptions: {
- pie: {
- allowPointSelect: true,
- cursor: 'pointer',
- dataLabels: {
- enabled: true,
- format: '<b>{point.name}</b>: {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;i<ConfirmStore15.length;i++){
- 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.innerHTML=ConfirmStore15[i].wx_name;
- td_details_num.style.fontSize='14px';
- td_details_num.style.borderLeft ='1px solid #BEBEBE';
- td_details_num.style.borderTop ='1px solid #BEBEBE';
- 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[i].wx_laiyuan;
- td_details_name.style.fontSize='14px';
- td_details_name.style.borderLeft ='1px solid #BEBEBE';
- td_details_name.style.borderTop ='1px solid #BEBEBE';
- 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[i].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[i].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);
- }
- }
- }
- // var patrolh42 = document.createElement('h4');
- // patrolh42.style.textAlign='left';
- // patrolh42.style.fontSize='14px';
- // patrolh42.style.fontWeight='bold';
- // patrolh42.innerHTML='1.6点位扫码完成度';
- // div2.appendChild(patrolh42);
- // var sta3 = document.createElement('table');
- // sta3.style.marginTop='10px';
- // sta3.width='100%';
- // sta3.style.marginBottom='20px';
- // sta3.style.borderRight ='1px solid #BEBEBE';
- // sta3.style.borderBottom ='1px solid #BEBEBE';
- // div2.appendChild(sta3);
- // var tr15 = document.createElement('tr');
- // sta3.appendChild(tr15);
- // var thlast = document.createElement('th');
- // thlast.width='20%';
- // thlast.style.textAlign='center';
- // thlast.innerHTML='计划名称';
- // thlast.style.fontSize='14px';
- // thlast.style.borderLeft ='1px solid #BEBEBE';
- // thlast.style.borderTop ='1px solid #BEBEBE';
- // tr15.appendChild(thlast);
- // var th9 = document.createElement('th');
- // th9.width='20%';
- // th9.style.textAlign='center';
- // th9.innerHTML='点位名称';
- // th9.style.fontSize='14px';
- // th9.style.borderLeft ='1px solid #BEBEBE';
- // th9.style.borderTop ='1px solid #BEBEBE';
- // tr15.appendChild(th9);
- // var th10 = document.createElement('th');
- // th10.width='20%';
- // th10.style.textAlign='center';
- // th10.innerHTML='负责班组';
- // th10.style.fontSize='14px';
- // th10.style.borderLeft ='1px solid #BEBEBE';
- // th10.style.borderTop ='1px solid #BEBEBE';
- // tr15.appendChild(th10);
- // var th11 = document.createElement('th');
- // th11.width='10%';
- // th11.style.textAlign='center';
- // th11.innerHTML='负责人';
- // th11.style.fontSize='14px';
- // th11.style.borderLeft ='1px solid #BEBEBE';
- // th11.style.borderTop ='1px solid #BEBEBE';
- // tr15.appendChild(th11);
- // var th12 = document.createElement('th');
- // th12.width='10%';
- // th12.style.textAlign='center';
- // th12.innerHTML='应扫码次数';
- // th12.style.fontSize='14px';
- // th12.style.borderLeft ='1px solid #BEBEBE';
- // th12.style.borderTop ='1px solid #BEBEBE';
- // tr15.appendChild(th12);
- // var th13 = document.createElement('th');
- // th13.width='10%';
- // th13.style.textAlign='center';
- // th13.innerHTML='已扫码次数';
- // th13.style.fontSize='14px';
- // th13.style.borderLeft ='1px solid #BEBEBE';
- // th13.style.borderTop ='1px solid #BEBEBE';
- // tr15.appendChild(th13);
- // var th14 = document.createElement('th');
- // th14.width='10%';
- // th14.style.textAlign='center';
- // th14.innerHTML='完成度';
- // th14.style.fontSize='14px';
- // th14.style.borderLeft ='1px solid #BEBEBE';
- // th14.style.borderTop ='1px solid #BEBEBE';
- // tr15.appendChild(th14);
- // if(ConfirmStore16.length>0){
- // 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;i<ConfirmStore16.length;i++){
- // 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[i].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[i].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[i].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[i].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[i].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[i].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[i].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);
- // }
- // var tr_dianwei_wanchengdu_num1 = document.createElement('tr');
- // sta3.appendChild(tr_dianwei_wanchengdu_num1);
- // var td_dianwei_wanchengdu_num1 = document.createElement('td');
- //// td_details_device_num1.width='30%';
- // td_dianwei_wanchengdu_num1.style.textAlign='center';
- // td_dianwei_wanchengdu_num1.colSpan='4';
- // td_dianwei_wanchengdu_num1.innerHTML='合计';
- // td_dianwei_wanchengdu_num1.style.fontSize='14px';
- // td_dianwei_wanchengdu_num1.style.borderLeft ='1px solid #BEBEBE';
- // td_dianwei_wanchengdu_num1.style.borderTop ='1px solid #BEBEBE';
- // tr_dianwei_wanchengdu_num1.appendChild(td_dianwei_wanchengdu_num1);
- // var td_dianwei_wanchengdu_num2 = document.createElement('td');
- // td_dianwei_wanchengdu_num2.width='10%';
- // td_dianwei_wanchengdu_num2.style.textAlign='center';
- // td_dianwei_wanchengdu_num2.innerHTML=heji3;
- // td_dianwei_wanchengdu_num2.style.fontSize='14px';
- // td_dianwei_wanchengdu_num2.style.borderLeft ='1px solid #BEBEBE';
- // td_dianwei_wanchengdu_num2.style.borderTop ='1px solid #BEBEBE';
- // tr_dianwei_wanchengdu_num1.appendChild(td_dianwei_wanchengdu_num2);
- // var td_dianwei_wanchengdu_num3 = document.createElement('td');
- // td_dianwei_wanchengdu_num3.width='10%';
- // td_dianwei_wanchengdu_num3.style.textAlign='center';
- // td_dianwei_wanchengdu_num3.innerHTML=heji4;
- // td_dianwei_wanchengdu_num3.style.fontSize='14px';
- // td_dianwei_wanchengdu_num3.style.borderLeft ='1px solid #BEBEBE';
- // td_dianwei_wanchengdu_num3.style.borderTop ='1px solid #BEBEBE';
- // tr_dianwei_wanchengdu_num1.appendChild(td_dianwei_wanchengdu_num3);
- // var td_dianwei_wanchengdu_num4 = document.createElement('td');
- // td_dianwei_wanchengdu_num4.width='10%';
- // td_dianwei_wanchengdu_num4.style.textAlign='center';
- // td_dianwei_wanchengdu_num4.innerHTML=baifenbiresult16+'%';
- // td_dianwei_wanchengdu_num4.style.fontSize='14px';
- // td_dianwei_wanchengdu_num4.style.borderLeft ='1px solid #BEBEBE';
- // td_dianwei_wanchengdu_num4.style.borderTop ='1px solid #BEBEBE';
- // tr_dianwei_wanchengdu_num1.appendChild(td_dianwei_wanchengdu_num4);
- // }
- // }
- var patrolh43 = document.createElement('h4');
- patrolh43.style.textAlign='left';
- patrolh43.style.fontSize='14px';
- patrolh43.style.fontWeight='bold';
- patrolh43.innerHTML='1.5报修任务完成情况';
- div2.appendChild(patrolh43);
- var sta4 = document.createElement('table');
- sta4.style.marginTop='10px';
- sta4.width='100%';
- sta4.style.marginBottom='20px';
- sta4.style.borderRight ='1px solid #BEBEBE';
- sta4.style.borderBottom ='1px solid #BEBEBE';
- div2.appendChild(sta4);
- var tr17 = document.createElement('tr');
- sta4.appendChild(tr17);
- var th15 = document.createElement('th');
- th15.width='40%';
- th15.style.textAlign='center';
- th15.innerHTML='负责人';
- th15.style.fontSize='14px';
- th15.style.borderLeft ='1px solid #BEBEBE';
- th15.style.borderTop ='1px solid #BEBEBE';
- tr17.appendChild(th15);
- var th16 = document.createElement('th');
- th16.width='20%';
- th16.style.textAlign='center';
- th16.innerHTML='应完成任务个数';
- th16.style.fontSize='14px';
- th16.style.borderLeft ='1px solid #BEBEBE';
- th16.style.borderTop ='1px solid #BEBEBE';
- tr17.appendChild(th16);
- var th17 = document.createElement('th');
- th17.width='20%';
- th17.style.textAlign='center';
- th17.innerHTML='已完成任务个数';
- th17.style.fontSize='14px';
- th17.style.borderLeft ='1px solid #BEBEBE';
- th17.style.borderTop ='1px solid #BEBEBE';
- tr17.appendChild(th17);
- var th18 = document.createElement('th');
- th18.width='20%';
- th18.style.textAlign='center';
- th18.innerHTML='完成度';
- th18.style.fontSize='14px';
- th18.style.borderLeft ='1px solid #BEBEBE';
- th18.style.borderTop ='1px solid #BEBEBE';
- tr17.appendChild(th18);
- if(ConfirmStore17.length>0){
- 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<ConfirmStore17.length;i++){
- 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[i].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[i].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[i].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[i].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);
- }
- var tr19 = document.createElement('tr');
- sta4.appendChild(tr19);
- var td_dianwei_name17 = document.createElement('td');
- td_dianwei_name17.width='40%';
- td_dianwei_name17.style.textAlign='center';
- td_dianwei_name17.style.borderLeft ='1px solid #BEBEBE';
- td_dianwei_name17.style.borderTop ='1px solid #BEBEBE';
- td_dianwei_name17.innerHTML='合计';
- td_dianwei_name17.style.fontSize='14px';
- tr19.appendChild(td_dianwei_name17);
- var td_saoma_num17= document.createElement('td');
- td_saoma_num17.width='20%';
- td_saoma_num17.style.textAlign='center';
- td_saoma_num17.innerHTML= heji1;
- td_saoma_num17.style.borderLeft ='1px solid #BEBEBE';
- td_saoma_num17.style.borderTop ='1px solid #BEBEBE';
- td_saoma_num17.style.fontSize='14px';
- tr19.appendChild(td_saoma_num17);
- var td_baoxiucishu17= document.createElement('td');
- td_baoxiucishu17.width='20%';
- td_baoxiucishu17.style.textAlign='center';
- td_baoxiucishu17.innerHTML= heji2;
- td_baoxiucishu17.style.borderLeft ='1px solid #BEBEBE';
- td_baoxiucishu17.style.borderTop ='1px solid #BEBEBE';
- td_baoxiucishu17.style.fontSize='14px';
- tr19.appendChild(td_baoxiucishu17);
- var td_baoxiupinlv17 = document.createElement('td');
- td_baoxiupinlv17.width='20%';
- td_baoxiupinlv17.style.textAlign='center';
- td_baoxiupinlv17.innerHTML=baifenbiresult15+'%';
- td_baoxiupinlv17.style.fontSize='14px';
- td_baoxiupinlv17.style.borderLeft ='1px solid #BEBEBE';
- td_baoxiupinlv17.style.borderTop ='1px solid #BEBEBE';
- tr19.appendChild(td_baoxiupinlv17);
- }
- }
-
- }
-
- var print_detail = function (){
- var div1_label1 = document.getElementById('woker_talkbx').innerHTML;
- // var div2_label1 = document.getElementById('patrolAnalysis_div2_label1').innerHTML;
- var hkey_key;
- var hkey_root = 'HKEY_CURRENT_USER';
- var hkey_path = '\\Software\\Micorsoft\\Internet Explorer\\PageSetup\\';
- var print_win = window.open('打印窗口','_blank');
- var div = document.createElement('div');
- div.setAttribute('width', '100%');
- div.setAttribute('height', '100%');
- var div_print = document.createElement('div');
- div_print.setAttribute('style', 'width:595px;height:842px;padding:20px;margin:0px auto 0px auto');
- div_print.innerHTML=div1_label1;
- div.appendChild(div_print);
- // var div_print1 = document.createElement('div');
- // div_print1.setAttribute('style', 'width:595px;height:842px;padding:20px;margin:0px auto 0px auto');
- // div_print1.innerHTML=div2_label1;
- // div.appendChild(div_print1);
-
- print_win.document.write(div.innerHTML);
- print_win.document.close();
- try{
- var RegWsh = new ActiveXObject('WScript.Shell');
- hkey_key='header';
- RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,'');
- hkey_key='footer';
- RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,'');
- }catch(e){}
- print_win.print();
- print_win.close();
- }
-
- var show_detail_data = function(start_data,end_data,project_date){
- var start_data = start_data;
- var end_data = end_data;
- var build_code = build_code;
- var project_date = project_date;
- Ext.create('Ext.window.Window', {
- id:'project_data_winbaoxiu',
- title: '工作分析',
- height: maxHeight-50,
- width: 650,
- maximizable: true,
- layout: 'fit',
- modal:true,
- buttons:[
- {
- text:'导出',
- handler : function () {
- print_detail();
- }
- },{
- text:'关闭',
- handler : function() {
- Ext.getCmp('project_data_winbaoxiu').destroy();
- }
- }
- ],
- closeAction:'destroy',
- html:'<div style="overflow-y:auto;height:580px;width:640px;"><div id="woker_talkbx"></div></div>'
- }).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',
- maxValue:new Date(),
- 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',
- maxValue:new Date(),
- 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:'<div id="inspectorsCheck_look_device"></div>'
- }).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;i<ConfirmStore1.length;i++){
- var option10 = document.createElement('option');
- option10.innerHTML=ConfirmStore1[i].name;
- option10.setAttribute('value',ConfirmStore1[i].zrrid);
- select1.appendChild(option10);
- }
- }
-
- editMaintenancePresentation = function(status,id){
- var zyzp_status = status;
- var spot_id = id;
- if(zyzp_status==0){
- Ext.create('Ext.window.Window', {
- title: '人员指派',
- id:'springHandle_peison_win',
- height: 300,
- width: 500,
- modal:true,
- layout: 'fit',
- buttons:[
- {
- text:'确定',
- 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 lx = document.getElementById('springHandle_select_id').value;
- var data3a = document.getElementById('springHandle_input_id').value;
- var data3b = document.getElementById('springHandle_input1_id').value;
- var bz = document.getElementById('springHandle_textarea_id').value;
- var zrr = document.getElementById('springHandle_select1_id').value;
- var query = new Object();
- if(lx.length>0){
- 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:'<div style="overflow-y:auto;height:240px;width:500px;background:#002c59;"><div id="springHandle_look_Presentation"></div></div>'
- }).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:'<div style="overflow-y:auto;height:270px;width:500px;background:#002c59;"><div id="springHandle_look_Presentation"></div></div>'
- }).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<ConfirmStore.length;i++){
- var divpanel3 = document.createElement('div');
- divpanel3.setAttribute('class','SpringHandleHtml3DivPanel3');
- springHandlePanel3.appendChild(divpanel3);
- var div26 = document.createElement('div');
- div26.setAttribute('class','SpringHandleHtml2Div26');
- div26.innerHTML='结果照片';
- divpanel3.appendChild(div26);
- var springHandlePanel1title = document.createElement('img');
- springHandlePanel1title.setAttribute('class','SpringHandlePanel1Title');
- springHandlePanel1title.src=ConfirmStore[i].picture_path;
- divpanel3.appendChild(springHandlePanel1title);
- var div27 = document.createElement('div');
- div27.setAttribute('class','SpringHandleHtml2Div27');
- div27.innerHTML='结果备注';
- divpanel3.appendChild(div27);
- var div28 = document.createElement('div');
- div28.setAttribute('class','SpringHandleHtml2Div28');
- div28.innerHTML=ConfirmStore[i].jg_remarks;
- divpanel3.appendChild(div28);
- var div29 = document.createElement('div');
- div29.setAttribute('class','SpringHandleHtml2Div29');
- div29.innerHTML='处理时间';
- divpanel3.appendChild(div29);
- var div30 = document.createElement('div');
- div30.setAttribute('class','SpringHandleHtml2Div30');
- div30.innerHTML=ConfirmStore[i].cl_time;
- divpanel3.appendChild(div30);
- var div31 = document.createElement('div');
- div31.setAttribute('class','SpringHandleHtml2Div31');
- div31.innerHTML='审核结果';
- divpanel3.appendChild(div31);
- var div32 = document.createElement('div');
- div32.setAttribute('class','SpringHandleHtml2Div32');
- div32.innerHTML=ConfirmStore[i].cl_type_name;
- divpanel3.appendChild(div32);
- var div33 = document.createElement('div');
- div33.setAttribute('class','SpringHandleHtml2Div33');
- div33.innerHTML='审核时间';
- divpanel3.appendChild(div33);
- var div34 = document.createElement('div');
- div34.setAttribute('class','SpringHandleHtml2Div34');
- div34.innerHTML=ConfirmStore[i].sh_time;
- divpanel3.appendChild(div34);
- var div35 = document.createElement('div');
- div35.setAttribute('class','SpringHandleHtml3Div35');
- div35.innerHTML='备注';
- divpanel3.appendChild(div35);
- var div36 = document.createElement('div');
- div36.setAttribute('class','SpringHandleHtml3Div36');
- div36.innerHTML=ConfirmStore[i].sh_remarks;
- divpanel3.appendChild(div36);
- }
-
- }
-
- var springHandlePanel4Html = function(){
- var springHandlePanel3 = document.getElementById('springHandlePanel4');
- var divhiddle = document.createElement('div');
- divhiddle.id='div26_id_springHandlePanel4';
- divhiddle.setAttribute('class','SpringHandleHtml3DivHiddle');
- springHandlePanel3.appendChild(divhiddle);
- for(var i=0;i<ConfirmStore.length;i++){
- var divpanel3 = document.createElement('div');
- divpanel3.setAttribute('class','SpringHandleHtml3DivPanel3');
- springHandlePanel3.appendChild(divpanel3);
- var div26 = document.createElement('div');
- div26.setAttribute('class','SpringHandleHtml2Div26');
- div26.innerHTML='结果照片';
- divpanel3.appendChild(div26);
- var springHandlePanel1title = document.createElement('img');
- springHandlePanel1title.setAttribute('class','SpringHandlePanel1Title');
- springHandlePanel1title.src=ConfirmStore[i].picture_path;
- divpanel3.appendChild(springHandlePanel1title);
- var div27 = document.createElement('div');
- div27.setAttribute('class','SpringHandleHtml2Div27');
- div27.innerHTML='结果备注';
- divpanel3.appendChild(div27);
- var div28 = document.createElement('div');
- div28.setAttribute('class','SpringHandleHtml2Div28');
- div28.innerHTML=ConfirmStore[i].jg_remarks;
- divpanel3.appendChild(div28);
- var div29 = document.createElement('div');
- div29.setAttribute('class','SpringHandleHtml2Div29');
- div29.innerHTML='处理时间';
- divpanel3.appendChild(div29);
- var div30 = document.createElement('div');
- div30.setAttribute('class','SpringHandleHtml2Div30');
- div30.innerHTML=ConfirmStore[i].cl_time;
- divpanel3.appendChild(div30);
- var div31 = document.createElement('div');
- div31.setAttribute('class','SpringHandleHtml2Div31');
- div31.innerHTML='审核结果';
- divpanel3.appendChild(div31);
- var div32 = document.createElement('div');
- div32.setAttribute('class','SpringHandleHtml2Div32');
- div32.innerHTML=ConfirmStore[i].cl_type_name;
- divpanel3.appendChild(div32);
- var div33 = document.createElement('div');
- div33.setAttribute('class','SpringHandleHtml2Div33');
- div33.innerHTML='审核时间';
- divpanel3.appendChild(div33);
- var div34 = document.createElement('div');
- div34.setAttribute('class','SpringHandleHtml2Div34');
- div34.innerHTML=ConfirmStore[i].sh_time;
- divpanel3.appendChild(div34);
- var div35 = document.createElement('div');
- div35.setAttribute('class','SpringHandleHtml3Div35');
- div35.innerHTML='备注';
- divpanel3.appendChild(div35);
- var div36 = document.createElement('div');
- div36.setAttribute('class','SpringHandleHtml3Div36');
- div36.innerHTML=ConfirmStore[i].sh_remarks;
- divpanel3.appendChild(div36);
- }
-
- }
-
- var springHandlePanel3Ajax = function(id){
- if(document.getElementById('springHandlePanel3')!=undefined)
- document.getElementById('springHandlePanel3').innerHTML="";
- var query = new Object();
- // query.V_LOGINNAME = $("#V_LOGINNAME").val();
- // query.V_PASSWORD = $("#V_PASSWORD").val();
- query.event_processing_id = 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;
- springHandlePanel3Html();
- }
- }
- });
- }
-
- var piebar2 = Ext.create('Ext.panel.Panel',{
- id:'springHandleHtml2',
- width:'100%',
- height:150,
- region:'north',
- layout:'form',
- defaults:{
- border:false
- }
- });
-
- var piebar3 = Ext.create('Ext.panel.Panel',{
- id:'springHandleHtml3',
- width:'100%',
- height:150,
- region:'north',
- layout:'form',
- defaults:{
- border:false
- }
- });
- var piebar4 = Ext.create('Ext.panel.Panel',{
- id:'springHandleHtml4',
- width:'100%',
- height:150,
- region:'north',
- layout:'form',
- defaults:{
- border:false
- }
- });
- var piebar5 = Ext.create('Ext.panel.Panel',{
- id:'springHandleHtml5',
- width:'100%',
- height:150,
- region:'north',
- layout:'form',
- defaults:{
- border:false
- }
- });
-
- var panel1 = Ext.create('Ext.panel.Panel',{
- id:'springHandlePanel1',
- width:490,
- height:400,
- layout:'form',
- defaults:{
- border:false
- }
- });
-
- var panel2 = Ext.create('Ext.panel.Panel',{
- id:'springHandlePanel2',
- width:490,
- height:400,
- layout:'form',
- defaults:{
- border:false
- }
- });
- var panel3 = Ext.create('Ext.panel.Panel',{
- // id:'springHandlePanel3',
- width:490,
- height:360,
- layout:'fit',
- bodyStyle :'overflow-x:hidden;overflow-y:auto',
- defaults:{
- border:false
- },
- html:'<div style="height:360px;width:490px;"><div id="springHandlePanel3"></div></div>'
- });
-
- 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:'<div style="height:360px;width:490px;"><div id="springHandlePanel4"></div></div>'
- });
-
- 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:'<div style="overflow-y:auto;height:270px;width:500px;background:#002c59;"><div id="shangbao_xiangqing"></div></div>'
- }).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<ConfirmStore1.length;i++){
- var option3 = document.createElement('option');
- option3.innerHTML=ConfirmStore1[i].name;
- option3.setAttribute('value',ConfirmStore1[i].zrrid);
- select.appendChild(option3);
- }
- var title4 = document.createElement('div');
- title4.setAttribute('class','springHandle_title1_div');
- title4.setAttribute('id','springHandle_title1_div');
- title4.setAttribute('onmouseover',"mouseon(this)");
- title4.setAttribute('onmouseout',"mouseoff(this)");
- title4.setAttribute('onclick',"menu_click(this)");
- maintenanceCheckHtml.appendChild(title4);
- var title5 = document.createElement('div');
- title5.setAttribute('class','springHandle_title2_div');
- title5.setAttribute('id','springHandle_title2_div');
- title5.setAttribute('onmouseover',"mouseon(this)");
- title5.setAttribute('onmouseout',"mouseoff(this)");
- title5.setAttribute('onclick',"menu_click(this)");
- maintenanceCheckHtml.appendChild(title5);
- var title6 = document.createElement('div');
- title6.setAttribute('class','springHandle_title3_div');
- title6.setAttribute('id','springHandle_title3_div');
- title6.setAttribute('onmouseover',"mouseon(this)");
- title6.setAttribute('onmouseout',"mouseoff(this)");
- title6.setAttribute('onclick',"menu_click(this)");
- maintenanceCheckHtml.appendChild(title6);
- var title61 = document.createElement('div');
- title61.setAttribute('class','springHandle_title4_div');
- title61.setAttribute('id','springHandle_title4_div');
- title61.setAttribute('onmouseover',"mouseon(this)");
- title61.setAttribute('onmouseout',"mouseoff(this)");
- title61.setAttribute('onclick',"menu_click(this)");
- maintenanceCheckHtml.appendChild(title61);
- var input2 = document.createElement('input');
- input2.setAttribute('class','springHandle_input2_class');
- input2.setAttribute('id','springHandle_title3_input2');
- input2.setAttribute('type','text');
- input2.setAttribute('readonly','true');
- input2.setAttribute('value',dates);
- maintenanceCheckHtml.appendChild(input2);
- var title8 = document.createElement('div');
- title8.setAttribute('class','springHandle_title8_div');
- title8.innerHTML='~';
- maintenanceCheckHtml.appendChild(title8);
- var input3 = document.createElement('input');
- input3.setAttribute('class','springHandle_input3_class');
- input3.setAttribute('id','springHandle_title3_input3');
- input3.setAttribute('type','text');
- input3.setAttribute('readonly','true');
- input3.setAttribute('value',dates2);
- maintenanceCheckHtml.appendChild(input3);
- //设置开始时间
- var startDate = laydate.render({
- elem: '#springHandle_title3_input3',
- done: function (value, date) {
- if (value !== '') {
- endDate.config.min.year = date.year;
- endDate.config.min.month = date.month - 1;
- endDate.config.min.date = date.date;
- } else {
- endDate.config.min.year = '';
- endDate.config.min.month = '';
- endDate.config.min.date = '';
- }
- }
- });
- //设置结束时间
- var endDate = laydate.render({
- elem: '#springHandle_title3_input2',
- done: function (value, date) {
- if (value !== '') {
- startDate.config.max.year = date.year;
- startDate.config.max.month = date.month - 1;
- startDate.config.max.date = date.date;
- } else {
- startDate.config.max.year = '';
- startDate.config.max.month = '';
- startDate.config.max.date = '';
- }
- }
- });
- var title7 = document.createElement('div');
- title7.setAttribute('class','springHandle_title7_div');
- title7.innerHTML='完成时间';
- maintenanceCheckHtml.appendChild(title7);
- var select1 = document.createElement('select');
- select1.setAttribute('class','springHandle_input4_class');
- select1.setAttribute('id','springHandle_title3_input4');
- maintenanceCheckHtml.appendChild(select1);
- var option0 = document.createElement('option');
- option0.innerHTML='所有';
- option0.setAttribute('value','0');
- select1.appendChild(option0);
- var option1 = document.createElement('option');
- option1.innerHTML='未处理';
- option1.setAttribute('value','1');
- select1.appendChild(option1);
- var option2 = document.createElement('option');
- option2.innerHTML='未审核';
- option2.setAttribute('value','2');
- select1.appendChild(option2);
- var option3 = document.createElement('option');
- option3.innerHTML='审核未通过';
- option3.setAttribute('value','3');
- select1.appendChild(option3);
- var option4 = document.createElement('option');
- option4.innerHTML='已完成';
- option4.setAttribute('value','4');
- select1.appendChild(option4);
- var option5 = document.createElement('option');
- option5.innerHTML='超时完成';
- option5.setAttribute('value','5');
- select1.appendChild(option5);
- var title9 = document.createElement('div');
- title9.setAttribute('class','springHandle_title9_div');
- title9.innerHTML='处理状态';
- maintenanceCheckHtml.appendChild(title9);
- var title28 = document.createElement('div');
- title28.setAttribute('class','springHandle_title28_div');
- title28.innerHTML='报修类型';
- maintenanceCheckHtml.appendChild(title28);
- var select2 = document.createElement('select');
- select2.setAttribute('class','springHandle_input5_class');
- select2.setAttribute('id','springHandle_title3_input5');
- maintenanceCheckHtml.appendChild(select2);
- var option6 = document.createElement('option');
- option6.innerHTML='所有';
- option6.setAttribute('value','0');
- select2.appendChild(option6);
- var option7 = document.createElement('option');
- option7.innerHTML='故障';
- option7.setAttribute('value','1');
- select2.appendChild(option7);
- var option8 = document.createElement('option');
- option8.innerHTML='隐患';
- option8.setAttribute('value','2');
- select2.appendChild(option8);
- var option9 = document.createElement('option');
- option9.innerHTML='其他';
- option9.setAttribute('value','3');
- select2.appendChild(option9);
- var title10 = document.createElement('div');
- title10.setAttribute('class','springHandle_title20_div');
- maintenanceCheckHtml.appendChild(title10);
- var title11 = document.createElement('div');
- title11.setAttribute('class','springHandle_title11_div');
- maintenanceCheckHtml.appendChild(title11);
- var title12 = document.createElement('div');
- title12.setAttribute('class','springHandle_title12_div');
- maintenanceCheckHtml.appendChild(title12);
- var title13 = document.createElement('div');
- title13.setAttribute('class','springHandle_title13_div');
- maintenanceCheckHtml.appendChild(title13);
- var title14 = document.createElement('div');
- title14.setAttribute('class','springHandle_title14_div');
- title14.innerHTML=ConfirmStore[0].jrjj;
- maintenanceCheckHtml.appendChild(title14);
- var title15 = document.createElement('div');
- title15.setAttribute('class','springHandle_title15_div');
- title15.innerHTML=ConfirmStore[0].cssj;
- maintenanceCheckHtml.appendChild(title15);
- var title16 = document.createElement('div');
- title16.setAttribute('class','springHandle_title16_div');
- title16.innerHTML=ConfirmStore[0].jrsj;
- maintenanceCheckHtml.appendChild(title16);
- var title17 = document.createElement('div');
- title17.setAttribute('class','springHandle_title17_div');
- title17.innerHTML=ConfirmStore[0].zrs;
- maintenanceCheckHtml.appendChild(title17);
- }
-
- var piedarHtml = function() {
- var query = new Object();
- query.V_LOGINNAME = $("#V_LOGINNAME").val();
-
- $.ajax({
- type:'POST',
- url: baseUrl+"iot/xjeventprocessing/getList",
- data: {
- queryJson : Ext.JSON.encode(query)
- },
- success: function(result){
- var json = eval('(' + result + ')');
- if(json.action=='getEventProcessingList'){
- ConfirmStore = json.RESULT2;
- ConfirmStore1 = json.RESULT1;
- piedarHtml2();
-
- }
- }
- });
-
- }
-
- var SpringHandleListPanel=Ext.create('Ext.grid.Panel', {
- header :{
- height:0,
- border:'0px solid #000000'
- },
- id: 'SpringHandleListPanel',
- store: myStore,
- // selModel: sm,
- columns: [
- { header: 'ID', dataIndex: 'id',hidden:true, menuDisabled:true },
- { header: '序号', dataIndex: 'xh', width:77, menuDisabled:true },
- { header: '报修任务名称', dataIndex: 'wx_name', width:270,align:'center', menuDisabled:true },
- { header: '报修类型', dataIndex: 'sj_type_name', width:100,align:'center', menuDisabled:true },
- { header: '应完成时间', dataIndex: 'y_complete_time', width:250,align:'center', menuDisabled:true },
- { header: '实际完成时间', dataIndex: 'cl_time', width:240, align:'center', menuDisabled:true },
- {
- text:'上报详情',
- xtype : 'actioncolumn',
- width:140,
- sortable:false,
- align:'center',
- menuDisabled:true,
- items:[{
- icon: '../../res/img/common/chakanbtn.png',
- tooltip: '上报详情',
- handler: function(grid, rowIndex, colIndex) {
- var rec = grid.getStore().getAt(rowIndex);
- $("#checkRecord_id").val(rec.get("id"));
- modifywin(rec.get("id"));
- }
- }]
- },
- { header: '当前状态', dataIndex: 'dqzt',width:240, align:'center', menuDisabled:true },
- { header: '相关责任人', dataIndex: 'person_liable_name', width:121, align:'center', menuDisabled:true },
- { header: '联系电话', dataIndex: 'phone', width:140, align:'center', menuDisabled:true },
- { header: '处理状态', dataIndex: 'cl_type_name', width:140, align:'center', menuDisabled:true },
- ],
- columnLines: true,
- height: maxHeight,
- width: '100%',
- bbar: new Ext.PagingToolbar({
- store: myStore,
- id:'SpringHandleListPageToolbar',
- displayInfo: true,
- pageSize: countPerPage,
- prependButtons: true,
- displayMsg : '显示第 {0}条到 {1}条记录,总共 {2}条',
- emptyMsg : "没有记录",
- firstText: '第一页',
- prevText: '前一页',
- nextText: '后一页',
- lastText: '最后一页',
- refreshText: '刷新',
- }),
- border:false,
- iconCls: 'icon-grid'
- });
- var piebar = Ext.create('Ext.panel.Panel',{
- id:'inspectorsCheckHtml',
- width:'100%',
- height:250,
- region:'north',
- layout:'form',
- defaults:{
- border:false
- }
- });
- new Ext.create('Ext.panel.Panel',{
- width:'100%',
- id: 'InspectorsCheckPiebar',
- layout:'border',
- items:[
- piebar,SpringHandleListPanel
- ],
- renderTo: Ext.getBody()
-
- });
- piedarHtml();
- myStore.reload();
- maxHeight = document.documentElement.clientHeight;
- Ext.getCmp('InspectorsCheckPiebar').setHeight(maxHeight);
-
- });
|