audit_componentMaintenance.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <style type="text/css">
  2. #select_kind{
  3. font-size:14px;
  4. font-weight:bold;
  5. margin-top:20px;
  6. margin-bottom:30px;
  7. width:60%;
  8. }
  9. #ul_li{
  10. float:left;
  11. font-size: 18px;
  12. }
  13. #ul_text{
  14. margin-top:20px;
  15. }
  16. #search {
  17. position: relative;
  18. margin-top: 30px;
  19. height: 34px;
  20. font-size: 16px;
  21. }
  22. #search .input-group {
  23. z-index: 21;
  24. }
  25. #search_input {
  26. height: 25px;
  27. font-size: 16px;
  28. font-family: '微软雅黑';
  29. border: 2px solid #5078cb;
  30. border-top-left-radius: 0px;
  31. border-bottom-left-radius: 0px;
  32. }
  33. #search_input:focus {
  34. border-color: #5078cb;
  35. outline: 0;
  36. -webkit-box-shadow: none;
  37. box-shadow: none;
  38. }
  39. #search_btn {
  40. height: 34px;
  41. line-height: 34px;
  42. padding-top: 0px;
  43. padding-bottom: 0px;
  44. font-size: 14px;
  45. background: #5078cb;
  46. color: #fff;
  47. border-top-right-radius: 0;
  48. border-bottom-right-radius: 0;
  49. }
  50. .suggestion {
  51. position: absolute;
  52. margin-top: -1px;
  53. width: 220px;
  54. background-color: #fff;
  55. border: 1px solid #bbb;
  56. border-top: none;
  57. z-index: 20;
  58. }
  59. .suggestion ul {
  60. margin-bottom: 0;
  61. }
  62. .suggestion ul li {
  63. list-style-type:none;
  64. line-height: 20px;
  65. font-size: 16px;
  66. padding: 0px ;
  67. color: #0080c0;
  68. cursor: pointer;
  69. }
  70. .suggestion ul li:hover,.suggestion ul li.active {
  71. background: #eee;
  72. }
  73. </style>
  74. <div class="row-fluid sortable">
  75. <div class="box span12">
  76. <div class="box-header well" data-original-title>
  77. <h2><i class="icon-user"></i> 标准器件维护</h2>
  78. </div>
  79. <div class="box-content">
  80. <!-- ng-tableStart -->
  81. <div class="fullscreen" style="padding: 10px;overflow-y:auto;">
  82. <div class="container">
  83. <div class="col-xs-5 col-xs-offset-3 text-right" style="float:right">
  84. <div id="search">
  85. <div class="input-group" >
  86. <input type="text" class="form-control" id="search_input" ng-model="keyword" placeholder="按器件型号搜索" ng-search="search()" ng-focus="onFocus()"
  87. ng-blur="onBlur()" ng-keyup="onKeyup()" ng-change="onChange(keyword.component)" ng-keydown="onKeyDown()" autocomplete="off"/>
  88. <span class="input-group-btn">
  89. <button type="button" class="btn btn-sm" id="search_btn" ng-click="search()">&nbsp;搜&nbsp;&nbsp;&nbsp;索&nbsp;</button>
  90. </span>
  91. </div>
  92. <div class="suggestion" ng-show="associate || associateEnter"
  93. ng-mouseenter="onAssociateEnter()"
  94. ng-mouseleave="onAssociateLeave()">
  95. <ul class="list-unstyled">
  96. <li class="text-left" ng-repeat="component in associates" ng-class="{'active': selectIndex == $index}"
  97. ng-click="onAssociateClick(component.code)" >
  98. <span ng-bind="component.code"></span>
  99. </li>
  100. </ul>
  101. </div>
  102. </div>
  103. </div>
  104. <div class="span2" id="select_kind" >
  105. <h3>按种类选择 </h3>
  106. <button ng-click="chooseKind()" class="btn btn-primary btn-sm" >
  107. <i class="fa fa-search"></i> 选择类目
  108. </button>
  109. <div ng-if="actives" style="margin-top:30px;">
  110. <h4>您选择的类目是:</h4>
  111. <ul class="list-unstyled list-inline text-default text-bold" id="ul_text">
  112. <li ng-repeat="a in actives" id="ul_li">
  113. {{a.nameCn}}&nbsp;&nbsp;&nbsp;&nbsp; <i class="fa fa-angle-double-right" ng-if="! $last"></i>
  114. </li>
  115. </ul>
  116. <a target="_self" href="product#/kinds/{{active.id}}/maintenance" class="btn btn-success btn-xs"> 选择产品进行维护 <i class="fa fa-hand-pointer-o"></i></a>
  117. </div>
  118. </div>
  119. <table ng-table="componentTableParams" class="table table-bordered table-striped" style="margin-top: 10px;">
  120. <thead ng-if="showHeader">
  121. <tr>
  122. <th width="30">序号</th>
  123. <th width="150">原厂型号</th>
  124. <th width="150">所属品牌</th>
  125. <th width="150">所属类目</th>
  126. <th width="140">操作</th>
  127. </tr>
  128. </thead>
  129. <tbody>
  130. <tr ng-repeat="component in $data">
  131. <td class="text-center">{{($index + 1)}}</td>
  132. <td>{{component.code}}</td>
  133. <td>{{component.brand.nameCn}}</td>
  134. <td>{{component.kind.nameCn}}</td>
  135. <td>
  136. <a ng-href="product#/componentEdit/detail/create/{{component.uuid}}">
  137. <button type="button" class="btn btn-default btn-sm">器件维护</button>
  138. </a>
  139. </td>
  140. </tr>
  141. <tr ng-if="$data.length == 0">
  142. <td colspan="10" class="text-center" style="line-height: 40px; font-size: 20px;"><i class="fa fa-smile-o fa-lg"></i> 当前没有对应的标准器件资料</td>
  143. </tr>
  144. </tbody>
  145. </table>
  146. </div>
  147. </div>
  148. </div>
  149. </div>
  150. </div>