accept.html 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. <style>
  2. .order-table .header>th {
  3. height: 38px;
  4. text-align: center;
  5. background: #f5f5f5;
  6. border-top: 1px solid #e8e8e8;
  7. border-bottom: 1px solid #e8e8e8;
  8. }
  9. .order-table .sep-row {
  10. height: 10px;
  11. }
  12. .order-table .selector {
  13. vertical-align: middle;
  14. margin: 0 0 2px 0;
  15. }
  16. .toolbar label {
  17. margin-right: 10px;
  18. margin-bottom: 0;
  19. }
  20. .toolbar .select_all {
  21. margin: 0 6px 0 10px;
  22. line-height: 20px;
  23. }
  24. .toolbar .btn {
  25. -moz-border-radius: 2px;
  26. margin-right: 5px;
  27. border: 1px solid #dcdcdc;
  28. border-radius: 2px;
  29. -webkit-border-radius: 2px;
  30. }
  31. .order-table .order-hd {
  32. background: #f5f5f5;
  33. height: 40px;
  34. line-height: 40px;
  35. }
  36. .order-table .order-hd td.first {
  37. padding-left: 20px;
  38. }
  39. .order-table .order-hd .order-main span {
  40. margin-right: 8px;
  41. }
  42. .order-table .order-hd .order-sum {
  43. padding: 0 5px;
  44. }
  45. .order-table>tbody {
  46. border: 1px solid transparent;
  47. }
  48. .order-table>tbody:hover {
  49. border-color: #56a022;
  50. border-width: 2px;
  51. }
  52. .order-table .operates {
  53. display: none;
  54. }
  55. .order-table>tbody:hover .operates {
  56. display: block;
  57. }
  58. .order-table .order-bd {
  59. border-bottom: 1px solid #e6e6e6;
  60. }
  61. .order-table .order-bd>td {
  62. padding: 10px 5px;
  63. vertical-align: top;
  64. position: relative;
  65. }
  66. .order-table .order-bd .product {
  67. padding-left: 20px;
  68. }
  69. .input-xs, .input-group-xs>.form-control, .input-group-xs>.input-group-addon,
  70. .input-group-xs>.input-group-btn>.btn {
  71. height: 26px;
  72. padding: 0 5px;
  73. font-size: 12px;
  74. line-height: 1.5;
  75. border-radius: 3px;
  76. }
  77. .input-group-xs .form-control:last-child, .input-group-addon:last-child,
  78. .input-group-btn:first-child>.btn:not (:first-child ), .input-group-btn:last-child>.btn
  79. {
  80. border-top-left-radius: 0;
  81. border-bottom-left-radius: 0;
  82. }
  83. </style>
  84. <link rel="stylesheet" href="static/css/public.css">
  85. <div class="block" id="public">
  86. <div class="loading in" ng-class="{'in': loading}">
  87. <i></i>
  88. </div>
  89. <div class="pub-com_head">
  90. <span>客户委外验收单</span>
  91. <div class="p-right">
  92. <a href="make/accept/xls?_state={{active}}&keyword={{keywordXls.keyword}}&fromDate={{keywordXls.fromDate}}&endDate={{keywordXls.endDate}}"
  93. target="_self" class="text-simple" title="导出Excel表格"><i
  94. class="fa fa-file-excel-o fa-fw"></i>导出</a>
  95. </div>
  96. </div>
  97. <div class="condition block">
  98. <div class="search-bg condition block" style="padding: 10px 15px;">
  99. <div class="row">
  100. <div id="topSearch" style="float: left">
  101. <a ng-click="changeDateZone(1);condition.$open=false" title="最近一个月" ng-class="{'active':condition.dateZone=='1'}">最近一个月</a>
  102. <a ng-click="changeDateZone(3);condition.$open=false" title="最近三个月" ng-class="{'active':condition.dateZone=='3'}">最近三个月</a>
  103. <a ng-click="changeDateZone(6);condition.$open=false" title="最近六个月" ng-class="{'active':condition.dateZone=='6'}">最近六个月</a>
  104. <a ng-click="condition.$open=!condition.$open;changeDateZone(-1)" title="自定义" ng-class="{'active':condition.dateZone=='-1'}" >自定义</a>
  105. </div>
  106. <div class="col-xs-6" style="float: right;">
  107. <div class="search">
  108. <div class="form-group form-group-sm has-feedback" dropdown auto-close="outsideClick"
  109. on-toggle="searchAdvance=open">
  110. <input type="search" class="form-control input-sm" ng-model="keyword"
  111. ng-search="onSearch()" placeholder="输入单据编号、客户名称、物料名称搜索" style="width: 100%"/>
  112. <a class="btn input-group-addon" ng-click="onSearch()">搜索</a>
  113. </div>
  114. </div>
  115. </div>
  116. </div>
  117. <div class="more-list more" ng-class="{'open': condition.$open}">
  118. <form class="form-inline">
  119. <div class="form-group ">
  120. <label>日期:</label>
  121. <div class="btn-group btn-menu" dropdown is-open="condition.$dateZoneOpen">
  122. <ul class="dropdown-menu">
  123. <li><a ng-click="changeDateZone(1)">一个月内</a></li>
  124. <li><a ng-click="changeDateZone(6)">半年内</a></li>
  125. <li><a ng-click="changeDateZone()">半年前</a></li>
  126. </ul>
  127. </div>
  128. <div class="form-group input-group input-group-xs input-trigger">
  129. <input type="text" ng-model="condition.dateFrom"
  130. class="form-control" placeholder="从"
  131. datepicker-popup="yyyy-MM-dd" is-open="condition.$fromOpened"
  132. ng-required="true" max-date = "condition.dateTo"
  133. current-text="今天" clear-text="清除" close-text="关闭"
  134. datepicker-options="{formatDayTitle: 'yyyy年M月', formatMonth: 'M月', showWeeks: false}"
  135. ng-focus="openFilterDatePicker($event, condition, '$fromOpened')">
  136. <span class="input-group-btn">
  137. <button type="button" class="btn btn-default"
  138. ng-click="openFilterDatePicker($event, condition, '$fromOpened')">
  139. <i class="fa fa-calendar"></i>
  140. </button>
  141. </span>
  142. </div>
  143. <div class="form-group input-group input-group-xs input-trigger">
  144. <input type="text" ng-model="condition.dateTo"
  145. class="form-control" placeholder="到"
  146. datepicker-popup="yyyy-MM-dd" is-open="condition.$toOpened"
  147. ng-required="true" min-date = "condition.dateFrom"
  148. current-text="今天" clear-text="清除" close-text="关闭"
  149. datepicker-options="{formatDayTitle: 'yyyy年M月', formatMonth: 'M月', showWeeks: false}"
  150. ng-focus="openFilterDatePicker($event, condition, '$toOpened')">
  151. <span class="input-group-btn">
  152. <button type="button" class="btn btn-default"
  153. ng-click="openFilterDatePicker($event, condition, '$toOpened')">
  154. <i class="fa fa-calendar"></i>
  155. </button>
  156. </span>
  157. </div>
  158. </div>
  159. </form>
  160. </div>
  161. </div>
  162. </div>
  163. <table class="order-table block" ng-table="tableParams">
  164. <thead>
  165. <tr class="header">
  166. <th>产品</th>
  167. <th width="120">单价</th>
  168. <th width="100">验收数量</th>
  169. <th width="120">批号</th>
  170. <th width="140">单据信息</th>
  171. <th width="70">操作</th>
  172. </tr>
  173. <tr class="sep-row">
  174. <td colspan="6"></td>
  175. </tr>
  176. <!--<tr class="toolbar toolbar-top">
  177. <td colspan="5">
  178. <div>
  179. &lt;!&ndash; <label><input ng-disabled="true" type="checkbox"
  180. class="selector select_all" ng-model="selectAll">全选</label> <a
  181. ng-disabled="true" href="javascript:void(0)"
  182. class="btn btn-default btn-xs">批量处理</a> &ndash;&gt;
  183. </div> &lt;!&ndash; 分页 &ndash;&gt;
  184. </td>
  185. <td class="text-center">
  186. <a href="make/accept/xls?_state={{active}}&keyword={{keywordXls.keyword}}&fromDate={{keywordXls.fromDate}}&endDate={{keywordXls.endDate}}"
  187. target="_self" class="text-simple" title="导出Excel表格"><i
  188. class="fa fa-file-excel-o fa-fw"></i>导出</a></td>
  189. </tr>
  190. <tr class="sep-row">
  191. <td colspan="6"></td>
  192. </tr>-->
  193. </thead>
  194. <tbody ng-repeat="accept in $data">
  195. <tr class="order-hd">
  196. <td class="first" colspan="4">
  197. <div class="order-main">
  198. <!--<span><input type="checkbox" class="selector"
  199. ng-model="accept.$selected"></span>-->
  200. <span
  201. class="text-num text-bold"
  202. title="{{accept.date | date:'yyyy年MM月dd日hh:mm'}}"
  203. ng-bind="accept.date | date:'yyyy-MM-dd'"></span>
  204. <span title="客户名称"
  205. ng-bind="accept.acceptItems[0].order.enterprise.enName"></span>
  206. <span>流水号:<span
  207. class="text-num" ng-bind="accept.code"></span></span>
  208. </div>
  209. </td>
  210. <td colspan="1" class="order-sum">
  211. <div class="text-ellipsis" ng-if="accept.sendCode != null"
  212. style="width: 120px;" title="送货单号:{{::accept.sendCode}}">
  213. <i style="color: #CC9933;" class="fa fa-truck"></i> <span
  214. ng-bind="accept.sendCode"></span>
  215. </div>
  216. </td>
  217. <td colspan="1" class="text-center">
  218. <div class="operates">
  219. <!-- <a href="#" class="text-muted" title="打印">
  220. <i class="fa fa-print fa-lg fa-fw"></i>
  221. </a> -->
  222. </div>
  223. </td>
  224. </tr>
  225. <tr class="order-bd" ng-repeat="item in accept.acceptItems">
  226. <td class="product">
  227. <div class="text-num text-bold">
  228. <span ng-bind="item.order.product.code"></span>
  229. </div>
  230. <div>
  231. <span ng-bind="item.order.product.title"></span>
  232. </div>
  233. <div class="text-muted" title="{{item.order.product.spec}}"
  234. ng-bind="item.order.product.spec"></div>
  235. <div class="text-bold text-inverse" ng-if="item.order.factory">
  236. 送货工厂:<span ng-bind="::item.order.factory"></span>
  237. </div>
  238. </td>
  239. <td>
  240. <div class="text-num" title="{{item.orderPrice}}">
  241. <span ng-bind="::currency(accept.currency)"></span><span
  242. ng-bind="item.orderPrice || 0 | number : 6"></span>
  243. </div>
  244. <div class="text-muted" title="{{item.order.taxrate}}%">
  245. <br> 税率:<span ng-bind="::item.order.taxrate + '%'"
  246. class="text-num"></span>
  247. </div>
  248. </td>
  249. <td class="text-center">
  250. <div class="text-num text-bold" title="{{item.qty}}"
  251. ng-bind="item.qty"></div>
  252. <div class="text-muted" ng-bind="item.order.product.unit"></div>
  253. </td>
  254. <td class="text-center br-l">
  255. <div class="text-num" ng-bind="item.batchCode"></div>
  256. </td>
  257. <td class="br-l" colspan="2">
  258. <div>
  259. 单据编号:<a class="order-detail" title="查看采购单详情" ui-sref="sale.makeorder_detail({id:item.order.id})"
  260. ng-bind="item.order.code"></a>
  261. </div>
  262. <div>
  263. &nbsp;&nbsp;&nbsp;&nbsp;数量:<span ng-bind="item.order.qty"></span>
  264. </div>
  265. </td>
  266. </tr>
  267. </tbody>
  268. </table>
  269. </div>