springHandle.js 114 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026
  1. /**
  2. * springHandle.js
  3. * 事件处理界面
  4. * emial: yaoqiang@chinausky.com
  5. * create: 2018-12-08
  6. */
  7. Ext.Loader.setConfig({
  8. enabled: true
  9. });
  10. Ext.Loader.setPath('Ext.ux', '../../res/extjs/examples/ux');
  11. Ext.require([
  12. 'Ext.grid.*',
  13. 'Ext.data.*',
  14. 'Ext.ux.RowExpander',
  15. 'Ext.selection.CheckboxModel'
  16. ]);
  17. var company_code;
  18. var FilterWin;
  19. var myStore=null;
  20. var myStore1=null;
  21. var V_LOGINNAME='',V_PASSWORD='';
  22. var menuidx = '';
  23. var mouseon;
  24. var editMaintenancePresentation;
  25. var examineStatus;
  26. var mouseoff;
  27. var menu_click;
  28. var modifywin;
  29. var examin_win;
  30. var sm = Ext.create('Ext.selection.CheckboxModel');
  31. var sm1 = Ext.create('Ext.selection.CheckboxModel');
  32. Ext.define('CheckRecord2',{
  33. extend: 'Ext.data.Model',
  34. fields: [
  35. {name:'id', type:'string'},
  36. {name:'xh', type:'int'},
  37. {name:'wx_name', type:'string'},
  38. {name:'spot_address', type:'string'},
  39. {name:'sj_type_name', type:'string'},
  40. {name:'y_complete_time', type:'string'},
  41. {name:'cl_type_name', type:'string'},
  42. {name:'cl_time', type:'string'},
  43. {name:'dqzt', type:'string'},
  44. {name:'person_liable_name', type:'string'},
  45. {name:'phone', type:'string'},
  46. {name:'zrs', type:'int'},
  47. {name:'jrsj', type:'int'},
  48. {name:'cssj', type:'int'},
  49. {name:'jrjj', type:'int'},
  50. {name:'name', type:'string'},
  51. {name:'zrrid', type:'int'},
  52. ]
  53. });
  54. Ext.define('CheckRecord3',{
  55. extend: 'Ext.data.Model',
  56. fields: [
  57. {name:'jlid', type:'string'},
  58. {name:'dwid', type:'string'},
  59. {name:'xh', type:'int'},
  60. {name:'spot_name', type:'string'},
  61. {name:'spot_address', type:'string'},
  62. {name:'wcqk', type:'string'},
  63. {name:'wc_time', type:'string'},
  64. {name:'wbr', type:'string'},
  65. // {name:'completion_status', type:'string'},
  66. ]
  67. });
  68. function exportbtn_click(){
  69. baseUrl = document.getElementById('basePath').value;
  70. V_LOGINNAME = $("#V_LOGINNAME").val();
  71. V_PASSWORD = $("#V_PASSWORD").val();
  72. wx_name = document.getElementById('wx_name').value;
  73. person_liable = document.getElementById('person_liable').value;
  74. sj_type = document.getElementById('sj_type').value;
  75. cl_type = document.getElementById('cl_type').value;
  76. cl_time_k = document.getElementById('cl_time_k').value;
  77. cl_time_j = document.getElementById('cl_time_j').value;
  78. // alert(plan_name);
  79. var fields = '';
  80. var array = ['xh','wx_name','sj_type_name','y_complete_time','cl_time','dqzt','person_liable_name','phone','clzt'];
  81. var name = ['序号','报修任务名称','报修类型','应完成时间','实际完成时间','当前状态','相关责任人','联系电话','处理状态'];
  82. for(var i=0;i<9;i++){
  83. if(i>0)
  84. fields += ',';
  85. fields += '{id:"'+array[i]+'",title:"'+name[i]+'",shown:"'+true+'"}';
  86. }
  87. var query = new Object();
  88. // query.V_LOGINNAME = V_LOGINNAME;
  89. // query.V_PASSWORD = V_PASSWORD;
  90. query.wx_name = wx_name;
  91. query.person_liable = person_liable;
  92. query.cl_time_k = cl_time_k;
  93. query.cl_time_j = cl_time_j;
  94. query.sj_type = sj_type;
  95. query.cl_type = cl_type;
  96. query.EXPORT_FILE = '巡检记录列表';
  97. query.fields = '['+fields+']';
  98. $.ajax({
  99. type:'POST',
  100. url: baseUrl+"iot/excel/view/EventProcessingExcel",
  101. data: {
  102. queryJson : Ext.JSON.encode(query)
  103. },
  104. success: function(result){
  105. var json = eval('(' + result + ')');
  106. if(json.action=='dormExport'){
  107. ConfirmStore = json.RESULT;
  108. var elemIF = document.createElement("iframe");
  109. elemIF.src = baseUrl+json.filename;
  110. elemIF.style.display = "none";
  111. document.body.appendChild(elemIF);
  112. }
  113. }
  114. });
  115. }
  116. Ext.onReady(function(){
  117. var baseUrl = document.getElementById('basePath').value;
  118. var theme = document.getElementById('theme').value;
  119. var chkIcon = '<img src="'+baseUrl+'res/img/common/check.gif"/>'
  120. var unchkIcon = '<img src="'+baseUrl+'res/img/common/uncheck.gif"/>'
  121. // company_code = document.getElementById('company_code').value;
  122. $("#V_LOGINNAME").val(sessionStorage.getItem('V_LOGINNAME'));
  123. $("#V_PASSWORD").val(sessionStorage.getItem('V_PASSWORD'));
  124. V_LOGINNAME = $("#V_LOGINNAME").val();
  125. V_PASSWORD = $("#V_PASSWORD").val();
  126. var countPerPage = 15;
  127. var maxHeight = 10000;
  128. var chkBoolean = function(flag) {
  129. if(flag)
  130. return chkIcon;
  131. return unchkIcon;
  132. }
  133. var queryJson = new Object();
  134. // queryJson.V_LOGINNAME = V_LOGINNAME;
  135. // queryJson.V_PASSWORD = V_PASSWORD;
  136. // queryJson.COMMSTATUS = 'NO';
  137. if((company_code!=null)&&(company_code!='null')&&(company_code.length>0))
  138. queryJson.company_code = company_code;
  139. var states1 = Ext.create('Ext.data.Store', {
  140. fields: ['status', 'name'],
  141. data : [
  142. // {"status":-1, "name":"全选"},
  143. {"status":"待开通", "name":"待开通"},
  144. {"status":"已开通", "name":"已开通"},
  145. {"status":"已锁定", "name":"已锁定"},
  146. {"status":"注销", "name":"注销"},
  147. ]
  148. });
  149. myStore = Ext.create('Ext.data.Store', {
  150. model: 'CheckRecord2',
  151. pageSize: countPerPage,
  152. proxy: {
  153. type: 'ajax',
  154. actionMethods: {
  155. create : 'POST',
  156. read : 'POST', // by default GET
  157. update : 'POST',
  158. destroy: 'POST'
  159. },
  160. url: baseUrl+'iot/xjeventprocessing/getList',
  161. reader: {
  162. type: 'json',
  163. root: 'RESULT',
  164. totalProperty: 'totalCount'
  165. },
  166. extraParams:{
  167. queryJson:Ext.JSON.encode(queryJson)
  168. }
  169. },
  170. // sorters:[{
  171. // property:'data_time',
  172. // direction:'DESC'
  173. // }],
  174. remoteSort: true
  175. });
  176. // myStore1 = Ext.create('Ext.data.Store', {
  177. // model: 'CheckRecord3',
  178. // pageSize: 10,
  179. // proxy: {
  180. // type: 'ajax',
  181. // url: baseUrl+'iot/spotoperationrecord/getJlPointsList1',
  182. // reader: {
  183. // type: 'json',
  184. // root: 'RESULT',
  185. // totalProperty: 'totalCount'
  186. // },
  187. // extraParams:{
  188. // queryJson:Ext.JSON.encode(queryJson)
  189. // }
  190. // },
  191. // remoteSort: true
  192. // });
  193. var data =Ext.Date.format(new Date(), 'm/d/Y');
  194. var show_page = function(){
  195. var wx_name = document.getElementById('springHandle_title2_input').value;
  196. var person_liable = document.getElementById('springHandle_title3_input1').value;
  197. var cl_time_j = document.getElementById('springHandle_title3_input2').value;
  198. var cl_time_k = document.getElementById('springHandle_title3_input3').value;
  199. var cl_type = document.getElementById('springHandle_title3_input4').value;
  200. var sj_type = document.getElementById('springHandle_title3_input5').value;
  201. var query = new Object();
  202. if(wx_name.length>0){
  203. query.wx_name = wx_name;
  204. $("#wx_name").val(wx_name);
  205. }
  206. if(person_liable.length>0){
  207. query.person_liable = person_liable;
  208. $("#person_liable").val(person_liable);
  209. }
  210. if(cl_time_j.length>0){
  211. query.cl_time_j = cl_time_j;
  212. $("#cl_time_j").val(cl_time_j);
  213. }
  214. if(cl_time_k.length>0){
  215. query.cl_time_k = cl_time_k;
  216. $("#cl_time_k").val(cl_time_k);
  217. }
  218. if(cl_type.length>0){
  219. query.cl_type = cl_type;
  220. $("#cl_type").val(cl_type);
  221. }
  222. if(sj_type.length>0){
  223. query.sj_type = sj_type;
  224. $("#sj_type").val(sj_type);
  225. }
  226. // query.V_LOGINNAME = V_LOGINNAME;
  227. // query.V_PASSWORD = V_PASSWORD;
  228. var jsonstr = Ext.JSON.encode(query);
  229. myStore.getProxy().extraParams = {
  230. queryJson : jsonstr
  231. };
  232. Ext.getCmp('SpringHandleListPageToolbar').moveFirst();
  233. }
  234. var reset1 = function(){
  235. document.getElementById('springHandle_title2_input').value = '';
  236. document.getElementById('springHandle_title3_input1').value = '';
  237. document.getElementById('springHandle_title3_input2').value = '';
  238. document.getElementById('springHandle_title3_input3').value = '';
  239. document.getElementById('springHandle_title3_input4').value = '';
  240. document.getElementById('springHandle_title3_input5').value = '';
  241. $("#wx_name").val('');
  242. $("#person_liable").val('');
  243. $("#cl_time_j").val('');
  244. $("#cl_time_k").val('');
  245. $("#cl_type").val('');
  246. $("#sj_type").val('');
  247. show_page();
  248. }
  249. var highcharts1 = function () {
  250. var baifenbiywc = parseFloat(baifenbiywcbxrw);
  251. var baifenbicswc = parseFloat(baifenbicswcbxrw);
  252. var baifenbishwtgwc = parseFloat(baifenbishwtgwcbxrw);
  253. var baifenbiwcl = parseFloat(baifenbiwclbxrw);
  254. var baifenbiwsh = parseFloat(baifenbiwshbxrw);
  255. $('#container4').highcharts({
  256. chart: {
  257. plotBackgroundColor: null,
  258. plotBorderWidth: null,
  259. plotShadow: false,
  260. type: 'pie'
  261. },
  262. credits: {
  263. enabled: false
  264. },
  265. exporting: { enabled:false },
  266. title: {
  267. text: '报修任务总数:'+xjbxcsnum
  268. },
  269. tooltip: {
  270. formatter: function() {
  271. return '<b>'+ this.series.name +'</b>: '+ Highcharts.numberFormat(this.percentage, 1) +'%'
  272. }
  273. },
  274. plotOptions: {
  275. pie: {
  276. allowPointSelect: true,
  277. cursor: 'pointer',
  278. dataLabels: {
  279. enabled: true,
  280. format: '<b>{point.name}</b>: {point.percentage:.1f} %',
  281. style: {
  282. color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
  283. }
  284. },
  285. showInLegend: true
  286. }
  287. },
  288. series: [{
  289. name: '百分比',
  290. colorByPoint: true,
  291. data: [{
  292. name: '已完成',
  293. y: baifenbiywc,
  294. sliced: true,
  295. selected: true
  296. },{
  297. name: '超时完成',
  298. y: baifenbicswc
  299. },{
  300. name: '审核未通过',
  301. y: baifenbishwtgwc
  302. },{
  303. name: '未处理',
  304. y: baifenbiwcl
  305. },{
  306. name: '未审核',
  307. y: baifenbiwsh
  308. }]
  309. }]
  310. });
  311. }
  312. var highcharts2 = function () {
  313. var huidan15 = parseFloat(baifenbihuidan15);
  314. $('#container5').highcharts({
  315. chart: {
  316. plotBackgroundColor: null,
  317. plotBorderWidth: null,
  318. plotShadow: false,
  319. type: 'pie'
  320. },
  321. credits: {
  322. enabled: false
  323. },
  324. exporting: { enabled:false },
  325. title: {
  326. text: '巡检维保报修总数:'+xjbxcsnum
  327. },
  328. tooltip: {
  329. pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
  330. },
  331. plotOptions: {
  332. pie: {
  333. allowPointSelect: true,
  334. cursor: 'pointer',
  335. dataLabels: {
  336. enabled: true,
  337. format: '<b>{point.name}</b>: {point.percentage:.1f} %',
  338. style: {
  339. color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
  340. }
  341. },
  342. showInLegend: true
  343. }
  344. },
  345. series: [{
  346. name: '百分比',
  347. colorByPoint: true,
  348. data: [{
  349. name: '巡检报修',
  350. y: huidan15,
  351. sliced: true,
  352. selected: true
  353. },{
  354. name: '维保报修',
  355. y: 100-huidan15
  356. }]
  357. }]
  358. });
  359. }
  360. var highcharts3 = function () {
  361. var ysmbaifenbi = parseFloat(xjysmbaifenbi);
  362. var wsmbaifenbi = parseFloat(xjwsmbaifenbi);
  363. $('#container6').highcharts({
  364. chart: {
  365. plotBackgroundColor: null,
  366. plotBorderWidth: null,
  367. plotShadow: false,
  368. type: 'pie'
  369. },
  370. credits: {
  371. enabled: false
  372. },
  373. exporting: { enabled:false },
  374. title: {
  375. text: '应扫码次数'+xjysmcsnum+'个'
  376. },
  377. tooltip: {
  378. pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
  379. },
  380. plotOptions: {
  381. pie: {
  382. allowPointSelect: true,
  383. cursor: 'pointer',
  384. dataLabels: {
  385. enabled: true,
  386. format: '<b>{point.name}</b>: {point.percentage:.1f} %',
  387. style: {
  388. color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
  389. }
  390. },
  391. showInLegend: true
  392. }
  393. },
  394. series: [{
  395. name: '百分比',
  396. colorByPoint: true,
  397. data: [{
  398. name: '已扫码次数',
  399. y: ysmbaifenbi,
  400. sliced: true,
  401. selected: true
  402. },{
  403. name: '未扫码次数',
  404. y: wsmbaifenbi
  405. }]
  406. }]
  407. });
  408. }
  409. var draw_confirm = function(start_data,end_data,project_date){
  410. var start_data = start_data;
  411. var end_data = end_data;
  412. var project_date = project_date;
  413. var woker_talk = document.getElementById('woker_talkbx');
  414. var div1 = document.createElement('div');
  415. div1.style.width=580;
  416. div1.style.height=600;
  417. woker_talk.appendChild(div1);
  418. var title = document.createElement('h2');
  419. title.style.fontSize='14px';
  420. title.style.textAlign='center';
  421. title.style.fontWeight='bold';
  422. title.innerHTML='数据统计分析';
  423. div1.appendChild(title);
  424. var title2 = document.createElement('h3');
  425. title2.style.textAlign='left';
  426. title2.style.fontSize='14px';
  427. title2.style.fontWeight='bold';
  428. title2.innerHTML='1 数据分析';
  429. div1.appendChild(title2);
  430. var title88 = document.createElement('h4');
  431. title88.style.textAlign='left';
  432. title88.style.fontSize='14px';
  433. title88.style.fontWeight='bold';
  434. title88.innerHTML='1.1 资源及工作内容';
  435. div1.appendChild(title88);
  436. var title3 = document.createElement('div');
  437. title3.style.textAlign='left';
  438. title3.style.fontSize='14px';
  439. title3.style.marginTop='10px';
  440. title3.style.marginBottom='10px';
  441. title3.style.textIndent='2em';
  442. title3.style.fontWeight='bold';
  443. title3.innerHTML='人员:'+xjrysl+'个';
  444. div1.appendChild(title3);
  445. var title34 = document.createElement('div');
  446. title34.style.textAlign='left';
  447. title34.style.fontSize='14px';
  448. title34.style.marginBottom='10px';
  449. title34.style.textIndent='2em';
  450. title34.style.fontWeight='bold';
  451. title34.innerHTML='报修总次数:'+xjbxcsnum+'个';
  452. div1.appendChild(title34);
  453. // var title32 = document.createElement('div');
  454. // title32.style.textAlign='left';
  455. // title32.style.fontSize='14px';
  456. // title32.style.marginBottom='10px';
  457. // title32.style.textIndent='2em';
  458. // title32.style.fontWeight='bold';
  459. // title32.innerHTML='班组:'+xjbz+'个';
  460. // div1.appendChild(title32);
  461. // var title4 = document.createElement('h4');
  462. // title4.style.textAlign='left';
  463. // title4.style.fontSize='14px';
  464. // title4.style.fontWeight='bold';
  465. // title4.innerHTML='1.2 工作内容';
  466. // div1.appendChild(title4);
  467. var title9 = document.createElement('div');
  468. title9.style.textAlign='left';
  469. title9.style.fontSize='14px';
  470. title9.style.marginTop='10px';
  471. title9.style.marginBottom='10px';
  472. title9.style.textIndent='2em';
  473. title9.style.fontWeight='bold';
  474. title9.innerHTML='已完成的报修任务:'+xjrwnum+'个';
  475. div1.appendChild(title9);
  476. var title91 = document.createElement('div');
  477. title91.style.textAlign='left';
  478. title91.style.fontSize='14px';
  479. title91.style.marginBottom='10px';
  480. title91.style.textIndent='2em';
  481. title91.style.fontWeight='bold';
  482. title91.innerHTML='超时完成的报修任务:'+xjdwnum+'个';
  483. div1.appendChild(title91);
  484. var title32 = document.createElement('div');
  485. title32.style.textAlign='left';
  486. title32.style.fontSize='14px';
  487. title32.style.marginBottom='10px';
  488. title32.style.textIndent='2em';
  489. title32.style.fontWeight='bold';
  490. title32.innerHTML='审核未通过的报修任务:'+xjysmcsnum+'个';
  491. div1.appendChild(title32);
  492. var title33 = document.createElement('div');
  493. title33.style.textAlign='left';
  494. title33.style.fontSize='14px';
  495. title33.style.marginBottom='10px';
  496. title33.style.textIndent='2em';
  497. title33.style.fontWeight='bold';
  498. title33.innerHTML='未审核的报修任务:'+wshbxnum+'个';
  499. div1.appendChild(title33);
  500. var title34 = document.createElement('div');
  501. title34.style.textAlign='left';
  502. title34.style.fontSize='14px';
  503. title34.style.marginBottom='10px';
  504. title34.style.textIndent='2em';
  505. title34.style.fontWeight='bold';
  506. title34.innerHTML='未处理的报修任务:'+zrrnum+'个';
  507. div1.appendChild(title34);
  508. var title10 = document.createElement('h4');
  509. title10.style.textAlign='left';
  510. title10.style.fontSize='14px';
  511. title10.style.fontWeight='bold';
  512. title10.innerHTML='1.2任务进度情况';
  513. div1.appendChild(title10);
  514. var title21_highcharts = document.createElement('div');
  515. title21_highcharts.style.marginTop='20px';
  516. title21_highcharts.style.marginBottom='46px';
  517. title21_highcharts.setAttribute('id','container4');
  518. title21_highcharts.style.textAlign='center';
  519. div1.appendChild(title21_highcharts);
  520. // var title11 = document.createElement('h4');
  521. // title11.style.textAlign='left';
  522. // title11.style.fontSize='14px';
  523. // title11.style.fontWeight='bold';
  524. // title11.innerHTML='1.3出勤率分析';
  525. // div1.appendChild(title11);
  526. // var title11_highcharts = document.createElement('div');
  527. // title11_highcharts.style.marginTop='20px';
  528. // title11_highcharts.style.marginBottom='46px';
  529. // title11_highcharts.setAttribute('id','container6');
  530. // title11_highcharts.style.textAlign='center';
  531. // div1.appendChild(title11_highcharts);
  532. var div2 = document.createElement('div');
  533. div2.style.width=580;
  534. div2.style.height=600;
  535. woker_talk.appendChild(div2);
  536. var patrolh41 = document.createElement('h4');
  537. patrolh41.style.textAlign='left';
  538. patrolh41.style.fontSize='14px';
  539. patrolh41.style.fontWeight='bold';
  540. patrolh41.innerHTML='1.4巡检维保报修占比';
  541. div2.appendChild(patrolh41);
  542. var patrolh41_highcharts = document.createElement('div');
  543. patrolh41_highcharts.style.marginTop='20px';
  544. patrolh41_highcharts.style.marginBottom='46px';
  545. patrolh41_highcharts.setAttribute('id','container5');
  546. patrolh41_highcharts.style.textAlign='center';
  547. div2.appendChild(patrolh41_highcharts);
  548. var sta2 = document.createElement('table');
  549. sta2.style.marginTop='10px';
  550. sta2.width='100%';
  551. sta2.style.marginBottom='20px';
  552. sta2.style.borderRight ='1px solid #BEBEBE';
  553. sta2.style.borderBottom ='1px solid #BEBEBE';
  554. div2.appendChild(sta2);
  555. var tr14 = document.createElement('tr');
  556. sta2.appendChild(tr14);
  557. var th5 = document.createElement('th');
  558. th5.width='20%';
  559. th5.style.textAlign='center';
  560. th5.innerHTML='报修任务名称';
  561. th5.style.fontSize='14px';
  562. th5.style.borderLeft ='1px solid #BEBEBE';
  563. th5.style.borderTop ='1px solid #BEBEBE';
  564. tr14.appendChild(th5);
  565. var th6 = document.createElement('th');
  566. th6.width='20%';
  567. th6.style.textAlign='center';
  568. th6.innerHTML='任务来源';
  569. th6.style.fontSize='14px';
  570. th6.style.borderLeft ='1px solid #BEBEBE';
  571. th6.style.borderTop ='1px solid #BEBEBE';
  572. tr14.appendChild(th6);
  573. var th7 = document.createElement('th');
  574. th7.width='25%';
  575. th7.style.textAlign='center';
  576. th7.innerHTML='上报人';
  577. th7.style.fontSize='14px';
  578. th7.style.borderLeft ='1px solid #BEBEBE';
  579. th7.style.borderTop ='1px solid #BEBEBE';
  580. tr14.appendChild(th7);
  581. var th8 = document.createElement('th');
  582. th8.width='35%';
  583. th8.style.textAlign='center';
  584. th8.innerHTML='任务状态';
  585. th8.style.fontSize='14px';
  586. th8.style.borderLeft ='1px solid #BEBEBE';
  587. th8.style.borderTop ='1px solid #BEBEBE';
  588. tr14.appendChild(th8);
  589. if(ConfirmStore15.length>0){
  590. if(ConfirmStore15.length==1){
  591. var tr13 = document.createElement('tr');
  592. sta2.appendChild(tr13);
  593. var td_details_num = document.createElement('td');
  594. td_details_num.width='20%';
  595. td_details_num.style.textAlign='center';
  596. td_details_num.style.borderLeft ='1px solid #BEBEBE';
  597. td_details_num.style.borderTop ='1px solid #BEBEBE';
  598. td_details_num.innerHTML=ConfirmStore15[0].wx_name;
  599. td_details_num.style.fontSize='14px';
  600. tr13.appendChild(td_details_num);
  601. var td_details_name= document.createElement('td');
  602. td_details_name.width='20%';
  603. td_details_name.style.textAlign='center';
  604. td_details_name.innerHTML= ConfirmStore15[0].wx_laiyuan;
  605. td_details_name.style.borderLeft ='1px solid #BEBEBE';
  606. td_details_name.style.borderTop ='1px solid #BEBEBE';
  607. td_details_name.style.fontSize='14px';
  608. tr13.appendChild(td_details_name);
  609. var td_details_specifications = document.createElement('td');
  610. td_details_specifications.width='25%';
  611. td_details_specifications.style.textAlign='center';
  612. td_details_specifications.innerHTML=ConfirmStore15[0].bxrzr_name;
  613. td_details_specifications.style.fontSize='14px';
  614. td_details_specifications.style.borderLeft ='1px solid #BEBEBE';
  615. td_details_specifications.style.borderTop ='1px solid #BEBEBE';
  616. tr13.appendChild(td_details_specifications);
  617. var td_details_device_num = document.createElement('td');
  618. td_details_device_num.width='35%';
  619. td_details_device_num.style.textAlign='center';
  620. td_details_device_num.innerHTML=ConfirmStore15[0].renwu_zt;
  621. td_details_device_num.style.fontSize='14px';
  622. td_details_device_num.style.borderLeft ='1px solid #BEBEBE';
  623. td_details_device_num.style.borderTop ='1px solid #BEBEBE';
  624. tr13.appendChild(td_details_device_num);
  625. }else{
  626. for(var i=0;i<ConfirmStore15.length;i++){
  627. var tr13 = document.createElement('tr');
  628. sta2.appendChild(tr13);
  629. var td_details_num = document.createElement('td');
  630. td_details_num.width='20%';
  631. td_details_num.style.textAlign='center';
  632. td_details_num.innerHTML=ConfirmStore15[i].wx_name;
  633. td_details_num.style.fontSize='14px';
  634. td_details_num.style.borderLeft ='1px solid #BEBEBE';
  635. td_details_num.style.borderTop ='1px solid #BEBEBE';
  636. tr13.appendChild(td_details_num);
  637. var td_details_name= document.createElement('td');
  638. td_details_name.width='20%';
  639. td_details_name.style.textAlign='center';
  640. td_details_name.innerHTML= ConfirmStore15[i].wx_laiyuan;
  641. td_details_name.style.fontSize='14px';
  642. td_details_name.style.borderLeft ='1px solid #BEBEBE';
  643. td_details_name.style.borderTop ='1px solid #BEBEBE';
  644. tr13.appendChild(td_details_name);
  645. var td_details_specifications = document.createElement('td');
  646. td_details_specifications.width='25%';
  647. td_details_specifications.style.textAlign='center';
  648. td_details_specifications.innerHTML=ConfirmStore15[i].bxrzr_name;
  649. td_details_specifications.style.fontSize='14px';
  650. td_details_specifications.style.borderLeft ='1px solid #BEBEBE';
  651. td_details_specifications.style.borderTop ='1px solid #BEBEBE';
  652. tr13.appendChild(td_details_specifications);
  653. var td_details_device_num = document.createElement('td');
  654. td_details_device_num.width='35%';
  655. td_details_device_num.style.textAlign='center';
  656. td_details_device_num.innerHTML=ConfirmStore15[i].renwu_zt;
  657. td_details_device_num.style.fontSize='14px';
  658. td_details_device_num.style.borderLeft ='1px solid #BEBEBE';
  659. td_details_device_num.style.borderTop ='1px solid #BEBEBE';
  660. tr13.appendChild(td_details_device_num);
  661. }
  662. }
  663. }
  664. // var patrolh42 = document.createElement('h4');
  665. // patrolh42.style.textAlign='left';
  666. // patrolh42.style.fontSize='14px';
  667. // patrolh42.style.fontWeight='bold';
  668. // patrolh42.innerHTML='1.6点位扫码完成度';
  669. // div2.appendChild(patrolh42);
  670. // var sta3 = document.createElement('table');
  671. // sta3.style.marginTop='10px';
  672. // sta3.width='100%';
  673. // sta3.style.marginBottom='20px';
  674. // sta3.style.borderRight ='1px solid #BEBEBE';
  675. // sta3.style.borderBottom ='1px solid #BEBEBE';
  676. // div2.appendChild(sta3);
  677. // var tr15 = document.createElement('tr');
  678. // sta3.appendChild(tr15);
  679. // var thlast = document.createElement('th');
  680. // thlast.width='20%';
  681. // thlast.style.textAlign='center';
  682. // thlast.innerHTML='计划名称';
  683. // thlast.style.fontSize='14px';
  684. // thlast.style.borderLeft ='1px solid #BEBEBE';
  685. // thlast.style.borderTop ='1px solid #BEBEBE';
  686. // tr15.appendChild(thlast);
  687. // var th9 = document.createElement('th');
  688. // th9.width='20%';
  689. // th9.style.textAlign='center';
  690. // th9.innerHTML='点位名称';
  691. // th9.style.fontSize='14px';
  692. // th9.style.borderLeft ='1px solid #BEBEBE';
  693. // th9.style.borderTop ='1px solid #BEBEBE';
  694. // tr15.appendChild(th9);
  695. // var th10 = document.createElement('th');
  696. // th10.width='20%';
  697. // th10.style.textAlign='center';
  698. // th10.innerHTML='负责班组';
  699. // th10.style.fontSize='14px';
  700. // th10.style.borderLeft ='1px solid #BEBEBE';
  701. // th10.style.borderTop ='1px solid #BEBEBE';
  702. // tr15.appendChild(th10);
  703. // var th11 = document.createElement('th');
  704. // th11.width='10%';
  705. // th11.style.textAlign='center';
  706. // th11.innerHTML='负责人';
  707. // th11.style.fontSize='14px';
  708. // th11.style.borderLeft ='1px solid #BEBEBE';
  709. // th11.style.borderTop ='1px solid #BEBEBE';
  710. // tr15.appendChild(th11);
  711. // var th12 = document.createElement('th');
  712. // th12.width='10%';
  713. // th12.style.textAlign='center';
  714. // th12.innerHTML='应扫码次数';
  715. // th12.style.fontSize='14px';
  716. // th12.style.borderLeft ='1px solid #BEBEBE';
  717. // th12.style.borderTop ='1px solid #BEBEBE';
  718. // tr15.appendChild(th12);
  719. // var th13 = document.createElement('th');
  720. // th13.width='10%';
  721. // th13.style.textAlign='center';
  722. // th13.innerHTML='已扫码次数';
  723. // th13.style.fontSize='14px';
  724. // th13.style.borderLeft ='1px solid #BEBEBE';
  725. // th13.style.borderTop ='1px solid #BEBEBE';
  726. // tr15.appendChild(th13);
  727. // var th14 = document.createElement('th');
  728. // th14.width='10%';
  729. // th14.style.textAlign='center';
  730. // th14.innerHTML='完成度';
  731. // th14.style.fontSize='14px';
  732. // th14.style.borderLeft ='1px solid #BEBEBE';
  733. // th14.style.borderTop ='1px solid #BEBEBE';
  734. // tr15.appendChild(th14);
  735. // if(ConfirmStore16.length>0){
  736. // if(ConfirmStore16.length==1){
  737. // var tr16 = document.createElement('tr');
  738. // sta3.appendChild(tr16);
  739. // var td_details_numlast = document.createElement('td');
  740. // td_details_numlast.width='20%';
  741. // td_details_numlast.style.textAlign='center';
  742. // td_details_numlast.style.borderLeft ='1px solid #BEBEBE';
  743. // td_details_numlast.style.borderTop ='1px solid #BEBEBE';
  744. // td_details_numlast.innerHTML=ConfirmStore16[0].plan_name;
  745. // td_details_numlast.style.fontSize='14px';
  746. // tr16.appendChild(td_details_numlast);
  747. // var td_details_num = document.createElement('td');
  748. // td_details_num.width='20%';
  749. // td_details_num.style.textAlign='center';
  750. // td_details_num.style.borderLeft ='1px solid #BEBEBE';
  751. // td_details_num.style.borderTop ='1px solid #BEBEBE';
  752. // td_details_num.innerHTML=ConfirmStore16[0].dianwei_name;
  753. // td_details_num.style.fontSize='14px';
  754. // tr16.appendChild(td_details_num);
  755. // var td_details_name= document.createElement('td');
  756. // td_details_name.width='20%';
  757. // td_details_name.style.textAlign='center';
  758. // td_details_name.innerHTML= ConfirmStore16[0].banzu_name;
  759. // td_details_name.style.borderLeft ='1px solid #BEBEBE';
  760. // td_details_name.style.borderTop ='1px solid #BEBEBE';
  761. // td_details_name.style.fontSize='14px';
  762. // tr16.appendChild(td_details_name);
  763. // var td_person= document.createElement('td');
  764. // td_person.width='10%';
  765. // td_person.style.textAlign='center';
  766. // td_person.innerHTML= ConfirmStore16[0].renzeren_name;
  767. // td_person.style.borderLeft ='1px solid #BEBEBE';
  768. // td_person.style.borderTop ='1px solid #BEBEBE';
  769. // td_person.style.fontSize='14px';
  770. // tr16.appendChild(td_person);
  771. // var td_details_specifications = document.createElement('td');
  772. // td_details_specifications.width='10%';
  773. // td_details_specifications.style.textAlign='center';
  774. // td_details_specifications.innerHTML=ConfirmStore16[0].ywc_num1;
  775. // td_details_specifications.style.fontSize='14px';
  776. // td_details_specifications.style.borderLeft ='1px solid #BEBEBE';
  777. // td_details_specifications.style.borderTop ='1px solid #BEBEBE';
  778. // tr16.appendChild(td_details_specifications);
  779. // var td_details_device_num = document.createElement('td');
  780. // td_details_device_num.width='10%';
  781. // td_details_device_num.style.textAlign='center';
  782. // td_details_device_num.innerHTML=ConfirmStore16[0].ywc_num2;
  783. // td_details_device_num.style.fontSize='14px';
  784. // td_details_device_num.style.borderLeft ='1px solid #BEBEBE';
  785. // td_details_device_num.style.borderTop ='1px solid #BEBEBE';
  786. // tr16.appendChild(td_details_device_num);
  787. // var td_wanchengdu= document.createElement('td');
  788. // td_wanchengdu.width='10%';
  789. // td_wanchengdu.style.textAlign='center';
  790. // td_wanchengdu.innerHTML= ConfirmStore16[0].com_du+'%';
  791. // td_wanchengdu.style.borderLeft ='1px solid #BEBEBE';
  792. // td_wanchengdu.style.borderTop ='1px solid #BEBEBE';
  793. // td_wanchengdu.style.fontSize='14px';
  794. // tr16.appendChild(td_wanchengdu);
  795. // }else{
  796. // for(var i=0;i<ConfirmStore16.length;i++){
  797. // var tr16 = document.createElement('tr');
  798. // sta3.appendChild(tr16);
  799. // var td_details_numlast = document.createElement('td');
  800. // td_details_numlast.width='20%';
  801. // td_details_numlast.style.textAlign='center';
  802. // td_details_numlast.style.borderLeft ='1px solid #BEBEBE';
  803. // td_details_numlast.style.borderTop ='1px solid #BEBEBE';
  804. // td_details_numlast.innerHTML=ConfirmStore16[i].plan_name;
  805. // td_details_numlast.style.fontSize='14px';
  806. // tr16.appendChild(td_details_numlast);
  807. // var td_details_num = document.createElement('td');
  808. // td_details_num.width='20%';
  809. // td_details_num.style.textAlign='center';
  810. // td_details_num.style.borderLeft ='1px solid #BEBEBE';
  811. // td_details_num.style.borderTop ='1px solid #BEBEBE';
  812. // td_details_num.innerHTML=ConfirmStore16[i].dianwei_name;
  813. // td_details_num.style.fontSize='14px';
  814. // tr16.appendChild(td_details_num);
  815. // var td_details_name= document.createElement('td');
  816. // td_details_name.width='20%';
  817. // td_details_name.style.textAlign='center';
  818. // td_details_name.innerHTML= ConfirmStore16[i].banzu_name;
  819. // td_details_name.style.borderLeft ='1px solid #BEBEBE';
  820. // td_details_name.style.borderTop ='1px solid #BEBEBE';
  821. // td_details_name.style.fontSize='14px';
  822. // tr16.appendChild(td_details_name);
  823. // var td_person= document.createElement('td');
  824. // td_person.width='10%';
  825. // td_person.style.textAlign='center';
  826. // td_person.innerHTML= ConfirmStore16[i].renzeren_name;
  827. // td_person.style.borderLeft ='1px solid #BEBEBE';
  828. // td_person.style.borderTop ='1px solid #BEBEBE';
  829. // td_person.style.fontSize='14px';
  830. // tr16.appendChild(td_person);
  831. // var td_details_specifications = document.createElement('td');
  832. // td_details_specifications.width='10%';
  833. // td_details_specifications.style.textAlign='center';
  834. // td_details_specifications.innerHTML=ConfirmStore16[i].ywc_num1;
  835. // td_details_specifications.style.fontSize='14px';
  836. // td_details_specifications.style.borderLeft ='1px solid #BEBEBE';
  837. // td_details_specifications.style.borderTop ='1px solid #BEBEBE';
  838. // tr16.appendChild(td_details_specifications);
  839. // var td_details_device_num = document.createElement('td');
  840. // td_details_device_num.width='10%';
  841. // td_details_device_num.style.textAlign='center';
  842. // td_details_device_num.innerHTML=ConfirmStore16[i].ywc_num2;
  843. // td_details_device_num.style.fontSize='14px';
  844. // td_details_device_num.style.borderLeft ='1px solid #BEBEBE';
  845. // td_details_device_num.style.borderTop ='1px solid #BEBEBE';
  846. // tr16.appendChild(td_details_device_num);
  847. // var td_wanchengdu= document.createElement('td');
  848. // td_wanchengdu.width='10%';
  849. // td_wanchengdu.style.textAlign='center';
  850. // td_wanchengdu.innerHTML= ConfirmStore16[i].com_du+'%';
  851. // td_wanchengdu.style.borderLeft ='1px solid #BEBEBE';
  852. // td_wanchengdu.style.borderTop ='1px solid #BEBEBE';
  853. // td_wanchengdu.style.fontSize='14px';
  854. // tr16.appendChild(td_wanchengdu);
  855. // }
  856. // var tr_dianwei_wanchengdu_num1 = document.createElement('tr');
  857. // sta3.appendChild(tr_dianwei_wanchengdu_num1);
  858. // var td_dianwei_wanchengdu_num1 = document.createElement('td');
  859. //// td_details_device_num1.width='30%';
  860. // td_dianwei_wanchengdu_num1.style.textAlign='center';
  861. // td_dianwei_wanchengdu_num1.colSpan='4';
  862. // td_dianwei_wanchengdu_num1.innerHTML='合计';
  863. // td_dianwei_wanchengdu_num1.style.fontSize='14px';
  864. // td_dianwei_wanchengdu_num1.style.borderLeft ='1px solid #BEBEBE';
  865. // td_dianwei_wanchengdu_num1.style.borderTop ='1px solid #BEBEBE';
  866. // tr_dianwei_wanchengdu_num1.appendChild(td_dianwei_wanchengdu_num1);
  867. // var td_dianwei_wanchengdu_num2 = document.createElement('td');
  868. // td_dianwei_wanchengdu_num2.width='10%';
  869. // td_dianwei_wanchengdu_num2.style.textAlign='center';
  870. // td_dianwei_wanchengdu_num2.innerHTML=heji3;
  871. // td_dianwei_wanchengdu_num2.style.fontSize='14px';
  872. // td_dianwei_wanchengdu_num2.style.borderLeft ='1px solid #BEBEBE';
  873. // td_dianwei_wanchengdu_num2.style.borderTop ='1px solid #BEBEBE';
  874. // tr_dianwei_wanchengdu_num1.appendChild(td_dianwei_wanchengdu_num2);
  875. // var td_dianwei_wanchengdu_num3 = document.createElement('td');
  876. // td_dianwei_wanchengdu_num3.width='10%';
  877. // td_dianwei_wanchengdu_num3.style.textAlign='center';
  878. // td_dianwei_wanchengdu_num3.innerHTML=heji4;
  879. // td_dianwei_wanchengdu_num3.style.fontSize='14px';
  880. // td_dianwei_wanchengdu_num3.style.borderLeft ='1px solid #BEBEBE';
  881. // td_dianwei_wanchengdu_num3.style.borderTop ='1px solid #BEBEBE';
  882. // tr_dianwei_wanchengdu_num1.appendChild(td_dianwei_wanchengdu_num3);
  883. // var td_dianwei_wanchengdu_num4 = document.createElement('td');
  884. // td_dianwei_wanchengdu_num4.width='10%';
  885. // td_dianwei_wanchengdu_num4.style.textAlign='center';
  886. // td_dianwei_wanchengdu_num4.innerHTML=baifenbiresult16+'%';
  887. // td_dianwei_wanchengdu_num4.style.fontSize='14px';
  888. // td_dianwei_wanchengdu_num4.style.borderLeft ='1px solid #BEBEBE';
  889. // td_dianwei_wanchengdu_num4.style.borderTop ='1px solid #BEBEBE';
  890. // tr_dianwei_wanchengdu_num1.appendChild(td_dianwei_wanchengdu_num4);
  891. // }
  892. // }
  893. var patrolh43 = document.createElement('h4');
  894. patrolh43.style.textAlign='left';
  895. patrolh43.style.fontSize='14px';
  896. patrolh43.style.fontWeight='bold';
  897. patrolh43.innerHTML='1.5报修任务完成情况';
  898. div2.appendChild(patrolh43);
  899. var sta4 = document.createElement('table');
  900. sta4.style.marginTop='10px';
  901. sta4.width='100%';
  902. sta4.style.marginBottom='20px';
  903. sta4.style.borderRight ='1px solid #BEBEBE';
  904. sta4.style.borderBottom ='1px solid #BEBEBE';
  905. div2.appendChild(sta4);
  906. var tr17 = document.createElement('tr');
  907. sta4.appendChild(tr17);
  908. var th15 = document.createElement('th');
  909. th15.width='40%';
  910. th15.style.textAlign='center';
  911. th15.innerHTML='负责人';
  912. th15.style.fontSize='14px';
  913. th15.style.borderLeft ='1px solid #BEBEBE';
  914. th15.style.borderTop ='1px solid #BEBEBE';
  915. tr17.appendChild(th15);
  916. var th16 = document.createElement('th');
  917. th16.width='20%';
  918. th16.style.textAlign='center';
  919. th16.innerHTML='应完成任务个数';
  920. th16.style.fontSize='14px';
  921. th16.style.borderLeft ='1px solid #BEBEBE';
  922. th16.style.borderTop ='1px solid #BEBEBE';
  923. tr17.appendChild(th16);
  924. var th17 = document.createElement('th');
  925. th17.width='20%';
  926. th17.style.textAlign='center';
  927. th17.innerHTML='已完成任务个数';
  928. th17.style.fontSize='14px';
  929. th17.style.borderLeft ='1px solid #BEBEBE';
  930. th17.style.borderTop ='1px solid #BEBEBE';
  931. tr17.appendChild(th17);
  932. var th18 = document.createElement('th');
  933. th18.width='20%';
  934. th18.style.textAlign='center';
  935. th18.innerHTML='完成度';
  936. th18.style.fontSize='14px';
  937. th18.style.borderLeft ='1px solid #BEBEBE';
  938. th18.style.borderTop ='1px solid #BEBEBE';
  939. tr17.appendChild(th18);
  940. if(ConfirmStore17.length>0){
  941. if(ConfirmStore17.length==1){
  942. var tr18 = document.createElement('tr');
  943. sta4.appendChild(tr18);
  944. var td_dianwei_name2 = document.createElement('td');
  945. td_dianwei_name2.width='40%';
  946. td_dianwei_name2.style.textAlign='center';
  947. td_dianwei_name2.style.borderLeft ='1px solid #BEBEBE';
  948. td_dianwei_name2.style.borderTop ='1px solid #BEBEBE';
  949. td_dianwei_name2.innerHTML=ConfirmStore17[0].rezeren_name;
  950. td_dianwei_name2.style.fontSize='14px';
  951. tr18.appendChild(td_dianwei_name2);
  952. var td_saoma_num3= document.createElement('td');
  953. td_saoma_num3.width='20%';
  954. td_saoma_num3.style.textAlign='center';
  955. td_saoma_num3.innerHTML= ConfirmStore17[0].ywcbx_num;
  956. td_saoma_num3.style.borderLeft ='1px solid #BEBEBE';
  957. td_saoma_num3.style.borderTop ='1px solid #BEBEBE';
  958. td_saoma_num3.style.fontSize='14px';
  959. tr18.appendChild(td_saoma_num3);
  960. var td_baoxiucishu= document.createElement('td');
  961. td_baoxiucishu.width='20%';
  962. td_baoxiucishu.style.textAlign='center';
  963. td_baoxiucishu.innerHTML= ConfirmStore17[0].ywcbx_num1;
  964. td_baoxiucishu.style.borderLeft ='1px solid #BEBEBE';
  965. td_baoxiucishu.style.borderTop ='1px solid #BEBEBE';
  966. td_baoxiucishu.style.fontSize='14px';
  967. tr18.appendChild(td_baoxiucishu);
  968. var td_baoxiupinlv = document.createElement('td');
  969. td_baoxiupinlv.width='20%';
  970. td_baoxiupinlv.style.textAlign='center';
  971. td_baoxiupinlv.innerHTML=ConfirmStore17[0].wcd_baifenbi+'%';
  972. td_baoxiupinlv.style.fontSize='14px';
  973. td_baoxiupinlv.style.borderLeft ='1px solid #BEBEBE';
  974. td_baoxiupinlv.style.borderTop ='1px solid #BEBEBE';
  975. tr18.appendChild(td_baoxiupinlv);
  976. }else{
  977. for(var i=0;i<ConfirmStore17.length;i++){
  978. var tr18 = document.createElement('tr');
  979. sta4.appendChild(tr18);
  980. var td_dianwei_name2 = document.createElement('td');
  981. td_dianwei_name2.width='40%';
  982. td_dianwei_name2.style.textAlign='center';
  983. td_dianwei_name2.style.borderLeft ='1px solid #BEBEBE';
  984. td_dianwei_name2.style.borderTop ='1px solid #BEBEBE';
  985. td_dianwei_name2.innerHTML=ConfirmStore17[i].rezeren_name;
  986. td_dianwei_name2.style.fontSize='14px';
  987. tr18.appendChild(td_dianwei_name2);
  988. var td_saoma_num3= document.createElement('td');
  989. td_saoma_num3.width='20%';
  990. td_saoma_num3.style.textAlign='center';
  991. td_saoma_num3.innerHTML= ConfirmStore17[i].ywcbx_num;
  992. td_saoma_num3.style.borderLeft ='1px solid #BEBEBE';
  993. td_saoma_num3.style.borderTop ='1px solid #BEBEBE';
  994. td_saoma_num3.style.fontSize='14px';
  995. tr18.appendChild(td_saoma_num3);
  996. var td_baoxiucishu= document.createElement('td');
  997. td_baoxiucishu.width='20%';
  998. td_baoxiucishu.style.textAlign='center';
  999. td_baoxiucishu.innerHTML= ConfirmStore17[i].ywcbx_num1;
  1000. td_baoxiucishu.style.borderLeft ='1px solid #BEBEBE';
  1001. td_baoxiucishu.style.borderTop ='1px solid #BEBEBE';
  1002. td_baoxiucishu.style.fontSize='14px';
  1003. tr18.appendChild(td_baoxiucishu);
  1004. var td_baoxiupinlv = document.createElement('td');
  1005. td_baoxiupinlv.width='20%';
  1006. td_baoxiupinlv.style.textAlign='center';
  1007. td_baoxiupinlv.innerHTML=ConfirmStore17[i].wcd_baifenbi+'%';
  1008. td_baoxiupinlv.style.fontSize='14px';
  1009. td_baoxiupinlv.style.borderLeft ='1px solid #BEBEBE';
  1010. td_baoxiupinlv.style.borderTop ='1px solid #BEBEBE';
  1011. tr18.appendChild(td_baoxiupinlv);
  1012. }
  1013. var tr19 = document.createElement('tr');
  1014. sta4.appendChild(tr19);
  1015. var td_dianwei_name17 = document.createElement('td');
  1016. td_dianwei_name17.width='40%';
  1017. td_dianwei_name17.style.textAlign='center';
  1018. td_dianwei_name17.style.borderLeft ='1px solid #BEBEBE';
  1019. td_dianwei_name17.style.borderTop ='1px solid #BEBEBE';
  1020. td_dianwei_name17.innerHTML='合计';
  1021. td_dianwei_name17.style.fontSize='14px';
  1022. tr19.appendChild(td_dianwei_name17);
  1023. var td_saoma_num17= document.createElement('td');
  1024. td_saoma_num17.width='20%';
  1025. td_saoma_num17.style.textAlign='center';
  1026. td_saoma_num17.innerHTML= heji1;
  1027. td_saoma_num17.style.borderLeft ='1px solid #BEBEBE';
  1028. td_saoma_num17.style.borderTop ='1px solid #BEBEBE';
  1029. td_saoma_num17.style.fontSize='14px';
  1030. tr19.appendChild(td_saoma_num17);
  1031. var td_baoxiucishu17= document.createElement('td');
  1032. td_baoxiucishu17.width='20%';
  1033. td_baoxiucishu17.style.textAlign='center';
  1034. td_baoxiucishu17.innerHTML= heji2;
  1035. td_baoxiucishu17.style.borderLeft ='1px solid #BEBEBE';
  1036. td_baoxiucishu17.style.borderTop ='1px solid #BEBEBE';
  1037. td_baoxiucishu17.style.fontSize='14px';
  1038. tr19.appendChild(td_baoxiucishu17);
  1039. var td_baoxiupinlv17 = document.createElement('td');
  1040. td_baoxiupinlv17.width='20%';
  1041. td_baoxiupinlv17.style.textAlign='center';
  1042. td_baoxiupinlv17.innerHTML=baifenbiresult15+'%';
  1043. td_baoxiupinlv17.style.fontSize='14px';
  1044. td_baoxiupinlv17.style.borderLeft ='1px solid #BEBEBE';
  1045. td_baoxiupinlv17.style.borderTop ='1px solid #BEBEBE';
  1046. tr19.appendChild(td_baoxiupinlv17);
  1047. }
  1048. }
  1049. }
  1050. var print_detail = function (){
  1051. var div1_label1 = document.getElementById('woker_talkbx').innerHTML;
  1052. // var div2_label1 = document.getElementById('patrolAnalysis_div2_label1').innerHTML;
  1053. var hkey_key;
  1054. var hkey_root = 'HKEY_CURRENT_USER';
  1055. var hkey_path = '\\Software\\Micorsoft\\Internet Explorer\\PageSetup\\';
  1056. var print_win = window.open('打印窗口','_blank');
  1057. var div = document.createElement('div');
  1058. div.setAttribute('width', '100%');
  1059. div.setAttribute('height', '100%');
  1060. var div_print = document.createElement('div');
  1061. div_print.setAttribute('style', 'width:595px;height:842px;padding:20px;margin:0px auto 0px auto');
  1062. div_print.innerHTML=div1_label1;
  1063. div.appendChild(div_print);
  1064. // var div_print1 = document.createElement('div');
  1065. // div_print1.setAttribute('style', 'width:595px;height:842px;padding:20px;margin:0px auto 0px auto');
  1066. // div_print1.innerHTML=div2_label1;
  1067. // div.appendChild(div_print1);
  1068. print_win.document.write(div.innerHTML);
  1069. print_win.document.close();
  1070. try{
  1071. var RegWsh = new ActiveXObject('WScript.Shell');
  1072. hkey_key='header';
  1073. RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,'');
  1074. hkey_key='footer';
  1075. RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,'');
  1076. }catch(e){}
  1077. print_win.print();
  1078. print_win.close();
  1079. }
  1080. var show_detail_data = function(start_data,end_data,project_date){
  1081. var start_data = start_data;
  1082. var end_data = end_data;
  1083. var build_code = build_code;
  1084. var project_date = project_date;
  1085. Ext.create('Ext.window.Window', {
  1086. id:'project_data_winbaoxiu',
  1087. title: '工作分析',
  1088. height: maxHeight-50,
  1089. width: 650,
  1090. maximizable: true,
  1091. layout: 'fit',
  1092. modal:true,
  1093. buttons:[
  1094. {
  1095. text:'导出',
  1096. handler : function () {
  1097. print_detail();
  1098. }
  1099. },{
  1100. text:'关闭',
  1101. handler : function() {
  1102. Ext.getCmp('project_data_winbaoxiu').destroy();
  1103. }
  1104. }
  1105. ],
  1106. closeAction:'destroy',
  1107. html:'<div style="overflow-y:auto;height:580px;width:640px;"><div id="woker_talkbx"></div></div>'
  1108. }).show();
  1109. var query = new Object();
  1110. // query.V_LOGINNAME = $("#V_LOGINNAME").val();
  1111. // query.V_PASSWORD = $("#V_PASSWORD").val();
  1112. query.start_data = start_data;
  1113. query.end_data = end_data;
  1114. query.type = 'baoxiu';
  1115. Ext.MessageBox.wait('Loading', '生成中…');
  1116. $.ajax({
  1117. type:'POST',
  1118. url: baseUrl+"iot/spotoperationrecord/getxjfenxi",
  1119. data: {
  1120. queryJson : Ext.JSON.encode(query)
  1121. },
  1122. success: function(result){
  1123. var json = eval('(' + result + ')');
  1124. if(json.action=='getxjfenxi'){
  1125. ConfirmStore15 = json.RESULT15;
  1126. ConfirmStore17 = json.RESULT17;
  1127. // ConfirmStore4 = json.RESULT4;
  1128. heji1 = json.heji1;
  1129. heji2 = json.heji2;
  1130. xjrysl = json.xjrysl;
  1131. xjbz = json.xjbz;
  1132. zrrnum = json.zrrnum;
  1133. wshbxnum = json.wshbxnum;
  1134. xjrwnum = json.xjrwnum;
  1135. xjdwnum = json.xjdwnum;
  1136. xjysmcsnum = json.xjysmcsnum;
  1137. xjbxcsnum = json.xjbxcsnum;
  1138. xjwksbaifenbi = json.xjwksbaifenbi;
  1139. baifenbishwtgwcbxrw = json.baifenbishwtgwcbxrw;
  1140. baifenbicswcbxrw = json.baifenbicswcbxrw;
  1141. baifenbiywcbxrw = json.baifenbiywcbxrw;
  1142. xjwksnum = json.xjwksnum;
  1143. xjjxznum = json.xjjxznum;
  1144. xjcsnum = json.xjcsnum;
  1145. xjywcnum = json.xjywcnum;
  1146. xjysmbaifenbi = json.xjysmbaifenbi;
  1147. xjwsmbaifenbi = json.xjwsmbaifenbi;
  1148. baifenbiwclbxrw = json.baifenbiwclbxrw;
  1149. baifenbiwshbxrw = json.baifenbiwshbxrw;
  1150. baifenbiresult16 = json.baifenbiresult16;
  1151. baifenbiresult17 = json.baifenbiresult17;
  1152. baifenbiresult15 = json.baifenbiresult15;
  1153. baifenbihuidan15 = json.baifenbihuidan15;
  1154. Ext.MessageBox.hide();
  1155. draw_confirm(query.start_data,query.end_data,project_date);
  1156. // highcharts();
  1157. highcharts1();
  1158. highcharts2();
  1159. highcharts3();
  1160. // highcharts4();
  1161. }
  1162. }
  1163. });
  1164. }
  1165. FilterWin = Ext.create('Ext.form.Panel', {
  1166. id: 'SpringHandleFilterForm',
  1167. labelWidth: 55,
  1168. defaultType: 'textfield',
  1169. bodyPadding: 15,
  1170. items: [{
  1171. xtype:'datefield',
  1172. fieldLabel:"开始日期",
  1173. minValue:'07/07/2017',
  1174. minText:"当前日期选择应大于2017-07-07",
  1175. format:"Y-m-d",
  1176. value:Ext.util.Format.date(Ext.Date.add(new Date(),Ext.Date.MONTH,-1),"Y-m-01"),
  1177. columnWidth:0.5,
  1178. id: 'start_date',
  1179. name:"start_date",
  1180. editable:false,//只读约束
  1181. allowBlank:false,
  1182. blankText:"不能为空",
  1183. anchor:'95%'
  1184. },{
  1185. xtype:'datefield',
  1186. fieldLabel:"结束日期",
  1187. minValue:'07/07/2017',
  1188. minText:"当前日期选择应大于2017-07-07",
  1189. format:"Y-m-d",
  1190. value:Ext.util.Format.date(new Date(new Date(new Date().getUTCFullYear(), new Date().getMonth(), 1) - 86400000), "Y-m-d"),
  1191. columnWidth:0.5,
  1192. id: 'end_date',
  1193. name:"end_date",
  1194. editable:false,//只读约束
  1195. allowBlank:false,
  1196. blankText:"不能为空",
  1197. anchor:'95%'
  1198. },
  1199. {
  1200. id:'ff_queryJson',
  1201. name:'queryJson',
  1202. hidden:true
  1203. }],
  1204. buttons: [{
  1205. text: '下一步',
  1206. iconCls:'ok_btn',
  1207. handler: function() {
  1208. var form = this.up('form').getForm();
  1209. if (form.isValid()) {
  1210. var start_date=Ext.util.Format.date(Ext.getCmp('start_date').getValue(), 'Y-m-d');
  1211. var end_date=Ext.util.Format.date(Ext.getCmp('end_date').getValue(), 'Y-m-d');
  1212. var project_date=Ext.util.Format.date(Ext.getCmp('start_date').getValue(), 'Y-m');
  1213. show_detail_data(start_date,end_date,project_date);
  1214. this.up('window').hide();
  1215. }
  1216. }
  1217. }]
  1218. });
  1219. var filterwin = function() {
  1220. Ext.create('Ext.window.Window',{
  1221. title: '工作分析',
  1222. height: 300,
  1223. width: 350,
  1224. layout: 'fit',
  1225. items: FilterWin,
  1226. closeAction: 'hide'
  1227. }).show();
  1228. };
  1229. mouseon = function(obj){
  1230. var id = obj.id;
  1231. $("#"+id).removeClass(id);
  1232. $("#"+id).addClass(id+'_on');
  1233. }
  1234. mouseoff = function(obj){
  1235. var mid = "springHandle_";
  1236. for(var i=1;i<5;i++){
  1237. var id = "springHandle_title"+i+"_div";
  1238. $("#"+id).removeClass(id+'_on');
  1239. $("#"+id).addClass(id);
  1240. }
  1241. if(menuidx=='m1'){
  1242. mid += 'title1_div';
  1243. $("#"+mid).removeClass(mid);
  1244. $("#"+mid).addClass(mid+'_on');
  1245. }
  1246. else if(menuidx=='m2'){
  1247. mid += 'title2_div';
  1248. $("#"+mid).removeClass(mid);
  1249. $("#"+mid).addClass(mid+'_on');
  1250. }
  1251. else if(menuidx=='m3'){
  1252. mid += 'title3_div';
  1253. $("#"+mid).removeClass(mid);
  1254. $("#"+mid).addClass(mid+'_on');
  1255. }
  1256. else if(menuidx=='m4'){
  1257. mid += 'title4_div';
  1258. $("#"+mid).removeClass(mid);
  1259. $("#"+mid).addClass(mid+'_on');
  1260. }
  1261. }
  1262. menu_click = function(obj){
  1263. var id = obj.id;
  1264. if(id=='springHandle_title1_div'){
  1265. menuidx = 'm1';
  1266. show_page();
  1267. }
  1268. else if(id=='springHandle_title2_div'){
  1269. menuidx = 'm2';
  1270. reset1();
  1271. }
  1272. else if(id=='springHandle_title3_div'){
  1273. menuidx = 'm3';
  1274. exportbtn_click();
  1275. }
  1276. else if(id=='springHandle_title4_div'){
  1277. menuidx = 'm4';
  1278. filterwin();
  1279. }
  1280. }
  1281. var maintenancedevice = function(){
  1282. var maintenance_look_device = document.getElementById('inspectorsCheck_look_device');
  1283. var img = document.createElement('img');
  1284. img.width=400;
  1285. img.height=400;
  1286. img.src = baseUrl+ConfirmStore[0].picture_route;
  1287. // img.src = ConfirmStore[0].picture_route;
  1288. img.setAttribute('class','maintenance_look_device_img');
  1289. maintenance_look_device.appendChild(img);
  1290. var div4 = document.createElement('div');
  1291. div4.style.textAlign='center';
  1292. div4.innerHTML=ConfirmStore[0].remarks;
  1293. maintenance_look_device.appendChild(div4);
  1294. }
  1295. var editMaintenance = function(spot_id){
  1296. var spot_id = spot_id;
  1297. Ext.create('Ext.window.Window', {
  1298. id:'inspectorsCheck_data_win1',
  1299. height: 500,
  1300. width: 400,
  1301. layout: 'fit',
  1302. modal:true,
  1303. buttons:[
  1304. {
  1305. text:'关闭',
  1306. handler : function() {
  1307. Ext.getCmp('inspectorsCheck_data_win1').destroy();
  1308. }
  1309. }
  1310. ],
  1311. closeAction:'destroy',
  1312. html:'<div id="inspectorsCheck_look_device"></div>'
  1313. }).show();
  1314. var query = new Object();
  1315. // query.V_LOGINNAME = $("#V_LOGINNAME").val();
  1316. // query.V_PASSWORD = $("#V_PASSWORD").val();
  1317. query.id = spot_id;
  1318. $.ajax({
  1319. type:'POST',
  1320. url: baseUrl+"iot/inspectionpoints/getList1",
  1321. data: {
  1322. queryJson : Ext.JSON.encode(query)
  1323. },
  1324. success: function(result){
  1325. var json = eval('(' + result + ')');
  1326. if(json.action=='getInspectionPointsList'){
  1327. ConfirmStore = json.RESULT;
  1328. maintenancedevice(ConfirmStore);
  1329. }
  1330. }
  1331. });
  1332. }
  1333. var maintenancePresentation = function(zyzp_status){
  1334. var maintenanceCheck_look_Presentation = document.getElementById('springHandle_look_Presentation');
  1335. var div = document.createElement('div');
  1336. div.setAttribute('class','SpringHandleDiv');
  1337. div.innerHTML='报修类型';
  1338. maintenanceCheck_look_Presentation.appendChild(div);
  1339. var div1 = document.createElement('div');
  1340. div1.setAttribute('class','SpringHandleDiv1');
  1341. div1.innerHTML=ConfirmStore[0].sj_tytpe_name;
  1342. maintenanceCheck_look_Presentation.appendChild(div1);
  1343. var div2 = document.createElement('div');
  1344. div2.setAttribute('class','SpringHandleDiv2');
  1345. div2.innerHTML='发起账号';
  1346. maintenanceCheck_look_Presentation.appendChild(div2);
  1347. var div3 = document.createElement('div');
  1348. div3.setAttribute('class','SpringHandleDiv3');
  1349. // div3.innerHTML='管理员账号';
  1350. div3.innerHTML=ConfirmStore[0].phone;
  1351. maintenanceCheck_look_Presentation.appendChild(div3);
  1352. var div4 = document.createElement('div');
  1353. div4.setAttribute('class','SpringHandleDiv4');
  1354. div4.innerHTML='应完成时间';
  1355. maintenanceCheck_look_Presentation.appendChild(div4);
  1356. var div5 = document.createElement('div');
  1357. div5.setAttribute('class','SpringHandleDiv5');
  1358. // div5.innerHTML='2019-03-04 13:48:07';
  1359. div5.innerHTML=ConfirmStore[0].y_complete_time;
  1360. maintenanceCheck_look_Presentation.appendChild(div5);
  1361. var div6 = document.createElement('div');
  1362. div6.setAttribute('class','SpringHandleDiv6');
  1363. div6.innerHTML='备注';
  1364. maintenanceCheck_look_Presentation.appendChild(div6);
  1365. var div7 = document.createElement('div');
  1366. div7.setAttribute('class','SpringHandleDiv7');
  1367. // div7.innerHTML='玻璃不知道被谁砸坏了,需要联系物业更换玻璃';
  1368. div7.innerHTML=ConfirmStore[0].zp_remarks;
  1369. maintenanceCheck_look_Presentation.appendChild(div7);
  1370. var div8 = document.createElement('div');
  1371. div8.setAttribute('class','SpringHandleDiv8');
  1372. div8.innerHTML='责任人';
  1373. maintenanceCheck_look_Presentation.appendChild(div8);
  1374. var div9 = document.createElement('div');
  1375. div9.setAttribute('class','SpringHandleDiv9');
  1376. // div9.innerHTML='张某';
  1377. div9.innerHTML=ConfirmStore[0].name;
  1378. maintenanceCheck_look_Presentation.appendChild(div9);
  1379. var div10 = document.createElement('div');
  1380. div10.setAttribute('class','SpringHandleDiv10');
  1381. div10.innerHTML='发起时间';
  1382. maintenanceCheck_look_Presentation.appendChild(div10);
  1383. var div11 = document.createElement('div');
  1384. div11.setAttribute('class','SpringHandleDiv11');
  1385. // div11.innerHTML='2019-03-04 13:48:07';
  1386. div11.innerHTML=ConfirmStore[0].sbsj;
  1387. maintenanceCheck_look_Presentation.appendChild(div11);
  1388. }
  1389. var maintenancePresentation0 = function(zyzp_status){
  1390. var maintenanceCheck_look_Presentation = document.getElementById('springHandle_look_Presentation');
  1391. var date=new Date;
  1392. var times = date.getHours()+':'+date.getMinutes()+':'+date.getSeconds(); //时
  1393. var dates=Ext.util.Format.date(date, 'Y-m-d');
  1394. var div12 = document.createElement('div');
  1395. div12.setAttribute('class','SpringHandleDiv12');
  1396. div12.innerHTML='报修类型';
  1397. maintenanceCheck_look_Presentation.appendChild(div12);
  1398. var select = document.createElement('select');
  1399. select.setAttribute('class','SpringHandleSelect');
  1400. select.setAttribute('id','springHandle_select_id');
  1401. maintenanceCheck_look_Presentation.appendChild(select);
  1402. var option6 = document.createElement('option');
  1403. option6.innerHTML='请选择';
  1404. option6.setAttribute('value','0');
  1405. select.appendChild(option6);
  1406. var option7 = document.createElement('option');
  1407. option7.innerHTML='故障';
  1408. option7.setAttribute('value','1');
  1409. select.appendChild(option7);
  1410. var option8 = document.createElement('option');
  1411. option8.innerHTML='隐患';
  1412. option8.setAttribute('value','2');
  1413. select.appendChild(option8);
  1414. var option9 = document.createElement('option');
  1415. option9.innerHTML='其他';
  1416. option9.setAttribute('value','3');
  1417. select.appendChild(option9);
  1418. var div13 = document.createElement('div');
  1419. div13.setAttribute('class','SpringHandleDiv13');
  1420. div13.innerHTML='应完成时间';
  1421. maintenanceCheck_look_Presentation.appendChild(div13);
  1422. var input = document.createElement('input');
  1423. input.setAttribute('class','springHandleInput');
  1424. input.setAttribute('id','springHandle_input_id');
  1425. input.setAttribute('type','text');
  1426. input.setAttribute('readonly','true');
  1427. input.setAttribute('value',dates);
  1428. maintenanceCheck_look_Presentation.appendChild(input);
  1429. var endDate = laydate.render({
  1430. elem: '#springHandle_input_id'
  1431. });
  1432. var input1 = document.createElement('input');
  1433. input1.setAttribute('class','springHandleInput1');
  1434. input1.setAttribute('id','springHandle_input1_id');
  1435. input1.setAttribute('type','text');
  1436. input1.setAttribute('readonly','true');
  1437. input1.setAttribute('value',times);
  1438. maintenanceCheck_look_Presentation.appendChild(input1);
  1439. var endTime = laydate.render({
  1440. elem: '#springHandle_input1_id',
  1441. type: 'time'
  1442. });
  1443. var div14 = document.createElement('div');
  1444. div14.setAttribute('class','SpringHandleDiv14');
  1445. div14.innerHTML='备注';
  1446. maintenanceCheck_look_Presentation.appendChild(div14);
  1447. var textarea = document.createElement('textarea');
  1448. textarea.setAttribute('class','SpringHandleTextarea');
  1449. textarea.setAttribute('id','springHandle_textarea_id');
  1450. maintenanceCheck_look_Presentation.appendChild(textarea);
  1451. var div15 = document.createElement('div');
  1452. div15.setAttribute('class','SpringHandleDiv15');
  1453. div15.innerHTML='责任人';
  1454. maintenanceCheck_look_Presentation.appendChild(div15);
  1455. var select1 = document.createElement('select');
  1456. select1.setAttribute('class','SpringHandleSelect1');
  1457. select1.setAttribute('id','springHandle_select1_id');
  1458. maintenanceCheck_look_Presentation.appendChild(select1);
  1459. for(var i=0;i<ConfirmStore1.length;i++){
  1460. var option10 = document.createElement('option');
  1461. option10.innerHTML=ConfirmStore1[i].name;
  1462. option10.setAttribute('value',ConfirmStore1[i].zrrid);
  1463. select1.appendChild(option10);
  1464. }
  1465. }
  1466. editMaintenancePresentation = function(status,id){
  1467. var zyzp_status = status;
  1468. var spot_id = id;
  1469. if(zyzp_status==0){
  1470. Ext.create('Ext.window.Window', {
  1471. title: '人员指派',
  1472. id:'springHandle_peison_win',
  1473. height: 300,
  1474. width: 500,
  1475. modal:true,
  1476. layout: 'fit',
  1477. buttons:[
  1478. {
  1479. text:'确定',
  1480. handler : function () {
  1481. var date=new Date;
  1482. var times = date.getHours()+':'+date.getMinutes()+':'+date.getSeconds(); //时
  1483. var dates=Ext.util.Format.date(date, 'Y-m-d');
  1484. var lx = document.getElementById('springHandle_select_id').value;
  1485. var data3a = document.getElementById('springHandle_input_id').value;
  1486. var data3b = document.getElementById('springHandle_input1_id').value;
  1487. var bz = document.getElementById('springHandle_textarea_id').value;
  1488. var zrr = document.getElementById('springHandle_select1_id').value;
  1489. var query = new Object();
  1490. if(lx.length>0){
  1491. query.sj_type = lx;
  1492. }
  1493. if(data3b.length>0&&data3a.length>0){
  1494. query.y_complete_time = data3a+" "+data3b;
  1495. }
  1496. // if(){
  1497. // query.data3a = data3a;
  1498. // }
  1499. if(bz.length>0){
  1500. query.zp_remarks = bz;
  1501. }
  1502. if(zrr.length>0){
  1503. query.person_liable = zrr;
  1504. }
  1505. // if(spot_id.length>0){
  1506. query.id = spot_id;
  1507. // }
  1508. // query.V_LOGINNAME = V_LOGINNAME;
  1509. // query.V_PASSWORD = V_PASSWORD;
  1510. $.ajax({
  1511. type:'POST',
  1512. url: baseUrl+"iot/xjeventprocessing/updatezp",
  1513. data: {
  1514. queryJson : Ext.JSON.encode(query)
  1515. },
  1516. // success: function(result){
  1517. // Ext.Msg.alert('操作成功', '已指派', function(btn,txt){
  1518. // Ext.getCmp('SpringHandleListPanel').getStore().reload();
  1519. // });
  1520. // }
  1521. success: function(result){
  1522. var json = eval('(' + result + ')');
  1523. if(json.action=='updateEventProcessingzp'){
  1524. if(json.success==true){
  1525. Ext.Msg.alert('操作成功', '已指派' , function(btn,txt){
  1526. Ext.getCmp('SpringHandleListPanel').getStore().reload();
  1527. });
  1528. }else{
  1529. Ext.Msg.alert('操作失败', json.MSG , function(btn,txt){
  1530. Ext.getCmp('SpringHandleListPanel').getStore().reload();
  1531. });
  1532. }
  1533. }
  1534. }
  1535. });
  1536. Ext.getCmp('springHandle_peison_win').destroy();
  1537. }
  1538. },{
  1539. text:'关闭',
  1540. handler : function() {
  1541. Ext.getCmp('springHandle_peison_win').destroy();
  1542. }
  1543. }
  1544. ],
  1545. closeAction:'destroy',
  1546. html:'<div style="overflow-y:auto;height:240px;width:500px;background:#002c59;"><div id="springHandle_look_Presentation"></div></div>'
  1547. }).show();
  1548. var query = new Object();
  1549. // query.V_LOGINNAME = $("#V_LOGINNAME").val();
  1550. // query.V_PASSWORD = $("#V_PASSWORD").val();
  1551. query.jlid = spot_id;
  1552. $.ajax({
  1553. type:'POST',
  1554. url: baseUrl+"iot/xjeventprocessing/getwxzrr",
  1555. data: {
  1556. queryJson : Ext.JSON.encode(query)
  1557. },
  1558. success: function(result){
  1559. var json = eval('(' + result + ')');
  1560. if(json.action=='getwxzrr'){
  1561. ConfirmStore1 = json.RESULT;
  1562. maintenancePresentation0(zyzp_status);
  1563. }
  1564. }
  1565. });
  1566. }else{
  1567. Ext.create('Ext.window.Window', {
  1568. title: '人员指派',
  1569. height: 300,
  1570. width: 500,
  1571. modal:true,
  1572. layout: 'fit',
  1573. closeAction:'destroy',
  1574. html:'<div style="overflow-y:auto;height:270px;width:500px;background:#002c59;"><div id="springHandle_look_Presentation"></div></div>'
  1575. }).show();
  1576. var query = new Object();
  1577. // query.V_LOGINNAME = $("#V_LOGINNAME").val();
  1578. // query.V_PASSWORD = $("#V_PASSWORD").val();
  1579. query.id = spot_id;
  1580. $.ajax({
  1581. type:'POST',
  1582. url: baseUrl+"iot/xjeventprocessing/getAssignJlList",
  1583. data: {
  1584. queryJson : Ext.JSON.encode(query)
  1585. },
  1586. success: function(result){
  1587. var json = eval('(' + result + ')');
  1588. if(json.action=='getAssignJlList'){
  1589. ConfirmStore = json.RESULT;
  1590. maintenancePresentation(zyzp_status);
  1591. }
  1592. }
  1593. });
  1594. }
  1595. }
  1596. var examineStatusHtml = function(){
  1597. var springHandleHtml2 = document.getElementById('springHandleHtml2');
  1598. var div16 = document.createElement('div');
  1599. div16.setAttribute('class','SpringHandleHtml2Div16');
  1600. div16.innerHTML='处理状态';
  1601. springHandleHtml2.appendChild(div16);
  1602. // if(ConfirmStore[0].cl_type==2){
  1603. var div17 = document.createElement('div');
  1604. div17.setAttribute('class','SpringHandleHtml2Div17');
  1605. div17.innerHTML='未审核';
  1606. springHandleHtml2.appendChild(div17);
  1607. // }else if(ConfirmStore[0].cl_type==3){
  1608. // var div17 = document.createElement('div');
  1609. // div17.setAttribute('class','SpringHandleHtml2Div1713');
  1610. // div17.innerHTML='审核未通过';
  1611. // springHandleHtml2.appendChild(div17);
  1612. // }else if(ConfirmStore[0].cl_type==4){
  1613. // var div17 = document.createElement('div');
  1614. // div17.setAttribute('class','SpringHandleHtml2Div17');
  1615. // div17.innerHTML='已完成';
  1616. // springHandleHtml2.appendChild(div17);
  1617. // }else if(ConfirmStore[0].cl_type==5){
  1618. // var div17 = document.createElement('div');
  1619. // div17.setAttribute('class','SpringHandleHtml2Div1713');
  1620. // div17.innerHTML='超时完成';
  1621. // springHandleHtml2.appendChild(div17);
  1622. // }
  1623. var div18 = document.createElement('div');
  1624. div18.setAttribute('class','SpringHandleHtml2Div18');
  1625. div18.innerHTML='责任人';
  1626. springHandleHtml2.appendChild(div18);
  1627. var div19 = document.createElement('div');
  1628. div19.setAttribute('class','SpringHandleHtml2Div19');
  1629. div19.innerHTML=ConfirmStore[0].person_liable_name;
  1630. springHandleHtml2.appendChild(div19);
  1631. var div20 = document.createElement('div');
  1632. div20.setAttribute('class','SpringHandleHtml2Div20');
  1633. div20.innerHTML='发起账号';
  1634. springHandleHtml2.appendChild(div20);
  1635. var div21 = document.createElement('div');
  1636. div21.setAttribute('class','SpringHandleHtml2Div21');
  1637. div21.innerHTML=ConfirmStore[0].phone;
  1638. springHandleHtml2.appendChild(div21);
  1639. var div22 = document.createElement('div');
  1640. div22.setAttribute('class','SpringHandleHtml2Div22');
  1641. div22.innerHTML='应处理时间';
  1642. springHandleHtml2.appendChild(div22);
  1643. var div23 = document.createElement('div');
  1644. div23.setAttribute('class','SpringHandleHtml2Div23');
  1645. div23.innerHTML=ConfirmStore[0].y_complete_time;
  1646. springHandleHtml2.appendChild(div23);
  1647. var div24 = document.createElement('div');
  1648. div24.setAttribute('class','SpringHandleHtml2Div24');
  1649. div24.innerHTML='上报时间';
  1650. springHandleHtml2.appendChild(div24);
  1651. var div25 = document.createElement('div');
  1652. div25.setAttribute('class','SpringHandleHtml2Div25');
  1653. div25.innerHTML=ConfirmStore[0].sbsj;
  1654. springHandleHtml2.appendChild(div25);
  1655. }
  1656. var examineStatusHtml1 = function(){
  1657. var springHandleHtml2 = document.getElementById('springHandleHtml3');
  1658. var div16 = document.createElement('div');
  1659. div16.setAttribute('class','SpringHandleHtml2Div16');
  1660. div16.innerHTML='处理状态';
  1661. springHandleHtml2.appendChild(div16);
  1662. var div17 = document.createElement('div');
  1663. div17.setAttribute('class','SpringHandleHtml2Div1713');
  1664. div17.innerHTML='审核未通过';
  1665. springHandleHtml2.appendChild(div17);
  1666. var div18 = document.createElement('div');
  1667. div18.setAttribute('class','SpringHandleHtml2Div18');
  1668. div18.innerHTML='责任人';
  1669. springHandleHtml2.appendChild(div18);
  1670. var div19 = document.createElement('div');
  1671. div19.setAttribute('class','SpringHandleHtml2Div19');
  1672. div19.innerHTML=ConfirmStore[0].person_liable_name;
  1673. springHandleHtml2.appendChild(div19);
  1674. var div20 = document.createElement('div');
  1675. div20.setAttribute('class','SpringHandleHtml2Div20');
  1676. div20.innerHTML='发起账号';
  1677. springHandleHtml2.appendChild(div20);
  1678. var div21 = document.createElement('div');
  1679. div21.setAttribute('class','SpringHandleHtml2Div21');
  1680. div21.innerHTML=ConfirmStore[0].phone;
  1681. springHandleHtml2.appendChild(div21);
  1682. var div22 = document.createElement('div');
  1683. div22.setAttribute('class','SpringHandleHtml2Div22');
  1684. div22.innerHTML='应处理时间';
  1685. springHandleHtml2.appendChild(div22);
  1686. var div23 = document.createElement('div');
  1687. div23.setAttribute('class','SpringHandleHtml2Div23');
  1688. div23.innerHTML=ConfirmStore[0].y_complete_time;
  1689. springHandleHtml2.appendChild(div23);
  1690. var div24 = document.createElement('div');
  1691. div24.setAttribute('class','SpringHandleHtml2Div24');
  1692. div24.innerHTML='上报时间';
  1693. springHandleHtml2.appendChild(div24);
  1694. var div25 = document.createElement('div');
  1695. div25.setAttribute('class','SpringHandleHtml2Div25');
  1696. div25.innerHTML=ConfirmStore[0].sbsj;
  1697. springHandleHtml2.appendChild(div25);
  1698. }
  1699. var examineStatusHtml2 = function(){
  1700. var springHandleHtml2 = document.getElementById('springHandleHtml4');
  1701. var div16 = document.createElement('div');
  1702. div16.setAttribute('class','SpringHandleHtml2Div16');
  1703. div16.innerHTML='处理状态';
  1704. springHandleHtml2.appendChild(div16);
  1705. var div17 = document.createElement('div');
  1706. div17.setAttribute('class','SpringHandleHtml2Div17');
  1707. div17.innerHTML='已完成';
  1708. springHandleHtml2.appendChild(div17);
  1709. var div18 = document.createElement('div');
  1710. div18.setAttribute('class','SpringHandleHtml2Div18');
  1711. div18.innerHTML='责任人';
  1712. springHandleHtml2.appendChild(div18);
  1713. var div19 = document.createElement('div');
  1714. div19.setAttribute('class','SpringHandleHtml2Div19');
  1715. div19.innerHTML=ConfirmStore[0].person_liable_name;
  1716. springHandleHtml2.appendChild(div19);
  1717. var div20 = document.createElement('div');
  1718. div20.setAttribute('class','SpringHandleHtml2Div20');
  1719. div20.innerHTML='发起账号';
  1720. springHandleHtml2.appendChild(div20);
  1721. var div21 = document.createElement('div');
  1722. div21.setAttribute('class','SpringHandleHtml2Div21');
  1723. div21.innerHTML=ConfirmStore[0].phone;
  1724. springHandleHtml2.appendChild(div21);
  1725. var div22 = document.createElement('div');
  1726. div22.setAttribute('class','SpringHandleHtml2Div22');
  1727. div22.innerHTML='应处理时间';
  1728. springHandleHtml2.appendChild(div22);
  1729. var div23 = document.createElement('div');
  1730. div23.setAttribute('class','SpringHandleHtml2Div23');
  1731. div23.innerHTML=ConfirmStore[0].y_complete_time;
  1732. springHandleHtml2.appendChild(div23);
  1733. var div24 = document.createElement('div');
  1734. div24.setAttribute('class','SpringHandleHtml2Div24');
  1735. div24.innerHTML='上报时间';
  1736. springHandleHtml2.appendChild(div24);
  1737. var div25 = document.createElement('div');
  1738. div25.setAttribute('class','SpringHandleHtml2Div25');
  1739. div25.innerHTML=ConfirmStore[0].sbsj;
  1740. springHandleHtml2.appendChild(div25);
  1741. }
  1742. var examineStatusHtml3 = function(){
  1743. var springHandleHtml2 = document.getElementById('springHandleHtml5');
  1744. var div16 = document.createElement('div');
  1745. div16.setAttribute('class','SpringHandleHtml2Div16');
  1746. div16.innerHTML='处理状态';
  1747. springHandleHtml2.appendChild(div16);
  1748. var div17 = document.createElement('div');
  1749. div17.setAttribute('class','SpringHandleHtml2Div1713');
  1750. div17.innerHTML='超时完成';
  1751. springHandleHtml2.appendChild(div17);
  1752. var div18 = document.createElement('div');
  1753. div18.setAttribute('class','SpringHandleHtml2Div18');
  1754. div18.innerHTML='责任人';
  1755. springHandleHtml2.appendChild(div18);
  1756. var div19 = document.createElement('div');
  1757. div19.setAttribute('class','SpringHandleHtml2Div19');
  1758. div19.innerHTML=ConfirmStore[0].person_liable_name;
  1759. springHandleHtml2.appendChild(div19);
  1760. var div20 = document.createElement('div');
  1761. div20.setAttribute('class','SpringHandleHtml2Div20');
  1762. div20.innerHTML='发起账号';
  1763. springHandleHtml2.appendChild(div20);
  1764. var div21 = document.createElement('div');
  1765. div21.setAttribute('class','SpringHandleHtml2Div21');
  1766. div21.innerHTML=ConfirmStore[0].phone;
  1767. springHandleHtml2.appendChild(div21);
  1768. var div22 = document.createElement('div');
  1769. div22.setAttribute('class','SpringHandleHtml2Div22');
  1770. div22.innerHTML='应处理时间';
  1771. springHandleHtml2.appendChild(div22);
  1772. var div23 = document.createElement('div');
  1773. div23.setAttribute('class','SpringHandleHtml2Div23');
  1774. div23.innerHTML=ConfirmStore[0].y_complete_time;
  1775. springHandleHtml2.appendChild(div23);
  1776. var div24 = document.createElement('div');
  1777. div24.setAttribute('class','SpringHandleHtml2Div24');
  1778. div24.innerHTML='上报时间';
  1779. springHandleHtml2.appendChild(div24);
  1780. var div25 = document.createElement('div');
  1781. div25.setAttribute('class','SpringHandleHtml2Div25');
  1782. div25.innerHTML=ConfirmStore[0].sbsj;
  1783. springHandleHtml2.appendChild(div25);
  1784. }
  1785. var springHandlePanel1Html = function(){
  1786. var springHandlePanel1 = document.getElementById('springHandlePanel1');
  1787. var div26 = document.createElement('div');
  1788. div26.id='div26_id_springHandlePanel1';
  1789. div26.setAttribute('class','SpringHandleHtml2Div26');
  1790. div26.innerHTML='结果照片';
  1791. springHandlePanel1.appendChild(div26);
  1792. var springHandlePanel1title = document.createElement('img');
  1793. springHandlePanel1title.setAttribute('class','SpringHandlePanel1Title');
  1794. // springHandlePanel1title.src='../../res/img/common/shangchaun.png';
  1795. springHandlePanel1title.src=ConfirmStore[0].picture_path;
  1796. springHandlePanel1.appendChild(springHandlePanel1title);
  1797. var div27 = document.createElement('div');
  1798. div27.setAttribute('class','SpringHandleHtml2Div27');
  1799. div27.innerHTML='结果备注';
  1800. springHandlePanel1.appendChild(div27);
  1801. var div28 = document.createElement('div');
  1802. div28.setAttribute('class','SpringHandleHtml2Div28');
  1803. div28.innerHTML=ConfirmStore[0].jg_remarks;
  1804. springHandlePanel1.appendChild(div28);
  1805. var div29 = document.createElement('div');
  1806. div29.setAttribute('class','SpringHandleHtml2Div29');
  1807. div29.innerHTML='处理时间';
  1808. springHandlePanel1.appendChild(div29);
  1809. var div30 = document.createElement('div');
  1810. div30.setAttribute('class','SpringHandleHtml2Div30');
  1811. div30.innerHTML=ConfirmStore[0].cl_time;
  1812. springHandlePanel1.appendChild(div30);
  1813. var div31 = document.createElement('div');
  1814. div31.setAttribute('class','SpringHandleHtml2Div31');
  1815. div31.innerHTML='审核结果';
  1816. springHandlePanel1.appendChild(div31);
  1817. var div32 = document.createElement('div');
  1818. div32.setAttribute('class','SpringHandleHtml2Div32');
  1819. div32.innerHTML='无';
  1820. springHandlePanel1.appendChild(div32);
  1821. var div33 = document.createElement('div');
  1822. div33.setAttribute('class','SpringHandleHtml2Div33');
  1823. div33.innerHTML='审核时间';
  1824. springHandlePanel1.appendChild(div33);
  1825. var div34 = document.createElement('div');
  1826. div34.setAttribute('class','SpringHandleHtml2Div34');
  1827. div34.innerHTML='无';
  1828. springHandlePanel1.appendChild(div34);
  1829. var div35 = document.createElement('div');
  1830. div35.setAttribute('class','SpringHandleHtml2Div35');
  1831. div35.innerHTML='审核';
  1832. springHandlePanel1.appendChild(div35);
  1833. var select36 = document.createElement('select');
  1834. select36.setAttribute('class','SpringHandleSelect36');
  1835. select36.setAttribute('id','springHandle_select36_id');
  1836. // select36.setAttribute('onchange',"changeon(this)");
  1837. springHandlePanel1.appendChild(select36);
  1838. var option6 = document.createElement('option');
  1839. option6.innerHTML='请选择';
  1840. option6.setAttribute('value','0');
  1841. select36.appendChild(option6);
  1842. var option7 = document.createElement('option');
  1843. option7.innerHTML='审核不通过';
  1844. option7.setAttribute('value','3');
  1845. select36.appendChild(option7);
  1846. var option8 = document.createElement('option');
  1847. option8.innerHTML='完成';
  1848. option8.setAttribute('value','4');
  1849. select36.appendChild(option8);
  1850. var option9 = document.createElement('option');
  1851. option9.innerHTML='超时完成';
  1852. option9.setAttribute('value','5');
  1853. select36.appendChild(option9);
  1854. var div37 = document.createElement('div');
  1855. div37.setAttribute('class','SpringHandleHtml2Div37');
  1856. div37.innerHTML='备注';
  1857. springHandlePanel1.appendChild(div37);
  1858. var textarea2 = document.createElement('textarea');
  1859. textarea2.setAttribute('class','SpringHandleTextarea2');
  1860. textarea2.setAttribute('id','springHandle_textarea2_id');
  1861. springHandlePanel1.appendChild(textarea2);
  1862. }
  1863. var springHandlePanel2Html = function(){
  1864. var springHandlePanel2 = document.getElementById('springHandlePanel2');
  1865. if(ConfirmStore[0].data1=='0'){
  1866. var div26 = document.createElement('div');
  1867. div26.id='div26_id_springHandlePanel2';
  1868. div26.setAttribute('class','SpringHandleHtml2Div26');
  1869. div26.innerHTML='结果照片';
  1870. springHandlePanel2.appendChild(div26);
  1871. var springHandlePanel1title = document.createElement('img');
  1872. springHandlePanel1title.setAttribute('class','SpringHandlePanel1Title');
  1873. springHandlePanel1title.src='../../res/img/common/wutu.png';
  1874. // springHandlePanel1title.src=ConfirmStore[0].picture_path;
  1875. springHandlePanel2.appendChild(springHandlePanel1title);
  1876. var div27 = document.createElement('div');
  1877. div27.setAttribute('class','SpringHandleHtml2Div27');
  1878. div27.innerHTML='结果备注';
  1879. springHandlePanel2.appendChild(div27);
  1880. var div28 = document.createElement('div');
  1881. div28.setAttribute('class','SpringHandleHtml2Div28');
  1882. div28.innerHTML="无";
  1883. springHandlePanel2.appendChild(div28);
  1884. var div29 = document.createElement('div');
  1885. div29.setAttribute('class','SpringHandleHtml2Div29');
  1886. div29.innerHTML='处理时间';
  1887. springHandlePanel2.appendChild(div29);
  1888. var div30 = document.createElement('div');
  1889. div30.setAttribute('class','SpringHandleHtml2Div30');
  1890. div30.innerHTML="无";
  1891. springHandlePanel2.appendChild(div30);
  1892. var div31 = document.createElement('div');
  1893. div31.setAttribute('class','SpringHandleHtml2Div31');
  1894. div31.innerHTML='审核结果';
  1895. springHandlePanel2.appendChild(div31);
  1896. var div32 = document.createElement('div');
  1897. div32.setAttribute('class','SpringHandleHtml2Div32');
  1898. div32.innerHTML='无';
  1899. springHandlePanel2.appendChild(div32);
  1900. var div33 = document.createElement('div');
  1901. div33.setAttribute('class','SpringHandleHtml2Div33');
  1902. div33.innerHTML='审核时间';
  1903. springHandlePanel2.appendChild(div33);
  1904. var div34 = document.createElement('div');
  1905. div34.setAttribute('class','SpringHandleHtml2Div34');
  1906. div34.innerHTML='无';
  1907. springHandlePanel2.appendChild(div34);
  1908. }else if(ConfirmStore[0].data1=='1'){
  1909. var div26 = document.createElement('div');
  1910. div26.id='div26_id_springHandlePanel2';
  1911. div26.setAttribute('class','SpringHandleHtml2Div26');
  1912. div26.innerHTML='结果照片';
  1913. springHandlePanel2.appendChild(div26);
  1914. var springHandlePanel1title = document.createElement('img');
  1915. springHandlePanel1title.setAttribute('class','SpringHandlePanel1Title');
  1916. // springHandlePanel1title.src='../../res/img/common/wutu.png';
  1917. springHandlePanel1title.src=ConfirmStore[0].picture_path;
  1918. springHandlePanel2.appendChild(springHandlePanel1title);
  1919. var div27 = document.createElement('div');
  1920. div27.setAttribute('class','SpringHandleHtml2Div27');
  1921. div27.innerHTML='结果备注';
  1922. springHandlePanel2.appendChild(div27);
  1923. var div28 = document.createElement('div');
  1924. div28.setAttribute('class','SpringHandleHtml2Div28');
  1925. div28.innerHTML=ConfirmStore[0].jg_remarks;
  1926. springHandlePanel2.appendChild(div28);
  1927. var div29 = document.createElement('div');
  1928. div29.setAttribute('class','SpringHandleHtml2Div29');
  1929. div29.innerHTML='处理时间';
  1930. springHandlePanel2.appendChild(div29);
  1931. var div30 = document.createElement('div');
  1932. div30.setAttribute('class','SpringHandleHtml2Div30');
  1933. div30.innerHTML=ConfirmStore[0].cl_time;
  1934. springHandlePanel2.appendChild(div30);
  1935. var div31 = document.createElement('div');
  1936. div31.setAttribute('class','SpringHandleHtml2Div31');
  1937. div31.innerHTML='审核结果';
  1938. springHandlePanel2.appendChild(div31);
  1939. var div32 = document.createElement('div');
  1940. div32.setAttribute('class','SpringHandleHtml2Div32');
  1941. div32.innerHTML='无';
  1942. springHandlePanel2.appendChild(div32);
  1943. var div33 = document.createElement('div');
  1944. div33.setAttribute('class','SpringHandleHtml2Div33');
  1945. div33.innerHTML='审核时间';
  1946. springHandlePanel2.appendChild(div33);
  1947. var div34 = document.createElement('div');
  1948. div34.setAttribute('class','SpringHandleHtml2Div34');
  1949. div34.innerHTML='无';
  1950. springHandlePanel2.appendChild(div34);
  1951. var div35 = document.createElement('div');
  1952. div35.setAttribute('class','SpringHandleHtml2Div35');
  1953. div35.innerHTML='审核';
  1954. springHandlePanel2.appendChild(div35);
  1955. var select36 = document.createElement('select');
  1956. select36.setAttribute('class','SpringHandleSelect36');
  1957. select36.setAttribute('id','springHandle_select36_id2');
  1958. // select36.setAttribute('onchange',"changeon(this)");
  1959. springHandlePanel2.appendChild(select36);
  1960. var option6 = document.createElement('option');
  1961. option6.innerHTML='请选择';
  1962. option6.setAttribute('value','0');
  1963. select36.appendChild(option6);
  1964. var option7 = document.createElement('option');
  1965. option7.innerHTML='审核不通过';
  1966. option7.setAttribute('value','3');
  1967. select36.appendChild(option7);
  1968. var option8 = document.createElement('option');
  1969. option8.innerHTML='完成';
  1970. option8.setAttribute('value','4');
  1971. select36.appendChild(option8);
  1972. var option9 = document.createElement('option');
  1973. option9.innerHTML='超时完成';
  1974. option9.setAttribute('value','5');
  1975. select36.appendChild(option9);
  1976. var div37 = document.createElement('div');
  1977. div37.setAttribute('class','SpringHandleHtml2Div37');
  1978. div37.innerHTML='备注';
  1979. springHandlePanel2.appendChild(div37);
  1980. var textarea2 = document.createElement('textarea');
  1981. textarea2.setAttribute('class','SpringHandleTextarea2');
  1982. textarea2.setAttribute('id','springHandle_textarea2_id2');
  1983. springHandlePanel2.appendChild(textarea2);
  1984. }
  1985. }
  1986. var springHandlePanel3Html = function(){
  1987. var springHandlePanel3 = document.getElementById('springHandlePanel3');
  1988. var divhiddle = document.createElement('div');
  1989. divhiddle.id='div26_id_springHandlePanel3';
  1990. divhiddle.setAttribute('class','SpringHandleHtml3DivHiddle');
  1991. springHandlePanel3.appendChild(divhiddle);
  1992. for(var i=0;i<ConfirmStore.length;i++){
  1993. var divpanel3 = document.createElement('div');
  1994. divpanel3.setAttribute('class','SpringHandleHtml3DivPanel3');
  1995. springHandlePanel3.appendChild(divpanel3);
  1996. var div26 = document.createElement('div');
  1997. div26.setAttribute('class','SpringHandleHtml2Div26');
  1998. div26.innerHTML='结果照片';
  1999. divpanel3.appendChild(div26);
  2000. var springHandlePanel1title = document.createElement('img');
  2001. springHandlePanel1title.setAttribute('class','SpringHandlePanel1Title');
  2002. springHandlePanel1title.src=ConfirmStore[i].picture_path;
  2003. divpanel3.appendChild(springHandlePanel1title);
  2004. var div27 = document.createElement('div');
  2005. div27.setAttribute('class','SpringHandleHtml2Div27');
  2006. div27.innerHTML='结果备注';
  2007. divpanel3.appendChild(div27);
  2008. var div28 = document.createElement('div');
  2009. div28.setAttribute('class','SpringHandleHtml2Div28');
  2010. div28.innerHTML=ConfirmStore[i].jg_remarks;
  2011. divpanel3.appendChild(div28);
  2012. var div29 = document.createElement('div');
  2013. div29.setAttribute('class','SpringHandleHtml2Div29');
  2014. div29.innerHTML='处理时间';
  2015. divpanel3.appendChild(div29);
  2016. var div30 = document.createElement('div');
  2017. div30.setAttribute('class','SpringHandleHtml2Div30');
  2018. div30.innerHTML=ConfirmStore[i].cl_time;
  2019. divpanel3.appendChild(div30);
  2020. var div31 = document.createElement('div');
  2021. div31.setAttribute('class','SpringHandleHtml2Div31');
  2022. div31.innerHTML='审核结果';
  2023. divpanel3.appendChild(div31);
  2024. var div32 = document.createElement('div');
  2025. div32.setAttribute('class','SpringHandleHtml2Div32');
  2026. div32.innerHTML=ConfirmStore[i].cl_type_name;
  2027. divpanel3.appendChild(div32);
  2028. var div33 = document.createElement('div');
  2029. div33.setAttribute('class','SpringHandleHtml2Div33');
  2030. div33.innerHTML='审核时间';
  2031. divpanel3.appendChild(div33);
  2032. var div34 = document.createElement('div');
  2033. div34.setAttribute('class','SpringHandleHtml2Div34');
  2034. div34.innerHTML=ConfirmStore[i].sh_time;
  2035. divpanel3.appendChild(div34);
  2036. var div35 = document.createElement('div');
  2037. div35.setAttribute('class','SpringHandleHtml3Div35');
  2038. div35.innerHTML='备注';
  2039. divpanel3.appendChild(div35);
  2040. var div36 = document.createElement('div');
  2041. div36.setAttribute('class','SpringHandleHtml3Div36');
  2042. div36.innerHTML=ConfirmStore[i].sh_remarks;
  2043. divpanel3.appendChild(div36);
  2044. }
  2045. }
  2046. var springHandlePanel4Html = function(){
  2047. var springHandlePanel3 = document.getElementById('springHandlePanel4');
  2048. var divhiddle = document.createElement('div');
  2049. divhiddle.id='div26_id_springHandlePanel4';
  2050. divhiddle.setAttribute('class','SpringHandleHtml3DivHiddle');
  2051. springHandlePanel3.appendChild(divhiddle);
  2052. for(var i=0;i<ConfirmStore.length;i++){
  2053. var divpanel3 = document.createElement('div');
  2054. divpanel3.setAttribute('class','SpringHandleHtml3DivPanel3');
  2055. springHandlePanel3.appendChild(divpanel3);
  2056. var div26 = document.createElement('div');
  2057. div26.setAttribute('class','SpringHandleHtml2Div26');
  2058. div26.innerHTML='结果照片';
  2059. divpanel3.appendChild(div26);
  2060. var springHandlePanel1title = document.createElement('img');
  2061. springHandlePanel1title.setAttribute('class','SpringHandlePanel1Title');
  2062. springHandlePanel1title.src=ConfirmStore[i].picture_path;
  2063. divpanel3.appendChild(springHandlePanel1title);
  2064. var div27 = document.createElement('div');
  2065. div27.setAttribute('class','SpringHandleHtml2Div27');
  2066. div27.innerHTML='结果备注';
  2067. divpanel3.appendChild(div27);
  2068. var div28 = document.createElement('div');
  2069. div28.setAttribute('class','SpringHandleHtml2Div28');
  2070. div28.innerHTML=ConfirmStore[i].jg_remarks;
  2071. divpanel3.appendChild(div28);
  2072. var div29 = document.createElement('div');
  2073. div29.setAttribute('class','SpringHandleHtml2Div29');
  2074. div29.innerHTML='处理时间';
  2075. divpanel3.appendChild(div29);
  2076. var div30 = document.createElement('div');
  2077. div30.setAttribute('class','SpringHandleHtml2Div30');
  2078. div30.innerHTML=ConfirmStore[i].cl_time;
  2079. divpanel3.appendChild(div30);
  2080. var div31 = document.createElement('div');
  2081. div31.setAttribute('class','SpringHandleHtml2Div31');
  2082. div31.innerHTML='审核结果';
  2083. divpanel3.appendChild(div31);
  2084. var div32 = document.createElement('div');
  2085. div32.setAttribute('class','SpringHandleHtml2Div32');
  2086. div32.innerHTML=ConfirmStore[i].cl_type_name;
  2087. divpanel3.appendChild(div32);
  2088. var div33 = document.createElement('div');
  2089. div33.setAttribute('class','SpringHandleHtml2Div33');
  2090. div33.innerHTML='审核时间';
  2091. divpanel3.appendChild(div33);
  2092. var div34 = document.createElement('div');
  2093. div34.setAttribute('class','SpringHandleHtml2Div34');
  2094. div34.innerHTML=ConfirmStore[i].sh_time;
  2095. divpanel3.appendChild(div34);
  2096. var div35 = document.createElement('div');
  2097. div35.setAttribute('class','SpringHandleHtml3Div35');
  2098. div35.innerHTML='备注';
  2099. divpanel3.appendChild(div35);
  2100. var div36 = document.createElement('div');
  2101. div36.setAttribute('class','SpringHandleHtml3Div36');
  2102. div36.innerHTML=ConfirmStore[i].sh_remarks;
  2103. divpanel3.appendChild(div36);
  2104. }
  2105. }
  2106. var springHandlePanel3Ajax = function(id){
  2107. if(document.getElementById('springHandlePanel3')!=undefined)
  2108. document.getElementById('springHandlePanel3').innerHTML="";
  2109. var query = new Object();
  2110. // query.V_LOGINNAME = $("#V_LOGINNAME").val();
  2111. // query.V_PASSWORD = $("#V_PASSWORD").val();
  2112. query.event_processing_id = id;
  2113. $.ajax({
  2114. type:'POST',
  2115. url: baseUrl+"iot/xjeventprocessing/getFeedback",
  2116. data: {
  2117. queryJson : Ext.JSON.encode(query)
  2118. },
  2119. success: function(result){
  2120. var json = eval('(' + result + ')');
  2121. if(json.action=='getFeedback'){
  2122. ConfirmStore = json.RESULT;
  2123. springHandlePanel3Html();
  2124. }
  2125. }
  2126. });
  2127. }
  2128. var piebar2 = Ext.create('Ext.panel.Panel',{
  2129. id:'springHandleHtml2',
  2130. width:'100%',
  2131. height:150,
  2132. region:'north',
  2133. layout:'form',
  2134. defaults:{
  2135. border:false
  2136. }
  2137. });
  2138. var piebar3 = Ext.create('Ext.panel.Panel',{
  2139. id:'springHandleHtml3',
  2140. width:'100%',
  2141. height:150,
  2142. region:'north',
  2143. layout:'form',
  2144. defaults:{
  2145. border:false
  2146. }
  2147. });
  2148. var piebar4 = Ext.create('Ext.panel.Panel',{
  2149. id:'springHandleHtml4',
  2150. width:'100%',
  2151. height:150,
  2152. region:'north',
  2153. layout:'form',
  2154. defaults:{
  2155. border:false
  2156. }
  2157. });
  2158. var piebar5 = Ext.create('Ext.panel.Panel',{
  2159. id:'springHandleHtml5',
  2160. width:'100%',
  2161. height:150,
  2162. region:'north',
  2163. layout:'form',
  2164. defaults:{
  2165. border:false
  2166. }
  2167. });
  2168. var panel1 = Ext.create('Ext.panel.Panel',{
  2169. id:'springHandlePanel1',
  2170. width:490,
  2171. height:400,
  2172. layout:'form',
  2173. defaults:{
  2174. border:false
  2175. }
  2176. });
  2177. var panel2 = Ext.create('Ext.panel.Panel',{
  2178. id:'springHandlePanel2',
  2179. width:490,
  2180. height:400,
  2181. layout:'form',
  2182. defaults:{
  2183. border:false
  2184. }
  2185. });
  2186. var panel3 = Ext.create('Ext.panel.Panel',{
  2187. // id:'springHandlePanel3',
  2188. width:490,
  2189. height:360,
  2190. layout:'fit',
  2191. bodyStyle :'overflow-x:hidden;overflow-y:auto',
  2192. defaults:{
  2193. border:false
  2194. },
  2195. html:'<div style="height:360px;width:490px;"><div id="springHandlePanel3"></div></div>'
  2196. });
  2197. var panel4 = Ext.create('Ext.panel.Panel',{
  2198. // id:'springHandlePanel3',
  2199. width:490,
  2200. height:360,
  2201. layout:'fit',
  2202. bodyStyle :'overflow-x:hidden;overflow-y:auto',
  2203. defaults:{
  2204. border:false
  2205. },
  2206. html:'<div style="height:360px;width:490px;"><div id="springHandlePanel4"></div></div>'
  2207. });
  2208. var reset11 = function(){
  2209. document.getElementById('springHandle_textarea2_id').value = '';
  2210. document.getElementById('springHandle_select36_id').value = '0';
  2211. Ext.getCmp('SpringHandleListPageToolbar').moveFirst();
  2212. }
  2213. var reset12 = function(){
  2214. document.getElementById('springHandle_textarea2_id2').value = '';
  2215. document.getElementById('springHandle_select36_id2').value = '0';
  2216. Ext.getCmp('SpringHandleListPageToolbar').moveFirst();
  2217. }
  2218. var examinwin = function(id){
  2219. // if(examin_win!=undefined)
  2220. // examin_win.show();
  2221. // var id=ConfirmStore[0].id;
  2222. Ext.create('Ext.window.Window', {
  2223. title: '处理状态',
  2224. height: 600,
  2225. width: 500,
  2226. modal:true,
  2227. layout: 'border',
  2228. items: [ piebar2,
  2229. Ext.create('Ext.tab.Panel', {
  2230. activeTab: 0,
  2231. items: [
  2232. {
  2233. title: '处理反馈',
  2234. items : [panel1]
  2235. }
  2236. ]
  2237. })
  2238. ],
  2239. buttons:[
  2240. {
  2241. text:'确定',
  2242. iconCls:'ok_btn',
  2243. handler : function () {
  2244. var date=new Date;
  2245. var times = date.getHours()+':'+date.getMinutes()+':'+date.getSeconds(); //时
  2246. var dates=Ext.util.Format.date(date, 'Y-m-d');
  2247. var shid = document.getElementById('springHandle_select36_id');
  2248. var shIndex = shid.selectedIndex;
  2249. var sh = shid.options[shIndex].value;
  2250. var bz = document.getElementById('springHandle_textarea2_id').value;
  2251. // alert(bz);
  2252. var query = new Object();
  2253. if(sh.length>0){
  2254. query.cl_type = sh;
  2255. }
  2256. if(bz.length>0){
  2257. query.sh_remarks = bz;
  2258. }
  2259. query.id = id;
  2260. // query.V_LOGINNAME = V_LOGINNAME;
  2261. // query.V_PASSWORD = V_PASSWORD;
  2262. $.ajax({
  2263. type:'POST',
  2264. url: baseUrl+"iot/xjeventprocessing/updatesh",
  2265. data: {
  2266. queryJson : Ext.JSON.encode(query)
  2267. },
  2268. // success: function(result){
  2269. // Ext.Msg.alert('操作成功', '已审核', function(btn,txt){
  2270. // reset11();
  2271. // });
  2272. // }
  2273. success: function(result){
  2274. var json = eval('(' + result + ')');
  2275. if(json.action=='updateEventProcessingsh'){
  2276. if(json.success==true){
  2277. Ext.Msg.alert('操作成功', '已审核' , function(btn,txt){
  2278. reset11();
  2279. });
  2280. }else{
  2281. Ext.Msg.alert('操作失败', json.MSG , function(btn,txt){
  2282. reset11();
  2283. });
  2284. }
  2285. }
  2286. }
  2287. });
  2288. this.up('window').hide();
  2289. }
  2290. },{
  2291. text:'关闭',
  2292. handler : function() {
  2293. this.up('window').hide();
  2294. }
  2295. }
  2296. ],
  2297. closeAction:'hide'
  2298. }).show();
  2299. }
  2300. var examinwin1 = function(id){
  2301. // if(examin_win!=undefined)
  2302. // examin_win.show();
  2303. // var id=ConfirmStore[0].id;
  2304. Ext.create('Ext.window.Window', {
  2305. title: '处理状态',
  2306. height: 600,
  2307. width: 500,
  2308. modal:true,
  2309. layout: 'border',
  2310. items: [ piebar3,Ext.create('Ext.tab.Panel', {
  2311. activeTab: 0,
  2312. items: [
  2313. {
  2314. itemId:'chulifankui',
  2315. title: '处理反馈',
  2316. items : [panel2]
  2317. }
  2318. ,
  2319. {
  2320. itemId:'shenhejilu',
  2321. title: '反馈与审核记录',
  2322. items : [panel3]
  2323. }
  2324. ],
  2325. listeners:{
  2326. 'tabchange':function (t, n) {
  2327. var item = n.itemId;
  2328. if(item=='shenhejilu'){
  2329. // if(document.getElementById('div26_id_springHandlePanel3')==undefined)
  2330. springHandlePanel3Ajax(id);
  2331. }
  2332. }
  2333. }
  2334. })],
  2335. buttons:[
  2336. {
  2337. text:'确定',
  2338. iconCls:'ok_btn',
  2339. handler : function () {
  2340. var date=new Date;
  2341. var times = date.getHours()+':'+date.getMinutes()+':'+date.getSeconds(); //时
  2342. var dates=Ext.util.Format.date(date, 'Y-m-d');
  2343. var shid = document.getElementById('springHandle_select36_id2');
  2344. var shIndex = shid.selectedIndex;
  2345. var sh = shid.options[shIndex].value;
  2346. var bz = document.getElementById('springHandle_textarea2_id2').value;
  2347. // alert(bz);
  2348. var query = new Object();
  2349. if(sh.length>0){
  2350. query.cl_type = sh;
  2351. }
  2352. if(bz.length>0){
  2353. query.sh_remarks = bz;
  2354. }
  2355. query.id = id;
  2356. // query.V_LOGINNAME = V_LOGINNAME;
  2357. // query.V_PASSWORD = V_PASSWORD;
  2358. $.ajax({
  2359. type:'POST',
  2360. url: baseUrl+"iot/xjeventprocessing/updatesh",
  2361. data: {
  2362. queryJson : Ext.JSON.encode(query)
  2363. },
  2364. // success: function(result){
  2365. // Ext.Msg.alert('操作成功', '已审核', function(btn,txt){
  2366. // reset12();
  2367. // });
  2368. // }
  2369. success: function(result){
  2370. var json = eval('(' + result + ')');
  2371. if(json.action=='updateEventProcessingsh'){
  2372. if(json.success==true){
  2373. Ext.Msg.alert('操作成功', '已审核' , function(btn,txt){
  2374. reset12();
  2375. });
  2376. }else{
  2377. Ext.Msg.alert('操作失败', json.MSG , function(btn,txt){
  2378. reset12();
  2379. });
  2380. }
  2381. }
  2382. }
  2383. });
  2384. this.up('window').hide();
  2385. }
  2386. },{
  2387. text:'关闭',
  2388. handler : function() {
  2389. this.up('window').hide();
  2390. }
  2391. }
  2392. ],
  2393. closeAction:'hide'
  2394. }).show();
  2395. }
  2396. var examinwin2 = function(){
  2397. Ext.create('Ext.window.Window', {
  2398. title: '处理状态',
  2399. height: 600,
  2400. width: 500,
  2401. modal:true,
  2402. layout: 'border',
  2403. items: [ piebar4,
  2404. Ext.create('Ext.tab.Panel', {
  2405. activeTab: 0,
  2406. items: [
  2407. {
  2408. title: '反馈与审核记录',
  2409. items : [panel3]
  2410. }
  2411. ]
  2412. })
  2413. ],
  2414. buttons:[
  2415. {
  2416. text:'关闭',
  2417. handler : function() {
  2418. this.up('window').hide();
  2419. }
  2420. }
  2421. ],
  2422. closeAction:'hide'
  2423. }).show();
  2424. }
  2425. var examinwin3 = function(){
  2426. Ext.create('Ext.window.Window', {
  2427. title: '处理状态',
  2428. height: 600,
  2429. width: 500,
  2430. modal:true,
  2431. layout: 'border',
  2432. items: [ piebar5,
  2433. Ext.create('Ext.tab.Panel', {
  2434. activeTab: 0,
  2435. items: [
  2436. {
  2437. title: '反馈与审核记录',
  2438. items : [panel4]
  2439. }
  2440. ]
  2441. })
  2442. ],
  2443. buttons:[
  2444. {
  2445. text:'关闭',
  2446. handler : function() {
  2447. this.up('window').hide();
  2448. }
  2449. }
  2450. ],
  2451. closeAction:'hide'
  2452. }).show();
  2453. }
  2454. examineStatus = function(status,id){
  2455. var zyzp_status = status;
  2456. var spot_id = id;
  2457. // alert(spot_id);
  2458. if(zyzp_status==0){
  2459. if(document.getElementById('springHandleHtml5')!=undefined)
  2460. document.getElementById('springHandleHtml5').innerHTML="";
  2461. if(document.getElementById('springHandlePanel1')!=undefined)
  2462. document.getElementById('springHandlePanel1').innerHTML="";
  2463. var query = new Object();
  2464. // query.V_LOGINNAME = $("#V_LOGINNAME").val();
  2465. // query.V_PASSWORD = $("#V_PASSWORD").val();
  2466. query.id = spot_id;
  2467. $.ajax({
  2468. type:'POST',
  2469. url: baseUrl+"iot/xjeventprocessing/getNotAudited",
  2470. data: {
  2471. queryJson : Ext.JSON.encode(query)
  2472. },
  2473. success: function(result){
  2474. var json = eval('(' + result + ')');
  2475. if(json.action=='getNotAudited'){
  2476. ConfirmStore = json.RESULT;
  2477. examinwin(spot_id);
  2478. examineStatusHtml();
  2479. if(document.getElementById('div26_id_springHandlePanel1')==undefined)
  2480. springHandlePanel1Html();
  2481. }
  2482. }
  2483. });
  2484. }else if(zyzp_status==1){
  2485. if(document.getElementById('springHandleHtml3')!=undefined)
  2486. document.getElementById('springHandleHtml3').innerHTML="";
  2487. if(document.getElementById('springHandlePanel2')!=undefined)
  2488. document.getElementById('springHandlePanel2').innerHTML="";
  2489. var query = new Object();
  2490. // query.V_LOGINNAME = $("#V_LOGINNAME").val();
  2491. // query.V_PASSWORD = $("#V_PASSWORD").val();
  2492. query.id = spot_id;
  2493. $.ajax({
  2494. type:'POST',
  2495. url: baseUrl+"iot/xjeventprocessing/getNotAudited",
  2496. data: {
  2497. queryJson : Ext.JSON.encode(query)
  2498. },
  2499. success: function(result){
  2500. var json = eval('(' + result + ')');
  2501. if(json.action=='getNotAudited'){
  2502. ConfirmStore = json.RESULT;
  2503. examinwin1(spot_id);
  2504. examineStatusHtml1();
  2505. if(document.getElementById('div26_id_springHandlePanel2')==undefined)
  2506. springHandlePanel2Html();
  2507. }
  2508. }
  2509. });
  2510. }else if(zyzp_status==2){
  2511. if(document.getElementById('springHandlePanel3')!=undefined)
  2512. document.getElementById('springHandlePanel3').innerHTML="";
  2513. if(document.getElementById('springHandleHtml4')!=undefined)
  2514. document.getElementById('springHandleHtml4').innerHTML="";
  2515. var query = new Object();
  2516. // query.V_LOGINNAME = $("#V_LOGINNAME").val();
  2517. // query.V_PASSWORD = $("#V_PASSWORD").val();
  2518. query.event_processing_id = spot_id;
  2519. $.ajax({
  2520. type:'POST',
  2521. url: baseUrl+"iot/xjeventprocessing/getFeedback",
  2522. data: {
  2523. queryJson : Ext.JSON.encode(query)
  2524. },
  2525. success: function(result){
  2526. var json = eval('(' + result + ')');
  2527. if(json.action=='getFeedback'){
  2528. ConfirmStore = json.RESULT;
  2529. examinwin2();
  2530. examineStatusHtml2();
  2531. if(document.getElementById('div26_id_springHandlePanel3')==undefined)
  2532. springHandlePanel3Html();
  2533. }
  2534. }
  2535. });
  2536. }else if(zyzp_status==3){
  2537. if(document.getElementById('springHandleHtml5')!=undefined)
  2538. document.getElementById('springHandleHtml5').innerHTML="";
  2539. if(document.getElementById('springHandlePanel4')!=undefined)
  2540. document.getElementById('springHandlePanel4').innerHTML="";
  2541. var query = new Object();
  2542. // query.V_LOGINNAME = $("#V_LOGINNAME").val();
  2543. // query.V_PASSWORD = $("#V_PASSWORD").val();
  2544. query.event_processing_id = spot_id;
  2545. $.ajax({
  2546. type:'POST',
  2547. url: baseUrl+"iot/xjeventprocessing/getFeedback",
  2548. data: {
  2549. queryJson : Ext.JSON.encode(query)
  2550. },
  2551. success: function(result){
  2552. var json = eval('(' + result + ')');
  2553. if(json.action=='getFeedback'){
  2554. ConfirmStore = json.RESULT;
  2555. examinwin3();
  2556. examineStatusHtml3();
  2557. if(document.getElementById('div26_id_springHandlePanel4')==undefined)
  2558. springHandlePanel4Html();
  2559. }
  2560. }
  2561. });
  2562. }
  2563. }
  2564. var inspectorsCheckHtml2 =function(){
  2565. var maintenanceCheckHtml21 = document.getElementById('shangbao_xiangqing');
  2566. var title = document.createElement('div');
  2567. title.setAttribute('class','SpringHandleTitle');
  2568. title.innerHTML='上报人员';
  2569. maintenanceCheckHtml21.appendChild(title);
  2570. var title1 = document.createElement('div');
  2571. title1.setAttribute('class','SpringHandleTitle1');
  2572. // title1.innerHTML='韩锐';
  2573. title1.innerHTML=ConfirmStore[0].name;
  2574. maintenanceCheckHtml21.appendChild(title1);
  2575. var title2 = document.createElement('div');
  2576. title2.setAttribute('class','SpringHandleTitle2');
  2577. title2.innerHTML='上报时间';
  2578. maintenanceCheckHtml21.appendChild(title2);
  2579. var title3 = document.createElement('div');
  2580. title3.setAttribute('class','SpringHandleTitle3');
  2581. // title3.innerHTML='2019-03-04 13:48:07';
  2582. title3.innerHTML=ConfirmStore[0].sbsj;
  2583. maintenanceCheckHtml21.appendChild(title3);
  2584. var title4 = document.createElement('div');
  2585. title4.setAttribute('class','SpringHandleTitle4');
  2586. title4.innerHTML='现场照片';
  2587. maintenanceCheckHtml21.appendChild(title4);
  2588. var title5 = document.createElement('img');
  2589. title5.setAttribute('class','SpringHandleTitle5');
  2590. title5.src='../../res/img/common/shangchaun.png';
  2591. title5.src=ConfirmStore[0].report_photos;
  2592. maintenanceCheckHtml21.appendChild(title5);
  2593. var title6 = document.createElement('div');
  2594. title6.setAttribute('class','SpringHandleTitle6');
  2595. title6.innerHTML='备注';
  2596. maintenanceCheckHtml21.appendChild(title6);
  2597. var title7 = document.createElement('div');
  2598. title7.setAttribute('class','SpringHandleTitle7');
  2599. // title7.innerHTML='玻璃不知道被谁砸坏了,需要联系物业更换玻璃';
  2600. title7.innerHTML=ConfirmStore[0].dwsb_remarks;
  2601. maintenanceCheckHtml21.appendChild(title7);
  2602. }
  2603. modifywin = function(id){
  2604. Ext.create('Ext.window.Window', {
  2605. title: '上报详情',
  2606. height: 300,
  2607. width: 500,
  2608. modal:true,
  2609. layout:'fit',
  2610. closeAction: 'destroy',
  2611. html:'<div style="overflow-y:auto;height:270px;width:500px;background:#002c59;"><div id="shangbao_xiangqing"></div></div>'
  2612. }).show();
  2613. var query = new Object();
  2614. // query.V_LOGINNAME = $("#V_LOGINNAME").val();
  2615. // query.V_PASSWORD = $("#V_PASSWORD").val();
  2616. query.id = id;
  2617. $.ajax({
  2618. type:'POST',
  2619. url: baseUrl+'iot/xjeventprocessing/getReportDetailsList',
  2620. data: {
  2621. queryJson : Ext.JSON.encode(query)
  2622. },
  2623. success: function(result){
  2624. var json = eval('(' + result + ')');
  2625. // if(json.action=='getVProjectNameList'){
  2626. ConfirmStore = json.RESULT;
  2627. inspectorsCheckHtml2();
  2628. // }
  2629. }
  2630. });
  2631. }
  2632. var piedarHtml2 = function() {
  2633. var date=new Date;
  2634. var dates=Ext.util.Format.date(date, 'Y-m-d');
  2635. var preDate = new Date(date.getTime() - 24*60*60*1000);
  2636. var dates2=Ext.util.Format.date(preDate, 'Y-m-d');
  2637. var maintenanceCheckHtml = document.getElementById('inspectorsCheckHtml');
  2638. // var title = document.createElement('div');
  2639. // title.setAttribute('class','MaintenancePersonTitle');
  2640. // title.innerHTML='巡检记录';
  2641. // maintenanceCheckHtml.appendChild(title);
  2642. var title2 = document.createElement('div');
  2643. title2.setAttribute('class','springHandle_title2_div_font');
  2644. title2.innerHTML='任务名称';
  2645. maintenanceCheckHtml.appendChild(title2);
  2646. var input = document.createElement('input');
  2647. input.setAttribute('class','springHandle_input_class');
  2648. input.setAttribute('id','springHandle_title2_input');
  2649. input.setAttribute('type','text');
  2650. input.setAttribute('value','');
  2651. maintenanceCheckHtml.appendChild(input);
  2652. var title3 = document.createElement('div');
  2653. title3.setAttribute('class','springHandle_title3_div_font');
  2654. title3.innerHTML='责任人';
  2655. maintenanceCheckHtml.appendChild(title3);
  2656. var select = document.createElement('select');
  2657. select.setAttribute('class','springHandle_input1_class');
  2658. select.setAttribute('id','springHandle_title3_input1');
  2659. maintenanceCheckHtml.appendChild(select);
  2660. var option2 = document.createElement('option');
  2661. option2.innerHTML='所有人';
  2662. option2.setAttribute('value','0');
  2663. select.appendChild(option2);
  2664. for(var i=0;i<ConfirmStore1.length;i++){
  2665. var option3 = document.createElement('option');
  2666. option3.innerHTML=ConfirmStore1[i].name;
  2667. option3.setAttribute('value',ConfirmStore1[i].zrrid);
  2668. select.appendChild(option3);
  2669. }
  2670. var title4 = document.createElement('div');
  2671. title4.setAttribute('class','springHandle_title1_div');
  2672. title4.setAttribute('id','springHandle_title1_div');
  2673. title4.setAttribute('onmouseover',"mouseon(this)");
  2674. title4.setAttribute('onmouseout',"mouseoff(this)");
  2675. title4.setAttribute('onclick',"menu_click(this)");
  2676. maintenanceCheckHtml.appendChild(title4);
  2677. var title5 = document.createElement('div');
  2678. title5.setAttribute('class','springHandle_title2_div');
  2679. title5.setAttribute('id','springHandle_title2_div');
  2680. title5.setAttribute('onmouseover',"mouseon(this)");
  2681. title5.setAttribute('onmouseout',"mouseoff(this)");
  2682. title5.setAttribute('onclick',"menu_click(this)");
  2683. maintenanceCheckHtml.appendChild(title5);
  2684. var title6 = document.createElement('div');
  2685. title6.setAttribute('class','springHandle_title3_div');
  2686. title6.setAttribute('id','springHandle_title3_div');
  2687. title6.setAttribute('onmouseover',"mouseon(this)");
  2688. title6.setAttribute('onmouseout',"mouseoff(this)");
  2689. title6.setAttribute('onclick',"menu_click(this)");
  2690. maintenanceCheckHtml.appendChild(title6);
  2691. var title61 = document.createElement('div');
  2692. title61.setAttribute('class','springHandle_title4_div');
  2693. title61.setAttribute('id','springHandle_title4_div');
  2694. title61.setAttribute('onmouseover',"mouseon(this)");
  2695. title61.setAttribute('onmouseout',"mouseoff(this)");
  2696. title61.setAttribute('onclick',"menu_click(this)");
  2697. maintenanceCheckHtml.appendChild(title61);
  2698. var input2 = document.createElement('input');
  2699. input2.setAttribute('class','springHandle_input2_class');
  2700. input2.setAttribute('id','springHandle_title3_input2');
  2701. input2.setAttribute('type','text');
  2702. input2.setAttribute('readonly','true');
  2703. input2.setAttribute('value',dates);
  2704. maintenanceCheckHtml.appendChild(input2);
  2705. var title8 = document.createElement('div');
  2706. title8.setAttribute('class','springHandle_title8_div');
  2707. title8.innerHTML='~';
  2708. maintenanceCheckHtml.appendChild(title8);
  2709. var input3 = document.createElement('input');
  2710. input3.setAttribute('class','springHandle_input3_class');
  2711. input3.setAttribute('id','springHandle_title3_input3');
  2712. input3.setAttribute('type','text');
  2713. input3.setAttribute('readonly','true');
  2714. input3.setAttribute('value',dates2);
  2715. maintenanceCheckHtml.appendChild(input3);
  2716. //设置开始时间
  2717. var startDate = laydate.render({
  2718. elem: '#springHandle_title3_input3',
  2719. done: function (value, date) {
  2720. if (value !== '') {
  2721. endDate.config.min.year = date.year;
  2722. endDate.config.min.month = date.month - 1;
  2723. endDate.config.min.date = date.date;
  2724. } else {
  2725. endDate.config.min.year = '';
  2726. endDate.config.min.month = '';
  2727. endDate.config.min.date = '';
  2728. }
  2729. }
  2730. });
  2731. //设置结束时间
  2732. var endDate = laydate.render({
  2733. elem: '#springHandle_title3_input2',
  2734. done: function (value, date) {
  2735. if (value !== '') {
  2736. startDate.config.max.year = date.year;
  2737. startDate.config.max.month = date.month - 1;
  2738. startDate.config.max.date = date.date;
  2739. } else {
  2740. startDate.config.max.year = '';
  2741. startDate.config.max.month = '';
  2742. startDate.config.max.date = '';
  2743. }
  2744. }
  2745. });
  2746. var title7 = document.createElement('div');
  2747. title7.setAttribute('class','springHandle_title7_div');
  2748. title7.innerHTML='完成时间';
  2749. maintenanceCheckHtml.appendChild(title7);
  2750. var select1 = document.createElement('select');
  2751. select1.setAttribute('class','springHandle_input4_class');
  2752. select1.setAttribute('id','springHandle_title3_input4');
  2753. maintenanceCheckHtml.appendChild(select1);
  2754. var option0 = document.createElement('option');
  2755. option0.innerHTML='所有';
  2756. option0.setAttribute('value','0');
  2757. select1.appendChild(option0);
  2758. var option1 = document.createElement('option');
  2759. option1.innerHTML='未处理';
  2760. option1.setAttribute('value','1');
  2761. select1.appendChild(option1);
  2762. var option2 = document.createElement('option');
  2763. option2.innerHTML='未审核';
  2764. option2.setAttribute('value','2');
  2765. select1.appendChild(option2);
  2766. var option3 = document.createElement('option');
  2767. option3.innerHTML='审核未通过';
  2768. option3.setAttribute('value','3');
  2769. select1.appendChild(option3);
  2770. var option4 = document.createElement('option');
  2771. option4.innerHTML='已完成';
  2772. option4.setAttribute('value','4');
  2773. select1.appendChild(option4);
  2774. var option5 = document.createElement('option');
  2775. option5.innerHTML='超时完成';
  2776. option5.setAttribute('value','5');
  2777. select1.appendChild(option5);
  2778. var title9 = document.createElement('div');
  2779. title9.setAttribute('class','springHandle_title9_div');
  2780. title9.innerHTML='处理状态';
  2781. maintenanceCheckHtml.appendChild(title9);
  2782. var title28 = document.createElement('div');
  2783. title28.setAttribute('class','springHandle_title28_div');
  2784. title28.innerHTML='报修类型';
  2785. maintenanceCheckHtml.appendChild(title28);
  2786. var select2 = document.createElement('select');
  2787. select2.setAttribute('class','springHandle_input5_class');
  2788. select2.setAttribute('id','springHandle_title3_input5');
  2789. maintenanceCheckHtml.appendChild(select2);
  2790. var option6 = document.createElement('option');
  2791. option6.innerHTML='所有';
  2792. option6.setAttribute('value','0');
  2793. select2.appendChild(option6);
  2794. var option7 = document.createElement('option');
  2795. option7.innerHTML='故障';
  2796. option7.setAttribute('value','1');
  2797. select2.appendChild(option7);
  2798. var option8 = document.createElement('option');
  2799. option8.innerHTML='隐患';
  2800. option8.setAttribute('value','2');
  2801. select2.appendChild(option8);
  2802. var option9 = document.createElement('option');
  2803. option9.innerHTML='其他';
  2804. option9.setAttribute('value','3');
  2805. select2.appendChild(option9);
  2806. var title10 = document.createElement('div');
  2807. title10.setAttribute('class','springHandle_title20_div');
  2808. maintenanceCheckHtml.appendChild(title10);
  2809. var title11 = document.createElement('div');
  2810. title11.setAttribute('class','springHandle_title11_div');
  2811. maintenanceCheckHtml.appendChild(title11);
  2812. var title12 = document.createElement('div');
  2813. title12.setAttribute('class','springHandle_title12_div');
  2814. maintenanceCheckHtml.appendChild(title12);
  2815. var title13 = document.createElement('div');
  2816. title13.setAttribute('class','springHandle_title13_div');
  2817. maintenanceCheckHtml.appendChild(title13);
  2818. var title14 = document.createElement('div');
  2819. title14.setAttribute('class','springHandle_title14_div');
  2820. title14.innerHTML=ConfirmStore[0].jrjj;
  2821. maintenanceCheckHtml.appendChild(title14);
  2822. var title15 = document.createElement('div');
  2823. title15.setAttribute('class','springHandle_title15_div');
  2824. title15.innerHTML=ConfirmStore[0].cssj;
  2825. maintenanceCheckHtml.appendChild(title15);
  2826. var title16 = document.createElement('div');
  2827. title16.setAttribute('class','springHandle_title16_div');
  2828. title16.innerHTML=ConfirmStore[0].jrsj;
  2829. maintenanceCheckHtml.appendChild(title16);
  2830. var title17 = document.createElement('div');
  2831. title17.setAttribute('class','springHandle_title17_div');
  2832. title17.innerHTML=ConfirmStore[0].zrs;
  2833. maintenanceCheckHtml.appendChild(title17);
  2834. }
  2835. var piedarHtml = function() {
  2836. var query = new Object();
  2837. // query.V_LOGINNAME = $("#V_LOGINNAME").val();
  2838. $.ajax({
  2839. type:'POST',
  2840. url: baseUrl+"iot/xjeventprocessing/getList",
  2841. data: {
  2842. queryJson : Ext.JSON.encode(query)
  2843. },
  2844. success: function(result){
  2845. var json = eval('(' + result + ')');
  2846. if(json.action=='getEventProcessingList'){
  2847. ConfirmStore = json.RESULT;
  2848. ConfirmStore1 = json.RESULT1;
  2849. piedarHtml2();
  2850. }
  2851. }
  2852. });
  2853. }
  2854. var SpringHandleListPanel=Ext.create('Ext.grid.Panel', {
  2855. header :{
  2856. height:0,
  2857. border:'0px solid #000000'
  2858. },
  2859. id: 'SpringHandleListPanel',
  2860. store: myStore,
  2861. // selModel: sm,
  2862. columns: [
  2863. { header: 'ID', dataIndex: 'id',hidden:true, menuDisabled:true },
  2864. { header: '序号', dataIndex: 'xh', width:77, menuDisabled:true },
  2865. { header: '报修任务名称', dataIndex: 'wx_name', width:270,align:'center', menuDisabled:true },
  2866. { header: '报修类型', dataIndex: 'sj_type_name', width:100,align:'center', menuDisabled:true },
  2867. { header: '应完成时间', dataIndex: 'y_complete_time', width:250,align:'center', menuDisabled:true },
  2868. { header: '实际完成时间', dataIndex: 'cl_time', width:240, align:'center', menuDisabled:true },
  2869. {
  2870. text:'上报详情',
  2871. xtype : 'actioncolumn',
  2872. width:140,
  2873. sortable:false,
  2874. align:'center',
  2875. menuDisabled:true,
  2876. items:[{
  2877. icon: '../../res/img/common/chakanbtn.png',
  2878. tooltip: '上报详情',
  2879. handler: function(grid, rowIndex, colIndex) {
  2880. var rec = grid.getStore().getAt(rowIndex);
  2881. $("#checkRecord_id").val(rec.get("id"));
  2882. modifywin(rec.get("id"));
  2883. }
  2884. }]
  2885. },
  2886. { header: '当前状态', dataIndex: 'dqzt',width:240, align:'center', menuDisabled:true },
  2887. { header: '相关责任人', dataIndex: 'person_liable_name', width:121, align:'center', menuDisabled:true },
  2888. { header: '联系电话', dataIndex: 'phone', width:140, align:'center', menuDisabled:true },
  2889. { header: '处理状态', dataIndex: 'cl_type_name', width:140, align:'center', menuDisabled:true },
  2890. ],
  2891. columnLines: true,
  2892. height: maxHeight,
  2893. width: '100%',
  2894. bbar: new Ext.PagingToolbar({
  2895. store: myStore,
  2896. id:'SpringHandleListPageToolbar',
  2897. displayInfo: true,
  2898. pageSize: countPerPage,
  2899. prependButtons: true,
  2900. displayMsg : '显示第 {0}条到 {1}条记录,总共 {2}条',
  2901. emptyMsg : "没有记录",
  2902. firstText: '第一页',
  2903. prevText: '前一页',
  2904. nextText: '后一页',
  2905. lastText: '最后一页',
  2906. refreshText: '刷新',
  2907. }),
  2908. border:false,
  2909. iconCls: 'icon-grid'
  2910. });
  2911. var piebar = Ext.create('Ext.panel.Panel',{
  2912. id:'inspectorsCheckHtml',
  2913. width:'100%',
  2914. height:250,
  2915. region:'north',
  2916. layout:'form',
  2917. defaults:{
  2918. border:false
  2919. }
  2920. });
  2921. new Ext.create('Ext.panel.Panel',{
  2922. width:'100%',
  2923. id: 'InspectorsCheckPiebar',
  2924. layout:'border',
  2925. items:[
  2926. piebar,SpringHandleListPanel
  2927. ],
  2928. renderTo: Ext.getBody()
  2929. });
  2930. piedarHtml();
  2931. myStore.reload();
  2932. maxHeight = document.documentElement.clientHeight;
  2933. Ext.getCmp('InspectorsCheckPiebar').setHeight(maxHeight);
  2934. });