QueryProblemProject.cshtml 82 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691
  1. 
  2. @{
  3. ViewBag.Title = "QueryProblemProject";
  4. Layout = "~/Views/MobileProblem/_APPMain.cshtml";
  5. var url = HttpContext.Current.Request.Url;
  6. var webSite = String.Concat(url.Scheme, "://", url.Authority);
  7. }
  8. <meta name="apple-mobile-web-app-capable" content="yes">
  9. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  10. <link href="~/Content/Style/MobileProductRegist/iconfont.css" rel="stylesheet" />
  11. <link href="~/Content/Style/MobileProductRegist/QueryProblemCustom.css?v=1.0" rel="stylesheet" />
  12. <link href="~/Content/Scripts/plugins/mui/css/mui.indexedlist.css" rel="stylesheet" />
  13. <script src="~/Content/Scripts/browser.js"></script>
  14. <script src="~/Content/Scripts/browser-polyfill.min.js"></script>
  15. <script src="~/Content/Scripts/plugins/mui/js/iconfont.deal.js"></script>
  16. <script src="~/Content/Scripts/plugins/mui/js/mui.pullToRefresh.js"></script>
  17. <script src="~/Content/Scripts/plugins/mui/js/mui.pullToRefresh.material.js"></script>
  18. <script src="~/Content/Scripts/plugins/mui/js/mui.indexedlist.js"></script>
  19. <script src="~/Content/Style/MobileProductRegist/ProblemIcon.js"></script>
  20. <script src="https://cdn.staticfile.org/vue-resource/1.5.1/vue-resource.min.js"></script>
  21. <style>
  22. .moremini {
  23. padding: 2px 7px 2px 7px;
  24. margin-bottom: 5px;
  25. font-size: 11px;
  26. }
  27. .mui-card {
  28. margin: 5px 0px 0px;
  29. }
  30. .mui-card-media img {
  31. height: 35px !important;
  32. width: auto !important;
  33. border-radius: 50px;
  34. }
  35. .my-content {
  36. padding: 5px 10px;
  37. font-size: 13px;
  38. color: #8f8f94;
  39. max-height: 80px;
  40. overflow: hidden;
  41. }
  42. .svg-float {
  43. position: absolute;
  44. top: 0;
  45. right: 6px;
  46. }
  47. p {
  48. font-size: 13px;
  49. }
  50. .mui-btn.mui-icon {
  51. font-size: 12px;
  52. line-height: 1.42;
  53. padding: 3px 7px;
  54. border:solid 1px #d7d7dc;
  55. margin-right: 5px;
  56. border-radius: 7px;
  57. }
  58. .mui-card-footer{
  59. justify-content:flex-end
  60. }
  61. .mui-media-body div{
  62. font-size:13px;
  63. color: #6f6f6f;
  64. background-color: #ffffff;
  65. position: absolute;
  66. z-index: 999999;
  67. right: 8px;
  68. }
  69. </style>
  70. <div id="vue" v-cloak>
  71. <header class="mui-bar mui-bar-nav">
  72. <a id="icon-menu" class="mui-action-menu mui-icon mui-icon-bars mui-pull-left" style="color:white"></a>
  73. <h4 class="mui-title" style="color:white"><a href="#Popover_1">{{Project.名称}}<span v-if="@ViewBag.PersonPropert!=4" class="mui-icon mui-icon-arrowdown" style="font-size:18px"></span></a></h4>
  74. <a href="/MobileProblem/ProblemQuickSearch" class="mui-icon iconfont icon-soushuo mui-pull-right" id="title-right"></a>
  75. </header>
  76. <nav class="mui-bar mui-bar-tab">
  77. <a class="mui-tab-item" id="Home">
  78. <span class="mui-icon iconfont icon-shouye"></span>
  79. <span class="mui-tab-label">首页</span>
  80. </a>
  81. <a class="mui-tab-item mui-deaflut" id="NewProblem">
  82. <span class="mui-icon iconfont icon-wentifankui"></span>
  83. <span class="mui-tab-label">问题查询</span>
  84. </a>
  85. <a class="mui-tab-item" id="my">
  86. <span class="mui-icon iconfont icon-wode"></span>
  87. <span class="mui-tab-label">我的</span>
  88. </a>
  89. </nav>
  90. <div class="mui-content ">
  91. <div class="blueHeaderBg"></div>
  92. <div id="slider" class="mui-slider mui-fullscreen">
  93. <div id="sliderSegmentedControl" class="mui-scroll-wrapper mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
  94. <div class="titleList" style="border-bottom: solid 1px #e1e1e6;">
  95. <a class="mui-control-item paddingNone mui-active " href="#all" data-id="0" id="myProblem">
  96. 待受理
  97. </a>
  98. <a class="mui-control-item paddingNone" href="#Unsolve" data-id="1">
  99. 我登记
  100. </a>
  101. <a class="mui-control-item paddingNone" href="#Solve" data-id="2">
  102. 我处理
  103. </a>
  104. <a class="mui-control-item paddingNone" href="#Apply" data-id="3">
  105. 我提交
  106. </a>
  107. <a class="mui-control-item paddingNone" href="#Allof" data-id="4">
  108. 全部
  109. </a>
  110. </div>
  111. </div>
  112. <div class="mui-slider-group">
  113. <!--新登记-->
  114. <div id="all" class="mui-slider-item mui-control-content mui-active">
  115. <div class="mui-scroll-wrapper">
  116. <div class="mui-scroll bo30">
  117. <div class="Problem">
  118. <div v-for="p1 in page[0].data" class="mui-card">
  119. <div v-on:click="Deatil(p1.ID)" class="mui-card-header mui-card-media">
  120. <img src="~/Content/Images/Account/wtx.jpg" />
  121. <div class="mui-media-body">
  122. {{p1.性质}}-{{p1.登记人}}
  123. <p style="font-size:12px">登记于 {{p1.登记日期}}</p>
  124. <div >{{p1.编号}}</div>
  125. <svg class='icon svg-float' aria-hidden='true'><use v-bind:xlink:href='p1.icon'></use></svg>
  126. </div>
  127. </div>
  128. <div v-on:click="Deatil(p1.ID)" class="mui-card-content my-content">
  129. <div class="overf" style="-webkit-line-clamp: 1;">标题:{{p1.问题标题}}</div>
  130. <div v-html="p1.问题描述" class="overf" style="-webkit-line-clamp: 2;">{{p1.问题描述}}</div>
  131. </div>
  132. <div v-if="p1.按钮权限=='1'" class="mui-card-footer">
  133. <button v-on:click="TryAcceptProblem(p1.是否为当前处理人,p1.ID,1)" type="button" class="mui-btn mui-btn-danger mui-icon mui-icon-plusempty" style="background-color: rgb(234, 146, 58);border: none;">
  134. 受理
  135. </button>
  136. </div>
  137. </div>
  138. </div>
  139. </div>
  140. </div>
  141. </div>
  142. <!--我登记-->
  143. <div id="Unsolve" class="mui-slider-item mui-control-content">
  144. <div class="mui-scroll-wrapper">
  145. <div class="mui-scroll bo30">
  146. <div class="Problem">
  147. <div style="border-top: solid 7px #efeff4;">
  148. <div class="we active ministyle" style="padding-top:5px">
  149. <div class="miniblok moremini" v-for="ds in page[1].Condition.DealStatus" v-on:click="ToActiveMuitiAndRefresh(ds,1)" v-bind:class="{ 'myactive': ds.active}">{{ds.name}}</div>
  150. </div>
  151. </div>
  152. <div v-on:click="Deatil(p2.ID)" v-for="p2 in page[1].data" class="mui-card">
  153. <div class="mui-card-header mui-card-media">
  154. <img src="~/Content/Images/Account/wtx.jpg" />
  155. <div class="mui-media-body">
  156. {{p2.性质}}-{{p2.登记人}}
  157. <p style="font-size:12px">登记于 {{p2.登记日期}}</p>
  158. <div >{{p2.编号}}</div>
  159. <svg class='icon svg-float' aria-hidden='true'><use v-bind:xlink:href='p2.icon'></use></svg>
  160. </div>
  161. </div>
  162. <div class="mui-card-content my-content">
  163. <div class="overf" style="-webkit-line-clamp: 1;">标题:{{p2.问题标题}}</div>
  164. <div v-html="p2.问题描述" class="overf" style="-webkit-line-clamp: 2;">{{p2.问题描述}}</div>
  165. </div>
  166. </div>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. <!--我处理-->
  172. <div id="Solve" class="mui-slider-item mui-control-content">
  173. <div class="mui-scroll-wrapper">
  174. <div class="mui-scroll bo30">
  175. <div class="Problem">
  176. <div style="border-top: solid 7px #efeff4;">
  177. <div class="we active ministyle" style="padding-top:5px">
  178. <div class="miniblok moremini" v-for="lk in page[2].Condition.Links" v-on:click="ToActiveMuitiAndRefresh(lk,2)" v-bind:class="{ 'myactive': lk.active}">{{lk.name}}</div>
  179. <div class="miniblok moremini" v-on:click="SingeleAndRefresh(page[2].Condition.IncludeStop,2)" v-bind:class="{ 'myactive': page[2].Condition.IncludeStop.active}">{{page[2].Condition.IncludeStop.name}}</div>
  180. </div>
  181. </div>
  182. <div v-for="p3 in page[2].data" class="mui-card">
  183. <div v-on:click="Deatil(p3.ID)" class="mui-card-header mui-card-media">
  184. <img src="~/Content/Images/Account/wtx.jpg" />
  185. <div class="mui-media-body">
  186. {{p3.性质}}-{{p3.登记人}}
  187. <p style="font-size:12px">登记于 {{p3.登记日期}}</p>
  188. <div >{{p3.编号}}</div>
  189. <svg class='icon svg-float' aria-hidden='true'><use v-bind:xlink:href='p3.icon'></use></svg>
  190. </div>
  191. </div>
  192. <div v-on:click="Deatil(p3.ID)" class="mui-card-content my-content">
  193. <div class="overf" style="-webkit-line-clamp: 1;">标题:{{p3.问题标题}}</div>
  194. <div v-html="p3.问题描述" class="overf" style="-webkit-line-clamp: 2;">{{p3.问题描述}}</div>
  195. </div>
  196. <div v-if="p3.按钮权限=='1'" class="mui-card-footer">
  197. <template>
  198. <button v-on:click="TryAcceptProblem(p3.是否为当前处理人,p3.ID,2)" type="button" class="mui-btn mui-btn-outlined mui-icon mui-icon-minus">
  199. 终止
  200. </button>
  201. <button v-on:click="TryAcceptProblem(p3.是否为当前处理人,p3.ID,3)" type="button" class="mui-btn mui-btn-outlined mui-icon mui-icon-undo">
  202. 回退
  203. </button>
  204. <button v-on:click="TryAcceptProblem(p3.是否为当前处理人,p3.ID,4)" type="button" class="mui-btn mui-btn-danger mui-icon mui-icon-checkmarkempty" style="background-color: #fb7e00;border: none;">
  205. 处理
  206. </button>
  207. </template>
  208. </div>
  209. </div>
  210. </div>
  211. </div>
  212. </div>
  213. </div>
  214. @*我申请的*@
  215. <div id="Apply" class="mui-slider-item mui-control-content">
  216. <div class="mui-scroll-wrapper">
  217. <div class="mui-scroll bo30">
  218. <div class="Problem">
  219. <div v-on:click="Deatil(p4.ID)" v-for="p4 in page[3].data" class="mui-card">
  220. <div class="mui-card-header mui-card-media">
  221. <img src="~/Content/Images/Account/wtx.jpg" />
  222. <div class="mui-media-body">
  223. {{p4.性质}}-{{p4.登记人}}
  224. <p style="font-size:12px">登记于 {{p4.登记日期}}</p>
  225. <div>{{p4.编号}}</div>
  226. <svg class='icon svg-float' aria-hidden='true'><use v-bind:xlink:href='p4.icon'></use></svg>
  227. </div>
  228. </div>
  229. <div class="mui-card-content my-content">
  230. <div class="overf" style="-webkit-line-clamp: 1;">标题:{{p4.问题标题}}</div>
  231. <div v-html="p4.问题描述" class="overf" style="-webkit-line-clamp: 2;">{{p4.问题描述}}</div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. @*全部*@
  239. <div id="Allof" class="mui-slider-item mui-control-content">
  240. <div class="mui-scroll-wrapper">
  241. <div class="mui-scroll bo30">
  242. <div class="Problem">
  243. <div v-on:click="Deatil(p5.ID)" v-for="p5 in page[4].data" class="mui-card">
  244. <div class="mui-card-header mui-card-media">
  245. <img src="~/Content/Images/Account/wtx.jpg" />
  246. <div class="mui-media-body">
  247. {{p5.性质}}-{{p5.登记人}}
  248. <p style="font-size:12px">登记于 {{p5.登记日期}}</p>
  249. <div>{{p5.编号}}</div>
  250. <svg class='icon svg-float' aria-hidden='true'><use v-bind:xlink:href='p5.icon'></use></svg>
  251. </div>
  252. </div>
  253. <div class="mui-card-content my-content">
  254. <div class="overf" style="-webkit-line-clamp: 1;">标题:{{p5.问题标题}}</div>
  255. <div v-html="p5.问题描述" class="overf" style="-webkit-line-clamp: 2;">{{p5.问题描述}}</div>
  256. </div>
  257. </div>
  258. </div>
  259. </div>
  260. </div>
  261. </div>
  262. </div>
  263. </div>
  264. </div>
  265. @*下拉菜单*@
  266. <div id="menu-wrapper" class="menu-wrapper hidden" style="height:25rem">
  267. <div class="mui-scroll-wrapper" style="margin:0px;top:0px">
  268. <div class="mui-scroll">
  269. <div id="menu" class="menu">
  270. <div>
  271. <h4 class="menuH4">当前处理环节</h4>
  272. <div class="we active" style="flex-wrap:wrap;justify-content:flex-start;">
  273. <div class="miniblok" v-for="cu in SearchCondition.CurrentUnit" v-on:click="ToActiveCache(SearchCondition.CurrentUnit,cu,'CurrentLink')" v-bind:class="{ 'myactive': cu.active}">{{cu.name}}</div>
  274. </div>
  275. </div>
  276. <div>
  277. <h4 class="menuH4">问题性质</h4>
  278. <div class="we active" style="flex-wrap:wrap;justify-content:flex-start;">
  279. <div class="miniblok" v-for="ss in SearchCondition.Status" v-on:click="ToActive(SearchCondition.Status,ss)" v-bind:class="{ 'myactive': ss.active}">{{ss.name}}</div>
  280. </div>
  281. </div>
  282. <div>
  283. <h4 class="menuH4">优先级</h4>
  284. <div class="we active" style="flex-wrap:wrap;justify-content:flex-start;">
  285. <div class="miniblok" v-for="pr in SearchCondition.priority" v-on:click="ToActive(SearchCondition.priority,pr)" v-bind:class="{ 'myactive': pr.active}">{{pr.name}}</div>
  286. </div>
  287. </div>
  288. <div>
  289. <h4 class="menuH4">产品类型</h4>
  290. <div class="we active" style="flex-wrap:wrap;justify-content:flex-start;">
  291. <div class="miniblok" v-for="pt in SearchCondition.ProductType" v-on:click="ToActive(SearchCondition.ProductType,pt)" v-bind:class="{ 'myactive': pt.active}">{{pt.name}}</div>
  292. </div>
  293. </div>
  294. <div>
  295. <h4 class="menuH4">机构<a v-if="@ViewBag.PersonPropert!=4" class="moreInstu" href="#modal">更多机构<span class="mui-icon mui-icon-arrowdown" style="font-size:18px"></span></a></h4>
  296. <div class="we active" style="flex-wrap:wrap;justify-content:flex-start;">
  297. <div class="miniblok" v-for="si in SearchCondition.Institution" v-on:click="ToActive(SearchCondition.Institution,si)" v-bind:class="{ 'myactive': si.active}">{{si.name}}</div>
  298. </div>
  299. </div>
  300. <div>
  301. <h4 class="menuH4">登记时间</h4>
  302. <div style="display:flex;margin-left:19px">
  303. <button type="button" id="TimeBegin" data-options='{"type":"date","beginYear":2017,"endYear":2019}' class="mui-btn time-btn">开始时间</button>
  304. <span>-</span>
  305. <button type="button" id="TimeEnd" data-options='{"type":"date","beginYear":2017,"endYear":2019}' class="mui-btn time-btn">结束时间</button>
  306. </div>
  307. </div>
  308. <div style="overflow:hidden">
  309. <h4 class="menuH4">查询条件</h4>
  310. <input style="font-size:15px; width:90%" v-model="SearchCondition.search" id="search" type="search" class="mui-input-clear" placeholder="标题/内容/编号">
  311. </div>
  312. </div>
  313. </div>
  314. </div>
  315. <div class="mui-button-row">
  316. <button type="button" class="mui-btn mui-btn-primary" style="width:48%;background-color: #2ab8ff;border:none" v-on:click="Deafault">重置</button>
  317. <button type="button" class="mui-btn mui-btn-danger" style="width:48%" id="reload">确定</button>
  318. </div>
  319. </div>
  320. <div id="menu-backdrop" class="menu-backdrop"></div>
  321. @*项目选菜单*@
  322. <div id="Popover_1" v-if="@ViewBag.PersonPropert!=4" class="mui-popover mui-bar-popover" style="width: 19rem;height:19rem">
  323. <div class="mui-popover-arrow"></div>
  324. <div class="mui-scroll-wrapper" style="margin:0px;background-color: white;">
  325. <div class="mui-scroll">
  326. <div style="text-align:center">
  327. <input style="font-size:15px; margin:auto" v-model="searchText" type="search" class="mui-input-clear" placeholder="项目名称搜索">
  328. </div>
  329. <form class="mui-input-group">
  330. <div class="mui-input-row mui-radio">
  331. <label>全部项目</label>
  332. <input name="radio1" type="radio" v-bind:value="AllProjectSle" v-model="Project">
  333. </div>
  334. <div v-for="pj in ProjectsearchData" class="mui-input-row mui-radio">
  335. <label>{{pj.名称}}</label>
  336. <input name="radio1" type="radio" v-bind:value="pj" v-model="Project">
  337. </div>
  338. </form>
  339. </div>
  340. </div>
  341. </div>
  342. @*机构选择弹出窗口*@
  343. <div v-if="@ViewBag.PersonPropert!=4" id="modal" class="mui-modal" style="height:100%;overflow: hidden;">
  344. <header class="mui-bar mui-bar-nav">
  345. <a class="mui-btn mui-btn-link mui-pull-right " href="#modal" style="color:white">完成</a>
  346. <h1 class="mui-title" style="color:white">机构</h1>
  347. </header>
  348. <div id="mo" class="mui-content" style="height:100%;overflow: hidden;">
  349. <div id='list' class="mui-indexed-list" style="height:100%">
  350. <div class="mui-indexed-list-search mui-input-row mui-search">
  351. <input type="search" class="mui-input-clear mui-indexed-list-search-input" placeholder="搜索机构名">
  352. </div>
  353. <div class="mui-indexed-list-bar">
  354. <a v-for="item in InstitutionSelect">{{item.Index}}</a>
  355. </div>
  356. <div class="mui-indexed-list-alert"></div>
  357. <div class="mui-indexed-list-inner" style="height: 100%;">
  358. <div class="mui-indexed-list-empty-alert">没有数据</div>
  359. <ul class="mui-table-view">
  360. <template v-for="item in InstitutionSelect">
  361. <li v-bind:data-group="item.Index" class="mui-table-view-divider mui-indexed-list-group">{{item.Index}}</li>
  362. <li v-for="insti in item.Data" v-bind:data-value="insti.CodeName" v-bind:data-tags="insti.CodeName" class="mui-table-view-cell mui-indexed-list-item mui-checkbox mui-left">
  363. <input v-model="AddInstitution" v-bind:value="insti" type="checkbox" />{{insti.Name}}
  364. </li>
  365. </template>
  366. </ul>
  367. </div>
  368. </div>
  369. </div>
  370. </div>
  371. </div>
  372. <script >
  373. var PersonPropert=@ViewBag.PersonPropert;
  374. var currentWorkFlowId='';
  375. 'use strict';
  376. var vm = new Vue({
  377. el: '#vue',
  378. data: {
  379. page: [
  380. ///新登记
  381. {
  382. page: 0,
  383. row: 6,
  384. data: []
  385. },
  386. ///我登记
  387. {
  388. page: 0,
  389. row: 6,
  390. data: [],
  391. Condition: {
  392. DealStatus: [{
  393. name: '未处理',
  394. id: 0,
  395. active: true
  396. }, {
  397. name: '已处理',
  398. id: 1,
  399. active: true
  400. }]
  401. }
  402. },
  403. ///我处理
  404. {
  405. page: 0,
  406. row: 6,
  407. data: [],
  408. Condition: {
  409. ///处理环节
  410. Links: [{
  411. name: '处理中',
  412. id: 0,
  413. active: true
  414. }, {
  415. name: '已处理',
  416. id: 1,
  417. active: true
  418. }],
  419. IncludeStop: {
  420. name: '包含终止',
  421. id: 0,
  422. active: false
  423. }
  424. }
  425. },
  426. //我申请
  427. {
  428. page: 0,
  429. row: 6,
  430. data: []
  431. },
  432. ///全部
  433. {
  434. page: 0,
  435. row: 6,
  436. data: []
  437. }],
  438. //问题是否解决标志
  439. status: '',
  440. ///检索条件
  441. SearchCondition: {
  442. ///当前审核单位
  443. CurrentUnit: [{
  444. name: '全部',
  445. id: '',
  446. active: false
  447. }, {
  448. name: '机构处理',
  449. id: 1,
  450. active: false
  451. }, {
  452. name: '卫计委处理',
  453. id: 2,
  454. active: false
  455. }, {
  456. name: '项目处理',
  457. id: 3,
  458. active: false
  459. }, {
  460. name: '技术支持处理',
  461. id: 4,
  462. active: false
  463. }, {
  464. name: '研发处理',
  465. id: 5,
  466. active: false
  467. }, {
  468. name: '测试处理',
  469. id: 6,
  470. active: false
  471. }],
  472. ///查询范围
  473. scope: [{
  474. name: '我的问题',
  475. id: 1,
  476. active: true
  477. }, {
  478. name: '本院问题',
  479. id: 2,
  480. active: false
  481. }],
  482. ///问题性质
  483. Status: [{
  484. name: '全部',
  485. id: '',
  486. active: true
  487. }],
  488. ///产品类型
  489. ProductType: [{
  490. name: '全部',
  491. id: '',
  492. active: true
  493. }],
  494. ///优先级
  495. priority: [{
  496. name: '全部',
  497. id: '',
  498. active: true
  499. }],
  500. time: {
  501. TimeBegin: '开始时间',
  502. TimeEnd: '结束时间'
  503. },
  504. search: '',
  505. ///机构
  506. Institution: [{
  507. name: '全部',
  508. id: '',
  509. nature:'',
  510. active: true
  511. }]
  512. },
  513. ///当前项目
  514. Project: {
  515. ID: '',
  516. 名称: '请选择项目'
  517. },
  518. ///机构选择项
  519. InstitutionSelect: [],
  520. ///用户选择增加的机构项
  521. AddInstitution: [],
  522. ///项目选择项
  523. ProjectSelect: [],
  524. ///下拉刷新对象
  525. refresh: [],
  526. ///记录项目选择次数
  527. CotProject: 0,
  528. searchText: '',
  529. AllProjectSle: {
  530. ID: 'all',
  531. 名称: '全部项目'
  532. }
  533. },
  534. watch: {
  535. //选择项目后重新加载问题
  536. Project: function Project(newProject, oldProject) {
  537. ///如果不为机构管理员
  538. if (PersonPropert != 4) {
  539. this.LoadInstitution(newProject.ID);
  540. if (this.CotProject < 1) {
  541. this.CotProject += 1;
  542. this.SearchCondition.Institution = this.LoadDefultInstitustion();
  543. return;
  544. } else {
  545. this.SearchCondition.Institution = [{
  546. name: '全部',
  547. id: '',
  548. active: true
  549. }];
  550. }
  551. //将选择项存入cookie
  552. setCookie("DefaultProjectId", newProject.ID, 3);
  553. setCookie("DefaultProjectName", newProject.名称, 3);
  554. this.$nextTick(function () {
  555. this.Reload();
  556. mui('#Popover_1').popover('hide');
  557. });
  558. }
  559. },
  560. InstitutionSelect: function InstitutionSelect(newProject, oldProject) {
  561. this.$nextTick(function () {
  562. var header = document.querySelector('header.mui-bar');
  563. var list = document.getElementById('list');
  564. var modal = document.getElementById('mo');
  565. //calc hieght
  566. list.style.height = modal.offsetHeight - header.offsetHeight + 'px';
  567. //create
  568. window.indexedList = new mui.IndexedList(list);
  569. });
  570. },
  571. AddInstitution: function AddInstitution(newProject, oldProject) {
  572. this.SearchCondition.Institution = [{
  573. name: '全部',
  574. id: '',
  575. active: true
  576. }];
  577. //解析机构
  578. var _iteratorNormalCompletion = true;
  579. var _didIteratorError = false;
  580. var _iteratorError = undefined;
  581. try {
  582. for (var _iterator = newProject[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
  583. var ne = _step.value;
  584. var add = {};
  585. add.name = ne.Name;
  586. add.id = ne.ID;
  587. add.active = false;
  588. this.SearchCondition.Institution.push(add);
  589. }
  590. } catch (err) {
  591. _didIteratorError = true;
  592. _iteratorError = err;
  593. } finally {
  594. try {
  595. if (!_iteratorNormalCompletion && _iterator.return) {
  596. _iterator.return();
  597. }
  598. } finally {
  599. if (_didIteratorError) {
  600. throw _iteratorError;
  601. }
  602. }
  603. }
  604. }
  605. },
  606. methods: {
  607. initRefresh: function initRefresh() {
  608. var that = this;
  609. var t = 0;
  610. var deceleration = mui.os.ios ? 0.003 : 0.0009;
  611. mui('.mui-scroll-wrapper').scroll({
  612. bounce: false,
  613. indicators: true, //是否显示滚动条
  614. deceleration: deceleration
  615. });
  616. mui.ready(function () {
  617. mui.each(document.querySelectorAll('.mui-slider-group .mui-scroll'), function (index, pullRefreshEl) {
  618. mui(pullRefreshEl).pullToRefresh({
  619. up: {
  620. auto: true, //自动执行一次上拉加载,可选;
  621. show: true, //显示底部上拉加载提示信息,可选;
  622. contentrefresh: '正在加载...', //上拉进行中提示信息
  623. contentnomore: '没有更多数据了', //上拉无更多信息时提示信息
  624. callback: function callback() {
  625. var self = this;
  626. if (t < 5) {
  627. that.refresh.push(self);
  628. t++;
  629. }
  630. setTimeout(function () {
  631. var ul = self.element.querySelector('.Problem');
  632. //全部选项卡的index是0,当显示它的时候,滑动页面加1,调数据,以下以此类推
  633. if (index < 5) {
  634. that.page[index].page += 1;
  635. that.createFragment(ul, index, self);
  636. } else {
  637. self.endPullUpToRefresh(true);
  638. }
  639. }, 1000);
  640. }
  641. }
  642. });
  643. });
  644. });
  645. //底部导航栏
  646. document.getElementById('Home').addEventListener('tap', function () {
  647. //mui.openWindow({
  648. // url: '/MobileProblem/Home'
  649. //});
  650. window.location.href = '/MobileProblem/Home';
  651. });
  652. document.getElementById('my').addEventListener('tap', function () {
  653. //mui.openWindow({
  654. // url: '/MobileProblem/My'
  655. //});
  656. window.location.href = '/MobileProblem/My';
  657. });
  658. document.getElementById('NewProblem').addEventListener('tap', function () {
  659. //mui.openWindow({
  660. // url: '/MobileProblem/QueryProblem'
  661. //});
  662. });
  663. ///顶部下拉导航
  664. var menuWrapper = document.getElementById("menu-wrapper");
  665. var menu = document.getElementById("menu");
  666. var menuWrapperClassList = menuWrapper.classList;
  667. var backdrop = document.getElementById("menu-backdrop");
  668. var busying = false;
  669. backdrop.addEventListener("swipeup", function () {
  670. if (menuWrapperClassList.contains('mui-active')) {
  671. $("#slider").removeClass("top0");
  672. document.body.classList.remove('menu-open');
  673. menuWrapper.className = 'menu-wrapper fade-out-up animated';
  674. menu.className = 'menu bounce-out-up animated';
  675. setTimeout(function () {
  676. backdrop.style.opacity = 0;
  677. menuWrapper.classList.add('hidden');
  678. }, 500);
  679. }
  680. });
  681. backdrop.addEventListener('tap', function () {
  682. if (busying) {
  683. return;
  684. }
  685. busying = true;
  686. if (menuWrapperClassList.contains('mui-active')) {
  687. $("#slider").removeClass("top0");
  688. document.body.classList.remove('menu-open');
  689. menuWrapper.className = 'menu-wrapper fade-out-up animated';
  690. menu.className = 'menu bounce-out-up animated';
  691. setTimeout(function () {
  692. backdrop.style.opacity = 0;
  693. menuWrapper.classList.add('hidden');
  694. }, 500);
  695. } else {
  696. $("#slider").addClass("top0");
  697. document.body.classList.add('menu-open');
  698. menuWrapper.className = 'menu-wrapper fade-in-down animated mui-active';
  699. menu.className = 'menu bounce-in-down animated';
  700. backdrop.style.opacity = 1;
  701. }
  702. setTimeout(function () {
  703. busying = false;
  704. }, 500);
  705. });
  706. document.getElementById("icon-menu").addEventListener('tap', function () {
  707. if (busying) {
  708. return;
  709. }
  710. busying = true;
  711. if (menuWrapperClassList.contains('mui-active')) {
  712. $("#slider").removeClass("top0");
  713. document.body.classList.remove('menu-open');
  714. menuWrapper.className = 'menu-wrapper fade-out-up animated';
  715. menu.className = 'menu bounce-out-up animated';
  716. setTimeout(function () {
  717. backdrop.style.opacity = 0;
  718. menuWrapper.classList.add('hidden');
  719. }, 500);
  720. } else {
  721. $("#slider").addClass("top0");
  722. document.body.classList.add('menu-open');
  723. menuWrapper.className = 'menu-wrapper fade-in-down animated mui-active';
  724. menu.className = 'menu bounce-in-down animated';
  725. backdrop.style.opacity = 1;
  726. }
  727. setTimeout(function () {
  728. busying = false;
  729. }, 500);
  730. });
  731. ///重置下拉刷新
  732. document.getElementById("reload").addEventListener('tap', function () {
  733. //保存用户的筛选信息到缓存
  734. var SearchCondition = {
  735. Status: that.forech(that.SearchCondition.Status),
  736. priority: that.forech(that.SearchCondition.priority),
  737. ProductType: that.forech(that.SearchCondition.ProductType),
  738. TimeBegin: $("#TimeBegin").html(),
  739. TimeEnd: $("#TimeEnd").html(),
  740. search: that.SearchCondition.search
  741. };
  742. setCookie("SearchCondition", JSON.stringify(SearchCondition), 3);
  743. if (busying) {
  744. return;
  745. }
  746. busying = true;
  747. ///初始化Page
  748. that.ReloadPage();
  749. var _iteratorNormalCompletion2 = true;
  750. var _didIteratorError2 = false;
  751. var _iteratorError2 = undefined;
  752. try {
  753. for (var _iterator2 = that.refresh[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
  754. var ref = _step2.value;
  755. ref.refresh(true);
  756. ref.pullUpLoading(false);
  757. }
  758. } catch (err) {
  759. _didIteratorError2 = true;
  760. _iteratorError2 = err;
  761. } finally {
  762. try {
  763. if (!_iteratorNormalCompletion2 && _iterator2.return) {
  764. _iterator2.return();
  765. }
  766. } finally {
  767. if (_didIteratorError2) {
  768. throw _iteratorError2;
  769. }
  770. }
  771. }
  772. if (menuWrapperClassList.contains('mui-active')) {
  773. $("#slider").removeClass("top0");
  774. document.body.classList.remove('menu-open');
  775. menuWrapper.className = 'menu-wrapper fade-out-up animated';
  776. menu.className = 'menu bounce-out-up animated';
  777. setTimeout(function () {
  778. backdrop.style.opacity = 0;
  779. menuWrapper.classList.add('hidden');
  780. }, 500);
  781. } else {
  782. $("#slider").addClass("top0");
  783. document.body.classList.add('menu-open');
  784. menuWrapper.className = 'menu-wrapper fade-in-down animated mui-active';
  785. menu.className = 'menu bounce-in-down animated';
  786. backdrop.style.opacity = 1;
  787. }
  788. setTimeout(function () {
  789. busying = false;
  790. }, 500);
  791. });
  792. //监听选项卡
  793. document.querySelector('.mui-slider').addEventListener('slide', function (event) {
  794. setCookie("QueryProblemSlider", event.detail.slideNumber, 3);
  795. });
  796. //查看缓存中是否有slider
  797. var QueryProblemSlider = getCookie("QueryProblemSlider");
  798. if (QueryProblemSlider) {
  799. var gallery = mui('.mui-slider').slider();
  800. gallery.gotoItem(QueryProblemSlider);
  801. }
  802. },
  803. ///加载项目选择项
  804. LoadProject: function LoadProject() {
  805. var that = this;
  806. ///如果为机构管理员
  807. if (PersonPropert == 4) {
  808. $.get("/MobileProblem/GetPerson", {}, function (data) {
  809. var pro = {
  810. ID: data[0].项目ID,
  811. 名称: data[0].项目名称
  812. };
  813. that.Project = pro;
  814. that.SearchCondition.Institution = [{
  815. name: data[0].站点名称,
  816. id: data[0].站点ID,
  817. nature: data[0].性质,
  818. active: true
  819. }];
  820. });
  821. return;
  822. }
  823. $.get("/MobileProblem/GetAllProject", {}, function (data) {
  824. that.ProjectSelect = data;
  825. //判断用户是否设置默认项目
  826. var UserSetProject = getCookie("UserSetProject");
  827. if (UserSetProject && UserSetProject.split('|')[0]) {
  828. that.Project = { ID: UserSetProject.split('|')[0], 名称: UserSetProject.split('|')[1] };
  829. return;
  830. }
  831. //判断是否有项目Cookie
  832. var DeafaultProject = {
  833. ID: getCookie("DefaultProjectId"),
  834. 名称: getCookie("DefaultProjectName")
  835. };
  836. if (DeafaultProject.ID != null) {
  837. that.Project = DeafaultProject;
  838. } else {
  839. that.Project = { ID: 'all', 名称: '全部项目' };
  840. }
  841. });
  842. },
  843. ///加载机构选择项
  844. LoadInstitution: function LoadInstitution(pro) {
  845. var that = this;
  846. $.get("/MobileProblem/GetInstitutionIndex/" + pro, {}, function (data) {
  847. that.InstitutionSelect = data;
  848. });
  849. },
  850. LoadDefultInstitustion: function LoadDefultInstitustion() {
  851. var t = [{ name: "全部",
  852. id: "",
  853. active: true }];
  854. // //判断用户是否设置默认机构
  855. var UserSetInstitution = getCookie("UserSetInstitution");
  856. if (UserSetInstitution && UserSetInstitution.split('|')[0]) {
  857. t = [{
  858. name: "全部",
  859. id: "",
  860. active: false
  861. }, {
  862. name: UserSetInstitution.split('|')[1],
  863. id: UserSetInstitution.split('|')[0],
  864. active: true
  865. }];
  866. }
  867. return t;
  868. },
  869. ///加载基础编码的问题检索条件选项
  870. LoadBaseCode: function LoadBaseCode() {
  871. var that = this;
  872. ///获取缓存
  873. var SearchCondition = JSON.parse(getCookie("SearchCondition"));
  874. ///获取问题性质
  875. $.get("/MobileProblem/GetComboboxByCode/013", {}, function (data) {
  876. var _iteratorNormalCompletion3 = true;
  877. var _didIteratorError3 = false;
  878. var _iteratorError3 = undefined;
  879. try {
  880. for (var _iterator3 = data[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
  881. var ss = _step3.value;
  882. var code = {};
  883. code.name = ss.显示名;
  884. code.id = ss.代码;
  885. code.active = false;
  886. that.SearchCondition.Status.push(code);
  887. }
  888. } catch (err) {
  889. _didIteratorError3 = true;
  890. _iteratorError3 = err;
  891. } finally {
  892. try {
  893. if (!_iteratorNormalCompletion3 && _iterator3.return) {
  894. _iterator3.return();
  895. }
  896. } finally {
  897. if (_didIteratorError3) {
  898. throw _iteratorError3;
  899. }
  900. }
  901. }
  902. if (SearchCondition && SearchCondition.Status) {
  903. that.ToActive2(that.SearchCondition.Status, SearchCondition.Status);
  904. }
  905. });
  906. ///获取优先级
  907. $.get("/MobileProblem/GetComboboxByCode/014", {}, function (data) {
  908. var _iteratorNormalCompletion4 = true;
  909. var _didIteratorError4 = false;
  910. var _iteratorError4 = undefined;
  911. try {
  912. for (var _iterator4 = data[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {
  913. var ss = _step4.value;
  914. var code = {};
  915. code.name = ss.显示名;
  916. code.id = ss.代码;
  917. code.active = false;
  918. that.SearchCondition.priority.push(code);
  919. }
  920. } catch (err) {
  921. _didIteratorError4 = true;
  922. _iteratorError4 = err;
  923. } finally {
  924. try {
  925. if (!_iteratorNormalCompletion4 && _iterator4.return) {
  926. _iterator4.return();
  927. }
  928. } finally {
  929. if (_didIteratorError4) {
  930. throw _iteratorError4;
  931. }
  932. }
  933. }
  934. if (SearchCondition && SearchCondition.priority) {
  935. that.ToActive2(that.SearchCondition.priority, SearchCondition.priority);
  936. }
  937. });
  938. ///获取产品类型
  939. $.get("/MobileProblem/GetProductCode/", {}, function (data) {
  940. var _iteratorNormalCompletion5 = true;
  941. var _didIteratorError5 = false;
  942. var _iteratorError5 = undefined;
  943. try {
  944. for (var _iterator5 = data[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) {
  945. var ss = _step5.value;
  946. var code = {};
  947. code.name = ss.名称;
  948. code.id = ss.编码;
  949. code.active = false;
  950. that.SearchCondition.ProductType.push(code);
  951. }
  952. } catch (err) {
  953. _didIteratorError5 = true;
  954. _iteratorError5 = err;
  955. } finally {
  956. try {
  957. if (!_iteratorNormalCompletion5 && _iterator5.return) {
  958. _iterator5.return();
  959. }
  960. } finally {
  961. if (_didIteratorError5) {
  962. throw _iteratorError5;
  963. }
  964. }
  965. }
  966. if (SearchCondition && SearchCondition.ProductType) {
  967. that.ToActive2(that.SearchCondition.ProductType, SearchCondition.ProductType);
  968. }
  969. });
  970. //缓存默认时间
  971. if (SearchCondition && SearchCondition.TimeBegin) {
  972. $("#TimeBegin").html(SearchCondition.TimeBegin);
  973. }
  974. if (SearchCondition && SearchCondition.TimeEnd) {
  975. $("#TimeEnd").html(SearchCondition.TimeEnd);
  976. }
  977. //缓存默认查询条件
  978. if (SearchCondition && SearchCondition.search) {
  979. that.SearchCondition.search = SearchCondition.search;
  980. }
  981. //选择默认处理单位
  982. if (PersonPropert == 1) {
  983. //中联本部人员(默认技术支持处理)
  984. currentWorkFlowId = 4;
  985. } else if (PersonPropert == 2) {
  986. //中联渠道人员(默认查询项目处理问题)
  987. currentWorkFlowId = 3;
  988. } else if (PersonPropert == 4) {
  989. //医院管理员(显示卫计委处理)
  990. currentWorkFlowId = 1;
  991. } else if (PersonPropert == 5) {
  992. //卫计委
  993. currentWorkFlowId = 2;
  994. } else {
  995. //默认显示项目处理
  996. currentWorkFlowId = 3;
  997. }
  998. var CurrentLink = getCookie("CurrentLink");
  999. ///如果缓存中有默认值优先取缓存
  1000. if (CurrentLink || CurrentLink == '') {
  1001. var _iteratorNormalCompletion6 = true;
  1002. var _didIteratorError6 = false;
  1003. var _iteratorError6 = undefined;
  1004. try {
  1005. for (var _iterator6 = this.SearchCondition.CurrentUnit[Symbol.iterator](), _step6; !(_iteratorNormalCompletion6 = (_step6 = _iterator6.next()).done); _iteratorNormalCompletion6 = true) {
  1006. var tt = _step6.value;
  1007. if (tt.id == CurrentLink) {
  1008. tt.active = true;
  1009. return;
  1010. }
  1011. }
  1012. } catch (err) {
  1013. _didIteratorError6 = true;
  1014. _iteratorError6 = err;
  1015. } finally {
  1016. try {
  1017. if (!_iteratorNormalCompletion6 && _iterator6.return) {
  1018. _iterator6.return();
  1019. }
  1020. } finally {
  1021. if (_didIteratorError6) {
  1022. throw _iteratorError6;
  1023. }
  1024. }
  1025. }
  1026. } else {
  1027. var _iteratorNormalCompletion7 = true;
  1028. var _didIteratorError7 = false;
  1029. var _iteratorError7 = undefined;
  1030. try {
  1031. for (var _iterator7 = this.SearchCondition.CurrentUnit[Symbol.iterator](), _step7; !(_iteratorNormalCompletion7 = (_step7 = _iterator7.next()).done); _iteratorNormalCompletion7 = true) {
  1032. var sc = _step7.value;
  1033. if (sc.id == currentWorkFlowId) {
  1034. sc.active = true;
  1035. return;
  1036. }
  1037. }
  1038. } catch (err) {
  1039. _didIteratorError7 = true;
  1040. _iteratorError7 = err;
  1041. } finally {
  1042. try {
  1043. if (!_iteratorNormalCompletion7 && _iterator7.return) {
  1044. _iterator7.return();
  1045. }
  1046. } finally {
  1047. if (_didIteratorError7) {
  1048. throw _iteratorError7;
  1049. }
  1050. }
  1051. }
  1052. }
  1053. },
  1054. ///重新加载问题
  1055. Reload: function Reload() {
  1056. this.ReloadPage();
  1057. var _iteratorNormalCompletion8 = true;
  1058. var _didIteratorError8 = false;
  1059. var _iteratorError8 = undefined;
  1060. try {
  1061. for (var _iterator8 = this.refresh[Symbol.iterator](), _step8; !(_iteratorNormalCompletion8 = (_step8 = _iterator8.next()).done); _iteratorNormalCompletion8 = true) {
  1062. var ref = _step8.value;
  1063. ref.refresh(true);
  1064. ref.pullUpLoading(false);
  1065. }
  1066. } catch (err) {
  1067. _didIteratorError8 = true;
  1068. _iteratorError8 = err;
  1069. } finally {
  1070. try {
  1071. if (!_iteratorNormalCompletion8 && _iterator8.return) {
  1072. _iterator8.return();
  1073. }
  1074. } finally {
  1075. if (_didIteratorError8) {
  1076. throw _iteratorError8;
  1077. }
  1078. }
  1079. }
  1080. },
  1081. //初始化Page
  1082. ReloadPage: function ReloadPage() {
  1083. for (var i = 0; i < 5; i++) {
  1084. this.page[i].page = 0;
  1085. this.page[i].row = 6;
  1086. this.page[i].data = [];
  1087. }
  1088. },
  1089. LoadTimeContent: function LoadTimeContent() {
  1090. var btns = $('.time-btn');
  1091. btns.each(function (i, btn) {
  1092. btn.addEventListener('tap', function () {
  1093. var _self = this;
  1094. if (_self.picker) {
  1095. _self.picker.show(function (rs) {
  1096. btn.innerHTML = rs.text;
  1097. _self.picker.dispose();
  1098. _self.picker = null;
  1099. });
  1100. } else {
  1101. var optionsJson = this.getAttribute('data-options') || '{}';
  1102. var options = JSON.parse(optionsJson);
  1103. var id = this.getAttribute('id');
  1104. _self.picker = new mui.DtPicker(options);
  1105. _self.picker.show(function (rs) {
  1106. btn.innerHTML = rs.text;
  1107. _self.picker.dispose();
  1108. _self.picker = null;
  1109. });
  1110. }
  1111. }, false);
  1112. });
  1113. },
  1114. //重置搜索条件
  1115. Deafault: function Deafault() {
  1116. ///审核单位
  1117. var _iteratorNormalCompletion9 = true;
  1118. var _didIteratorError9 = false;
  1119. var _iteratorError9 = undefined;
  1120. try {
  1121. for (var _iterator9 = this.SearchCondition.CurrentUnit[Symbol.iterator](), _step9; !(_iteratorNormalCompletion9 = (_step9 = _iterator9.next()).done); _iteratorNormalCompletion9 = true) {
  1122. var dd = _step9.value;
  1123. dd.active = false;
  1124. if (dd.id == currentWorkFlowId) {
  1125. dd.active = true;
  1126. }
  1127. }
  1128. ///问题性质
  1129. } catch (err) {
  1130. _didIteratorError9 = true;
  1131. _iteratorError9 = err;
  1132. } finally {
  1133. try {
  1134. if (!_iteratorNormalCompletion9 && _iterator9.return) {
  1135. _iterator9.return();
  1136. }
  1137. } finally {
  1138. if (_didIteratorError9) {
  1139. throw _iteratorError9;
  1140. }
  1141. }
  1142. }
  1143. var _iteratorNormalCompletion10 = true;
  1144. var _didIteratorError10 = false;
  1145. var _iteratorError10 = undefined;
  1146. try {
  1147. for (var _iterator10 = this.SearchCondition.Status[Symbol.iterator](), _step10; !(_iteratorNormalCompletion10 = (_step10 = _iterator10.next()).done); _iteratorNormalCompletion10 = true) {
  1148. var dd = _step10.value;
  1149. dd.active = false;
  1150. if (dd.id == '') {
  1151. dd.active = true;
  1152. }
  1153. }
  1154. ///产品类型
  1155. } catch (err) {
  1156. _didIteratorError10 = true;
  1157. _iteratorError10 = err;
  1158. } finally {
  1159. try {
  1160. if (!_iteratorNormalCompletion10 && _iterator10.return) {
  1161. _iterator10.return();
  1162. }
  1163. } finally {
  1164. if (_didIteratorError10) {
  1165. throw _iteratorError10;
  1166. }
  1167. }
  1168. }
  1169. var _iteratorNormalCompletion11 = true;
  1170. var _didIteratorError11 = false;
  1171. var _iteratorError11 = undefined;
  1172. try {
  1173. for (var _iterator11 = this.SearchCondition.ProductType[Symbol.iterator](), _step11; !(_iteratorNormalCompletion11 = (_step11 = _iterator11.next()).done); _iteratorNormalCompletion11 = true) {
  1174. var dd = _step11.value;
  1175. dd.active = false;
  1176. if (dd.id == '') {
  1177. dd.active = true;
  1178. }
  1179. }
  1180. ///优先级
  1181. } catch (err) {
  1182. _didIteratorError11 = true;
  1183. _iteratorError11 = err;
  1184. } finally {
  1185. try {
  1186. if (!_iteratorNormalCompletion11 && _iterator11.return) {
  1187. _iterator11.return();
  1188. }
  1189. } finally {
  1190. if (_didIteratorError11) {
  1191. throw _iteratorError11;
  1192. }
  1193. }
  1194. }
  1195. var _iteratorNormalCompletion12 = true;
  1196. var _didIteratorError12 = false;
  1197. var _iteratorError12 = undefined;
  1198. try {
  1199. for (var _iterator12 = this.SearchCondition.priority[Symbol.iterator](), _step12; !(_iteratorNormalCompletion12 = (_step12 = _iterator12.next()).done); _iteratorNormalCompletion12 = true) {
  1200. var dd = _step12.value;
  1201. dd.active = false;
  1202. if (dd.id == '') {
  1203. dd.active = true;
  1204. }
  1205. }
  1206. ///机构
  1207. } catch (err) {
  1208. _didIteratorError12 = true;
  1209. _iteratorError12 = err;
  1210. } finally {
  1211. try {
  1212. if (!_iteratorNormalCompletion12 && _iterator12.return) {
  1213. _iterator12.return();
  1214. }
  1215. } finally {
  1216. if (_didIteratorError12) {
  1217. throw _iteratorError12;
  1218. }
  1219. }
  1220. }
  1221. if (PersonPropert != 4) {
  1222. var _iteratorNormalCompletion13 = true;
  1223. var _didIteratorError13 = false;
  1224. var _iteratorError13 = undefined;
  1225. try {
  1226. for (var _iterator13 = this.SearchCondition.Institution[Symbol.iterator](), _step13; !(_iteratorNormalCompletion13 = (_step13 = _iterator13.next()).done); _iteratorNormalCompletion13 = true) {
  1227. var dd = _step13.value;
  1228. dd.active = false;
  1229. if (dd.id == '') {
  1230. dd.active = true;
  1231. }
  1232. }
  1233. } catch (err) {
  1234. _didIteratorError13 = true;
  1235. _iteratorError13 = err;
  1236. } finally {
  1237. try {
  1238. if (!_iteratorNormalCompletion13 && _iterator13.return) {
  1239. _iterator13.return();
  1240. }
  1241. } finally {
  1242. if (_didIteratorError13) {
  1243. throw _iteratorError13;
  1244. }
  1245. }
  1246. }
  1247. }
  1248. this.SearchCondition.search = '';
  1249. $("#TimeBegin").html("开始时间");
  1250. $("#TimeEnd").html("结束时间");
  1251. },
  1252. ///加载问题
  1253. createFragment: function createFragment(ul, index, self) {
  1254. var fragment = document.createDocumentFragment();
  1255. var that = this;
  1256. var param = {
  1257. Pages: this.page[index].page,
  1258. rows: this.page[index].row,
  1259. Tab: index + 1,
  1260. Project: this.Project.ID, //当前查询项目
  1261. Institution: this.forech(this.SearchCondition.Institution), //当前选择的机构
  1262. CurrentUnit: this.forech(this.SearchCondition.CurrentUnit), //当前审核单位
  1263. Status: this.forech(this.SearchCondition.Status), //问题性质
  1264. priority: this.forech(this.SearchCondition.priority), //优先级
  1265. ProductType: this.forech(this.SearchCondition.ProductType), //产品类型
  1266. TimeBegins: $("#TimeBegin").html(),
  1267. TimeEnds: $("#TimeEnd").html(),
  1268. SelectConditon: this.SearchCondition.search };
  1269. if (index == 1) {
  1270. param.DealStatus = this.forechMuti(this.page[index].Condition.DealStatus); //是否解决
  1271. } else if (index == 2) {
  1272. param.DealStatus = this.forechMuti(this.page[index].Condition.Links); //处理环节
  1273. param.IsEnd = this.page[index].Condition.IncludeStop.id; //终止状态
  1274. }
  1275. ///后台请求数据
  1276. $.get('/MobileProblem/QueryProblemByProject', param, function (data) {
  1277. var info = data;
  1278. if (info.length == 0) {
  1279. //当datas.length为0时,表示没有数据了
  1280. self.endPullUpToRefresh(true); //当为true时,底部出现没有更多数据,并且不能滑动
  1281. } else {
  1282. var _iteratorNormalCompletion14 = true;
  1283. var _didIteratorError14 = false;
  1284. var _iteratorError14 = undefined;
  1285. try {
  1286. for (var _iterator14 = info[Symbol.iterator](), _step14; !(_iteratorNormalCompletion14 = (_step14 = _iterator14.next()).done); _iteratorNormalCompletion14 = true) {
  1287. var dd = _step14.value;
  1288. if (dd.问题描述) dd.问题描述 = '描述:' + dd.问题描述.replace(/<[^>]+>/g, "");
  1289. if (!dd.附件路径) {
  1290. dd.附件路径 = "/Content/Images/zlpng.png";
  1291. } else {
  1292. dd.附件路径 = "/MobileProblem/ViewProblemImage/" + dd.附件路径 + "?type=s";
  1293. }
  1294. if (dd.是否终止 == '1') {
  1295. dd.icon = "#icon-yizhongzhi1";
  1296. } else if (dd.是否解决 == '1') {
  1297. dd.icon = "#icon-yijiejue3";
  1298. } else {
  1299. dd.icon = "#icon-weijiejue";
  1300. }
  1301. that.page[index].data.push(dd);
  1302. }
  1303. } catch (err) {
  1304. _didIteratorError14 = true;
  1305. _iteratorError14 = err;
  1306. } finally {
  1307. try {
  1308. if (!_iteratorNormalCompletion14 && _iterator14.return) {
  1309. _iterator14.return();
  1310. }
  1311. } finally {
  1312. if (_didIteratorError14) {
  1313. throw _iteratorError14;
  1314. }
  1315. }
  1316. }
  1317. self.endPullUpToRefresh(); //当为false或空时,底部出现正在加载,滑动到下一页
  1318. }
  1319. });
  1320. },
  1321. forech: function forech(obj) {
  1322. var re;
  1323. var _iteratorNormalCompletion15 = true;
  1324. var _didIteratorError15 = false;
  1325. var _iteratorError15 = undefined;
  1326. try {
  1327. for (var _iterator15 = obj[Symbol.iterator](), _step15; !(_iteratorNormalCompletion15 = (_step15 = _iterator15.next()).done); _iteratorNormalCompletion15 = true) {
  1328. var i = _step15.value;
  1329. if (i.active) {
  1330. re = i.id;
  1331. return re;
  1332. }
  1333. }
  1334. } catch (err) {
  1335. _didIteratorError15 = true;
  1336. _iteratorError15 = err;
  1337. } finally {
  1338. try {
  1339. if (!_iteratorNormalCompletion15 && _iterator15.return) {
  1340. _iterator15.return();
  1341. }
  1342. } finally {
  1343. if (_didIteratorError15) {
  1344. throw _iteratorError15;
  1345. }
  1346. }
  1347. }
  1348. ;
  1349. },
  1350. forechMuti: function forechMuti(obj) {
  1351. var re = '';
  1352. var _iteratorNormalCompletion16 = true;
  1353. var _didIteratorError16 = false;
  1354. var _iteratorError16 = undefined;
  1355. try {
  1356. for (var _iterator16 = obj[Symbol.iterator](), _step16; !(_iteratorNormalCompletion16 = (_step16 = _iterator16.next()).done); _iteratorNormalCompletion16 = true) {
  1357. var i = _step16.value;
  1358. if (i.active) {
  1359. re += i.id + ",";
  1360. }
  1361. }
  1362. } catch (err) {
  1363. _didIteratorError16 = true;
  1364. _iteratorError16 = err;
  1365. } finally {
  1366. try {
  1367. if (!_iteratorNormalCompletion16 && _iterator16.return) {
  1368. _iterator16.return();
  1369. }
  1370. } finally {
  1371. if (_didIteratorError16) {
  1372. throw _iteratorError16;
  1373. }
  1374. }
  1375. }
  1376. ;
  1377. return re;
  1378. },
  1379. ToActive: function ToActive(sc, i) {
  1380. var _iteratorNormalCompletion17 = true;
  1381. var _didIteratorError17 = false;
  1382. var _iteratorError17 = undefined;
  1383. try {
  1384. for (var _iterator17 = sc[Symbol.iterator](), _step17; !(_iteratorNormalCompletion17 = (_step17 = _iterator17.next()).done); _iteratorNormalCompletion17 = true) {
  1385. var dd = _step17.value;
  1386. dd.active = false;
  1387. }
  1388. } catch (err) {
  1389. _didIteratorError17 = true;
  1390. _iteratorError17 = err;
  1391. } finally {
  1392. try {
  1393. if (!_iteratorNormalCompletion17 && _iterator17.return) {
  1394. _iterator17.return();
  1395. }
  1396. } finally {
  1397. if (_didIteratorError17) {
  1398. throw _iteratorError17;
  1399. }
  1400. }
  1401. }
  1402. i.active = true;
  1403. },
  1404. ToActive2: function ToActive2(sc, id) {
  1405. var _iteratorNormalCompletion18 = true;
  1406. var _didIteratorError18 = false;
  1407. var _iteratorError18 = undefined;
  1408. try {
  1409. for (var _iterator18 = sc[Symbol.iterator](), _step18; !(_iteratorNormalCompletion18 = (_step18 = _iterator18.next()).done); _iteratorNormalCompletion18 = true) {
  1410. var dd = _step18.value;
  1411. if (dd.id == id) {
  1412. dd.active = true;
  1413. } else {
  1414. dd.active = false;
  1415. }
  1416. }
  1417. } catch (err) {
  1418. _didIteratorError18 = true;
  1419. _iteratorError18 = err;
  1420. } finally {
  1421. try {
  1422. if (!_iteratorNormalCompletion18 && _iterator18.return) {
  1423. _iterator18.return();
  1424. }
  1425. } finally {
  1426. if (_didIteratorError18) {
  1427. throw _iteratorError18;
  1428. }
  1429. }
  1430. }
  1431. },
  1432. ToActiveCache: function ToActiveCache(sc, i, CacheName) {
  1433. var _iteratorNormalCompletion19 = true;
  1434. var _didIteratorError19 = false;
  1435. var _iteratorError19 = undefined;
  1436. try {
  1437. for (var _iterator19 = sc[Symbol.iterator](), _step19; !(_iteratorNormalCompletion19 = (_step19 = _iterator19.next()).done); _iteratorNormalCompletion19 = true) {
  1438. var dd = _step19.value;
  1439. dd.active = false;
  1440. }
  1441. } catch (err) {
  1442. _didIteratorError19 = true;
  1443. _iteratorError19 = err;
  1444. } finally {
  1445. try {
  1446. if (!_iteratorNormalCompletion19 && _iterator19.return) {
  1447. _iterator19.return();
  1448. }
  1449. } finally {
  1450. if (_didIteratorError19) {
  1451. throw _iteratorError19;
  1452. }
  1453. }
  1454. }
  1455. i.active = true;
  1456. setCookie(CacheName, i.id, 5);
  1457. },
  1458. ToActiveMuiti: function ToActiveMuiti(i) {
  1459. i.active = !i.active;
  1460. },
  1461. ToActiveMuitiAndRefresh: function ToActiveMuitiAndRefresh(i, n) {
  1462. var that = this;
  1463. i.active = !i.active;
  1464. this.$nextTick(function () {
  1465. that.page[n].page = 0;
  1466. that.page[n].row = 6;
  1467. that.page[n].data = [];
  1468. that.refresh[n].refresh(true);
  1469. that.refresh[n].pullUpLoading(false);
  1470. });
  1471. },
  1472. SingeleAndRefresh: function SingeleAndRefresh(i, n) {
  1473. var that = this;
  1474. i.active = !i.active;
  1475. if (i.id == '0,1') {
  1476. i.id = 0;
  1477. } else {
  1478. i.id = '0,1';
  1479. }
  1480. this.$nextTick(function () {
  1481. that.page[n].page = 0;
  1482. that.page[n].row = 6;
  1483. that.page[n].data = [];
  1484. that.refresh[n].refresh(true);
  1485. that.refresh[n].pullUpLoading(false);
  1486. });
  1487. },
  1488. ///进入详细页面
  1489. Deatil: function Deatil(id) {
  1490. //mui.openWindow({
  1491. // url: '/MobileProblem/ProblemDetail/' + id
  1492. //});
  1493. window.location.href = '/MobileProblem/ProblemDetail/' + id;
  1494. },
  1495. ///受理问题逻辑判断
  1496. TryAcceptProblem: function TryAcceptProblem(CrossStatus, ID, UrlType) {
  1497. var that = this;
  1498. if (UrlType == 1) {
  1499. mui.confirm('是否确认受理该问题?', '提示', ['否', '是'], function (e) {
  1500. if (e.index == 1) {
  1501. that.AcceptProblem(ID);
  1502. return;
  1503. }
  1504. });
  1505. } else {
  1506. if (CrossStatus == '0') {
  1507. mui.confirm('该问题不属于您的处理范围,是否处理?', '提示', ['否', '是'], function (e) {
  1508. if (e.index == 1) {
  1509. switch (UrlType) {
  1510. case 1:
  1511. that.AcceptProblem(ID);break;
  1512. case 2:
  1513. window.location.href = '/MobileProblem/ProblemBack/' + ID + '?type=2';break;
  1514. case 3:
  1515. window.location.href = '/MobileProblem/ProblemBack/' + ID + '?type=1';break;
  1516. case 4:
  1517. window.location.href = '/MobileProblem/ProblemDeal/' + ID;break;
  1518. default:
  1519. return;
  1520. }
  1521. }
  1522. });
  1523. } else {
  1524. switch (UrlType) {
  1525. case 1:
  1526. that.AcceptProblem(ID);break;
  1527. case 2:
  1528. window.location.href = '/MobileProblem/ProblemBack/' + ID + '?type=2';break;
  1529. case 3:
  1530. window.location.href = '/MobileProblem/ProblemBack/' + ID + '?type=1';break;
  1531. case 4:
  1532. window.location.href = '/MobileProblem/ProblemDeal/' + ID;break;
  1533. default:
  1534. return;
  1535. }
  1536. }
  1537. }
  1538. },
  1539. //受理问题
  1540. AcceptProblem: function AcceptProblem(pid) {
  1541. mui.post('/MobileProblem/AcceptProblem/' + pid, {}, function (data) {
  1542. //服务器返回响应,根据响应结果,分析是否登录成功;
  1543. if (data.code == 200) {
  1544. mui.toast('受理成功!');
  1545. setTimeout(function () {
  1546. window.location.href = '/MobileProblem/ProblemDetail/' + pid;
  1547. }, 1000);
  1548. } else {
  1549. mui.toast(data.data);
  1550. }
  1551. }, 'json');
  1552. }
  1553. },
  1554. computed: {
  1555. ProjectsearchData: function ProjectsearchData() {
  1556. var searchText = this.searchText;
  1557. if (searchText) {
  1558. return this.ProjectSelect.filter(function (ProjectSelects) {
  1559. return Object.keys(ProjectSelects).some(function (key) {
  1560. return String(ProjectSelects[key]).toLowerCase().indexOf(searchText) > -1;
  1561. });
  1562. });
  1563. }
  1564. return this.ProjectSelect;
  1565. }
  1566. },
  1567. mounted: function mounted() {
  1568. mui.init();
  1569. this.LoadBaseCode();
  1570. this.LoadProject();
  1571. this.LoadTimeContent();
  1572. this.$nextTick(function () {
  1573. this.initRefresh();
  1574. });
  1575. }
  1576. });
  1577. </script>