customer.html 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <style>
  2. #customer-tab .header th,#customer-tab tbody tr.header,#customer-tab tbody tr.header th{
  3. height: 38px;
  4. text-align: center;
  5. padding: 0;
  6. line-height: 38px;
  7. border-bottom-width: 0;
  8. /*background: #f5f5f5;*/
  9. border: none;
  10. font-size: 14px;
  11. }
  12. #customer-tab tbody tr.header:hover{
  13. border: none;
  14. }
  15. .table>tbody+tbody{
  16. border-top: none;
  17. }
  18. #customer-tab tbody td{
  19. border: none;
  20. }
  21. #customer-tab .pane-body{
  22. padding: 0;
  23. }
  24. #customer-tab tbody tr{
  25. background: none;
  26. height: 80px;
  27. border-top: #e8e8e8 1px solid;
  28. }
  29. #customer-tab tbody tr td{
  30. text-align: center;
  31. line-height: 20px;
  32. vertical-align: inherit;
  33. font-size: 14px;
  34. }
  35. #customer-tab tbody tr:hover{
  36. border: #3f84f6 2px solid;
  37. }
  38. #customer-tab .form-horizontal .form-control{
  39. height: 36px;
  40. line-height: 36px;
  41. border: #3f84f6 1px solid;
  42. border-radius: 0px;
  43. font-size: 14px;
  44. }
  45. #customer-tab .form-horizontal .form-group{
  46. margin: 0;
  47. padding: 10px 0;
  48. }
  49. #customer-tab .form-horizontal .form-group .input-group-addon{
  50. width: 70px;
  51. height: 36px;
  52. display: inline-block;
  53. background: #3f84f6;
  54. font-size: 16px;
  55. text-align: center;
  56. line-height: 36px;
  57. color: #fff;
  58. padding: 0;
  59. border: none;
  60. border-radius: 0;
  61. position: absolute;
  62. top: 10px;
  63. right: 0;
  64. }
  65. #customer-tab table tr td a{
  66. color: #5078cb;
  67. }
  68. #customer-tab table tr td a:hover{
  69. color: #d32526 !important;
  70. }
  71. .form-horizontal #topSearch{
  72. font-size: 16px;
  73. line-height: 55px;
  74. }
  75. #customer-tab table tr td a.color32{
  76. color: #323232;
  77. }
  78. #customer-tab table thead th:hover{
  79. background: none;
  80. }
  81. </style>
  82. <div class="loading in" ng-class="{'in': loading}">
  83. <!--<i></i>-->
  84. <div class="wrap">
  85. <div class="outer"></div>
  86. </div>
  87. </div>
  88. <div class="pane base-info" style="/*max-height: 900px;overflow-y: auto; overflow-x: hidden;*/" id="customer-tab">
  89. <!--<div class="pane-header">
  90. 客户资料 (共{{::totalCount}}个)
  91. <div class="pull-right">
  92. <a href="vendor/customer/xls" target="_self" class="text-simple bule"><i class="fa fa-file-text fa-fw"></i>导出</a>
  93. </div>
  94. </div>-->
  95. <div class="pub-com_head">
  96. <span>客户资料</span>
  97. <div class="p-right">
  98. <a ng-click="exportXls()" target="_self" class="text-simple bule"><i class="fa fa-file-text fa-fw"></i>导出</a>
  99. </div>
  100. </div>
  101. <form class="form-horizontal">
  102. <div class="form-group">
  103. <div class="col-md-6 col-sm-6">
  104. <div id="topSearch" style="float: left">
  105. <span class="text-muted"><i class="fa fa-search fa-lg"></i> 搜索"{{tip}}",为您找到结果:</span>
  106. 单据{{customerParams.total()}}条
  107. </div>
  108. </div>
  109. <div class="col-md-6 col-sm-6">
  110. <div class="form-group form-group-sm has-feedback">
  111. <input type="search" class="form-control input-sm" ng-model="keyword" ng-search="onSearch()" placeholder="输入企业名称搜索" />
  112. <a class="btn input-group-addon" ng-click="onSearch()">搜索</a>
  113. </div>
  114. </div>
  115. </div>
  116. </form>
  117. <div class="pane-body">
  118. <table class="table table-bordered table-striped table-hover"
  119. ng-table="customerParams">
  120. <thead>
  121. <tr class="header">
  122. <th width="80">UU</th>
  123. <th width="180">客户名称</th>
  124. <th width="180">地址</th>
  125. <th width="80">客户联系人</th>
  126. <th width="100">联系人电话</th>
  127. <th width="80">我方联系人</th>
  128. <th width="110">用户分配</th>
  129. </tr>
  130. </thead>
  131. <tbody ng-repeat="customer in $data" ng-mouseenter="showUserInfo(customer,true)" ng-mouseleave="showUserInfo(customer,false)">
  132. <tr>
  133. <td class="text-center" ng-bind="::customer.myEnterprise.uu"></td>
  134. <td class="text-center"><a ng-click="viewDetail(customer.id)" title="查看客户资料" ng-bind="::customer.myEnterprise.enName" class="color32 order-detail"></a></td>
  135. <td class="text-center" ng-bind="::customer.myEnterprise.enAddress"></td>
  136. <td class="text-center" ng-bind="::customer.myUser.userName"></td>
  137. <td ng-bind="::customer.myUser.userTel"></td>
  138. <td class="text-center" ng-bind="::customer.vendorUser.userName"></td>
  139. <td class="text-center">
  140. <!--<a title="展开" class="text-muted" ng-click="open(customer,$index)"><i class="fa fa-toggle-down fa-lg"></i></a>-->
  141. <!--<a ng-click="viewDetail(customer.id)">查看详情</a><br/>-->
  142. <div><a style="color: #3f84f6;" title="被分配的用户享有查看和操作权限" ng-click="addUserInfo(customer)"><!--<i class="fa fa-plus-circle fa-lg">-->分配</i></a></div>
  143. <div><a style="color: #3f84f6;" title="被转移权限的用户可以分配权限给其他用户" ng-click="transferUserInfo(customer)"><!--<i class="fa fa-plus-circle fa-lg">-->转移</a></div>
  144. </td>
  145. </tr>
  146. </tbody>
  147. <tbody ng-if="$data.length === 0">
  148. <tr>
  149. <td colspan="7">
  150. <div id="empty">
  151. <div class="left_img">
  152. <a href="http://www.usoftchina.com/" target="_blank" title="优软云首页"><img src="static/img/empty/uas_empty.png"></a>
  153. <a href="#/index" title="B2B商务首页">B2B 商务</a>
  154. </div>
  155. <div class="right_link">
  156. <p>暂无对应的单据</p>
  157. <a href="javascript:location.reload()">点击重新加载<i class="load_icon"></i></a>
  158. </div>
  159. </div>
  160. </td>
  161. </tr>
  162. </tbody>
  163. </table>
  164. </div>
  165. </div>