apCheck.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  1. <style>
  2. body{
  3. font-family: "Microsoft YaHei", "微软雅黑" !important;
  4. }
  5. .text-num{
  6. }
  7. .append{
  8. color: #5078cb;font-size:12px; margin-left: 10px
  9. }
  10. .order-table td {
  11. padding-top: 10px;
  12. margin-bottom: 20px;
  13. border-bottom: solid 1px #ccc;
  14. border-top: solid 1px #e8e8e8;
  15. }
  16. .order-table td.first {
  17. padding-left: 20px;
  18. }
  19. .order-table td.last {
  20. padding-right: 20px;
  21. }
  22. .order-table td .static p {
  23. display: inline-block;
  24. line-height: 30px;
  25. padding-top: 5px;
  26. padding-bottom: 0px;
  27. width: 150px;
  28. font-size: 14px;
  29. color: #666;
  30. padding-left: 15px;
  31. border-left: solid 1px #e8e8e8;
  32. }
  33. .order-table td .static p:first-child{
  34. border-left: none;
  35. width: 180px;
  36. padding-left: 0;
  37. }
  38. .order-table td .static p:last-child{
  39. margin-left: 22px;
  40. }
  41. .order-table td .static p:nth-of-type(3){
  42. margin-left: 20px;
  43. }
  44. .order-table td .main {
  45. margin-top: 5px;
  46. margin-bottom: 20px;
  47. color: #333;
  48. }
  49. .static{
  50. margin: 12px 0;
  51. }
  52. .order-table td .main strong {
  53. font-size: 14px;
  54. }
  55. .order-table td .static p strong {
  56. font-size: 14px;
  57. font-weight: bold;
  58. color: #888;
  59. }
  60. .order-table td.status {
  61. position: relative;
  62. border-left: solid 1px #e8e8e8;
  63. padding: 10px;
  64. vertical-align: top;
  65. }
  66. .order-table td.status .operate {
  67. position: absolute;
  68. display: block;
  69. bottom: 0;
  70. left: 0;
  71. right: 0;
  72. height: 0px;
  73. color: #ffffff;
  74. font-size: 14px;
  75. font-weight: bold;
  76. line-height: 40px;
  77. opacity: 0.8;
  78. transition: height ease-in-out 0.5s;
  79. text-decoration: none;
  80. }
  81. .order-table td.status .operate-undo {
  82. background: #428bca;
  83. }
  84. .order-table td.status .operate-done {
  85. background: #cccccc;
  86. }
  87. .order-table td.status:hover .operate {
  88. height: 40px;
  89. }
  90. .unPrinted {
  91. color: #56a022;
  92. }
  93. .order-table td .main strong{
  94. font-weight: normal;
  95. }
  96. .order-table td{
  97. font-size: 14px;
  98. }
  99. .order-table th{
  100. text-align: center;
  101. }
  102. .order-table .text-trans{
  103. margin-top: -17px;
  104. margin-right: 14px;
  105. }
  106. .menu .new-dot{
  107. width: 20px;
  108. height: 20px;
  109. line-height: 20px;
  110. font-size: 12px;
  111. color: #fff;
  112. font-weight: inherit;
  113. top: -2px;
  114. }
  115. </style>
  116. <link rel="stylesheet" href="static/css/public.css">
  117. <div class="block" id="public">
  118. <div class="loading in" ng-class="{'in': loading}">
  119. <!--<i></i>-->
  120. <div class="wrap">
  121. <div class="outer"></div>
  122. </div>
  123. </div>
  124. <div class="pub-com_head">
  125. <span>应收对账单</span>
  126. <div class="p-right">
  127. <a class="text-simple append" ui-sref="fa.apCheckList" title="新增对账单"><i class="fa fa-plus-square fa-fw"></i>新增对账单</a>&nbsp;&nbsp;&nbsp;
  128. <a href="#" ng-click="exportXls()"
  129. target="_self" title="导出Excel表格" class="blue f14"><i class="fa fa-file-text fa-fw"></i>导出</a>
  130. </div>
  131. </div>
  132. <div class="menu condition block">
  133. <div class="row">
  134. <div class="col-xs-7">
  135. <div class="btn-group btn-group-sm btn-group-justified">
  136. <div class="btn-group btn-group-sm">
  137. <button type="button" class="btn btn-default btn-line"
  138. ng-class="{'btn-info':active=='all'}" ng-click="setActive('all')">全部</button>
  139. </div>
  140. <div class="btn-group btn-group-sm">
  141. <button type="button" class="btn btn-default btn-line"
  142. ng-class="{'btn-info':active=='done'}"
  143. ng-click="setActive('done')">已确认
  144. <b class="new-dot" ng-if="unread.replied > 0">{{unread.replied>99?'99+':unread.replied}}</b>
  145. </button>
  146. </div>
  147. <div class="btn-group btn-group-sm">
  148. <button type="button" class="btn btn-default btn-line"
  149. ng-class="{'btn-info':active=='todo'}"
  150. ng-click="setActive('todo')">未对账</button>
  151. </div>
  152. <div class="btn-group btn-group-sm">
  153. <button type="button" class="btn btn-default btn-line"
  154. ng-class="{'btn-info':active=='end'}" ng-click="setActive('end')">已作废
  155. <b class="new-dot" ng-if="unread.cancelled > 0">{{unread.cancelled > 99 ? '99+' : unread.cancelled}}</b>
  156. </button>
  157. </div>
  158. </div>
  159. </div>
  160. <div class="col-xs-4 f12" style="text-align: right;height: 40px;line-height: 40px; margin-right: 20px; float: right;">
  161. </div>
  162. </div>
  163. </div>
  164. <!--<div class="height10">&nbsp;</div>-->
  165. <div class="condition block">
  166. <div class="search-bg condition block" style="padding: 10px 15px;">
  167. <div class="row">
  168. <div id="topSearch" style="float: left">
  169. <a ng-click="changeDateZone(1);condition.$open=false" title="最近一个月" ng-class="{'active':condition.dateZone=='1'}">最近一个月</a>
  170. <a ng-click="changeDateZone(3);condition.$open=false" title="最近三个月" ng-class="{'active':condition.dateZone=='3'}">最近三个月</a>
  171. <a ng-click="changeDateZone(6);condition.$open=false" title="最近六个月" ng-class="{'active':condition.dateZone=='6'}">最近六个月</a>
  172. <a ng-click="condition.$open=!condition.$open;changeDateZone(-1)" title="自定义" ng-class="{'active':condition.dateZone=='-1'}" >自定义</a>
  173. </div>
  174. <div class="col-xs-6" style="float: right;">
  175. <div class="search">
  176. <div class="form-group form-group-sm has-feedback" dropdown auto-close="outsideClick"
  177. on-toggle="searchAdvance=open">
  178. <input type="search" class="form-control input-sm" ng-model="keyword"
  179. ng-search="onSearch()" placeholder="输入单据编号、客户名称、物料名称搜索" style="width: 100%"/>
  180. <a class="btn input-group-addon" ng-click="onSearch()">搜索</a>
  181. </div>
  182. </div>
  183. </div>
  184. </div>
  185. <div class="more-list more" ng-class="{'open': condition.$open}">
  186. <form class="form-inline">
  187. <div class="form-group ">
  188. <label>日期:</label>
  189. <div class="btn-group btn-menu" dropdown is-open="condition.$dateZoneOpen">
  190. <ul class="dropdown-menu">
  191. <li><a ng-click="changeDateZone(1)">一个月内</a></li>
  192. <li><a ng-click="changeDateZone(6)">半年内</a></li>
  193. <li><a ng-click="changeDateZone()">半年前</a></li>
  194. </ul>
  195. </div>
  196. <div class="form-group input-group input-group-xs input-trigger">
  197. <input type="text" ng-model="condition.dateFrom"
  198. class="form-control" placeholder="从"
  199. datepicker-popup="yyyy-MM-dd" is-open="condition.$fromOpened"
  200. ng-required="true" max-date = "condition.dateTo"
  201. current-text="今天" clear-text="清除" close-text="关闭"
  202. datepicker-options="{formatDayTitle: 'yyyy年M月', formatMonth: 'M月', showWeeks: false}"
  203. ng-focus="openFilterDatePicker($event, condition, '$fromOpened')">
  204. <span class="input-group-btn">
  205. <button type="button" class="btn btn-default"
  206. ng-click="openFilterDatePicker($event, condition, '$fromOpened')">
  207. <i class="fa fa-calendar"></i>
  208. </button>
  209. </span>
  210. </div>
  211. <div class="form-group input-group input-group-xs input-trigger">
  212. <input type="text" ng-model="condition.dateTo"
  213. class="form-control" placeholder="到"
  214. datepicker-popup="yyyy-MM-dd" is-open="condition.$toOpened"
  215. ng-required="true" min-date = "condition.dateFrom"
  216. current-text="今天" clear-text="清除" close-text="关闭"
  217. datepicker-options="{formatDayTitle: 'yyyy年M月', formatMonth: 'M月', showWeeks: false}"
  218. ng-focus="openFilterDatePicker($event, condition, '$toOpened')">
  219. <span class="input-group-btn">
  220. <button type="button" class="btn btn-default"
  221. ng-click="openFilterDatePicker($event, condition, '$toOpened')">
  222. <i class="fa fa-calendar"></i>
  223. </button>
  224. </span>
  225. </div>
  226. </div>
  227. </form>
  228. </div>
  229. </div>
  230. </div>
  231. <table class="order-table block" ng-table="tableParams">
  232. <thead>
  233. <tr class="header">
  234. <th width="150">对账期间</th>
  235. <th width="180">对账总额</th>
  236. <th width="180">明细条目</th>
  237. <th width="180">商品总数</th>
  238. <th width="100">对账结果</th>
  239. <th width="100">操作</th>
  240. </tr>
  241. </thead>
  242. <tbody ng-repeat="check in $data">
  243. <tr>
  244. <td class="first info" colspan="4">
  245. <div class="">
  246. <a href="javascript:void(0)" ng-if="!isUnread(check.id)">
  247. <i class="fa fa-circle-thin"></i>
  248. </a>
  249. <a href="javascript:void(0)" ng-if="isUnread(check.id)">
  250. <i class="fa fa-circle" style="color: #f40;"></i>
  251. </a>&nbsp;&nbsp;
  252. <span class="text-num" title="录单时间">{{::check.recordDate | date:'MM月dd日 HH:mm'}} <i class="fa fa-clock-o"></i></span>&nbsp;&nbsp;&nbsp;
  253. <span><i class="fa fa-star" ng-class="{'text-default':check.status==201}"></i> {{::check.custName}}</span>
  254. <span style="margin-left: 100px;">单据编号:</span>
  255. <span class="text-num"><a ui-sref="fa.apCheck_detail({id:check.id})" title="点击查看详情" ng-click="setOrdersRead(check.id)" style="color: #5078cb">{{::check.code}}</a></span>
  256. </div>
  257. <div class="static">
  258. <p><span class="f14 text-num">{{::check.beginDate | date:'yyyy/MM/dd'}} - {{::check.endDate | date:'yyyy/MM/dd'}}</span></p>
  259. <p>
  260. <strong class="text-num">{{::(isUser?'-':(check.checkAmount | number:2))}}</strong>
  261. <span ng-if="!isUser" class="text-number">{{::check.currency}}</span>
  262. </p>
  263. <p>
  264. <strong class="text-num">{{::check.items.length}}</strong> 条<br>
  265. </p>
  266. <p>
  267. <strong class="text-num">{{getTotalProd(check) | number}}</strong> <i class="fa fa-cubes"></i>
  268. </p>
  269. </div>
  270. </td>
  271. <td class="status">
  272. <div ng-if="check.checkStatus == '未对账'" class="text-center text-muted f14"><br>未对账!</div>
  273. <div></div>
  274. <div ng-if="check.checkStatus == '已确认'" class="text-center text-muted f14">
  275. <br> <i class="fa fa-check-square-o"></i> 已确认
  276. </div>
  277. <div ng-if="check.checkStatus == '不同意'" class="text-center text-muted f14">
  278. <br> <i class="fa fa-check-square-o"></i> 不同意
  279. </div>
  280. <div ng-if="check.checkStatus == '已作废'" class="text-center text-muted f14">
  281. <br> <i class="fa fa-check-square-o"></i> 已作废
  282. </div>
  283. </td>
  284. <td>
  285. <div ng-hide="check.status" class="block">
  286. <span class="text-trans error">未提交</span>
  287. </div>
  288. <div ng-show="check.status" class="block">
  289. <span class="text-trans success">已提交</span>
  290. </div>
  291. <div ng-if="check.checkStatus == '未对账'" class="text-center text-muted f14">
  292. <div class="" style="margin-top: 33px;margin-right: 20px;">
  293. <div class="pull-right" title="等待客户确认"><a>&nbsp;客户确认中...</a></div>
  294. </div>
  295. </div>
  296. <div ng-if="check.checkStatus != '未对账'" class="text-center text-muted f14">
  297. <div class="" style="margin-top: 33px;margin-right: 20px;">
  298. <a ng-click="print(check)" class="pull-right" title="打印{{check.print? '(已打印)':'(未打印)'}}" ng-class="{'unPrinted' : !check.print, 'text-muted': check.print}"><i class="fa fa-print fa-lg"></i>&nbsp;打印</a>
  299. </div>
  300. </div>
  301. <!-- <a ui-sref="fa.apCheck_detail({id:check.id})" class="operate operate-undo text-center"
  302. target="_blank">查看详情</a> -->
  303. </td>
  304. </tr>
  305. </tbody>
  306. <tbody ng-if="tableParams.total() == 0">
  307. <tr>
  308. <td colspan="6">
  309. <div id="empty">
  310. <div class="left_img">
  311. <a><img src="static/img/empty/uas_empty.png"></a>
  312. <a>B2B 商务</a>
  313. </div>
  314. <div class="right_link">
  315. <p ng-if="active != 'all'">您还未生成对账单,请立即新增对账!</p>
  316. <a ng-if="active != 'all'" ui-sref="fa.apCheckList"><i class="fa fa-plus-square fa-fw"></i> 新增对账单</a>
  317. </div>
  318. </div>
  319. </td>
  320. </tr>
  321. </tbody>
  322. </table>
  323. </div>