ProblemDetailCutom.cshtml 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847
  1. 
  2. @{
  3. ViewBag.Title = "ProblemDetailCutom";
  4. Layout = "~/Views/MobileProblem/_APPMain.cshtml";
  5. var url = HttpContext.Current.Request.Url;
  6. var webSite = String.Concat(url.Scheme, "://", url.Authority);
  7. }
  8. @model PMS.BusinessModels.MobileProblem.ProblemDetailModel
  9. <meta name="apple-mobile-web-app-capable" content="yes">
  10. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  11. <link href="~/Content/Scripts/plugins/mui/css/mui.imageviewer.css" rel="stylesheet" />
  12. <link href="~/Content/Style/MobileProductRegist/ProblemDeatail.css" rel="stylesheet" />
  13. <link href="~/Content/Style/MobileProductRegist/ProblemIcon.css" rel="stylesheet" />
  14. <link href="~/Content/Scripts/plugins/mui/css/TimeLine.css?v=1.0" rel="stylesheet" />
  15. <script src="~/Content/Scripts/plugins/mui/js/iconfont.deal.js"></script>
  16. <script src="~/Content/Scripts/plugins/mui/js/mui.zoom.js"></script>
  17. <script src="~/Content/Scripts/plugins/mui/js/mui.previewimage.js"></script>
  18. <script src="https://cdn.staticfile.org/vue-resource/1.5.1/vue-resource.min.js"></script>
  19. <script src="~/Content/Scripts/babel.min.js"></script>
  20. <script src="~/Content/Scripts/polyfill.min.js"></script>
  21. <style>
  22. html{
  23. font-size:15px
  24. }
  25. body {
  26. font-family: -apple-system, BlinkMacSystemFont, "PingFang SC","HelveticaNeue",STHeiti,"Microsoft Yahei",Tahoma,Simsun,sans-serif;
  27. }
  28. .mui-bar-nav {
  29. background-color: #00aaff;
  30. box-shadow: 0 1px 6px #00aaff;
  31. }
  32. .top {
  33. background-color: #00aaff;
  34. width: 100%;
  35. position: relative;
  36. }
  37. .card1 {
  38. width: 80%;
  39. height: 5rem;
  40. display: flex;
  41. justify-content: flex-start;
  42. align-items: center;
  43. padding: 1rem;
  44. }
  45. .flexcolom {
  46. display: flex;
  47. flex-direction: column;
  48. align-items: flex-start;
  49. justify-content: space-between;
  50. font-size: 14px;
  51. color: white;
  52. margin-left: 5%;
  53. }
  54. .status {
  55. position: absolute;
  56. right: 2%;
  57. top: 10%;
  58. max-width: 100px;
  59. }
  60. .status h4{
  61. line-height:1.5
  62. }
  63. .statusIcon {
  64. color: white;
  65. font-size: 18px;
  66. font-weight: 500;
  67. }
  68. .mui-segmented-control.mui-segmented-control-inverted .mui-control-item.mui-active {
  69. color: #00aaff!important;
  70. border-bottom: 2px solid #00aaff;
  71. }
  72. /*.mui-content {
  73. background-color: #ffffff;
  74. }*/
  75. .mui-segmented-control.mui-segmented-control-inverted .mui-control-item {
  76. color: #666666;
  77. }
  78. .mylist {
  79. width: 100%;
  80. height: auto;
  81. background-color: white;
  82. padding: 1rem;
  83. margin-top: 0.3rem;
  84. }
  85. .mytable {
  86. display: flex;
  87. flex-direction: column;
  88. justify-content: flex-start;
  89. align-items: flex-start;
  90. margin-top: 0.5rem;
  91. }
  92. .mytableRow {
  93. display: flex;
  94. flex-direction: row;
  95. justify-content: flex-start;
  96. align-items: flex-start;
  97. }
  98. .mytableRow > p {
  99. margin-bottom: 0px;
  100. }
  101. .mytableRowRight {
  102. margin-left: 3rem;
  103. color: black;
  104. font-weight: 400;
  105. flex:1
  106. }
  107. .marleft{
  108. margin-left:1rem
  109. }
  110. p {
  111. font-size: 12px;
  112. }
  113. .fixDiv {
  114. position: fixed;
  115. top: -5px;
  116. z-index: 99;
  117. }
  118. .cd-timeline-content p {
  119. margin: 0;
  120. }
  121. .cd-timeline-content .cd-date {
  122. padding: 0;
  123. opacity: .7;
  124. float: right;
  125. }
  126. .mui-card-header:after {
  127. position: relative;
  128. }
  129. h2 {
  130. font-size: 22px;
  131. }
  132. h4 {
  133. font-size: 14px;
  134. }
  135. h5 {
  136. font-size: 12px;
  137. }
  138. .iconflex {
  139. display: flex;
  140. justify-content: center;
  141. align-items: center;
  142. flex-direction: row;
  143. }
  144. .mui-grid-view.mui-grid-9 {
  145. border: transparent;
  146. background-color: white;
  147. }
  148. .mui-grid-view.mui-grid-9 .mui-table-view-cell {
  149. border: transparent;
  150. }
  151. .Fileflex {
  152. display: flex;
  153. flex-direction: row;
  154. justify-content: flex-start;
  155. flex-wrap: wrap;
  156. align-items: center;
  157. }
  158. .activeIcon {
  159. background-color: #fc8560;
  160. }
  161. .DeatlTitle {
  162. color: white;
  163. padding: 5px 10px;
  164. font-size: 15px;
  165. }
  166. .mui-popover.mui-active {
  167. display: flex !important;
  168. }
  169. .mui-popover {
  170. flex-direction: column;
  171. width: auto;
  172. padding: 5px;
  173. background-color: white;
  174. }
  175. .mytableRowLeft {
  176. width: 53px;
  177. }
  178. #panel{
  179. background:#fff;
  180. }
  181. #panel text{
  182. line-height: 2rem;
  183. border-right: 1px solid #ddd;
  184. border-bottom: 1px solid #ddd;
  185. }
  186. .flex-row{
  187. display: flex;
  188. flex-direction: row;
  189. justify-content: flex-start;
  190. align-items: center;
  191. font-size:12px
  192. }
  193. .flex-column{
  194. display: flex;
  195. flex-direction: column;
  196. justify-content: center;
  197. align-items: stretch;
  198. }
  199. .flex-cell{
  200. flex: 1;
  201. }
  202. .flex-column p{
  203. margin:0
  204. }
  205. .flexSingle{
  206. flex:0.33
  207. }
  208. .ProblemIcon{
  209. font-size:20px
  210. }
  211. .modify {
  212. display: flex;
  213. flex-direction: row;
  214. font-size: 14px;
  215. padding: 5px 15px;
  216. justify-content: center;
  217. align-items: center;
  218. }
  219. .modify .mui-icon{
  220. color:#677b84;
  221. padding-right:10px
  222. }
  223. .Process{
  224. margin-top: 5px;
  225. min-height: 28rem;
  226. background-color: white;
  227. }
  228. .tabflex {
  229. display: flex !important;
  230. flex-direction: row;
  231. justify-content: space-around;
  232. align-items: center;
  233. background-color: white;
  234. box-shadow: 0 0 1px rgb(217, 217, 217);
  235. }
  236. .mui-bar .mui-btn {
  237. top: 0px;
  238. border-radius: 8px;
  239. font-size: 0.7rem;
  240. padding: 6px 18px;
  241. margin: 0 10px;
  242. }
  243. </style>
  244. <div id="vue" v-cloak>
  245. <header class="mui-bar mui-bar-nav">
  246. <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color:white"></a>
  247. <h4 class="mui-title" style="color:white">问题详细</h4>
  248. <a v-if="@Model.撤销权限==1 || @Model.修改权限==1 " href="#Popover_1" class="mui-icon mui-icon-more mui-pull-right" style="color:white"></a>
  249. </header>
  250. <nav v-if="IsCommit" class="mui-bar mui-bar-tab tabflex">
  251. <button v-on:click="ProblemRemark" type="button" class="mui-btn mui-btn-success mui-btn-block" style="top: 0px;border-radius: 30px;">评价</button>
  252. </nav>
  253. <div class="mui-content ">
  254. <div class="top">
  255. @*<div class="status iconflex"><span v-bind:class="ProblemStatus.icon" class="ProblemIcon " style="color:white"></span><h4 style='color:white;margin-left:5px'>{{ProblemStatus.text}}</h4></div>
  256. <div style="position:absolute;top:0;right:0.5rem;color:white;z-index:10;"><span style="font-size:3rem" v-bind:class="Iscomp" class="ProblemIcon"></span></div>
  257. <div class="card1">
  258. <div>
  259. <img src="~/Content/Images/Account/wtx.jpg" style="height:4rem;border-radius:50px" />
  260. </div>
  261. <div class="flexcolom">
  262. <div style="font-weight: 700;">@Model.人员性质-@Model.姓名</div>
  263. <div style="margin-top:0.3rem"><p style="font-size:15px">@Model.登记日期</p></div>
  264. </div>
  265. </div>*@
  266. <div class="card1">
  267. <div>
  268. <img src="~/Content/Images/Account/wtx.jpg" style="height:3rem;border-radius:50px" />
  269. </div>
  270. <div class="flexcolom">
  271. <div style="font-weight: 700;">@Model.人员性质-@Model.姓名</div>
  272. <div ><p style="font-size:14px;color:white">@Model.登记日期</p></div>
  273. </div>
  274. </div>
  275. <div class="status iconflex"><span v-bind:class="ProblemStatus.icon" class="ProblemIcon " style="color:white"></span><h4 style='color:white;margin-left:5px'>{{ProblemStatus.text}}</h4></div>
  276. </div>
  277. <div id="fex">
  278. <div style="padding:3px;background-color: white;">
  279. <div id="segmentedControl" class="mui-segmented-control mui-segmented-control-inverted mui-segmented-control-primary ">
  280. <a class="mui-control-item mui-active" href="#item1"><span class="ProblemIcon icon-xiangqing"></span>问题详情</a>
  281. <a class="mui-control-item" href="#item2"><span class="ProblemIcon icon-liuchengpeizhi"></span>流程概况</a>
  282. @*<a class="mui-control-item" href="#item3"><span class="mui-icon mui-icon-chat"></span>过程沟通</a>*@
  283. </div>
  284. </div>
  285. <div id="item1" class="mui-control-content mui-active" style="overflow:hidden;">
  286. <div v-if="CurrentDealDeatil" class="mylist">
  287. <h4 style="font-size:15px">处理说明</h4>
  288. <p style="font-size:13px" id="CurrentDealDeatil" v-html="CurrentDealDeatil.描述">{{CurrentDealDeatil.描述}}</p>
  289. <div v-if="CurrentDealDeatil.图片 || CurrentDealDeatil.文件" class="Fileflex">
  290. <img v-for="img in CurrentDealDeatil.图片" data-preview-src='' data-preview-group='3' v-bind:src="img" style='width:50px;height:50px;padding:5px 5px 5px 0'>
  291. <a v-for="(flie,index) in CurrentDealDeatil.文件" v-on:click="GetFlie(flie)" style="padding:5px 5px 5px 0;color:#80b4fb;font-size:14px"><span class="mui-icon mui-icon-paperclip" style="font-size:33px"></span></a>
  292. </div>
  293. <template v-if="Vison">
  294. <h4 style="font-size:15px">解决版本</h4>
  295. <p style="font-size:13px">{{Vison}}</p>
  296. </template>
  297. </div>
  298. <div class="mylist" id="HtmlDeatil">
  299. <h4 style="font-size:15px;float:right" >编号:@Model.问题编号</h4>
  300. <h4 style="font-size:15px">标题</h4>
  301. <p style="font-size:13px">@Model.问题标题</p>
  302. <h4 style="font-size:15px">详细描述</h4>
  303. <p style="font-size:13px">@Html.Raw(Model.问题描述)</p>
  304. </div>
  305. <div v-if="StopDeatil" class="mylist">
  306. <h4 style="font-size:15px">终止说明</h4>
  307. <p style="font-size:13px">{{StopDeatil}}</p>
  308. </div>
  309. <div v-if="ErginDeatil" class="mylist">
  310. <h4 style="font-size:15px">紧急描述</h4>
  311. <p style="font-size:13px">{{ErginDeatil}}</p>
  312. </div>
  313. <div v-if="Image.图片 && (Image.图片.length>0 || Image.附件.length>0)" class="mylist">
  314. <h4 style="font-size:15px">图片及附件</h4>
  315. <ul id="fileList" class="mui-table-view mui-grid-view mui-grid-9">
  316. <li v-for="im in Image.图片" class='mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3' style='padding-left: 3px;'>
  317. <img data-preview-src='' data-preview-group='1' v-bind:src="im" style='width:100px;height:100px'>
  318. </li>
  319. </ul>
  320. <a v-for="(flie,index) in Image.附件" v-on:click="GetFlie(flie)" style="padding:5px 5px 5px 0;color:#80b4fb;font-size:14px">附件{{index+1}}<span class="mui-icon mui-icon-paperclip" style="font-size:33px"></span></a>
  321. </div>
  322. @*<div class="mylist">
  323. <h4 style="font-size:15px">处理信息</h4>
  324. <div class="mytable">
  325. <div class="mytableRow">
  326. <p class="mytableRowLeft">当前处理人</p>
  327. <p class="mytableRowRight"> @Model.当前处理人</p>
  328. </div>
  329. <div class="mytableRow">
  330. <p class="mytableRowLeft">当前环节</p>
  331. <p class="mytableRowRight"> @Model.当前环节</p>
  332. </div>
  333. <div class="mytableRow">
  334. <p class="mytableRowLeft">技术支持</p>
  335. <p class="mytableRowRight"> @Model.技术支持</p>
  336. </div>
  337. <div class="mytableRow">
  338. <p class="mytableRowLeft">研发支持</p>
  339. <p class="mytableRowRight"> @Model.研发支持</p>
  340. </div>
  341. <div class="mytableRow">
  342. <p class="mytableRowLeft">是否解决</p>
  343. <p class="mytableRowRight"> @Model.是否解决</p>
  344. </div>
  345. <div class="mytableRow">
  346. <p class="mytableRowLeft">是否终止</p>
  347. <p class="mytableRowRight">@Model.是否终止</p>
  348. </div>
  349. <div class="mytableRow">
  350. <p class="mytableRowLeft">终止说明</p>
  351. <p class="mytableRowRight">@Model.终止说明</p>
  352. </div>
  353. </div>
  354. </div>
  355. <div class="mylist">
  356. <h4 style="font-size:15px">其他信息</h4>
  357. <div class="mytable">
  358. <div class="mytableRow">
  359. <p class="mytableRowLeft">渠道</p>
  360. <p class="mytableRowRight"> @Model.渠道名称</p>
  361. </div>
  362. <div class="mytableRow">
  363. <p class="mytableRowLeft">项目</p>
  364. <p class="mytableRowRight"> @Model.项目名称</p>
  365. </div>
  366. <div class="mytableRow">
  367. <p class="mytableRowLeft">机构</p>
  368. <p class="mytableRowRight"> @Model.机构名称</p>
  369. </div>
  370. <div class="mytableRow">
  371. <p class="mytableRowLeft">产品</p>
  372. <p class="mytableRowRight"> @Model.产品名称</p>
  373. </div>
  374. <div class="mytableRow">
  375. <p class="mytableRowLeft">版本</p>
  376. <p class="mytableRowRight"> @Model.版本号</p>
  377. </div>
  378. <div class="mytableRow">
  379. <p class="mytableRowLeft">来源</p>
  380. <p class="mytableRowRight"> @Model.来源</p>
  381. </div>
  382. <div class="mytableRow">
  383. <p class="mytableRowLeft">问题性质</p>
  384. <p class="mytableRowRight"> @Model.问题性质</p>
  385. </div>
  386. <div class="mytableRow">
  387. <p class="mytableRowLeft">紧急程度</p>
  388. <p class="mytableRowRight"> @Model.紧急程度</p>
  389. </div>
  390. <div class="mytableRow">
  391. <p class="mytableRowLeft">紧急描述</p>
  392. <p class="mytableRowRight"> @Model.紧急描述</p>
  393. </div>
  394. <div class="mytableRow">
  395. <p class="mytableRowLeft">关键字</p>
  396. <p class="mytableRowRight">@Model.关键字</p>
  397. </div>
  398. </div>
  399. </div>*@
  400. <div class="mylist" style="padding-right:0">
  401. <h4 style="font-size:15px">其他信息</h4>
  402. <div id="panel" class="flex-column">
  403. <div class="flex-cell flex-row">
  404. <p class="flex-cell flex-row">产品</p>
  405. <div class="flex-cell flex-row">@Model.产品名称</div>
  406. <p class="flex-cell flex-row">版本</p>
  407. <div class="flex-cell flex-row" style="overflow:hidden">@Model.版本号</div>
  408. </div>
  409. <div class="flex-cell flex-row">
  410. <p class="flex-cell flex-row">来源</p>
  411. <div class="flex-cell flex-row">@Model.来源</div>
  412. <p class="flex-cell flex-row">问题性质</p>
  413. <div class="flex-cell flex-row">@Model.问题性质</div>
  414. </div>
  415. <div class="flex-cell flex-row">
  416. <p class="flex-cell flex-row">关键字</p>
  417. <div class="flex-cell flex-row">@Model.关键字</div>
  418. <p class="flex-cell flex-row">紧急程度</p>
  419. <div class="flex-cell flex-row">@Model.紧急程度</div>
  420. </div>
  421. <div class="flex-cell flex-row">
  422. <p class="flex-cell flex-row">当前处理人</p>
  423. <div class="flex-cell flex-row">@Model.当前处理人</div>
  424. <p class="flex-cell flex-row">当前环节</p>
  425. <div class="flex-cell flex-row">@Model.当前环节</div>
  426. </div>
  427. <div class="flex-cell flex-row">
  428. <p class="flex-cell flex-row">技术支持</p>
  429. <div class="flex-cell flex-row">@Model.技术支持</div>
  430. <p class="flex-cell flex-row">研发支持</p>
  431. <div class="flex-cell flex-row">@Model.研发支持</div>
  432. </div>
  433. <div class="flex-cell flex-row">
  434. <p class="flex-cell flex-row">是否解决</p>
  435. <div class="flex-cell flex-row">@Model.是否解决</div>
  436. <p class="flex-cell flex-row">是否终止</p>
  437. <div class="flex-cell flex-row">@Model.终止说明</div>
  438. </div>
  439. <div class="flex-cell flex-row">
  440. <p class="flex-cell flex-row flexSingle">渠道</p>
  441. <div class="flex-cell flex-row">@Model.渠道名称</div>
  442. </div>
  443. <div class="flex-cell flex-row">
  444. <p class="flex-cell flex-row flexSingle">项目</p>
  445. <div class="flex-cell flex-row">@Model.项目名称</div>
  446. </div>
  447. <div class="flex-cell flex-row">
  448. <p class="flex-cell flex-row flexSingle">机构</p>
  449. <div class="flex-cell flex-row">@Model.机构名称</div>
  450. </div>
  451. </div>
  452. </div>
  453. </div>
  454. <div id="item2" class="mui-control-content">
  455. <div id="Process" class="Process">
  456. <div class="container" style="background-color:white;padding:5px">
  457. <ul class="time-vertical">
  458. <li v-for="ps in Process">
  459. <span class="ProblemIcon time-vertical-span" v-bind:class="ps.图标"></span>
  460. <div class="Timeline-v-body">
  461. <h3>{{ps.处理状态}}</h3>
  462. <p style="margin:0">您的问题已进入【{{ps.问题环节}}】环节,操作人:{{ps.职务}}-{{ps.处理人员}}
  463. @*<a v-if="ps.联系电话" v-bind:href="'tel:'+ps.联系电话">【{{ps.联系电话}}】</a>*@
  464. </p>
  465. <p class="ProcessDetail" v-html="ps.描述" v-if="ps.描述" style="line-height:1.3">{{"描述:"+ps.描述}}</p>
  466. <div v-if="ps.图片|| ps.文件" class="Fileflex">
  467. <img v-for="img in ps.图片" data-preview-src='' data-preview-group='2' v-bind:src="img" style='width:50px;height:50px;padding:5px 5px 5px 0'>
  468. <a v-for="(flie,index) in ps.文件" v-on:click="GetFlie(flie)" style="padding:5px 5px 5px 0;color:#80b4fb;font-size:14px"><span class="mui-icon mui-icon-paperclip" style="font-size:33px"></span></a>
  469. </div>
  470. <p>{{ps.记录时间}}</p>
  471. </div>
  472. </li>
  473. </ul>
  474. </div>
  475. </div>
  476. </div>
  477. <div id="item3" class="mui-control-content">
  478. <div id="MyCommunicate">
  479. <h5 v-if="show" style='display:flex;flex-direction:column;justify-content:center;align-items:center;height:100px;font-size:15px '>暂无沟通内容</h5>
  480. <div v-for="cc in Communicate" class='mui-card'>
  481. <div class='mui-card-header mui-card-media' style='height:100px ;'>
  482. <img v-bind:src="cc.头像地址" style='border-radius: 80px; height: 50px; width: 50px;'>
  483. <p style='float: right;'>{{cc.记录时间}}</p>
  484. <div class='mui-media-body' style='margin-left: 60px'>
  485. <h4>{{cc.记录人}}</h4>
  486. <h5 style='margin-top:10px'>{{cc.沟通内容}}</h5>
  487. <h5 style='float:right;'>{{cc.职务}}</h5>
  488. </div>
  489. </div>
  490. </div>
  491. </div>
  492. <div class="mui-input-row" style="margin: 10px 5px;">
  493. <textarea v-model="Content" style="font-size:14px" id="textarea" rows="5" placeholder="输入您的沟通内容"></textarea>
  494. @*<button v-on:click="SubmitContent" type="button" class="mui-btn mui-btn-primary" style="width: 82px">提交</button>*@
  495. </div>
  496. </div>
  497. </div>
  498. </div>
  499. <div id="Popover_1" class="mui-popover mui-bar-popover">
  500. <div v-if="@Model.撤销权限==1" v-on:click="DeleteProblem()" class="modify">
  501. <span class="mui-icon mui-icon-trash"></span>
  502. <div>撤销问题</div>
  503. </div>
  504. <div v-on:click="Modify()" v-if="@Model.修改权限==1" class="modify">
  505. <span class="mui-icon mui-icon-compose"></span>
  506. <div>修改问题</div>
  507. </div>
  508. </div>
  509. </div>
  510. <script > type = "text/babel"
  511. //var banOffTop = $("#fex").offset().top;//获取到距离顶部的垂直距离
  512. //var scTop=0;//初始化垂直滚动的距离
  513. //$(document).scroll(function () {
  514. // debugger
  515. // scTop=$(this).scrollTop()+10;//获取到滚动条拉动的距离
  516. // //console.log(scTop);查看滚动时,垂直方向上,滚动条滚动的距离
  517. // if(scTop>=banOffTop){
  518. // //核心部分:当滚动条拉动的距离大于等于导航栏距离顶部的距离时,添加指定的样式
  519. // $("#fex").addClass("fixDiv");
  520. // }else{
  521. // $("#fex").removeClass("fixDiv");
  522. // }
  523. //})
  524. var ID = '@ViewBag.ID';
  525. var Plan = `@Model.解决方案`;
  526. var Vison = `@Model.解决版本`;
  527. var AssginName = '@Model.指派人';
  528. var StopDeatil = `@Model.终止说明`;
  529. var ErginDeatil = `@Model.紧急描述`;
  530. var vm = new Vue({
  531. el: '#vue',
  532. data: {
  533. ///产品问题过程
  534. Process: [],
  535. //过程沟通
  536. Communicate: [],
  537. ///沟通内容
  538. Content: '',
  539. ///图片
  540. Image: [],
  541. Iscomp: '',
  542. ProblemStatus: {},
  543. show: false,
  544. Plan: Plan,
  545. Vison: Vison,
  546. AssginName: AssginName,
  547. StopDeatil: StopDeatil,
  548. ErginDeatil: ErginDeatil,
  549. CurrentDealDeatil: null,
  550. IsCommit:false
  551. },
  552. methods: {
  553. //获取产品问题过程
  554. GetProcess: function () {
  555. var that = this;
  556. $.post("/Problem/GetClc?ID=" + ID, {}, function (data) {
  557. for (var fj of data) {
  558. if (fj.附件) {
  559. var img = [];
  560. var file = [];
  561. //全部附件
  562. var All = fj.附件.split(',');
  563. //判断单个附件类型
  564. for(var s of All) {
  565. ///如果为图片
  566. if (s.split('|')[1] == '1') {
  567. var ss = "/MobileProblem/ViewProblemImage/" + s.split('|')[0] + "?type=o"
  568. img.push(ss);
  569. }
  570. //如果为文件
  571. else {
  572. file.push(s.split('|')[0]);
  573. }
  574. }
  575. fj.图片 = img;
  576. fj.文件 = file;
  577. }
  578. //转换图标
  579. switch (fj.处理状态) {
  580. case '登记': fj.图标 = "icon-xiangqing activeIcon"; break;
  581. case '回退中': fj.图标 = "icon-icon28"; break;
  582. case '已终止': fj.图标 = "icon-zhongzhi activeIcon"; break;
  583. case '指派人员': fj.图标 = "icon-fenpei"; break;
  584. case '向上提交': fj.图标 = "icon-submit"; break;
  585. case '处理中': fj.图标 = "icon-shoulizhong"; break;
  586. case '已完成': fj.图标 = "icon-queren activeIcon"; break;
  587. case '已受理': fj.图标 = "icon-shoulizhong"; break;
  588. case '取消受理': fj.图标 = "icon-icon28"; break;
  589. case '撤销完成/终止': fj.图标 = "icon-icon28"; break;
  590. case '验证确认': fj.图标 = "icon-queren activeIcon"; break;
  591. default: fj.图标 = "icon-shoulizhong"
  592. }
  593. }
  594. that.GetCurrentDealDeatil(data[0]);
  595. that.Process = data;
  596. })
  597. },
  598. GetCurrentDealDeatil:function (item) {
  599. var d = item.处理状态;
  600. if (item.描述 && (d == "回退中" || d == "指派人员" || d == "已终止" || d == "处理中" || d == "已完成")) {
  601. this.CurrentDealDeatil = { 描述: item.描述, 图片: item.图片, 文件: item.文件 };
  602. }
  603. },
  604. ///获取图片
  605. GetFileFormFTP: function () {
  606. var that = this;
  607. $.post("/MobileProblem/GetFileFormFTP/" + ID, {}, function (data) {
  608. var File = {
  609. 图片: [],
  610. 附件:[]
  611. };
  612. for (var dd of data) {
  613. if (dd.类型 == '1') {
  614. File.图片.push("/MobileProblem/ViewProblemImage/" + dd.附件ID + "?type=o");
  615. } else {
  616. File.附件.push(dd.附件ID);
  617. }
  618. }
  619. that.Image = File;
  620. })
  621. },
  622. ///获取过程沟通
  623. GetCommunicate: function () {
  624. var that = this;
  625. this.show = false;
  626. $.post("/MobileProblem/GetCommunicates/" + ID, {}, function (data) {
  627. if (data.length > 0) {
  628. that.Communicate = data;
  629. }
  630. else {
  631. that.show = true;
  632. }
  633. })
  634. },
  635. ///提交过程沟通
  636. SubmitContent: function () {
  637. var that = this;
  638. if (!this.Content) {
  639. mui.toast('请输入内容', { duration: 'long', type: 'div' });
  640. return;
  641. }
  642. var param = {
  643. WTID: ID,
  644. GTNR: this.Content
  645. }
  646. $.post("/MobileProblem/SubmitContent", param, function (data) {
  647. if (data.code == 200) {
  648. mui.toast('提交成功', { duration: 'long', type: 'div' });
  649. that.Content = '';
  650. that.GetCommunicate();
  651. } else {
  652. mui.toast('提交失败', { duration: 'long', type: 'div' });
  653. }
  654. })
  655. },
  656. ToIcon: function () {
  657. if ('@Model.是否解决' == "已解决") {
  658. this.Iscomp = "icon-yijiejue3";
  659. }
  660. else {
  661. this.Iscomp = "icon-weijiejue";
  662. }
  663. var Status = "@Model.最新状态";
  664. if (Status == "1") {
  665. this.ProblemStatus.icon = "icon-dengji";
  666. this.ProblemStatus.text = "已登记";
  667. } else if (Status == "2") {
  668. this.ProblemStatus.icon = "icon-icon28";
  669. this.ProblemStatus.text = "回退";
  670. }
  671. else if (Status == "3") {
  672. this.ProblemStatus.icon = "icon-zhongzhi";
  673. this.ProblemStatus.text = "已终止";
  674. }
  675. else if (Status == "4") {
  676. this.ProblemStatus.icon = "icon-fenpei";
  677. this.ProblemStatus.text = " 分配中 → " + this.AssginName;
  678. }
  679. else if (Status == "5") {
  680. this.ProblemStatus.icon = "icon-submit";
  681. this.ProblemStatus.text = "已提交";
  682. }
  683. else if (Status == "6") {
  684. this.ProblemStatus.icon = "icon-shoulizhong";
  685. this.ProblemStatus.text = "受理中";
  686. }
  687. else if (Status == "7") {
  688. this.ProblemStatus.icon = "icon-queren";
  689. this.ProblemStatus.text = "已完成";
  690. }
  691. else if (Status == "8") {
  692. this.ProblemStatus.icon = "icon-chulizhong";
  693. this.ProblemStatus.text = "已受理";
  694. } else if (Status == "9") {
  695. this.ProblemStatus.icon = "icon-icon28";
  696. this.ProblemStatus.text = "取消受理";
  697. } else if (Status == "10") {
  698. this.ProblemStatus.icon = "icon-icon28";
  699. this.ProblemStatus.text = "撤销完成/终止";
  700. } else if (Status == "11") {
  701. this.ProblemStatus.icon = "icon-queren";
  702. this.ProblemStatus.text = "验证确认";
  703. }
  704. },
  705. //获取过程附件
  706. GetFlie: function (ID) {
  707. window.open('/MobileProblem/ViewProblemImage/' + ID);
  708. },
  709. Modify:function () {
  710. window.location.href = '/MobileProblem/ModifyProblem/' + ID
  711. },
  712. Back:function (){
  713. window.location.href = '/MobileProblem/QueryProblem'
  714. },
  715. DeleteProblem: function () {
  716. var that = this;
  717. mui.confirm('确定要撤销该问题吗?', '提示', ['否', '是'], function (e) {
  718. if (e.index == 1) {
  719. $.post("/Problem/Delete_Problem/" + ID, {}, function (data) {
  720. if (data != 0) {
  721. mui.toast("撤销成功!", { duration: 'long', type: 'div' });
  722. mui.later(function () {
  723. window.location.href = '/MobileProblem/QueryProblem'
  724. }, 1000)
  725. }
  726. else {
  727. mui.toast("撤销失败!", { duration: 'long', type: 'div' });
  728. }
  729. })
  730. }
  731. })
  732. },
  733. FilterHtml:function (item) {
  734. var arrEntities = { 'lt': '<', 'gt': '>', 'nbsp': ' ', 'amp': '&', 'quot': '"' };
  735. item = item.replace(/<[^>]+>/g, "").replace(/&(lt|gt|nbsp|amp|quot);/ig, function (all, t) { return arrEntities[t]; });
  736. return item;
  737. },
  738. ProblemRemark: function () {
  739. window.location.href = '/MobileProblem/ProblemReamrk/' + ID;
  740. },
  741. getIsCommit: function () {
  742. var that = this;
  743. $.post("/MobileProblem/IsCommit/" + ID, function (data) {
  744. if (data == '1') {
  745. that.IsCommit = true;
  746. }
  747. })
  748. }
  749. },
  750. watch: {
  751. Process:function (val) {
  752. this.$nextTick(() => {
  753. //缩小html中的图片
  754. var s = $(".ProcessDetail").find("img");
  755. if (s) {
  756. s.attr('data-preview-src', '');
  757. s.attr('data-preview-group', '10');
  758. s.css('height', 'auto');
  759. s.css('width', '100px');
  760. }
  761. })
  762. },
  763. CurrentDealDeatil:function(val) {
  764. this.$nextTick(() => {
  765. //缩小html中的图片
  766. var s = $("#CurrentDealDeatil").find("img");
  767. if (s) {
  768. s.attr('data-preview-src', '');
  769. s.attr('data-preview-group', '9');
  770. s.css('height', 'auto');
  771. s.css('width', '100px');
  772. }
  773. })
  774. }
  775. },
  776. mounted: function () {
  777. mui.init();
  778. mui("#Popover_1").on('tap', '.modify', function (event) {
  779. this.click();
  780. });
  781. mui.previewImage();
  782. this.getIsCommit();
  783. this.ToIcon();
  784. this.GetFileFormFTP();
  785. this.GetProcess();
  786. var t = $("#HtmlDeatil").find("img");
  787. if (t) {
  788. t.attr('data-preview-src', '');
  789. t.attr('data-preview-group', '9');
  790. }
  791. }
  792. })
  793. </script>