change.html 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. <style>
  2. .order-table .header>th {
  3. height: 38px;
  4. text-align: center;
  5. background: #f5f5f5;
  6. border-bottom: 1px solid #e8e8e8;
  7. }
  8. .order-table .sep-row {
  9. height: 10px;
  10. }
  11. .order-table .selector {
  12. vertical-align: middle;
  13. margin: 0 0 2px 0;
  14. }
  15. .toolbar label {
  16. margin-right: 10px;
  17. margin-bottom: 0;
  18. }
  19. .toolbar .select_all {
  20. margin: 0 6px 0 10px;
  21. line-height: 20px;
  22. }
  23. .toolbar .btn {
  24. -moz-border-radius: 2px;
  25. margin-right: 5px;
  26. border: 1px solid #dcdcdc;
  27. border-radius: 2px;
  28. -webkit-border-radius: 2px;
  29. }
  30. .order-table .order-hd {
  31. background: #f5f5f5;
  32. height: 40px;
  33. line-height: 40px;
  34. }
  35. .order-table .order-hd td.first {
  36. padding-left: 20px;
  37. }
  38. .order-table .order-hd .order-main span {
  39. margin-right: 8px;
  40. }
  41. .order-table .order-hd .order-code {
  42. font-style: normal;
  43. font-family: verdana;
  44. }
  45. .order-table .order-hd .order-sum {
  46. padding: 0 5px;
  47. }
  48. .order-table .order-info {
  49. padding-left: 45px;
  50. }
  51. .order-table>tbody {
  52. border: 1px solid transparent;
  53. }
  54. .order-table>tbody:hover {
  55. border-color: #56a022;
  56. border-width: 2px;
  57. }
  58. .order-table .operates {
  59. display: none;
  60. }
  61. .order-table>tbody:hover .operates {
  62. display: block;
  63. }
  64. .order-table .order-bd {
  65. border-bottom: 1px solid #e6e6e6;
  66. }
  67. .order-table .order-bd>td {
  68. padding: 10px 5px;
  69. vertical-align: top;
  70. position: relative;
  71. }
  72. .order-table .order-bd .product {
  73. padding-left: 20px;
  74. }
  75. </style>
  76. <link rel="stylesheet" href="static/css/public.css">
  77. <div class="block" id="public">
  78. <div class="loading in" ng-class="{'in': loading}">
  79. <i></i>
  80. </div>
  81. <div class="pub-com_head">
  82. <span>委外变更单</span>
  83. <div class="p-right">
  84. <a href="make/changes/xls?_state={{active}}&searchFilter={{keywordXls}}" target="_self" class="text-simple" title="导出Excel表格"><i class="fa fa-file-excel-o fa-fw"></i>导出</a>
  85. </div>
  86. </div>
  87. <div class="condition block">
  88. <div class="search-bg condition block">
  89. <div class="row">
  90. <div id="topSearch" style="float: left">
  91. <span class="text-muted"><i class="fa fa-search fa-lg"></i> 搜索"{{tip}}",为您找到结果:</span>
  92. 单据{{tableParams.total()}}条
  93. </div>
  94. <div class="col-xs-6">
  95. <div class="search">
  96. <div class="form-group form-group-sm has-feedback" dropdown auto-close="outsideClick" on-toggle="searchAdvance=open">
  97. <input type="search" class="form-control input-sm" ng-model="keyword" ng-search="onSearch()" placeholder="输入商品、客户名称或单据流水号搜索" />
  98. <a class="btn input-group-addon" ng-click="onSearch()">搜索</a>
  99. </div>
  100. </div>
  101. </div>
  102. <div class="fr toggle">
  103. <a ng-click="condition.$open=!condition.$open" class="text-simple"><span ng-bind="condition.$open ? '简化筛选条件' : '更多筛选条件'"></span><i class="fa fa-fw" ng-class="{'fa-angle-up': condition.$open, 'fa-angle-down': !condition.$open}"></i></a>
  104. </div>
  105. </div>
  106. <div class="more" ng-class="{'open': condition.$open}">
  107. <form class="form-inline">
  108. <div class="form-group ">
  109. <label>日期:</label>
  110. <div class="btn-group btn-menu" dropdown is-open="condition.$dateZoneOpen">
  111. <button type="button" dropdown-toggle style="width: 85px;" class="btn btn-default btn-xs dropdown-toggle">
  112. {{dateZoneText}}<i class="fa fa-fw fa-angle-down icon-right"></i></span>
  113. </button>
  114. <ul class="dropdown-menu">
  115. <li><a ng-click="changeDateZone(1)">一个月内</a></li>
  116. <li><a ng-click="changeDateZone(6)">半年内</a></li>
  117. <li><a ng-click="changeDateZone()">半年前</a></li>
  118. </ul>
  119. </div>
  120. <div class="form-group input-group input-group-xs input-trigger">
  121. <input type="text" ng-model="condition.dateFrom"
  122. class="form-control" placeholder="从"
  123. datepicker-popup="yyyy-MM-dd" is-open="condition.$fromOpened"
  124. ng-required="true"
  125. current-text="今天" clear-text="清除" close-text="关闭"
  126. datepicker-options="{formatDayTitle: 'yyyy年M月', formatMonth: 'M月', showWeeks: false}"
  127. ng-focus="openDatePicker($event, condition, '$fromOpened')">
  128. <span class="input-group-btn">
  129. <button type="button" class="btn btn-default"
  130. ng-click="openDatePicker($event, condition, '$fromOpened')">
  131. <i class="fa fa-calendar"></i>
  132. </button>
  133. </span>
  134. </div>
  135. <div class="form-group input-group input-group-xs input-trigger">
  136. <input type="text" ng-model="condition.dateTo"
  137. class="form-control" placeholder="到"
  138. datepicker-popup="yyyy-MM-dd" is-open="condition.$toOpened"
  139. ng-required="true"
  140. current-text="今天" clear-text="清除" close-text="关闭"
  141. datepicker-options="{formatDayTitle: 'yyyy年M月', formatMonth: 'M月', showWeeks: false}"
  142. ng-focus="openDatePicker($event, condition, '$toOpened')">
  143. <span class="input-group-btn">
  144. <button type="button" class="btn btn-default"
  145. ng-click="openDatePicker($event, condition, '$toOpened')">
  146. <i class="fa fa-calendar"></i>
  147. </button>
  148. </span>
  149. </div>
  150. </div>
  151. <!--<div class="form-group">
  152. <label>采纳结果:</label>
  153. <div class="btn-group btn-menu" dropdown is-open="condition.$agreedOpen">
  154. <button type="button" dropdown-toggle style="width: 70px;" class="btn btn-default btn-xs dropdown-toggle">
  155. {{agreedText}}<i class="fa fa-fw fa-angle-down icon-right"></i></span>
  156. </button>
  157. <ul class="dropdown-menu">
  158. <li><a ng-click="changeAgreed()">全部</a></li>
  159. <li><a ng-click="changeAgreed(1)">已采纳</a></li>
  160. <li><a ng-click="changeAgreed(0)">未采纳</a></li>
  161. </ul>
  162. </div>
  163. </div>-->
  164. </form>
  165. </div>
  166. </div>
  167. </div>
  168. <table class="order-table block" ng-table="tableParams">
  169. <thead>
  170. <tr class="header">
  171. <th>产品</th>
  172. <th width="100">单价</th>
  173. <th>数量</th>
  174. <th width="130">计划加工日期</th>
  175. <th width="130">备注</th>
  176. <th width="80">操作</th>
  177. </tr>
  178. <!--<tr class="sep-row">
  179. <td colspan="6"></td>
  180. </tr>
  181. <tr class="sep-row">
  182. <td colspan="6"></td>
  183. </tr>-->
  184. </thead>
  185. <tbody ng-repeat="change in $data track by change.id">
  186. <tr class="order-hd">
  187. <td class="first" width="700" colspan="4">
  188. <div class="order-main">
  189. <!--<span> <input type="checkbox" class="selector"
  190. ng-model="change.$selected">
  191. </span> -->
  192. <span class="text-num text-bold"
  193. ng-bind="::change.orderChange.date | date:'yyyy-MM-dd'"></span>
  194. <span ng-bind="::change.orderChange.enterprise.enName"></span>
  195. <span>流水号:<a
  196. class="text-num" ng-bind="::change.orderChange.code" ui-sref="sale.makechange_detail({id:change.id})" target="_self"></a></span> <span>订单:<span
  197. class="text-num text-bold" ng-bind="::change.orderCode" ui-sref="make.order_detail({id:change.orderId})" target="_blank"></span></span>
  198. </div>
  199. </td>
  200. <td colspan="1" class="" title="{{change.orderChange.remark}}">
  201. <div class="text-ellipsis" ng-bind="change.orderChange.remark" style="width: 120px;"></div>
  202. </td>
  203. <td colspan="1" class="text-center">
  204. <div class="operates">
  205. <!-- <a href="#" class="text-muted" title="打印"><i
  206. class="fa fa-print fa-lg fa-fw"></i></a> -->
  207. </div>
  208. </td>
  209. </tr>
  210. <tr class="order-bd">
  211. <td class="product">
  212. <div>
  213. <span class="text-num text-bold" ng-bind="::change.product.code"></span>
  214. <span class="text-light">
  215. </div>
  216. <div ng-bind="::change.product.title"></div>
  217. <div class="text-muted" ng-bind="::change.product.spec"></div>
  218. <div class="" ng-if="::change.reason">变更原因:<span ng-bind="::change.reason"></span></div>
  219. </td>
  220. <td class="text-center">
  221. <div class="text-num"
  222. ng-class="{'text-inverse': change.newPrice != change.oldPrice}"
  223. title="{{change.newPrice}}" ng-bind="::change.newPrice | number:6"></div>
  224. <div ng-show="change.newPrice != change.oldPrice">
  225. <s class="text-num text-muted" ng-bind="::change.oldPrice | number:6"></s>
  226. </div>
  227. </td>
  228. <td class="text-center">
  229. <div class="text-num"
  230. ng-class="{'text-inverse': change.newQty != change.oldQty}"
  231. title="{{change.newQty}}" ng-bind="::change.newQty"></div>
  232. <div ng-show="change.newQty != change.oldQty">
  233. <s class="text-num text-muted" title="{{change.oldQty}}"
  234. ng-bind="::change.oldQty"></s>
  235. </div>
  236. <div class="text-muted" ng-bind="::change.product.unit"></div>
  237. </td>
  238. <td class="text-center br-l">
  239. <div class="text-num">
  240. <span ng-class="{'text-inverse': change.newCommence != change.oldCommence}" ng-bind="::change.newCommence | date:'yyyy-MM-dd'"></span>
  241. </div>
  242. <div class="text-num text-muted" ng-show="change.newCommence != change.oldCommence"><s ng-bind="::change.oldCommence | date:'yyyy-MM-dd'"></s></div>
  243. <div>至</div>
  244. <div class="text-num"><span ng-class="{'text-inverse': change.newComplete != change.oldComplete}" ng-bind="::change.newComplete | date:'yyyy-MM-dd'"></span></div>
  245. <div class="text-num text-muted" ng-show="change.newComplete != change.oldComplete"><s ng-bind="::change.oldComplete | date:'yyyy-MM-dd'"></s></div>
  246. </td>
  247. <td class="text-left br-l" colspan="2">
  248. <p class="text-muted">备注:<span ng-bind="::change.remark"></span></p>
  249. </td>
  250. </tr>
  251. </tbody>
  252. </table>
  253. </div>