12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026 |
- /**
- * 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 = '';
- document.getElementById('springHandle_title3_input2').value = '';
- document.getElementById('springHandle_title3_input3').value = '';
- document.getElementById('springHandle_title3_input4').value = '';
- document.getElementById('springHandle_title3_input5').value = '';
- $("#wx_name").val('');
- $("#person_liable").val('');
- $("#cl_time_j").val('');
- $("#cl_time_k").val('');
- $("#cl_type").val('');
- $("#sj_type").val('');
- show_page();
- }
-
- var highcharts1 = function () {
- var baifenbiywc = parseFloat(baifenbiywcbxrw);
- var baifenbicswc = parseFloat(baifenbicswcbxrw);
- var baifenbishwtgwc = parseFloat(baifenbishwtgwcbxrw);
- var baifenbiwcl = parseFloat(baifenbiwclbxrw);
- var baifenbiwsh = parseFloat(baifenbiwshbxrw);
-
- $('#container4').highcharts({
- chart: {
- plotBackgroundColor: null,
- plotBorderWidth: null,
- plotShadow: false,
- type: 'pie'
- },
- credits: {
- enabled: false
- },
- exporting: { enabled:false },
- title: {
- text: '报修任务总数:'+xjbxcsnum
- },
- tooltip: {
- formatter: function() {
- return '<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',
- minText:"当前日期选择应大于2017-07-07",
- format:"Y-m-d",
- value:Ext.util.Format.date(Ext.Date.add(new Date(),Ext.Date.MONTH,-1),"Y-m-01"),
- columnWidth:0.5,
- id: 'start_date',
- name:"start_date",
- editable:false,//只读约束
- allowBlank:false,
- blankText:"不能为空",
- anchor:'95%'
- },{
- xtype:'datefield',
- fieldLabel:"结束日期",
- minValue:'07/07/2017',
- minText:"当前日期选择应大于2017-07-07",
- format:"Y-m-d",
- value:Ext.util.Format.date(new Date(new Date(new Date().getUTCFullYear(), new Date().getMonth(), 1) - 86400000), "Y-m-d"),
- columnWidth:0.5,
- id: 'end_date',
- name:"end_date",
- editable:false,//只读约束
- allowBlank:false,
- blankText:"不能为空",
- anchor:'95%'
- },
- {
- id:'ff_queryJson',
- name:'queryJson',
- hidden:true
- }],
- buttons: [{
- text: '下一步',
- iconCls:'ok_btn',
- handler: function() {
- var form = this.up('form').getForm();
- if (form.isValid()) {
- var start_date=Ext.util.Format.date(Ext.getCmp('start_date').getValue(), 'Y-m-d');
- var end_date=Ext.util.Format.date(Ext.getCmp('end_date').getValue(), 'Y-m-d');
- var project_date=Ext.util.Format.date(Ext.getCmp('start_date').getValue(), 'Y-m');
- show_detail_data(start_date,end_date,project_date);
- this.up('window').hide();
- }
- }
- }]
- });
-
- var filterwin = function() {
- Ext.create('Ext.window.Window',{
- title: '工作分析',
- height: 300,
- width: 350,
- layout: 'fit',
- items: FilterWin,
- closeAction: 'hide'
- }).show();
- };
-
- mouseon = function(obj){
- var id = obj.id;
- $("#"+id).removeClass(id);
- $("#"+id).addClass(id+'_on');
- }
-
- mouseoff = function(obj){
- var mid = "springHandle_";
- for(var i=1;i<5;i++){
- var id = "springHandle_title"+i+"_div";
- $("#"+id).removeClass(id+'_on');
- $("#"+id).addClass(id);
- }
- if(menuidx=='m1'){
- mid += 'title1_div';
- $("#"+mid).removeClass(mid);
- $("#"+mid).addClass(mid+'_on');
- }
- else if(menuidx=='m2'){
- mid += 'title2_div';
- $("#"+mid).removeClass(mid);
- $("#"+mid).addClass(mid+'_on');
- }
- else if(menuidx=='m3'){
- mid += 'title3_div';
- $("#"+mid).removeClass(mid);
- $("#"+mid).addClass(mid+'_on');
- }
- else if(menuidx=='m4'){
- mid += 'title4_div';
- $("#"+mid).removeClass(mid);
- $("#"+mid).addClass(mid+'_on');
- }
- }
-
- menu_click = function(obj){
- var id = obj.id;
- if(id=='springHandle_title1_div'){
- menuidx = 'm1';
- show_page();
- }
- else if(id=='springHandle_title2_div'){
- menuidx = 'm2';
- reset1();
- }
- else if(id=='springHandle_title3_div'){
- menuidx = 'm3';
- exportbtn_click();
- }
- else if(id=='springHandle_title4_div'){
- menuidx = 'm4';
- filterwin();
- }
- }
-
- var maintenancedevice = function(){
- var maintenance_look_device = document.getElementById('inspectorsCheck_look_device');
- var img = document.createElement('img');
- img.width=400;
- img.height=400;
- img.src = baseUrl+ConfirmStore[0].picture_route;
- // img.src = ConfirmStore[0].picture_route;
- img.setAttribute('class','maintenance_look_device_img');
- maintenance_look_device.appendChild(img);
- var div4 = document.createElement('div');
- div4.style.textAlign='center';
- div4.innerHTML=ConfirmStore[0].remarks;
- maintenance_look_device.appendChild(div4);
- }
-
- var editMaintenance = function(spot_id){
- var spot_id = spot_id;
- Ext.create('Ext.window.Window', {
- id:'inspectorsCheck_data_win1',
- height: 500,
- width: 400,
- layout: 'fit',
- modal:true,
- buttons:[
- {
- text:'关闭',
- handler : function() {
- Ext.getCmp('inspectorsCheck_data_win1').destroy();
- }
- }
- ],
- closeAction:'destroy',
- html:'<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);
-
- });
|