springHandle.js 115 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040
  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 = '0';
  237. document.getElementById('springHandle_title3_input2').value = '';
  238. document.getElementById('springHandle_title3_input3').value = '';
  239. document.getElementById('springHandle_title3_input4').value = '0';
  240. document.getElementById('springHandle_title3_input5').value = '0';
  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. maxValue:new Date(),
  1175. minText:"当前日期选择应大于2017-07-07",
  1176. format:"Y-m-d",
  1177. value:Ext.util.Format.date(Ext.Date.add(new Date(),Ext.Date.MONTH,-1),"Y-m-01"),
  1178. columnWidth:0.5,
  1179. id: 'start_date',
  1180. name:"start_date",
  1181. editable:false,//只读约束
  1182. allowBlank:false,
  1183. blankText:"不能为空",
  1184. anchor:'95%'
  1185. },{
  1186. xtype:'datefield',
  1187. fieldLabel:"结束日期",
  1188. minValue:'07/07/2017',
  1189. maxValue:new Date(),
  1190. minText:"当前日期选择应大于2017-07-07",
  1191. format:"Y-m-d",
  1192. value:Ext.util.Format.date(new Date(new Date(new Date().getUTCFullYear(), new Date().getMonth(), 1) - 86400000), "Y-m-d"),
  1193. columnWidth:0.5,
  1194. id: 'end_date',
  1195. name:"end_date",
  1196. editable:false,//只读约束
  1197. allowBlank:false,
  1198. blankText:"不能为空",
  1199. anchor:'95%'
  1200. },
  1201. {
  1202. id:'ff_queryJson',
  1203. name:'queryJson',
  1204. hidden:true
  1205. }],
  1206. buttons: [{
  1207. text: '下一步',
  1208. iconCls:'ok_btn',
  1209. handler: function() {
  1210. var form = this.up('form').getForm();
  1211. if (form.isValid()) {
  1212. var start_date=Ext.util.Format.date(Ext.getCmp('start_date').getValue(), 'Y-m-d');
  1213. var end_date=Ext.util.Format.date(Ext.getCmp('end_date').getValue(), 'Y-m-d');
  1214. var project_date=Ext.util.Format.date(Ext.getCmp('start_date').getValue(), 'Y-m');
  1215. show_detail_data(start_date,end_date,project_date);
  1216. this.up('window').hide();
  1217. }
  1218. }
  1219. }]
  1220. });
  1221. var filterwin = function() {
  1222. Ext.create('Ext.window.Window',{
  1223. title: '工作分析',
  1224. height: 300,
  1225. width: 350,
  1226. layout: 'fit',
  1227. items: FilterWin,
  1228. closeAction: 'hide'
  1229. }).show();
  1230. };
  1231. mouseon = function(obj){
  1232. var id = obj.id;
  1233. $("#"+id).removeClass(id);
  1234. $("#"+id).addClass(id+'_on');
  1235. }
  1236. mouseoff = function(obj){
  1237. var mid = "springHandle_";
  1238. for(var i=1;i<5;i++){
  1239. var id = "springHandle_title"+i+"_div";
  1240. $("#"+id).removeClass(id+'_on');
  1241. $("#"+id).addClass(id);
  1242. }
  1243. if(menuidx=='m1'){
  1244. mid += 'title1_div';
  1245. $("#"+mid).removeClass(mid);
  1246. $("#"+mid).addClass(mid+'_on');
  1247. }
  1248. else if(menuidx=='m2'){
  1249. mid += 'title2_div';
  1250. $("#"+mid).removeClass(mid);
  1251. $("#"+mid).addClass(mid+'_on');
  1252. }
  1253. else if(menuidx=='m3'){
  1254. mid += 'title3_div';
  1255. $("#"+mid).removeClass(mid);
  1256. $("#"+mid).addClass(mid+'_on');
  1257. }
  1258. else if(menuidx=='m4'){
  1259. mid += 'title4_div';
  1260. $("#"+mid).removeClass(mid);
  1261. $("#"+mid).addClass(mid+'_on');
  1262. }
  1263. }
  1264. menu_click = function(obj){
  1265. var id = obj.id;
  1266. if(id=='springHandle_title1_div'){
  1267. menuidx = 'm1';
  1268. show_page();
  1269. }
  1270. else if(id=='springHandle_title2_div'){
  1271. menuidx = 'm2';
  1272. reset1();
  1273. }
  1274. else if(id=='springHandle_title3_div'){
  1275. menuidx = 'm3';
  1276. exportbtn_click();
  1277. }
  1278. else if(id=='springHandle_title4_div'){
  1279. menuidx = 'm4';
  1280. filterwin();
  1281. }
  1282. }
  1283. var maintenancedevice = function(){
  1284. var maintenance_look_device = document.getElementById('inspectorsCheck_look_device');
  1285. var img = document.createElement('img');
  1286. img.width=400;
  1287. img.height=400;
  1288. img.src = baseUrl+ConfirmStore[0].picture_route;
  1289. // img.src = ConfirmStore[0].picture_route;
  1290. img.setAttribute('class','maintenance_look_device_img');
  1291. maintenance_look_device.appendChild(img);
  1292. var div4 = document.createElement('div');
  1293. div4.style.textAlign='center';
  1294. div4.innerHTML=ConfirmStore[0].remarks;
  1295. maintenance_look_device.appendChild(div4);
  1296. }
  1297. var editMaintenance = function(spot_id){
  1298. var spot_id = spot_id;
  1299. Ext.create('Ext.window.Window', {
  1300. id:'inspectorsCheck_data_win1',
  1301. height: 500,
  1302. width: 400,
  1303. layout: 'fit',
  1304. modal:true,
  1305. buttons:[
  1306. {
  1307. text:'关闭',
  1308. handler : function() {
  1309. Ext.getCmp('inspectorsCheck_data_win1').destroy();
  1310. }
  1311. }
  1312. ],
  1313. closeAction:'destroy',
  1314. html:'<div id="inspectorsCheck_look_device"></div>'
  1315. }).show();
  1316. var query = new Object();
  1317. query.V_LOGINNAME = $("#V_LOGINNAME").val();
  1318. // query.V_PASSWORD = $("#V_PASSWORD").val();
  1319. query.id = spot_id;
  1320. $.ajax({
  1321. type:'POST',
  1322. url: baseUrl+"iot/inspectionpoints/getList1",
  1323. data: {
  1324. queryJson : Ext.JSON.encode(query)
  1325. },
  1326. success: function(result){
  1327. var json = eval('(' + result + ')');
  1328. if(json.action=='getInspectionPointsList'){
  1329. ConfirmStore = json.RESULT;
  1330. maintenancedevice(ConfirmStore);
  1331. }
  1332. }
  1333. });
  1334. }
  1335. var maintenancePresentation = function(zyzp_status){
  1336. var maintenanceCheck_look_Presentation = document.getElementById('springHandle_look_Presentation');
  1337. var div = document.createElement('div');
  1338. div.setAttribute('class','SpringHandleDiv');
  1339. div.innerHTML='报修类型';
  1340. maintenanceCheck_look_Presentation.appendChild(div);
  1341. var div1 = document.createElement('div');
  1342. div1.setAttribute('class','SpringHandleDiv1');
  1343. div1.innerHTML=ConfirmStore[0].sj_tytpe_name;
  1344. maintenanceCheck_look_Presentation.appendChild(div1);
  1345. var div2 = document.createElement('div');
  1346. div2.setAttribute('class','SpringHandleDiv2');
  1347. div2.innerHTML='发起账号';
  1348. maintenanceCheck_look_Presentation.appendChild(div2);
  1349. var div3 = document.createElement('div');
  1350. div3.setAttribute('class','SpringHandleDiv3');
  1351. // div3.innerHTML='管理员账号';
  1352. div3.innerHTML=ConfirmStore[0].phone;
  1353. maintenanceCheck_look_Presentation.appendChild(div3);
  1354. var div4 = document.createElement('div');
  1355. div4.setAttribute('class','SpringHandleDiv4');
  1356. div4.innerHTML='应完成时间';
  1357. maintenanceCheck_look_Presentation.appendChild(div4);
  1358. var div5 = document.createElement('div');
  1359. div5.setAttribute('class','SpringHandleDiv5');
  1360. // div5.innerHTML='2019-03-04 13:48:07';
  1361. div5.innerHTML=ConfirmStore[0].y_complete_time;
  1362. maintenanceCheck_look_Presentation.appendChild(div5);
  1363. var div6 = document.createElement('div');
  1364. div6.setAttribute('class','SpringHandleDiv6');
  1365. div6.innerHTML='备注';
  1366. maintenanceCheck_look_Presentation.appendChild(div6);
  1367. var div7 = document.createElement('div');
  1368. div7.setAttribute('class','SpringHandleDiv7');
  1369. // div7.innerHTML='玻璃不知道被谁砸坏了,需要联系物业更换玻璃';
  1370. div7.innerHTML=ConfirmStore[0].zp_remarks;
  1371. maintenanceCheck_look_Presentation.appendChild(div7);
  1372. var div8 = document.createElement('div');
  1373. div8.setAttribute('class','SpringHandleDiv8');
  1374. div8.innerHTML='责任人';
  1375. maintenanceCheck_look_Presentation.appendChild(div8);
  1376. var div9 = document.createElement('div');
  1377. div9.setAttribute('class','SpringHandleDiv9');
  1378. // div9.innerHTML='张某';
  1379. div9.innerHTML=ConfirmStore[0].name;
  1380. maintenanceCheck_look_Presentation.appendChild(div9);
  1381. var div10 = document.createElement('div');
  1382. div10.setAttribute('class','SpringHandleDiv10');
  1383. div10.innerHTML='发起时间';
  1384. maintenanceCheck_look_Presentation.appendChild(div10);
  1385. var div11 = document.createElement('div');
  1386. div11.setAttribute('class','SpringHandleDiv11');
  1387. // div11.innerHTML='2019-03-04 13:48:07';
  1388. div11.innerHTML=ConfirmStore[0].sbsj;
  1389. maintenanceCheck_look_Presentation.appendChild(div11);
  1390. }
  1391. var maintenancePresentation0 = function(zyzp_status){
  1392. var maintenanceCheck_look_Presentation = document.getElementById('springHandle_look_Presentation');
  1393. var date=new Date;
  1394. var times = date.getHours()+':'+date.getMinutes()+':'+date.getSeconds(); //时
  1395. var dates=Ext.util.Format.date(date, 'Y-m-d');
  1396. var div12 = document.createElement('div');
  1397. div12.setAttribute('class','SpringHandleDiv12');
  1398. div12.innerHTML='报修类型';
  1399. maintenanceCheck_look_Presentation.appendChild(div12);
  1400. var select = document.createElement('select');
  1401. select.setAttribute('class','SpringHandleSelect');
  1402. select.setAttribute('id','springHandle_select_id');
  1403. maintenanceCheck_look_Presentation.appendChild(select);
  1404. var option6 = document.createElement('option');
  1405. option6.innerHTML='请选择';
  1406. option6.setAttribute('value','0');
  1407. select.appendChild(option6);
  1408. var option7 = document.createElement('option');
  1409. option7.innerHTML='故障';
  1410. option7.setAttribute('value','1');
  1411. select.appendChild(option7);
  1412. var option8 = document.createElement('option');
  1413. option8.innerHTML='隐患';
  1414. option8.setAttribute('value','2');
  1415. select.appendChild(option8);
  1416. var option9 = document.createElement('option');
  1417. option9.innerHTML='其他';
  1418. option9.setAttribute('value','3');
  1419. select.appendChild(option9);
  1420. var div13 = document.createElement('div');
  1421. div13.setAttribute('class','SpringHandleDiv13');
  1422. div13.innerHTML='应完成时间';
  1423. maintenanceCheck_look_Presentation.appendChild(div13);
  1424. var input = document.createElement('input');
  1425. input.setAttribute('class','springHandleInput');
  1426. input.setAttribute('id','springHandle_input_id');
  1427. input.setAttribute('type','text');
  1428. input.setAttribute('readonly','true');
  1429. input.setAttribute('value',dates);
  1430. maintenanceCheck_look_Presentation.appendChild(input);
  1431. var endDate = laydate.render({
  1432. elem: '#springHandle_input_id'
  1433. });
  1434. var input1 = document.createElement('input');
  1435. input1.setAttribute('class','springHandleInput1');
  1436. input1.setAttribute('id','springHandle_input1_id');
  1437. input1.setAttribute('type','text');
  1438. input1.setAttribute('readonly','true');
  1439. input1.setAttribute('value',times);
  1440. maintenanceCheck_look_Presentation.appendChild(input1);
  1441. var endTime = laydate.render({
  1442. elem: '#springHandle_input1_id',
  1443. type: 'time'
  1444. });
  1445. var div14 = document.createElement('div');
  1446. div14.setAttribute('class','SpringHandleDiv14');
  1447. div14.innerHTML='备注';
  1448. maintenanceCheck_look_Presentation.appendChild(div14);
  1449. var textarea = document.createElement('textarea');
  1450. textarea.setAttribute('class','SpringHandleTextarea');
  1451. textarea.setAttribute('id','springHandle_textarea_id');
  1452. maintenanceCheck_look_Presentation.appendChild(textarea);
  1453. var div15 = document.createElement('div');
  1454. div15.setAttribute('class','SpringHandleDiv15');
  1455. div15.innerHTML='责任人';
  1456. maintenanceCheck_look_Presentation.appendChild(div15);
  1457. var select1 = document.createElement('select');
  1458. select1.setAttribute('class','SpringHandleSelect1');
  1459. select1.setAttribute('id','springHandle_select1_id');
  1460. maintenanceCheck_look_Presentation.appendChild(select1);
  1461. for(var i=0;i<ConfirmStore1.length;i++){
  1462. var option10 = document.createElement('option');
  1463. option10.innerHTML=ConfirmStore1[i].name;
  1464. option10.setAttribute('value',ConfirmStore1[i].zrrid);
  1465. select1.appendChild(option10);
  1466. }
  1467. }
  1468. editMaintenancePresentation = function(status,id){
  1469. var zyzp_status = status;
  1470. var spot_id = id;
  1471. if(zyzp_status==0){
  1472. Ext.create('Ext.window.Window', {
  1473. title: '人员指派',
  1474. id:'springHandle_peison_win',
  1475. height: 300,
  1476. width: 500,
  1477. modal:true,
  1478. layout: 'fit',
  1479. buttons:[
  1480. {
  1481. text:'确定',
  1482. handler : function () {
  1483. var date=new Date;
  1484. var times = date.getHours()+':'+date.getMinutes()+':'+date.getSeconds(); //时
  1485. var dates=Ext.util.Format.date(date, 'Y-m-d');
  1486. var lx = document.getElementById('springHandle_select_id').value;
  1487. var data3a = document.getElementById('springHandle_input_id').value;
  1488. var data3b = document.getElementById('springHandle_input1_id').value;
  1489. var bz = document.getElementById('springHandle_textarea_id').value;
  1490. var zrr = document.getElementById('springHandle_select1_id').value;
  1491. var query = new Object();
  1492. if(lx.length>0){
  1493. query.sj_type = lx;
  1494. }
  1495. if(data3b.length>0&&data3a.length>0){
  1496. query.y_complete_time = data3a+" "+data3b;
  1497. }
  1498. // if(){
  1499. // query.data3a = data3a;
  1500. // }
  1501. if(bz.length>0){
  1502. query.zp_remarks = bz;
  1503. }
  1504. if(zrr.length>0){
  1505. query.person_liable = zrr;
  1506. }
  1507. // if(spot_id.length>0){
  1508. query.id = spot_id;
  1509. // }
  1510. // query.V_LOGINNAME = V_LOGINNAME;
  1511. // query.V_PASSWORD = V_PASSWORD;
  1512. $.ajax({
  1513. type:'POST',
  1514. url: baseUrl+"iot/xjeventprocessing/updatezp",
  1515. data: {
  1516. queryJson : Ext.JSON.encode(query)
  1517. },
  1518. // success: function(result){
  1519. // Ext.Msg.alert('操作成功', '已指派', function(btn,txt){
  1520. // Ext.getCmp('SpringHandleListPanel').getStore().reload();
  1521. // });
  1522. // }
  1523. success: function(result){
  1524. var json = eval('(' + result + ')');
  1525. if(json.action=='updateEventProcessingzp'){
  1526. if(json.success==true){
  1527. Ext.Msg.alert('操作成功', '已指派' , function(btn,txt){
  1528. Ext.getCmp('SpringHandleListPanel').getStore().reload();
  1529. });
  1530. }else{
  1531. Ext.Msg.alert('操作失败', json.MSG , function(btn,txt){
  1532. Ext.getCmp('SpringHandleListPanel').getStore().reload();
  1533. });
  1534. }
  1535. }
  1536. }
  1537. });
  1538. Ext.getCmp('springHandle_peison_win').destroy();
  1539. }
  1540. },{
  1541. text:'关闭',
  1542. handler : function() {
  1543. Ext.getCmp('springHandle_peison_win').destroy();
  1544. }
  1545. }
  1546. ],
  1547. closeAction:'destroy',
  1548. html:'<div style="overflow-y:auto;height:240px;width:500px;background:#002c59;"><div id="springHandle_look_Presentation"></div></div>'
  1549. }).show();
  1550. var query = new Object();
  1551. // query.V_LOGINNAME = $("#V_LOGINNAME").val();
  1552. // query.V_PASSWORD = $("#V_PASSWORD").val();
  1553. query.jlid = spot_id;
  1554. $.ajax({
  1555. type:'POST',
  1556. url: baseUrl+"iot/xjeventprocessing/getwxzrr",
  1557. data: {
  1558. queryJson : Ext.JSON.encode(query)
  1559. },
  1560. success: function(result){
  1561. var json = eval('(' + result + ')');
  1562. if(json.action=='getwxzrr'){
  1563. ConfirmStore1 = json.RESULT;
  1564. maintenancePresentation0(zyzp_status);
  1565. }
  1566. }
  1567. });
  1568. }else{
  1569. Ext.create('Ext.window.Window', {
  1570. title: '人员指派',
  1571. height: 300,
  1572. width: 500,
  1573. modal:true,
  1574. layout: 'fit',
  1575. closeAction:'destroy',
  1576. html:'<div style="overflow-y:auto;height:270px;width:500px;background:#002c59;"><div id="springHandle_look_Presentation"></div></div>'
  1577. }).show();
  1578. var query = new Object();
  1579. // query.V_LOGINNAME = $("#V_LOGINNAME").val();
  1580. // query.V_PASSWORD = $("#V_PASSWORD").val();
  1581. query.id = spot_id;
  1582. $.ajax({
  1583. type:'POST',
  1584. url: baseUrl+"iot/xjeventprocessing/getAssignJlList",
  1585. data: {
  1586. queryJson : Ext.JSON.encode(query)
  1587. },
  1588. success: function(result){
  1589. var json = eval('(' + result + ')');
  1590. if(json.action=='getAssignJlList'){
  1591. ConfirmStore = json.RESULT;
  1592. maintenancePresentation(zyzp_status);
  1593. }
  1594. }
  1595. });
  1596. }
  1597. }
  1598. var examineStatusHtml = function(){
  1599. var springHandleHtml2 = document.getElementById('springHandleHtml2');
  1600. var div16 = document.createElement('div');
  1601. div16.setAttribute('class','SpringHandleHtml2Div16');
  1602. div16.innerHTML='处理状态';
  1603. springHandleHtml2.appendChild(div16);
  1604. // if(ConfirmStore[0].cl_type==2){
  1605. var div17 = document.createElement('div');
  1606. div17.setAttribute('class','SpringHandleHtml2Div17');
  1607. div17.innerHTML='未审核';
  1608. springHandleHtml2.appendChild(div17);
  1609. // }else if(ConfirmStore[0].cl_type==3){
  1610. // var div17 = document.createElement('div');
  1611. // div17.setAttribute('class','SpringHandleHtml2Div1713');
  1612. // div17.innerHTML='审核未通过';
  1613. // springHandleHtml2.appendChild(div17);
  1614. // }else if(ConfirmStore[0].cl_type==4){
  1615. // var div17 = document.createElement('div');
  1616. // div17.setAttribute('class','SpringHandleHtml2Div17');
  1617. // div17.innerHTML='已完成';
  1618. // springHandleHtml2.appendChild(div17);
  1619. // }else if(ConfirmStore[0].cl_type==5){
  1620. // var div17 = document.createElement('div');
  1621. // div17.setAttribute('class','SpringHandleHtml2Div1713');
  1622. // div17.innerHTML='超时完成';
  1623. // springHandleHtml2.appendChild(div17);
  1624. // }
  1625. var div18 = document.createElement('div');
  1626. div18.setAttribute('class','SpringHandleHtml2Div18');
  1627. div18.innerHTML='责任人';
  1628. springHandleHtml2.appendChild(div18);
  1629. var div19 = document.createElement('div');
  1630. div19.setAttribute('class','SpringHandleHtml2Div19');
  1631. div19.innerHTML=ConfirmStore[0].person_liable_name;
  1632. springHandleHtml2.appendChild(div19);
  1633. var div20 = document.createElement('div');
  1634. div20.setAttribute('class','SpringHandleHtml2Div20');
  1635. div20.innerHTML='发起账号';
  1636. springHandleHtml2.appendChild(div20);
  1637. var div21 = document.createElement('div');
  1638. div21.setAttribute('class','SpringHandleHtml2Div21');
  1639. div21.innerHTML=ConfirmStore[0].phone;
  1640. springHandleHtml2.appendChild(div21);
  1641. var div22 = document.createElement('div');
  1642. div22.setAttribute('class','SpringHandleHtml2Div22');
  1643. div22.innerHTML='应处理时间';
  1644. springHandleHtml2.appendChild(div22);
  1645. var div23 = document.createElement('div');
  1646. div23.setAttribute('class','SpringHandleHtml2Div23');
  1647. div23.innerHTML=ConfirmStore[0].y_complete_time;
  1648. springHandleHtml2.appendChild(div23);
  1649. var div24 = document.createElement('div');
  1650. div24.setAttribute('class','SpringHandleHtml2Div24');
  1651. div24.innerHTML='上报时间';
  1652. springHandleHtml2.appendChild(div24);
  1653. var div25 = document.createElement('div');
  1654. div25.setAttribute('class','SpringHandleHtml2Div25');
  1655. div25.innerHTML=ConfirmStore[0].sbsj;
  1656. springHandleHtml2.appendChild(div25);
  1657. }
  1658. var examineStatusHtml1 = function(){
  1659. var springHandleHtml2 = document.getElementById('springHandleHtml3');
  1660. var div16 = document.createElement('div');
  1661. div16.setAttribute('class','SpringHandleHtml2Div16');
  1662. div16.innerHTML='处理状态';
  1663. springHandleHtml2.appendChild(div16);
  1664. var div17 = document.createElement('div');
  1665. div17.setAttribute('class','SpringHandleHtml2Div1713');
  1666. div17.innerHTML='审核未通过';
  1667. springHandleHtml2.appendChild(div17);
  1668. var div18 = document.createElement('div');
  1669. div18.setAttribute('class','SpringHandleHtml2Div18');
  1670. div18.innerHTML='责任人';
  1671. springHandleHtml2.appendChild(div18);
  1672. var div19 = document.createElement('div');
  1673. div19.setAttribute('class','SpringHandleHtml2Div19');
  1674. div19.innerHTML=ConfirmStore[0].person_liable_name;
  1675. springHandleHtml2.appendChild(div19);
  1676. var div20 = document.createElement('div');
  1677. div20.setAttribute('class','SpringHandleHtml2Div20');
  1678. div20.innerHTML='发起账号';
  1679. springHandleHtml2.appendChild(div20);
  1680. var div21 = document.createElement('div');
  1681. div21.setAttribute('class','SpringHandleHtml2Div21');
  1682. div21.innerHTML=ConfirmStore[0].phone;
  1683. springHandleHtml2.appendChild(div21);
  1684. var div22 = document.createElement('div');
  1685. div22.setAttribute('class','SpringHandleHtml2Div22');
  1686. div22.innerHTML='应处理时间';
  1687. springHandleHtml2.appendChild(div22);
  1688. var div23 = document.createElement('div');
  1689. div23.setAttribute('class','SpringHandleHtml2Div23');
  1690. div23.innerHTML=ConfirmStore[0].y_complete_time;
  1691. springHandleHtml2.appendChild(div23);
  1692. var div24 = document.createElement('div');
  1693. div24.setAttribute('class','SpringHandleHtml2Div24');
  1694. div24.innerHTML='上报时间';
  1695. springHandleHtml2.appendChild(div24);
  1696. var div25 = document.createElement('div');
  1697. div25.setAttribute('class','SpringHandleHtml2Div25');
  1698. div25.innerHTML=ConfirmStore[0].sbsj;
  1699. springHandleHtml2.appendChild(div25);
  1700. }
  1701. var examineStatusHtml2 = function(){
  1702. var springHandleHtml2 = document.getElementById('springHandleHtml4');
  1703. var div16 = document.createElement('div');
  1704. div16.setAttribute('class','SpringHandleHtml2Div16');
  1705. div16.innerHTML='处理状态';
  1706. springHandleHtml2.appendChild(div16);
  1707. var div17 = document.createElement('div');
  1708. div17.setAttribute('class','SpringHandleHtml2Div17');
  1709. div17.innerHTML='已完成';
  1710. springHandleHtml2.appendChild(div17);
  1711. var div18 = document.createElement('div');
  1712. div18.setAttribute('class','SpringHandleHtml2Div18');
  1713. div18.innerHTML='责任人';
  1714. springHandleHtml2.appendChild(div18);
  1715. var div19 = document.createElement('div');
  1716. div19.setAttribute('class','SpringHandleHtml2Div19');
  1717. div19.innerHTML=ConfirmStore[0].person_liable_name;
  1718. springHandleHtml2.appendChild(div19);
  1719. var div20 = document.createElement('div');
  1720. div20.setAttribute('class','SpringHandleHtml2Div20');
  1721. div20.innerHTML='发起账号';
  1722. springHandleHtml2.appendChild(div20);
  1723. var div21 = document.createElement('div');
  1724. div21.setAttribute('class','SpringHandleHtml2Div21');
  1725. div21.innerHTML=ConfirmStore[0].phone;
  1726. springHandleHtml2.appendChild(div21);
  1727. var div22 = document.createElement('div');
  1728. div22.setAttribute('class','SpringHandleHtml2Div22');
  1729. div22.innerHTML='应处理时间';
  1730. springHandleHtml2.appendChild(div22);
  1731. var div23 = document.createElement('div');
  1732. div23.setAttribute('class','SpringHandleHtml2Div23');
  1733. div23.innerHTML=ConfirmStore[0].y_complete_time;
  1734. springHandleHtml2.appendChild(div23);
  1735. var div24 = document.createElement('div');
  1736. div24.setAttribute('class','SpringHandleHtml2Div24');
  1737. div24.innerHTML='上报时间';
  1738. springHandleHtml2.appendChild(div24);
  1739. var div25 = document.createElement('div');
  1740. div25.setAttribute('class','SpringHandleHtml2Div25');
  1741. div25.innerHTML=ConfirmStore[0].sbsj;
  1742. springHandleHtml2.appendChild(div25);
  1743. }
  1744. var examineStatusHtml3 = function(){
  1745. var springHandleHtml2 = document.getElementById('springHandleHtml5');
  1746. var div16 = document.createElement('div');
  1747. div16.setAttribute('class','SpringHandleHtml2Div16');
  1748. div16.innerHTML='处理状态';
  1749. springHandleHtml2.appendChild(div16);
  1750. var div17 = document.createElement('div');
  1751. div17.setAttribute('class','SpringHandleHtml2Div1713');
  1752. div17.innerHTML='超时完成';
  1753. springHandleHtml2.appendChild(div17);
  1754. var div18 = document.createElement('div');
  1755. div18.setAttribute('class','SpringHandleHtml2Div18');
  1756. div18.innerHTML='责任人';
  1757. springHandleHtml2.appendChild(div18);
  1758. var div19 = document.createElement('div');
  1759. div19.setAttribute('class','SpringHandleHtml2Div19');
  1760. div19.innerHTML=ConfirmStore[0].person_liable_name;
  1761. springHandleHtml2.appendChild(div19);
  1762. var div20 = document.createElement('div');
  1763. div20.setAttribute('class','SpringHandleHtml2Div20');
  1764. div20.innerHTML='发起账号';
  1765. springHandleHtml2.appendChild(div20);
  1766. var div21 = document.createElement('div');
  1767. div21.setAttribute('class','SpringHandleHtml2Div21');
  1768. div21.innerHTML=ConfirmStore[0].phone;
  1769. springHandleHtml2.appendChild(div21);
  1770. var div22 = document.createElement('div');
  1771. div22.setAttribute('class','SpringHandleHtml2Div22');
  1772. div22.innerHTML='应处理时间';
  1773. springHandleHtml2.appendChild(div22);
  1774. var div23 = document.createElement('div');
  1775. div23.setAttribute('class','SpringHandleHtml2Div23');
  1776. div23.innerHTML=ConfirmStore[0].y_complete_time;
  1777. springHandleHtml2.appendChild(div23);
  1778. var div24 = document.createElement('div');
  1779. div24.setAttribute('class','SpringHandleHtml2Div24');
  1780. div24.innerHTML='上报时间';
  1781. springHandleHtml2.appendChild(div24);
  1782. var div25 = document.createElement('div');
  1783. div25.setAttribute('class','SpringHandleHtml2Div25');
  1784. div25.innerHTML=ConfirmStore[0].sbsj;
  1785. springHandleHtml2.appendChild(div25);
  1786. }
  1787. var springHandlePanel1Html = function(){
  1788. var springHandlePanel1 = document.getElementById('springHandlePanel1');
  1789. var div26 = document.createElement('div');
  1790. div26.id='div26_id_springHandlePanel1';
  1791. div26.setAttribute('class','SpringHandleHtml2Div26');
  1792. div26.innerHTML='结果照片';
  1793. springHandlePanel1.appendChild(div26);
  1794. var springHandlePanel1title = document.createElement('img');
  1795. springHandlePanel1title.setAttribute('class','SpringHandlePanel1Title');
  1796. // springHandlePanel1title.src='../../res/img/common/shangchaun.png';
  1797. springHandlePanel1title.src=ConfirmStore[0].picture_path;
  1798. springHandlePanel1.appendChild(springHandlePanel1title);
  1799. var div27 = document.createElement('div');
  1800. div27.setAttribute('class','SpringHandleHtml2Div27');
  1801. div27.innerHTML='结果备注';
  1802. springHandlePanel1.appendChild(div27);
  1803. var div28 = document.createElement('div');
  1804. div28.setAttribute('class','SpringHandleHtml2Div28');
  1805. div28.innerHTML=ConfirmStore[0].jg_remarks;
  1806. springHandlePanel1.appendChild(div28);
  1807. var div29 = document.createElement('div');
  1808. div29.setAttribute('class','SpringHandleHtml2Div29');
  1809. div29.innerHTML='处理时间';
  1810. springHandlePanel1.appendChild(div29);
  1811. var div30 = document.createElement('div');
  1812. div30.setAttribute('class','SpringHandleHtml2Div30');
  1813. div30.innerHTML=ConfirmStore[0].cl_time;
  1814. springHandlePanel1.appendChild(div30);
  1815. var div31 = document.createElement('div');
  1816. div31.setAttribute('class','SpringHandleHtml2Div31');
  1817. div31.innerHTML='审核结果';
  1818. springHandlePanel1.appendChild(div31);
  1819. var div32 = document.createElement('div');
  1820. div32.setAttribute('class','SpringHandleHtml2Div32');
  1821. div32.innerHTML='无';
  1822. springHandlePanel1.appendChild(div32);
  1823. var div33 = document.createElement('div');
  1824. div33.setAttribute('class','SpringHandleHtml2Div33');
  1825. div33.innerHTML='审核时间';
  1826. springHandlePanel1.appendChild(div33);
  1827. var div34 = document.createElement('div');
  1828. div34.setAttribute('class','SpringHandleHtml2Div34');
  1829. div34.innerHTML='无';
  1830. springHandlePanel1.appendChild(div34);
  1831. var div35 = document.createElement('div');
  1832. div35.setAttribute('class','SpringHandleHtml2Div35');
  1833. div35.innerHTML='审核';
  1834. springHandlePanel1.appendChild(div35);
  1835. var select36 = document.createElement('select');
  1836. select36.setAttribute('class','SpringHandleSelect36');
  1837. select36.setAttribute('id','springHandle_select36_id');
  1838. // select36.setAttribute('onchange',"changeon(this)");
  1839. springHandlePanel1.appendChild(select36);
  1840. var option6 = document.createElement('option');
  1841. option6.innerHTML='请选择';
  1842. option6.setAttribute('value','0');
  1843. select36.appendChild(option6);
  1844. var option7 = document.createElement('option');
  1845. option7.innerHTML='审核不通过';
  1846. option7.setAttribute('value','3');
  1847. select36.appendChild(option7);
  1848. var option8 = document.createElement('option');
  1849. option8.innerHTML='完成';
  1850. option8.setAttribute('value','4');
  1851. select36.appendChild(option8);
  1852. var option9 = document.createElement('option');
  1853. option9.innerHTML='超时完成';
  1854. option9.setAttribute('value','5');
  1855. select36.appendChild(option9);
  1856. var div37 = document.createElement('div');
  1857. div37.setAttribute('class','SpringHandleHtml2Div37');
  1858. div37.innerHTML='备注';
  1859. springHandlePanel1.appendChild(div37);
  1860. var textarea2 = document.createElement('textarea');
  1861. textarea2.setAttribute('class','SpringHandleTextarea2');
  1862. textarea2.setAttribute('id','springHandle_textarea2_id');
  1863. springHandlePanel1.appendChild(textarea2);
  1864. }
  1865. var springHandlePanel2Html = function(){
  1866. var springHandlePanel2 = document.getElementById('springHandlePanel2');
  1867. if(ConfirmStore[0].data1=='0'){
  1868. var div26 = document.createElement('div');
  1869. div26.id='div26_id_springHandlePanel2';
  1870. div26.setAttribute('class','SpringHandleHtml2Div26');
  1871. div26.innerHTML='结果照片';
  1872. springHandlePanel2.appendChild(div26);
  1873. var springHandlePanel1title = document.createElement('img');
  1874. springHandlePanel1title.setAttribute('class','SpringHandlePanel1Title');
  1875. springHandlePanel1title.src='../../res/img/common/wutu.png';
  1876. // springHandlePanel1title.src=ConfirmStore[0].picture_path;
  1877. springHandlePanel2.appendChild(springHandlePanel1title);
  1878. var div27 = document.createElement('div');
  1879. div27.setAttribute('class','SpringHandleHtml2Div27');
  1880. div27.innerHTML='结果备注';
  1881. springHandlePanel2.appendChild(div27);
  1882. var div28 = document.createElement('div');
  1883. div28.setAttribute('class','SpringHandleHtml2Div28');
  1884. div28.innerHTML="无";
  1885. springHandlePanel2.appendChild(div28);
  1886. var div29 = document.createElement('div');
  1887. div29.setAttribute('class','SpringHandleHtml2Div29');
  1888. div29.innerHTML='处理时间';
  1889. springHandlePanel2.appendChild(div29);
  1890. var div30 = document.createElement('div');
  1891. div30.setAttribute('class','SpringHandleHtml2Div30');
  1892. div30.innerHTML="无";
  1893. springHandlePanel2.appendChild(div30);
  1894. var div31 = document.createElement('div');
  1895. div31.setAttribute('class','SpringHandleHtml2Div31');
  1896. div31.innerHTML='审核结果';
  1897. springHandlePanel2.appendChild(div31);
  1898. var div32 = document.createElement('div');
  1899. div32.setAttribute('class','SpringHandleHtml2Div32');
  1900. div32.innerHTML='无';
  1901. springHandlePanel2.appendChild(div32);
  1902. var div33 = document.createElement('div');
  1903. div33.setAttribute('class','SpringHandleHtml2Div33');
  1904. div33.innerHTML='审核时间';
  1905. springHandlePanel2.appendChild(div33);
  1906. var div34 = document.createElement('div');
  1907. div34.setAttribute('class','SpringHandleHtml2Div34');
  1908. div34.innerHTML='无';
  1909. springHandlePanel2.appendChild(div34);
  1910. }else if(ConfirmStore[0].data1=='1'){
  1911. var div26 = document.createElement('div');
  1912. div26.id='div26_id_springHandlePanel2';
  1913. div26.setAttribute('class','SpringHandleHtml2Div26');
  1914. div26.innerHTML='结果照片';
  1915. springHandlePanel2.appendChild(div26);
  1916. var springHandlePanel1title = document.createElement('img');
  1917. springHandlePanel1title.setAttribute('class','SpringHandlePanel1Title');
  1918. // springHandlePanel1title.src='../../res/img/common/wutu.png';
  1919. springHandlePanel1title.src=ConfirmStore[0].picture_path;
  1920. springHandlePanel2.appendChild(springHandlePanel1title);
  1921. var div27 = document.createElement('div');
  1922. div27.setAttribute('class','SpringHandleHtml2Div27');
  1923. div27.innerHTML='结果备注';
  1924. springHandlePanel2.appendChild(div27);
  1925. var div28 = document.createElement('div');
  1926. div28.setAttribute('class','SpringHandleHtml2Div28');
  1927. div28.innerHTML=ConfirmStore[0].jg_remarks;
  1928. springHandlePanel2.appendChild(div28);
  1929. var div29 = document.createElement('div');
  1930. div29.setAttribute('class','SpringHandleHtml2Div29');
  1931. div29.innerHTML='处理时间';
  1932. springHandlePanel2.appendChild(div29);
  1933. var div30 = document.createElement('div');
  1934. div30.setAttribute('class','SpringHandleHtml2Div30');
  1935. div30.innerHTML=ConfirmStore[0].cl_time;
  1936. springHandlePanel2.appendChild(div30);
  1937. var div31 = document.createElement('div');
  1938. div31.setAttribute('class','SpringHandleHtml2Div31');
  1939. div31.innerHTML='审核结果';
  1940. springHandlePanel2.appendChild(div31);
  1941. var div32 = document.createElement('div');
  1942. div32.setAttribute('class','SpringHandleHtml2Div32');
  1943. div32.innerHTML='无';
  1944. springHandlePanel2.appendChild(div32);
  1945. var div33 = document.createElement('div');
  1946. div33.setAttribute('class','SpringHandleHtml2Div33');
  1947. div33.innerHTML='审核时间';
  1948. springHandlePanel2.appendChild(div33);
  1949. var div34 = document.createElement('div');
  1950. div34.setAttribute('class','SpringHandleHtml2Div34');
  1951. div34.innerHTML='无';
  1952. springHandlePanel2.appendChild(div34);
  1953. var div35 = document.createElement('div');
  1954. div35.setAttribute('class','SpringHandleHtml2Div35');
  1955. div35.innerHTML='审核';
  1956. springHandlePanel2.appendChild(div35);
  1957. var select36 = document.createElement('select');
  1958. select36.setAttribute('class','SpringHandleSelect36');
  1959. select36.setAttribute('id','springHandle_select36_id2');
  1960. // select36.setAttribute('onchange',"changeon(this)");
  1961. springHandlePanel2.appendChild(select36);
  1962. var option6 = document.createElement('option');
  1963. option6.innerHTML='请选择';
  1964. option6.setAttribute('value','0');
  1965. select36.appendChild(option6);
  1966. var option7 = document.createElement('option');
  1967. option7.innerHTML='审核不通过';
  1968. option7.setAttribute('value','3');
  1969. select36.appendChild(option7);
  1970. var option8 = document.createElement('option');
  1971. option8.innerHTML='完成';
  1972. option8.setAttribute('value','4');
  1973. select36.appendChild(option8);
  1974. var option9 = document.createElement('option');
  1975. option9.innerHTML='超时完成';
  1976. option9.setAttribute('value','5');
  1977. select36.appendChild(option9);
  1978. var div37 = document.createElement('div');
  1979. div37.setAttribute('class','SpringHandleHtml2Div37');
  1980. div37.innerHTML='备注';
  1981. springHandlePanel2.appendChild(div37);
  1982. var textarea2 = document.createElement('textarea');
  1983. textarea2.setAttribute('class','SpringHandleTextarea2');
  1984. textarea2.setAttribute('id','springHandle_textarea2_id2');
  1985. springHandlePanel2.appendChild(textarea2);
  1986. }
  1987. }
  1988. var springHandlePanel3Html = function(){
  1989. var springHandlePanel3 = document.getElementById('springHandlePanel3');
  1990. var divhiddle = document.createElement('div');
  1991. divhiddle.id='div26_id_springHandlePanel3';
  1992. divhiddle.setAttribute('class','SpringHandleHtml3DivHiddle');
  1993. springHandlePanel3.appendChild(divhiddle);
  1994. for(var i=0;i<ConfirmStore.length;i++){
  1995. var divpanel3 = document.createElement('div');
  1996. divpanel3.setAttribute('class','SpringHandleHtml3DivPanel3');
  1997. springHandlePanel3.appendChild(divpanel3);
  1998. var div26 = document.createElement('div');
  1999. div26.setAttribute('class','SpringHandleHtml2Div26');
  2000. div26.innerHTML='结果照片';
  2001. divpanel3.appendChild(div26);
  2002. var springHandlePanel1title = document.createElement('img');
  2003. springHandlePanel1title.setAttribute('class','SpringHandlePanel1Title');
  2004. springHandlePanel1title.src=ConfirmStore[i].picture_path;
  2005. divpanel3.appendChild(springHandlePanel1title);
  2006. var div27 = document.createElement('div');
  2007. div27.setAttribute('class','SpringHandleHtml2Div27');
  2008. div27.innerHTML='结果备注';
  2009. divpanel3.appendChild(div27);
  2010. var div28 = document.createElement('div');
  2011. div28.setAttribute('class','SpringHandleHtml2Div28');
  2012. div28.innerHTML=ConfirmStore[i].jg_remarks;
  2013. divpanel3.appendChild(div28);
  2014. var div29 = document.createElement('div');
  2015. div29.setAttribute('class','SpringHandleHtml2Div29');
  2016. div29.innerHTML='处理时间';
  2017. divpanel3.appendChild(div29);
  2018. var div30 = document.createElement('div');
  2019. div30.setAttribute('class','SpringHandleHtml2Div30');
  2020. div30.innerHTML=ConfirmStore[i].cl_time;
  2021. divpanel3.appendChild(div30);
  2022. var div31 = document.createElement('div');
  2023. div31.setAttribute('class','SpringHandleHtml2Div31');
  2024. div31.innerHTML='审核结果';
  2025. divpanel3.appendChild(div31);
  2026. var div32 = document.createElement('div');
  2027. div32.setAttribute('class','SpringHandleHtml2Div32');
  2028. div32.innerHTML=ConfirmStore[i].cl_type_name;
  2029. divpanel3.appendChild(div32);
  2030. var div33 = document.createElement('div');
  2031. div33.setAttribute('class','SpringHandleHtml2Div33');
  2032. div33.innerHTML='审核时间';
  2033. divpanel3.appendChild(div33);
  2034. var div34 = document.createElement('div');
  2035. div34.setAttribute('class','SpringHandleHtml2Div34');
  2036. div34.innerHTML=ConfirmStore[i].sh_time;
  2037. divpanel3.appendChild(div34);
  2038. var div35 = document.createElement('div');
  2039. div35.setAttribute('class','SpringHandleHtml3Div35');
  2040. div35.innerHTML='备注';
  2041. divpanel3.appendChild(div35);
  2042. var div36 = document.createElement('div');
  2043. div36.setAttribute('class','SpringHandleHtml3Div36');
  2044. div36.innerHTML=ConfirmStore[i].sh_remarks;
  2045. divpanel3.appendChild(div36);
  2046. }
  2047. }
  2048. var springHandlePanel4Html = function(){
  2049. var springHandlePanel3 = document.getElementById('springHandlePanel4');
  2050. var divhiddle = document.createElement('div');
  2051. divhiddle.id='div26_id_springHandlePanel4';
  2052. divhiddle.setAttribute('class','SpringHandleHtml3DivHiddle');
  2053. springHandlePanel3.appendChild(divhiddle);
  2054. for(var i=0;i<ConfirmStore.length;i++){
  2055. var divpanel3 = document.createElement('div');
  2056. divpanel3.setAttribute('class','SpringHandleHtml3DivPanel3');
  2057. springHandlePanel3.appendChild(divpanel3);
  2058. var div26 = document.createElement('div');
  2059. div26.setAttribute('class','SpringHandleHtml2Div26');
  2060. div26.innerHTML='结果照片';
  2061. divpanel3.appendChild(div26);
  2062. var springHandlePanel1title = document.createElement('img');
  2063. springHandlePanel1title.setAttribute('class','SpringHandlePanel1Title');
  2064. springHandlePanel1title.src=ConfirmStore[i].picture_path;
  2065. divpanel3.appendChild(springHandlePanel1title);
  2066. var div27 = document.createElement('div');
  2067. div27.setAttribute('class','SpringHandleHtml2Div27');
  2068. div27.innerHTML='结果备注';
  2069. divpanel3.appendChild(div27);
  2070. var div28 = document.createElement('div');
  2071. div28.setAttribute('class','SpringHandleHtml2Div28');
  2072. div28.innerHTML=ConfirmStore[i].jg_remarks;
  2073. divpanel3.appendChild(div28);
  2074. var div29 = document.createElement('div');
  2075. div29.setAttribute('class','SpringHandleHtml2Div29');
  2076. div29.innerHTML='处理时间';
  2077. divpanel3.appendChild(div29);
  2078. var div30 = document.createElement('div');
  2079. div30.setAttribute('class','SpringHandleHtml2Div30');
  2080. div30.innerHTML=ConfirmStore[i].cl_time;
  2081. divpanel3.appendChild(div30);
  2082. var div31 = document.createElement('div');
  2083. div31.setAttribute('class','SpringHandleHtml2Div31');
  2084. div31.innerHTML='审核结果';
  2085. divpanel3.appendChild(div31);
  2086. var div32 = document.createElement('div');
  2087. div32.setAttribute('class','SpringHandleHtml2Div32');
  2088. div32.innerHTML=ConfirmStore[i].cl_type_name;
  2089. divpanel3.appendChild(div32);
  2090. var div33 = document.createElement('div');
  2091. div33.setAttribute('class','SpringHandleHtml2Div33');
  2092. div33.innerHTML='审核时间';
  2093. divpanel3.appendChild(div33);
  2094. var div34 = document.createElement('div');
  2095. div34.setAttribute('class','SpringHandleHtml2Div34');
  2096. div34.innerHTML=ConfirmStore[i].sh_time;
  2097. divpanel3.appendChild(div34);
  2098. var div35 = document.createElement('div');
  2099. div35.setAttribute('class','SpringHandleHtml3Div35');
  2100. div35.innerHTML='备注';
  2101. divpanel3.appendChild(div35);
  2102. var div36 = document.createElement('div');
  2103. div36.setAttribute('class','SpringHandleHtml3Div36');
  2104. div36.innerHTML=ConfirmStore[i].sh_remarks;
  2105. divpanel3.appendChild(div36);
  2106. }
  2107. }
  2108. var springHandlePanel3Ajax = function(id){
  2109. if(document.getElementById('springHandlePanel3')!=undefined)
  2110. document.getElementById('springHandlePanel3').innerHTML="";
  2111. var query = new Object();
  2112. // query.V_LOGINNAME = $("#V_LOGINNAME").val();
  2113. // query.V_PASSWORD = $("#V_PASSWORD").val();
  2114. query.event_processing_id = id;
  2115. $.ajax({
  2116. type:'POST',
  2117. url: baseUrl+"iot/xjeventprocessing/getFeedback",
  2118. data: {
  2119. queryJson : Ext.JSON.encode(query)
  2120. },
  2121. success: function(result){
  2122. var json = eval('(' + result + ')');
  2123. if(json.action=='getFeedback'){
  2124. ConfirmStore = json.RESULT;
  2125. springHandlePanel3Html();
  2126. }
  2127. }
  2128. });
  2129. }
  2130. var piebar2 = Ext.create('Ext.panel.Panel',{
  2131. id:'springHandleHtml2',
  2132. width:'100%',
  2133. height:150,
  2134. region:'north',
  2135. layout:'form',
  2136. defaults:{
  2137. border:false
  2138. }
  2139. });
  2140. var piebar3 = Ext.create('Ext.panel.Panel',{
  2141. id:'springHandleHtml3',
  2142. width:'100%',
  2143. height:150,
  2144. region:'north',
  2145. layout:'form',
  2146. defaults:{
  2147. border:false
  2148. }
  2149. });
  2150. var piebar4 = Ext.create('Ext.panel.Panel',{
  2151. id:'springHandleHtml4',
  2152. width:'100%',
  2153. height:150,
  2154. region:'north',
  2155. layout:'form',
  2156. defaults:{
  2157. border:false
  2158. }
  2159. });
  2160. var piebar5 = Ext.create('Ext.panel.Panel',{
  2161. id:'springHandleHtml5',
  2162. width:'100%',
  2163. height:150,
  2164. region:'north',
  2165. layout:'form',
  2166. defaults:{
  2167. border:false
  2168. }
  2169. });
  2170. var panel1 = Ext.create('Ext.panel.Panel',{
  2171. id:'springHandlePanel1',
  2172. width:490,
  2173. height:400,
  2174. layout:'form',
  2175. defaults:{
  2176. border:false
  2177. }
  2178. });
  2179. var panel2 = Ext.create('Ext.panel.Panel',{
  2180. id:'springHandlePanel2',
  2181. width:490,
  2182. height:400,
  2183. layout:'form',
  2184. defaults:{
  2185. border:false
  2186. }
  2187. });
  2188. var panel3 = Ext.create('Ext.panel.Panel',{
  2189. // id:'springHandlePanel3',
  2190. width:490,
  2191. height:360,
  2192. layout:'fit',
  2193. bodyStyle :'overflow-x:hidden;overflow-y:auto',
  2194. defaults:{
  2195. border:false
  2196. },
  2197. html:'<div style="height:360px;width:490px;"><div id="springHandlePanel3"></div></div>'
  2198. });
  2199. var panel4 = Ext.create('Ext.panel.Panel',{
  2200. // id:'springHandlePanel3',
  2201. width:490,
  2202. height:360,
  2203. layout:'fit',
  2204. bodyStyle :'overflow-x:hidden;overflow-y:auto',
  2205. defaults:{
  2206. border:false
  2207. },
  2208. html:'<div style="height:360px;width:490px;"><div id="springHandlePanel4"></div></div>'
  2209. });
  2210. var reset11 = function(){
  2211. document.getElementById('springHandle_textarea2_id').value = '';
  2212. document.getElementById('springHandle_select36_id').value = '0';
  2213. Ext.getCmp('SpringHandleListPageToolbar').moveFirst();
  2214. }
  2215. var reset12 = function(){
  2216. document.getElementById('springHandle_textarea2_id2').value = '';
  2217. document.getElementById('springHandle_select36_id2').value = '0';
  2218. Ext.getCmp('SpringHandleListPageToolbar').moveFirst();
  2219. }
  2220. var examinwin = function(id){
  2221. // if(examin_win!=undefined)
  2222. // examin_win.show();
  2223. // var id=ConfirmStore[0].id;
  2224. Ext.create('Ext.window.Window', {
  2225. title: '处理状态',
  2226. height: 600,
  2227. width: 500,
  2228. modal:true,
  2229. layout: 'border',
  2230. items: [ piebar2,
  2231. Ext.create('Ext.tab.Panel', {
  2232. activeTab: 0,
  2233. items: [
  2234. {
  2235. title: '处理反馈',
  2236. items : [panel1]
  2237. }
  2238. ]
  2239. })
  2240. ],
  2241. buttons:[
  2242. {
  2243. text:'确定',
  2244. iconCls:'ok_btn',
  2245. handler : function () {
  2246. var date=new Date;
  2247. var times = date.getHours()+':'+date.getMinutes()+':'+date.getSeconds(); //时
  2248. var dates=Ext.util.Format.date(date, 'Y-m-d');
  2249. var shid = document.getElementById('springHandle_select36_id');
  2250. var shIndex = shid.selectedIndex;
  2251. var sh = shid.options[shIndex].value;
  2252. var bz = document.getElementById('springHandle_textarea2_id').value;
  2253. // alert(bz);
  2254. var query = new Object();
  2255. if(sh.length>0){
  2256. query.cl_type = sh;
  2257. }
  2258. if(bz.length>0){
  2259. query.sh_remarks = bz;
  2260. }
  2261. query.id = id;
  2262. // query.V_LOGINNAME = V_LOGINNAME;
  2263. // query.V_PASSWORD = V_PASSWORD;
  2264. $.ajax({
  2265. type:'POST',
  2266. url: baseUrl+"iot/xjeventprocessing/updatesh",
  2267. data: {
  2268. queryJson : Ext.JSON.encode(query)
  2269. },
  2270. // success: function(result){
  2271. // Ext.Msg.alert('操作成功', '已审核', function(btn,txt){
  2272. // reset11();
  2273. // });
  2274. // }
  2275. success: function(result){
  2276. var json = eval('(' + result + ')');
  2277. if(json.action=='updateEventProcessingsh'){
  2278. if(json.success==true){
  2279. Ext.Msg.alert('操作成功', '已审核' , function(btn,txt){
  2280. reset11();
  2281. });
  2282. }else{
  2283. Ext.Msg.alert('操作失败', json.MSG , function(btn,txt){
  2284. reset11();
  2285. });
  2286. }
  2287. }
  2288. }
  2289. });
  2290. this.up('window').hide();
  2291. }
  2292. },{
  2293. text:'关闭',
  2294. handler : function() {
  2295. this.up('window').hide();
  2296. }
  2297. }
  2298. ],
  2299. closeAction:'hide'
  2300. }).show();
  2301. }
  2302. var examinwin1 = function(id){
  2303. // if(examin_win!=undefined)
  2304. // examin_win.show();
  2305. // var id=ConfirmStore[0].id;
  2306. Ext.create('Ext.window.Window', {
  2307. title: '处理状态',
  2308. height: 600,
  2309. width: 500,
  2310. modal:true,
  2311. layout: 'border',
  2312. items: [ piebar3,Ext.create('Ext.tab.Panel', {
  2313. activeTab: 0,
  2314. items: [
  2315. {
  2316. itemId:'chulifankui',
  2317. title: '处理反馈',
  2318. items : [panel2]
  2319. }
  2320. ,
  2321. {
  2322. itemId:'shenhejilu',
  2323. title: '反馈与审核记录',
  2324. items : [panel3]
  2325. }
  2326. ],
  2327. listeners:{
  2328. 'tabchange':function (t, n) {
  2329. var item = n.itemId;
  2330. if(item=='shenhejilu'){
  2331. // if(document.getElementById('div26_id_springHandlePanel3')==undefined)
  2332. springHandlePanel3Ajax(id);
  2333. }
  2334. }
  2335. }
  2336. })],
  2337. buttons:[
  2338. {
  2339. text:'确定',
  2340. iconCls:'ok_btn',
  2341. handler : function () {
  2342. var date=new Date;
  2343. var times = date.getHours()+':'+date.getMinutes()+':'+date.getSeconds(); //时
  2344. var dates=Ext.util.Format.date(date, 'Y-m-d');
  2345. var shid = document.getElementById('springHandle_select36_id2');
  2346. var shIndex = shid.selectedIndex;
  2347. var sh = shid.options[shIndex].value;
  2348. var bz = document.getElementById('springHandle_textarea2_id2').value;
  2349. // alert(bz);
  2350. var query = new Object();
  2351. if(sh.length>0){
  2352. query.cl_type = sh;
  2353. }
  2354. if(bz.length>0){
  2355. query.sh_remarks = bz;
  2356. }
  2357. query.id = id;
  2358. // query.V_LOGINNAME = V_LOGINNAME;
  2359. // query.V_PASSWORD = V_PASSWORD;
  2360. $.ajax({
  2361. type:'POST',
  2362. url: baseUrl+"iot/xjeventprocessing/updatesh",
  2363. data: {
  2364. queryJson : Ext.JSON.encode(query)
  2365. },
  2366. // success: function(result){
  2367. // Ext.Msg.alert('操作成功', '已审核', function(btn,txt){
  2368. // reset12();
  2369. // });
  2370. // }
  2371. success: function(result){
  2372. var json = eval('(' + result + ')');
  2373. if(json.action=='updateEventProcessingsh'){
  2374. if(json.success==true){
  2375. Ext.Msg.alert('操作成功', '已审核' , function(btn,txt){
  2376. reset12();
  2377. });
  2378. }else{
  2379. Ext.Msg.alert('操作失败', json.MSG , function(btn,txt){
  2380. reset12();
  2381. });
  2382. }
  2383. }
  2384. }
  2385. });
  2386. this.up('window').hide();
  2387. }
  2388. },{
  2389. text:'关闭',
  2390. handler : function() {
  2391. this.up('window').hide();
  2392. }
  2393. }
  2394. ],
  2395. closeAction:'hide'
  2396. }).show();
  2397. }
  2398. var examinwin2 = function(){
  2399. Ext.create('Ext.window.Window', {
  2400. title: '处理状态',
  2401. height: 600,
  2402. width: 500,
  2403. modal:true,
  2404. layout: 'border',
  2405. items: [ piebar4,
  2406. Ext.create('Ext.tab.Panel', {
  2407. activeTab: 0,
  2408. items: [
  2409. {
  2410. title: '反馈与审核记录',
  2411. items : [panel3]
  2412. }
  2413. ]
  2414. })
  2415. ],
  2416. buttons:[
  2417. {
  2418. text:'关闭',
  2419. handler : function() {
  2420. this.up('window').hide();
  2421. }
  2422. }
  2423. ],
  2424. closeAction:'hide'
  2425. }).show();
  2426. }
  2427. var examinwin3 = function(){
  2428. Ext.create('Ext.window.Window', {
  2429. title: '处理状态',
  2430. height: 600,
  2431. width: 500,
  2432. modal:true,
  2433. layout: 'border',
  2434. items: [ piebar5,
  2435. Ext.create('Ext.tab.Panel', {
  2436. activeTab: 0,
  2437. items: [
  2438. {
  2439. title: '反馈与审核记录',
  2440. items : [panel4]
  2441. }
  2442. ]
  2443. })
  2444. ],
  2445. buttons:[
  2446. {
  2447. text:'关闭',
  2448. handler : function() {
  2449. this.up('window').hide();
  2450. }
  2451. }
  2452. ],
  2453. closeAction:'hide'
  2454. }).show();
  2455. }
  2456. examineStatus = function(status,id){
  2457. var zyzp_status = status;
  2458. var spot_id = id;
  2459. // alert(spot_id);
  2460. if(zyzp_status==0){
  2461. if(document.getElementById('springHandlePanel3')!=undefined)
  2462. document.getElementById('springHandlePanel3').innerHTML="";
  2463. if(document.getElementById('springHandleHtml4')!=undefined)
  2464. document.getElementById('springHandleHtml4').innerHTML="";
  2465. if(document.getElementById('springHandleHtml2')!=undefined)
  2466. document.getElementById('springHandleHtml2').innerHTML="";
  2467. if(document.getElementById('springHandleHtml5')!=undefined)
  2468. document.getElementById('springHandleHtml5').innerHTML="";
  2469. // if(document.getElementById('springHandleHtml5')!=undefined)
  2470. // document.getElementById('springHandleHtml5').innerHTML="";
  2471. if(document.getElementById('springHandlePanel1')!=undefined)
  2472. document.getElementById('springHandlePanel1').innerHTML="";
  2473. var query = new Object();
  2474. // query.V_LOGINNAME = $("#V_LOGINNAME").val();
  2475. // query.V_PASSWORD = $("#V_PASSWORD").val();
  2476. query.id = spot_id;
  2477. $.ajax({
  2478. type:'POST',
  2479. url: baseUrl+"iot/xjeventprocessing/getNotAudited",
  2480. data: {
  2481. queryJson : Ext.JSON.encode(query)
  2482. },
  2483. success: function(result){
  2484. var json = eval('(' + result + ')');
  2485. if(json.action=='getNotAudited'){
  2486. ConfirmStore = json.RESULT;
  2487. examinwin(spot_id);
  2488. examineStatusHtml();
  2489. if(document.getElementById('div26_id_springHandlePanel1')==undefined)
  2490. springHandlePanel1Html();
  2491. }
  2492. }
  2493. });
  2494. }else if(zyzp_status==1){
  2495. if(document.getElementById('springHandleHtml3')!=undefined)
  2496. document.getElementById('springHandleHtml3').innerHTML="";
  2497. if(document.getElementById('springHandlePanel2')!=undefined)
  2498. document.getElementById('springHandlePanel2').innerHTML="";
  2499. var query = new Object();
  2500. // query.V_LOGINNAME = $("#V_LOGINNAME").val();
  2501. // query.V_PASSWORD = $("#V_PASSWORD").val();
  2502. query.id = spot_id;
  2503. $.ajax({
  2504. type:'POST',
  2505. url: baseUrl+"iot/xjeventprocessing/getNotAudited",
  2506. data: {
  2507. queryJson : Ext.JSON.encode(query)
  2508. },
  2509. success: function(result){
  2510. var json = eval('(' + result + ')');
  2511. if(json.action=='getNotAudited'){
  2512. ConfirmStore = json.RESULT;
  2513. examinwin1(spot_id);
  2514. examineStatusHtml1();
  2515. if(document.getElementById('div26_id_springHandlePanel2')==undefined)
  2516. springHandlePanel2Html();
  2517. }
  2518. }
  2519. });
  2520. }else if(zyzp_status==2){
  2521. if(document.getElementById('springHandlePanel3')!=undefined)
  2522. document.getElementById('springHandlePanel3').innerHTML="";
  2523. if(document.getElementById('springHandleHtml4')!=undefined)
  2524. document.getElementById('springHandleHtml4').innerHTML="";
  2525. if(document.getElementById('springHandleHtml2')!=undefined)
  2526. document.getElementById('springHandleHtml2').innerHTML="";
  2527. if(document.getElementById('springHandleHtml5')!=undefined)
  2528. document.getElementById('springHandleHtml5').innerHTML="";
  2529. var query = new Object();
  2530. // query.V_LOGINNAME = $("#V_LOGINNAME").val();
  2531. // query.V_PASSWORD = $("#V_PASSWORD").val();
  2532. query.event_processing_id = spot_id;
  2533. $.ajax({
  2534. type:'POST',
  2535. url: baseUrl+"iot/xjeventprocessing/getFeedback",
  2536. data: {
  2537. queryJson : Ext.JSON.encode(query)
  2538. },
  2539. success: function(result){
  2540. var json = eval('(' + result + ')');
  2541. if(json.action=='getFeedback'){
  2542. ConfirmStore = json.RESULT;
  2543. examinwin2();
  2544. examineStatusHtml2();
  2545. if(document.getElementById('div26_id_springHandlePanel3')==undefined)
  2546. springHandlePanel3Html();
  2547. }
  2548. }
  2549. });
  2550. }else if(zyzp_status==3){
  2551. if(document.getElementById('springHandleHtml5')!=undefined)
  2552. document.getElementById('springHandleHtml5').innerHTML="";
  2553. if(document.getElementById('springHandlePanel4')!=undefined)
  2554. document.getElementById('springHandlePanel4').innerHTML="";
  2555. var query = new Object();
  2556. // query.V_LOGINNAME = $("#V_LOGINNAME").val();
  2557. // query.V_PASSWORD = $("#V_PASSWORD").val();
  2558. query.event_processing_id = spot_id;
  2559. $.ajax({
  2560. type:'POST',
  2561. url: baseUrl+"iot/xjeventprocessing/getFeedback",
  2562. data: {
  2563. queryJson : Ext.JSON.encode(query)
  2564. },
  2565. success: function(result){
  2566. var json = eval('(' + result + ')');
  2567. if(json.action=='getFeedback'){
  2568. ConfirmStore = json.RESULT;
  2569. examinwin3();
  2570. examineStatusHtml3();
  2571. if(document.getElementById('div26_id_springHandlePanel4')==undefined)
  2572. springHandlePanel4Html();
  2573. }
  2574. }
  2575. });
  2576. }
  2577. }
  2578. var inspectorsCheckHtml2 =function(){
  2579. var maintenanceCheckHtml21 = document.getElementById('shangbao_xiangqing');
  2580. var title = document.createElement('div');
  2581. title.setAttribute('class','SpringHandleTitle');
  2582. title.innerHTML='上报人员';
  2583. maintenanceCheckHtml21.appendChild(title);
  2584. var title1 = document.createElement('div');
  2585. title1.setAttribute('class','SpringHandleTitle1');
  2586. // title1.innerHTML='韩锐';
  2587. title1.innerHTML=ConfirmStore[0].name;
  2588. maintenanceCheckHtml21.appendChild(title1);
  2589. var title2 = document.createElement('div');
  2590. title2.setAttribute('class','SpringHandleTitle2');
  2591. title2.innerHTML='上报时间';
  2592. maintenanceCheckHtml21.appendChild(title2);
  2593. var title3 = document.createElement('div');
  2594. title3.setAttribute('class','SpringHandleTitle3');
  2595. // title3.innerHTML='2019-03-04 13:48:07';
  2596. title3.innerHTML=ConfirmStore[0].sbsj;
  2597. maintenanceCheckHtml21.appendChild(title3);
  2598. var title4 = document.createElement('div');
  2599. title4.setAttribute('class','SpringHandleTitle4');
  2600. title4.innerHTML='现场照片';
  2601. maintenanceCheckHtml21.appendChild(title4);
  2602. var title5 = document.createElement('img');
  2603. title5.setAttribute('class','SpringHandleTitle5');
  2604. title5.src='../../res/img/common/shangchaun.png';
  2605. title5.src="https://qhome.usky.cn"+ConfirmStore[0].report_photos;
  2606. maintenanceCheckHtml21.appendChild(title5);
  2607. var title6 = document.createElement('div');
  2608. title6.setAttribute('class','SpringHandleTitle6');
  2609. title6.innerHTML='备注';
  2610. maintenanceCheckHtml21.appendChild(title6);
  2611. var title7 = document.createElement('div');
  2612. title7.setAttribute('class','SpringHandleTitle7');
  2613. // title7.innerHTML='玻璃不知道被谁砸坏了,需要联系物业更换玻璃';
  2614. title7.innerHTML=ConfirmStore[0].dwsb_remarks;
  2615. maintenanceCheckHtml21.appendChild(title7);
  2616. }
  2617. modifywin = function(id){
  2618. Ext.create('Ext.window.Window', {
  2619. title: '上报详情',
  2620. height: 300,
  2621. width: 500,
  2622. modal:true,
  2623. layout:'fit',
  2624. closeAction: 'destroy',
  2625. html:'<div style="overflow-y:auto;height:270px;width:500px;background:#002c59;"><div id="shangbao_xiangqing"></div></div>'
  2626. }).show();
  2627. var query = new Object();
  2628. // query.V_LOGINNAME = $("#V_LOGINNAME").val();
  2629. // query.V_PASSWORD = $("#V_PASSWORD").val();
  2630. query.id = id;
  2631. $.ajax({
  2632. type:'POST',
  2633. url: baseUrl+'iot/xjeventprocessing/getReportDetailsList',
  2634. data: {
  2635. queryJson : Ext.JSON.encode(query)
  2636. },
  2637. success: function(result){
  2638. var json = eval('(' + result + ')');
  2639. // if(json.action=='getVProjectNameList'){
  2640. ConfirmStore = json.RESULT;
  2641. inspectorsCheckHtml2();
  2642. // }
  2643. }
  2644. });
  2645. }
  2646. var piedarHtml2 = function() {
  2647. var date=new Date;
  2648. var dates=Ext.util.Format.date(date, 'Y-m-d');
  2649. var preDate = new Date(date.getTime() - 24*60*60*1000);
  2650. var dates2=Ext.util.Format.date(preDate, 'Y-m-d');
  2651. var maintenanceCheckHtml = document.getElementById('inspectorsCheckHtml');
  2652. // var title = document.createElement('div');
  2653. // title.setAttribute('class','MaintenancePersonTitle');
  2654. // title.innerHTML='巡检记录';
  2655. // maintenanceCheckHtml.appendChild(title);
  2656. var title2 = document.createElement('div');
  2657. title2.setAttribute('class','springHandle_title2_div_font');
  2658. title2.innerHTML='任务名称';
  2659. maintenanceCheckHtml.appendChild(title2);
  2660. var input = document.createElement('input');
  2661. input.setAttribute('class','springHandle_input_class');
  2662. input.setAttribute('id','springHandle_title2_input');
  2663. input.setAttribute('type','text');
  2664. input.setAttribute('value','');
  2665. maintenanceCheckHtml.appendChild(input);
  2666. var title3 = document.createElement('div');
  2667. title3.setAttribute('class','springHandle_title3_div_font');
  2668. title3.innerHTML='责任人';
  2669. maintenanceCheckHtml.appendChild(title3);
  2670. var select = document.createElement('select');
  2671. select.setAttribute('class','springHandle_input1_class');
  2672. select.setAttribute('id','springHandle_title3_input1');
  2673. maintenanceCheckHtml.appendChild(select);
  2674. var option2 = document.createElement('option');
  2675. option2.innerHTML='所有人';
  2676. option2.setAttribute('value','0');
  2677. select.appendChild(option2);
  2678. for(var i=0;i<ConfirmStore1.length;i++){
  2679. var option3 = document.createElement('option');
  2680. option3.innerHTML=ConfirmStore1[i].name;
  2681. option3.setAttribute('value',ConfirmStore1[i].zrrid);
  2682. select.appendChild(option3);
  2683. }
  2684. var title4 = document.createElement('div');
  2685. title4.setAttribute('class','springHandle_title1_div');
  2686. title4.setAttribute('id','springHandle_title1_div');
  2687. title4.setAttribute('onmouseover',"mouseon(this)");
  2688. title4.setAttribute('onmouseout',"mouseoff(this)");
  2689. title4.setAttribute('onclick',"menu_click(this)");
  2690. maintenanceCheckHtml.appendChild(title4);
  2691. var title5 = document.createElement('div');
  2692. title5.setAttribute('class','springHandle_title2_div');
  2693. title5.setAttribute('id','springHandle_title2_div');
  2694. title5.setAttribute('onmouseover',"mouseon(this)");
  2695. title5.setAttribute('onmouseout',"mouseoff(this)");
  2696. title5.setAttribute('onclick',"menu_click(this)");
  2697. maintenanceCheckHtml.appendChild(title5);
  2698. var title6 = document.createElement('div');
  2699. title6.setAttribute('class','springHandle_title3_div');
  2700. title6.setAttribute('id','springHandle_title3_div');
  2701. title6.setAttribute('onmouseover',"mouseon(this)");
  2702. title6.setAttribute('onmouseout',"mouseoff(this)");
  2703. title6.setAttribute('onclick',"menu_click(this)");
  2704. maintenanceCheckHtml.appendChild(title6);
  2705. var title61 = document.createElement('div');
  2706. title61.setAttribute('class','springHandle_title4_div');
  2707. title61.setAttribute('id','springHandle_title4_div');
  2708. title61.setAttribute('onmouseover',"mouseon(this)");
  2709. title61.setAttribute('onmouseout',"mouseoff(this)");
  2710. title61.setAttribute('onclick',"menu_click(this)");
  2711. maintenanceCheckHtml.appendChild(title61);
  2712. var input2 = document.createElement('input');
  2713. input2.setAttribute('class','springHandle_input2_class');
  2714. input2.setAttribute('id','springHandle_title3_input2');
  2715. input2.setAttribute('type','text');
  2716. input2.setAttribute('readonly','true');
  2717. input2.setAttribute('value',dates);
  2718. maintenanceCheckHtml.appendChild(input2);
  2719. var title8 = document.createElement('div');
  2720. title8.setAttribute('class','springHandle_title8_div');
  2721. title8.innerHTML='~';
  2722. maintenanceCheckHtml.appendChild(title8);
  2723. var input3 = document.createElement('input');
  2724. input3.setAttribute('class','springHandle_input3_class');
  2725. input3.setAttribute('id','springHandle_title3_input3');
  2726. input3.setAttribute('type','text');
  2727. input3.setAttribute('readonly','true');
  2728. input3.setAttribute('value',dates2);
  2729. maintenanceCheckHtml.appendChild(input3);
  2730. //设置开始时间
  2731. var startDate = laydate.render({
  2732. elem: '#springHandle_title3_input3',
  2733. done: function (value, date) {
  2734. if (value !== '') {
  2735. endDate.config.min.year = date.year;
  2736. endDate.config.min.month = date.month - 1;
  2737. endDate.config.min.date = date.date;
  2738. } else {
  2739. endDate.config.min.year = '';
  2740. endDate.config.min.month = '';
  2741. endDate.config.min.date = '';
  2742. }
  2743. }
  2744. });
  2745. //设置结束时间
  2746. var endDate = laydate.render({
  2747. elem: '#springHandle_title3_input2',
  2748. done: function (value, date) {
  2749. if (value !== '') {
  2750. startDate.config.max.year = date.year;
  2751. startDate.config.max.month = date.month - 1;
  2752. startDate.config.max.date = date.date;
  2753. } else {
  2754. startDate.config.max.year = '';
  2755. startDate.config.max.month = '';
  2756. startDate.config.max.date = '';
  2757. }
  2758. }
  2759. });
  2760. var title7 = document.createElement('div');
  2761. title7.setAttribute('class','springHandle_title7_div');
  2762. title7.innerHTML='完成时间';
  2763. maintenanceCheckHtml.appendChild(title7);
  2764. var select1 = document.createElement('select');
  2765. select1.setAttribute('class','springHandle_input4_class');
  2766. select1.setAttribute('id','springHandle_title3_input4');
  2767. maintenanceCheckHtml.appendChild(select1);
  2768. var option0 = document.createElement('option');
  2769. option0.innerHTML='所有';
  2770. option0.setAttribute('value','0');
  2771. select1.appendChild(option0);
  2772. var option1 = document.createElement('option');
  2773. option1.innerHTML='未处理';
  2774. option1.setAttribute('value','1');
  2775. select1.appendChild(option1);
  2776. var option2 = document.createElement('option');
  2777. option2.innerHTML='未审核';
  2778. option2.setAttribute('value','2');
  2779. select1.appendChild(option2);
  2780. var option3 = document.createElement('option');
  2781. option3.innerHTML='审核未通过';
  2782. option3.setAttribute('value','3');
  2783. select1.appendChild(option3);
  2784. var option4 = document.createElement('option');
  2785. option4.innerHTML='已完成';
  2786. option4.setAttribute('value','4');
  2787. select1.appendChild(option4);
  2788. var option5 = document.createElement('option');
  2789. option5.innerHTML='超时完成';
  2790. option5.setAttribute('value','5');
  2791. select1.appendChild(option5);
  2792. var title9 = document.createElement('div');
  2793. title9.setAttribute('class','springHandle_title9_div');
  2794. title9.innerHTML='处理状态';
  2795. maintenanceCheckHtml.appendChild(title9);
  2796. var title28 = document.createElement('div');
  2797. title28.setAttribute('class','springHandle_title28_div');
  2798. title28.innerHTML='报修类型';
  2799. maintenanceCheckHtml.appendChild(title28);
  2800. var select2 = document.createElement('select');
  2801. select2.setAttribute('class','springHandle_input5_class');
  2802. select2.setAttribute('id','springHandle_title3_input5');
  2803. maintenanceCheckHtml.appendChild(select2);
  2804. var option6 = document.createElement('option');
  2805. option6.innerHTML='所有';
  2806. option6.setAttribute('value','0');
  2807. select2.appendChild(option6);
  2808. var option7 = document.createElement('option');
  2809. option7.innerHTML='故障';
  2810. option7.setAttribute('value','1');
  2811. select2.appendChild(option7);
  2812. var option8 = document.createElement('option');
  2813. option8.innerHTML='隐患';
  2814. option8.setAttribute('value','2');
  2815. select2.appendChild(option8);
  2816. var option9 = document.createElement('option');
  2817. option9.innerHTML='其他';
  2818. option9.setAttribute('value','3');
  2819. select2.appendChild(option9);
  2820. var title10 = document.createElement('div');
  2821. title10.setAttribute('class','springHandle_title20_div');
  2822. maintenanceCheckHtml.appendChild(title10);
  2823. var title11 = document.createElement('div');
  2824. title11.setAttribute('class','springHandle_title11_div');
  2825. maintenanceCheckHtml.appendChild(title11);
  2826. var title12 = document.createElement('div');
  2827. title12.setAttribute('class','springHandle_title12_div');
  2828. maintenanceCheckHtml.appendChild(title12);
  2829. var title13 = document.createElement('div');
  2830. title13.setAttribute('class','springHandle_title13_div');
  2831. maintenanceCheckHtml.appendChild(title13);
  2832. var title14 = document.createElement('div');
  2833. title14.setAttribute('class','springHandle_title14_div');
  2834. title14.innerHTML=ConfirmStore[0].jrjj;
  2835. maintenanceCheckHtml.appendChild(title14);
  2836. var title15 = document.createElement('div');
  2837. title15.setAttribute('class','springHandle_title15_div');
  2838. title15.innerHTML=ConfirmStore[0].cssj;
  2839. maintenanceCheckHtml.appendChild(title15);
  2840. var title16 = document.createElement('div');
  2841. title16.setAttribute('class','springHandle_title16_div');
  2842. title16.innerHTML=ConfirmStore[0].jrsj;
  2843. maintenanceCheckHtml.appendChild(title16);
  2844. var title17 = document.createElement('div');
  2845. title17.setAttribute('class','springHandle_title17_div');
  2846. title17.innerHTML=ConfirmStore[0].zrs;
  2847. maintenanceCheckHtml.appendChild(title17);
  2848. }
  2849. var piedarHtml = function() {
  2850. var query = new Object();
  2851. query.V_LOGINNAME = $("#V_LOGINNAME").val();
  2852. $.ajax({
  2853. type:'POST',
  2854. url: baseUrl+"iot/xjeventprocessing/getList",
  2855. data: {
  2856. queryJson : Ext.JSON.encode(query)
  2857. },
  2858. success: function(result){
  2859. var json = eval('(' + result + ')');
  2860. if(json.action=='getEventProcessingList'){
  2861. ConfirmStore = json.RESULT2;
  2862. ConfirmStore1 = json.RESULT1;
  2863. piedarHtml2();
  2864. }
  2865. }
  2866. });
  2867. }
  2868. var SpringHandleListPanel=Ext.create('Ext.grid.Panel', {
  2869. header :{
  2870. height:0,
  2871. border:'0px solid #000000'
  2872. },
  2873. id: 'SpringHandleListPanel',
  2874. store: myStore,
  2875. // selModel: sm,
  2876. columns: [
  2877. { header: 'ID', dataIndex: 'id',hidden:true, menuDisabled:true },
  2878. { header: '序号', dataIndex: 'xh', width:77, menuDisabled:true },
  2879. { header: '报修任务名称', dataIndex: 'wx_name', width:270,align:'center', menuDisabled:true },
  2880. { header: '报修类型', dataIndex: 'sj_type_name', width:100,align:'center', menuDisabled:true },
  2881. { header: '应完成时间', dataIndex: 'y_complete_time', width:250,align:'center', menuDisabled:true },
  2882. { header: '实际完成时间', dataIndex: 'cl_time', width:240, align:'center', menuDisabled:true },
  2883. {
  2884. text:'上报详情',
  2885. xtype : 'actioncolumn',
  2886. width:140,
  2887. sortable:false,
  2888. align:'center',
  2889. menuDisabled:true,
  2890. items:[{
  2891. icon: '../../res/img/common/chakanbtn.png',
  2892. tooltip: '上报详情',
  2893. handler: function(grid, rowIndex, colIndex) {
  2894. var rec = grid.getStore().getAt(rowIndex);
  2895. $("#checkRecord_id").val(rec.get("id"));
  2896. modifywin(rec.get("id"));
  2897. }
  2898. }]
  2899. },
  2900. { header: '当前状态', dataIndex: 'dqzt',width:240, align:'center', menuDisabled:true },
  2901. { header: '相关责任人', dataIndex: 'person_liable_name', width:121, align:'center', menuDisabled:true },
  2902. { header: '联系电话', dataIndex: 'phone', width:140, align:'center', menuDisabled:true },
  2903. { header: '处理状态', dataIndex: 'cl_type_name', width:140, align:'center', menuDisabled:true },
  2904. ],
  2905. columnLines: true,
  2906. height: maxHeight,
  2907. width: '100%',
  2908. bbar: new Ext.PagingToolbar({
  2909. store: myStore,
  2910. id:'SpringHandleListPageToolbar',
  2911. displayInfo: true,
  2912. pageSize: countPerPage,
  2913. prependButtons: true,
  2914. displayMsg : '显示第 {0}条到 {1}条记录,总共 {2}条',
  2915. emptyMsg : "没有记录",
  2916. firstText: '第一页',
  2917. prevText: '前一页',
  2918. nextText: '后一页',
  2919. lastText: '最后一页',
  2920. refreshText: '刷新',
  2921. }),
  2922. border:false,
  2923. iconCls: 'icon-grid'
  2924. });
  2925. var piebar = Ext.create('Ext.panel.Panel',{
  2926. id:'inspectorsCheckHtml',
  2927. width:'100%',
  2928. height:250,
  2929. region:'north',
  2930. layout:'form',
  2931. defaults:{
  2932. border:false
  2933. }
  2934. });
  2935. new Ext.create('Ext.panel.Panel',{
  2936. width:'100%',
  2937. id: 'InspectorsCheckPiebar',
  2938. layout:'border',
  2939. items:[
  2940. piebar,SpringHandleListPanel
  2941. ],
  2942. renderTo: Ext.getBody()
  2943. });
  2944. piedarHtml();
  2945. myStore.reload();
  2946. maxHeight = document.documentElement.clientHeight;
  2947. Ext.getCmp('InspectorsCheckPiebar').setHeight(maxHeight);
  2948. });