wordorder_frm.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
  6. <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
  7. <title></title>
  8. <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
  9. <link rel="stylesheet" href="../../css/projeck.css">
  10. <style>
  11. .aui-card-list {
  12. margin-bottom: 0;
  13. }
  14. .column{
  15. border: 1px solid #eaeff3;
  16. background: #fff;
  17. padding: 10px;
  18. border-radius: 5px;
  19. margin-bottom:10px;
  20. }
  21. .column:last-child{
  22. margin-bottom: 0;
  23. }
  24. .small_title{
  25. font-size:12px;
  26. color: #74b9e7;
  27. display: block;
  28. font-style: normal;
  29. }
  30. .content{
  31. position: relative;
  32. padding-bottom: 5px;
  33. line-height: 1.6;
  34. }
  35. .content:after{
  36. width: 100%;
  37. content: "";
  38. position: absolute;
  39. bottom: 0;
  40. left: 0;
  41. height: 1px;
  42. background: #eaeff3;
  43. }
  44. .large_title{
  45. margin: 10px 0;
  46. }
  47. .technological-process{
  48. margin-top: 10px;
  49. display: flex;
  50. justify-content: flex-start;
  51. /* flex-wrap: wrap; */
  52. white-space: nowrap;
  53. overflow-x: scroll;
  54. -webkit-overflow-scrolling: touch;
  55. }
  56. .col{
  57. color: red;
  58. font-size: 12px;
  59. display: inline-flex;
  60. justify-content: space-between;
  61. align-items: center;
  62. flex-wrap: nowrap;
  63. padding-right: 10px;
  64. margin-bottom: 10px;
  65. /*width: 25%;*/
  66. }
  67. .name{
  68. border: 1px solid red;
  69. display: block;
  70. padding: 3px 6px;
  71. -webkit-border-radius: 5px;
  72. -moz-border-radius: 5px;
  73. border-radius: 5px;
  74. margin-bottom: 5px;
  75. }
  76. .name:last-child{
  77. margin-bottom: 0;
  78. }
  79. .ico-j{
  80. display: block;
  81. width: 15px;
  82. height: 15px;
  83. background: url("../../image/Arrow.png") no-repeat;
  84. background-size: contain;
  85. margin-left: 10px;
  86. }
  87. .col:last-child{
  88. padding-right: 0;
  89. }
  90. .col:last-child .ico-j{
  91. display: none;
  92. }
  93. .aui-padded-t-5{
  94. padding-top: 10px!important;
  95. }
  96. </style>
  97. </head>
  98. <body>
  99. <section class="aui-content aui-padded-l-5 aui-padded-r-10 aui-padded-t-5" id="seeApply">
  100. </section>
  101. <div class="noText hide">
  102. <img src="../../image/noText.png" alt="">
  103. </div>
  104. </body>
  105. <script type="text/template" id="templateApply">
  106. {{ for (var i = 0;i<it.length;i++) { }}
  107. <div class="column" onclick="openChangeFill('{{=it[i].id}}')">
  108. <i class="small_title">{{=it[i].classify_name}}</i>
  109. <h2 class="large_title">{{=it[i].title}}</h2>
  110. <p class="content">{{=it[i].introduce}}</p>
  111. <div class="technological-process">
  112. {{ for(var prop in it[i].flow) { }}
  113. <div class="col">
  114. <div class="name_list">
  115. {{ for (var j = 0;j<it[i].flow[prop].length;j++) { }}
  116. <span class="name">{{=it[i].flow[prop][j]}}</span>
  117. {{ } }}
  118. </div>
  119. <i class="ico-j"></i>
  120. </div>
  121. {{ } }}
  122. </div>
  123. </div>
  124. {{ } }}
  125. </script>
  126. <script type="text/javascript" src="../../script/api.js"></script>
  127. <script type="text/javascript" src="../../script/doT.min.js"></script>
  128. <script type="text/javascript" src="../../script/config.js"></script>
  129. <script type="text/javascript">
  130. var toast = new auiToast()
  131. apiready = function(){
  132. };
  133. // 可申请工单列表
  134. function applyList(token,ids) {
  135. var headers = {
  136. "Authorization": "Bearer " + token
  137. };
  138. $http.fnReuestData(UrlRouter.applyList,headers,'post',{id:ids},function (ret,err) {
  139. toast.hide()
  140. console.log(JSON.stringify(ret));
  141. if (ret && ret.code == 0) {
  142. if (ret.data.length>0) {
  143. $apis.html(seeApply,'#templateApply',ret.data);
  144. $api.addCls($api.dom('.noText'), 'hide')
  145. }else {
  146. $apis.html(seeApply,'#templateApply',ret.data);
  147. $api.removeCls($api.dom('.noText'), 'hide');
  148. }
  149. }else {
  150. api.toast({
  151. msg: '加载超时,请检查网络',
  152. duration: 2000,
  153. location: 'bottom'
  154. });
  155. }
  156. })
  157. }
  158. // 填写工单
  159. function openChangeFill(ids) {
  160. var pageParam = {
  161. id:ids
  162. }
  163. $event.openTabLayout('changeFill','changefillword','填选工单',pageParam)
  164. }
  165. </script>
  166. </html>