main.js 129 KB

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