RegulpicList.html 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. <style>
  2. #store-list .table tr>th,
  3. #store-list .table tr>td{
  4. text-align: center;
  5. vertical-align: middle;
  6. }
  7. #store-list table td .info-line {
  8. white-space: nowrap;
  9. }
  10. /*切换导航*/
  11. .menu .col-sm-8{
  12. padding: 0;
  13. width: auto;
  14. }
  15. .menu{
  16. width: 100%;
  17. height: 40px;
  18. background: #229ee6;
  19. margin: 0;
  20. line-height: 40px;
  21. overflow: hidden;
  22. }
  23. .menu .btn{
  24. border: none;
  25. background: none;
  26. color: #fff;
  27. padding: 8px 30px;
  28. min-width: 100px;
  29. }
  30. .menu2{
  31. background: #fff;
  32. border-bottom: 1px solid #229ee6
  33. }
  34. .menu2 .btn{
  35. color: #333;
  36. }
  37. .menu .btn:active{
  38. background: none;
  39. box-shadow: inset 0 0 0 rgba(0,0,0,0.125);
  40. border:0;
  41. }
  42. .menu2 .btn:active{
  43. color: #333;
  44. }
  45. .menu .btn-group{
  46. height: 40px;
  47. }
  48. .menu .btn-primary:before,.menu a:hover:before{
  49. content: "";
  50. width: 20px;
  51. height: 20px;
  52. display: inline-block;
  53. background: #fff;
  54. transform: rotate(-45deg);
  55. position: absolute;
  56. bottom: -18px;
  57. left: 40%;
  58. }
  59. .menu2 .btn-primary{
  60. border-bottom: 3px solid #219ee6;
  61. color: #219ee6
  62. }
  63. .menu2 .btn:hover {
  64. border-bottom: 3px solid #219ee6;
  65. color: #219ee6
  66. }
  67. .menu2 .btn-primary:before,.menu2 a:hover:before{
  68. content: '';
  69. background: rgba(0,0,0,0);
  70. }
  71. .menu .col-sm-3{
  72. float: right;
  73. margin-right: 100px;
  74. width: 270px;
  75. padding: 0;
  76. }
  77. .menu .sreach-input{
  78. position: relative;
  79. margin-top: 5px;
  80. width: 270px;
  81. height: 40px;
  82. }
  83. .menu .sreach-input .form-control{
  84. height: 30px;
  85. float: left;
  86. border-radius: 0;
  87. font-size: 12px;
  88. }
  89. .menu .sreach-input button{
  90. width: 60px;
  91. height: 30px;
  92. background: #b9e1f9;
  93. float: right;
  94. position: absolute;
  95. right: 0;
  96. top: 0;
  97. border: none;
  98. font-size: 14px;
  99. }
  100. .com-title h2{
  101. font-size: 24px;
  102. color: #219ee6;
  103. }
  104. /*显示记录条数*/
  105. .text-rt{
  106. text-align: right;
  107. }
  108. .record-stort{
  109. line-height: 34px;
  110. font-size: 12px;
  111. margin-bottom: 0;
  112. padding-right: 30px;
  113. }
  114. .record-stort em{
  115. font-family: "Microsoft Yahei", "微软雅黑";
  116. color: #229ee6;
  117. font-style: inherit;
  118. font-weight: inherit;
  119. background: none;
  120. }
  121. /*表格样式*/
  122. .application-tab table tbody tr{
  123. height: 70px;
  124. }
  125. .application-tab table tr th,.application-tab table tr td{
  126. border: #cfedfe 1px solid;
  127. text-align: center;
  128. vertical-align: middle;
  129. }
  130. .application-tab .table-bordered{
  131. border-top: #cfedfe 1px solid;
  132. }
  133. .application-tab table tr th{
  134. background: #cfedfe;
  135. height: 35px;
  136. }
  137. .application-tab table tbody tr:hover{
  138. background: #e4f3fc;
  139. }
  140. .application-tab table tbody tr .btn{
  141. border: none;
  142. width: 60px;
  143. height: 22px;
  144. line-height: 22px;
  145. color: #fff;
  146. display: inline-block;
  147. margin-bottom: 5px;
  148. padding: 0;
  149. font-size: 12px;
  150. border-radius: 2px;
  151. }
  152. .text-left{
  153. text-align: left !important;
  154. }
  155. .application-tab table tbody tr .btn:hover{
  156. background: #219ee6 ;
  157. }
  158. .application-tab table thead th p i{
  159. color: #219ee6;
  160. /*margin-left: 4px;*/
  161. }
  162. .application-tab table thead th p:hover{
  163. cursor: pointer;
  164. }
  165. .application-tab table tr td p{
  166. margin-bottom: 0;
  167. }
  168. .application-tab table tr td .passBtn {
  169. width: 42px;
  170. height: 22px;
  171. line-height: 22px;
  172. font-size: 12px;
  173. text-align: center;
  174. background: #3ba9e9;
  175. color: #fff;
  176. border-radius: 3px;
  177. display: inline-block;
  178. cursor: pointer;
  179. }
  180. .application-tab table tr td .passBtn:hover {
  181. background: #3186b7
  182. }
  183. .application-tab table tr td .cancelBtn {
  184. display: inline-block;
  185. width: 42px;
  186. height: 22px;
  187. line-height: 22px;
  188. font-size: 12px;
  189. text-align: center;
  190. background: #fff;
  191. color: #3ba9e9;
  192. border-radius: 3px;
  193. border: 1px solid #3ba9e9;
  194. cursor: pointer;
  195. }
  196. .application-tab table tr td .cancelBtn:hover {
  197. background: #f02020;
  198. color: #fff;
  199. border: 1px solid #f02020;
  200. }
  201. .application-tab table tr td .lookNoPassInfo {
  202. position: relative;
  203. }
  204. .application-tab table tr td .lookNoPassInfo .infoMore {
  205. display: none;
  206. width: 178px;
  207. min-height: 50px;
  208. padding: 5px;
  209. position: absolute;
  210. left: -36px;
  211. top: 22px;
  212. border: 1px solid #219ee6;
  213. box-shadow: 0 0 2px #219ee6;
  214. background: #fff;
  215. z-index: 999999;
  216. }
  217. .application-tab table tr td .lookNoPassInfo:hover .infoMore{
  218. display: block;
  219. }
  220. </style>
  221. <div class="row-fluid sortable" id="store-list">
  222. <div class="com-title">
  223. <h2>规格书审核</h2>
  224. </div>
  225. <div class="menu row">
  226. <div class="col-sm-8">
  227. <div class="btn-group" role="group" aria-label="...">
  228. <a type="button" class="btn btn-default" ui-sref="audit_component">标准器件审批</a>
  229. <a type="button" class="btn btn-default btn-primary">规格书审核</a>
  230. <!--<a type="button" class="btn btn-default" ng-class="{'btn-primary': storeType === 'ALL'}" ng-click="chooseStoreType('ALL')">全部</a>-->
  231. <!--<a type="button" class="btn btn-default" ng-class="{'btn-primary': storeType === 'ORIGINAL_FACTORY'}" ng-click="chooseStoreType('ORIGINAL_FACTORY')">待审核</a>-->
  232. <!--<a type="button" class="btn btn-default" ng-class="{'btn-primary': storeType === 'AGENCY'}" ng-click="chooseStoreType('AGENCY')">已通过</a>-->
  233. <!--<a type="button" class="btn btn-default" ng-class="{'btn-primary': storeType === 'DISTRIBUTION'}" ng-click="chooseStoreType('DISTRIBUTION')">未通过</a>-->
  234. </div>
  235. </div>
  236. <div class="col-sm-3">
  237. <div class="sreach-input">
  238. <input type="search" class="form-control" placeholder="请输入公司名称" ng-model="keyword" ng-search="refreshTableData()"/>
  239. <button ng-click="refreshTableData()">搜索</button>
  240. </div>
  241. </div>
  242. </div>
  243. <div class="row menu menu2">
  244. <div class="col-sm-8">
  245. <div class="btn-group" role="group" aria-label="...">
  246. <a type="button" class="btn btn-default" ng-class="{'btn-primary': storeStatus === 'all'}" ng-click="chooseStoreType('all')">全部</a>
  247. <a type="button" class="btn btn-default" ng-class="{'btn-primary': storeStatus === 'unaudit'}" ng-click="chooseStoreType('unaudit')">待审核</a>
  248. <a type="button" class="btn btn-default" ng-class="{'btn-primary': storeStatus === 'audited'}" ng-click="chooseStoreType('audited')">已通过</a>
  249. <a type="button" class="btn btn-default" ng-class="{'btn-primary': storeStatus === 'notallow'}" ng-click="chooseStoreType('notallow')">未通过</a>
  250. </div>
  251. </div>
  252. <div class="col-sm-3">
  253. </div>
  254. </div>
  255. <div class="row">
  256. <div class="text-rt col-sm-12">
  257. <p class="record-stort">显示1-10条记录,&nbsp;&nbsp;共<em ng-bind="storeTableParams.total()">1000</em>条</p>
  258. </div>
  259. </div>
  260. <!--表格-->
  261. <div class="application-tab">
  262. <table class="table table-bordered" ng-table="storeTableParams">
  263. <thead>
  264. <tr>
  265. <th width="154">提交人</th>
  266. <th width="94">提交时间</th>
  267. <th width="148">品牌</th>
  268. <th width="147">物料(类目名称)</th>
  269. <th width="146">型号</th>
  270. <th width="74">规格书</th>
  271. <th width="98">审核人</th>
  272. <th width="94">审核时间</th>
  273. <th width="106">状态</th>
  274. <th width="114">操作</th>
  275. </tr>
  276. </thead>
  277. <tbody>
  278. <tr ng-repeat="list in $data">
  279. <td>
  280. <div>{{list.submiter.userName}}</div>
  281. <div>{{list.submitEn.enName}}</div>
  282. </td>
  283. <td><span ng-bind="list.createTime | date : 'yyyy-MM-dd HH:mm:ss'"></span></td>
  284. <td>{{list.brand ? list.brand.nameCn : (list.product.brand || list.product.pbranden || '-') }}
  285. </td>
  286. <td>
  287. {{list.kind ? list.kind.nameCn : (list.product.kind || list.product.prodName || '-') }}</td>
  288. <td>{{list.product.cmpCode || list.product.pcmpcode || '-'}}</td>
  289. <td><a href="{{list.uploadAttach}}" target="_blank"><img src="static/img/vendor/images/pdf.png" style="width:31px;height:35px;" /></a></td>
  290. <td>{{list.auditer.userName || '-'}}</td>
  291. <td><span ng-bind="list.createTime | date : 'yyyy-MM-dd HH:mm:ss'"></span></td>
  292. <td>
  293. <span style="color: #219ee6" ng-if="list.status === 311">待审核</span>
  294. <span style="color: #666" ng-if="list.status === 102">已通过</span>
  295. <div class="lookNoPassInfo" ng-if="list.status === 103">
  296. <span style="color: #f02020">未通过<img src="static/img/vendor/images/nofireinfo_icon.png" width="16" height="16" /></span>
  297. <div class="infoMore">
  298. <span style="color:#219ee6">原因:</span>{{list.reason}}
  299. </div>
  300. </div>
  301. </td>
  302. <td>
  303. <span class="passBtn" ng-click="passBtnFn(list)" ng-if="list.status === 311">通过</span>
  304. <span class="cancelBtn" ng-click="cancelBtnFn(list)" ng-if="list.status === 311">不通过</span>
  305. </td>
  306. </tr>
  307. <tr ng-if="!$data || $data.length <= 0">
  308. <td colspan="10">暂时没有待审核申请</td>
  309. </tr>
  310. </tbody>
  311. </table>
  312. </div>
  313. </div>