arCheck.html 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844
  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: 33%;
  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. .wui-date.small .wui-date-picker {
  116. width: 260px
  117. }
  118. </style>
  119. <link rel="stylesheet" href="static/css/public.css">
  120. <link rel="stylesheet" href="static/css/wui.min.css">
  121. <div class="block" id="public">
  122. <div class="loading in" ng-class="{'in': loading}">
  123. <!--<i></i>-->
  124. <div class="wrap">
  125. <div class="outer"></div>
  126. </div>
  127. </div>
  128. <div class="pub-com_head">
  129. <span>应付对账单</span>
  130. <div class="p-right">
  131. <!--<a class="text-simple append" ui-sref="fa.apCheckList" title="新增对账单" ng-hide="showNotCheck"><i class="fa fa-plus-square fa-fw"></i>新增对账单</a>&nbsp;&nbsp;&nbsp;-->
  132. <!--<a href="#" ng-click="exportXls()" ng-hide="active === 'all'"-->
  133. <!--target="_self" title="导出Excel表格" class="blue f14"><i class="fa fa-file-text fa-fw"></i>导出</a>-->
  134. </div>
  135. <div class="p-right" ng-show="active !== 'all'">
  136. <div class="btn-group btn-group-sm" style="float: right;font-size: 14px;cursor: pointer;text-align: right;height: 40px;line-height: 40px; margin-right: 20px;;color: #fff;" ng-click="setActive('all')">
  137. <img src="static/img/vendor/images/backIcon.png" width="20"/>返回
  138. </div>
  139. </div>
  140. <div class="btn-group btn-group-sm" style="float: right;font-size: 14px;cursor: pointer;text-align: right;height: 40px;line-height: 40px; margin-right: 20px;;color: #fff;" ng-hide="!showNotCheck" ng-click="hideshowNotCheck()">
  141. <img src="static/img/vendor/images/backIcon.png" width="20"/>返回
  142. <!--<b class="new-dot" ng-if="unread.cancelled > 0">{{unread.cancelled > 99 ? '99+' : unread.cancelled}}</b>-->
  143. </div>
  144. <div class="p-right" ng-show="active === 'all'">
  145. <div class="btn-group btn-group-sm" style=" float: right;
  146. font-size: 14px;
  147. cursor: pointer;
  148. text-align: right;
  149. height: 28px;
  150. line-height: 27px;
  151. margin-right: 20px;
  152. color: #fff;
  153. border: 1px solid #fff;
  154. margin-top: 3px;
  155. padding: 0 5px;" ng-click="setActive();changeDateZone(1, true);condition.$open=false;showNotCheck=false">查看对账记录
  156. <!--<b class="new-dot" ng-if="unread.cancelled > 0">{{unread.cancelled > 99 ? '99+' : unread.cancelled}}</b>-->
  157. </div>
  158. </div>
  159. </div>
  160. <!--<div class="menu condition block">-->
  161. <!--<div class="row">-->
  162. <!--<div class="col-xs-7">-->
  163. <!--<div class="btn-group btn-group-sm btn-group-justified">-->
  164. <!--<div class="btn-group btn-group-sm/fa/arCheck">-->
  165. <!--<button type="button" class="btn btn-default btn-line"-->
  166. <!--ng-class="{'btn-info':active=='all'}" ng-click="setActive('all')">未对账</button>-->
  167. <!--</div>-->
  168. <!--&lt;!&ndash;<div class="btn-group btn-group-sm">&ndash;&gt;-->
  169. <!--&lt;!&ndash;<button type="button" class="btn btn-default btn-line"&ndash;&gt;-->
  170. <!--&lt;!&ndash;ng-class="{'btn-info':active=='todo'}"&ndash;&gt;-->
  171. <!--&lt;!&ndash;ng-click="setActive('todo')">待确认</button>&ndash;&gt;-->
  172. <!--&lt;!&ndash;</div>&ndash;&gt;-->
  173. <!--<div class="btn-group btn-group-sm">-->
  174. <!--<button type="button" class="btn btn-default btn-line"-->
  175. <!--ng-class="{'btn-info':active=='done'}"-->
  176. <!--ng-click="setActive('done')">已对账-->
  177. <!--&lt;!&ndash;<b class="new-dot" ng-if="unread.replied > 0">{{unread.replied>99?'99+':unread.replied}}</b>&ndash;&gt;-->
  178. <!--</button>-->
  179. <!--</div>-->
  180. <!--&lt;!&ndash;<div class="btn-group btn-group-sm">&ndash;&gt;-->
  181. <!--&lt;!&ndash;<button type="button" class="btn btn-default btn-line"&ndash;&gt;-->
  182. <!--&lt;!&ndash;ng-class="{'btn-info':active=='end'}" ng-click="setActive('end')">已作废&ndash;&gt;-->
  183. <!--&lt;!&ndash;<b class="new-dot" ng-if="unread.cancelled > 0">{{unread.cancelled > 99 ? '99+' : unread.cancelled}}</b>&ndash;&gt;-->
  184. <!--&lt;!&ndash;</button>&ndash;&gt;-->
  185. <!--&lt;!&ndash;</div>&ndash;&gt;-->
  186. <!--</div>-->
  187. <!--</div>-->
  188. <!--<div class="col-xs-4 f12" style="text-align: right;height: 40px;line-height: 40px; margin-right: 20px; float: right;">-->
  189. <!--<div class="btn-group btn-group-sm" style="float: right;font-size: 14px;cursor: pointer;" ng-hide="!showNotCheck" ng-click="hideshowNotCheck()">-->
  190. <!--<img src="static/img/vendor/images/backIcon.png" width="20"/>返回-->
  191. <!--&lt;!&ndash;<b class="new-dot" ng-if="unread.cancelled > 0">{{unread.cancelled > 99 ? '99+' : unread.cancelled}}</b>&ndash;&gt;-->
  192. <!--</div>-->
  193. <!--</div>-->
  194. <!--</div>-->
  195. <!--</div>-->
  196. <div ng-hide="showNotCheck">
  197. <div class="condition block" ng-show="!showNotCheck">
  198. <div class="search-bg condition block" style="padding: 10px 15px;">
  199. <div class="row">
  200. <div id="topSearch" ng-show="active !== 'all'" style="float: left">
  201. <a ng-click="changeDateZone(1);condition.$open=false" title="最近一个月" ng-class="{'active':condition.dateZone=='1'}">最近一个月</a>
  202. <a ng-click="changeDateZone(3);condition.$open=false" title="最近三个月" ng-class="{'active':condition.dateZone=='3'}">最近三个月</a>
  203. <a ng-click="changeDateZone(6);condition.$open=false" title="最近六个月" ng-class="{'active':condition.dateZone=='6'}">最近六个月</a>
  204. <a ng-click="condition.$open=!condition.$open;changeDateZone(-1)" title="自定义" ng-class="{'active':condition.dateZone=='-1'}" >自定义</a>
  205. </div>
  206. <div style="float: left" ng-show="active === 'all'" >
  207. <div style="width: 355px;display: inline-block">
  208. <label class="control-label">请选择月份:</label>
  209. <span ng-click="addMouthOut(-1)" style="display: inline-block;
  210. width: 32px;
  211. height: 32px;
  212. border: 1px solid #ddd;
  213. text-align: center;
  214. line-height: 32px;
  215. cursor: pointer;
  216. vertical-align: middle;">
  217. <img src="static/img/vendor/images/arrow-left-d-l.png" width="24"/>
  218. </span>
  219. <span class="inputsIcon control-label" style="padding-right: 0px;display: inline-block;vertical-align: top;">
  220. <wui-date
  221. format="yyyy-mm"
  222. placeholder="请选择或输入日期"
  223. id="date3"
  224. btns="{'ok':'确定','now':'此刻'}"
  225. ng-model="thisMouthOut"
  226. >
  227. </wui-date>
  228. </span>
  229. <span ng-show="MouthOutShow" ng-click="addMouthOut(1)" style="display: inline-block;
  230. width: 32px;
  231. height: 32px;
  232. border: 1px solid #ddd;
  233. text-align: center;
  234. line-height: 32px;
  235. cursor: pointer;
  236. vertical-align: middle;"><img src="static/img/vendor/images/arrow-right-d-l.png" width="24"/></span>
  237. </div>
  238. <a ng-click="condition.$open=!condition.$open;changeDateZone(1)" title="自定义" ng-class="{'active':condition.dateZone=='-1'}" style="margin-left: 10px;display: inline-block;padding: 7px 12px;background: #3f84f6;color: #fff" >自定义</a>
  239. <div class="more-list more" ng-class="{'open': condition.$open}" ng-if="active === 'all'">
  240. <form class="form-inline">
  241. <div class="form-group ">
  242. <label>日期:</label>
  243. <div class="form-group input-group input-group-xs input-trigger">
  244. <input type="text" ng-model="condition.dateFrom"
  245. class="form-control" placeholder="从"
  246. datepicker-popup="yyyy-MM-dd" is-open="condition.$fromOpened"
  247. ng-required="true" max-date = "condition.dateTo"
  248. current-text="今天" clear-text="清除" close-text="关闭"
  249. datepicker-options="{formatDayTitle: 'yyyy年M月', formatMonth: 'M月', showWeeks: false}"
  250. ng-focus="openFilterDatePicker($event, condition, '$fromOpened')">
  251. <span class="input-group-btn">
  252. <button type="button" class="btn btn-default"
  253. ng-click="openFilterDatePicker($event, condition, '$fromOpened')">
  254. <i class="fa fa-calendar"></i>
  255. </button>
  256. </span>
  257. </div>
  258. <div class="form-group input-group input-group-xs input-trigger">
  259. <input type="text" ng-model="condition.dateTo"
  260. class="form-control" placeholder="到"
  261. datepicker-popup="yyyy-MM-dd" is-open="condition.$toOpened"
  262. ng-required="true" min-date = "condition.dateFrom"
  263. current-text="今天" clear-text="清除" close-text="关闭"
  264. datepicker-options="{formatDayTitle: 'yyyy年M月', formatMonth: 'M月', showWeeks: false}"
  265. ng-focus="openFilterDatePicker($event, condition, '$toOpened')">
  266. <span class="input-group-btn">
  267. <button type="button" class="btn btn-default"
  268. ng-click="openFilterDatePicker($event, condition, '$toOpened')">
  269. <i class="fa fa-calendar"></i>
  270. </button>
  271. </span>
  272. </div>
  273. </div>
  274. </form>
  275. </div>
  276. </div>
  277. <div class="col-xs-6" style="float: right;">
  278. <div class="search">
  279. <div class="form-group form-group-sm has-feedback" dropdown auto-close="outsideClick"
  280. on-toggle="searchAdvance=open">
  281. <input type="search" class="form-control input-sm" ng-model="keyword"
  282. ng-search="onSearch(keyword)" placeholder="输入单据编号、客户名称、物料名称搜索" style="width: 100%" ng-show="active !== 'all'"/>
  283. <a class="btn input-group-addon" href="javascript:void(0)" ng-click="onSearch(keyword)" ng-show="active !== 'all'">搜索</a>
  284. <input type="search" class="form-control input-sm" ng-model="keyword" ng-search="onSearch(keyword)" placeholder="供应商名称" style="width: 100%" ng-show="active === 'all' && !showNotCheck" />
  285. <a class="btn input-group-addon" ng-click="onSearch(keyword)" ng-show="active === 'all' && !showNotCheck">搜索</a>
  286. </div>
  287. </div>
  288. </div>
  289. </div>
  290. <div class="more-list more" ng-class="{'open': condition.$open}" ng-if="active !== 'all'">
  291. <form class="form-inline">
  292. <div class="form-group ">
  293. <label>日期:</label>
  294. <div class="btn-group btn-menu" dropdown is-open="condition.$dateZoneOpen">
  295. <ul class="dropdown-menu">
  296. <li><a ng-click="changeDateZone(1)">一个月内</a></li>
  297. <li><a ng-click="changeDateZone(6)">半年内</a></li>
  298. <li><a ng-click="changeDateZone()">半年前</a></li>
  299. </ul>
  300. </div>
  301. <div class="form-group input-group input-group-xs input-trigger">
  302. <input type="text" ng-model="condition.dateFrom"
  303. class="form-control" placeholder="从"
  304. datepicker-popup="yyyy-MM-dd" is-open="condition.$fromOpened"
  305. ng-required="true" max-date = "condition.dateTo"
  306. current-text="今天" clear-text="清除" close-text="关闭"
  307. datepicker-options="{formatDayTitle: 'yyyy年M月', formatMonth: 'M月', showWeeks: false}"
  308. ng-focus="openFilterDatePicker($event, condition, '$fromOpened')">
  309. <span class="input-group-btn">
  310. <button type="button" class="btn btn-default"
  311. ng-click="openFilterDatePicker($event, condition, '$fromOpened')">
  312. <i class="fa fa-calendar"></i>
  313. </button>
  314. </span>
  315. </div>
  316. <div class="form-group input-group input-group-xs input-trigger">
  317. <input type="text" ng-model="condition.dateTo"
  318. class="form-control" placeholder="到"
  319. datepicker-popup="yyyy-MM-dd" is-open="condition.$toOpened"
  320. ng-required="true" min-date = "condition.dateFrom"
  321. current-text="今天" clear-text="清除" close-text="关闭"
  322. datepicker-options="{formatDayTitle: 'yyyy年M月', formatMonth: 'M月', showWeeks: false}"
  323. ng-focus="openFilterDatePicker($event, condition, '$toOpened')">
  324. <span class="input-group-btn">
  325. <button type="button" class="btn btn-default"
  326. ng-click="openFilterDatePicker($event, condition, '$toOpened')">
  327. <i class="fa fa-calendar"></i>
  328. </button>
  329. </span>
  330. </div>
  331. </div>
  332. </form>
  333. </div>
  334. </div>
  335. </div>
  336. <div ng-if="active === 'all'">
  337. <table class="order-table block order-table2" ng-table="tableParams" width="100%" style="table-layout:fixed">
  338. <thead>
  339. <tr class="header">
  340. <th width="180">应付供应商名称</th>
  341. <th width="140">本期应付</th>
  342. <th width="140">本期未对账</th>
  343. <th width="140">本期已对账</th>
  344. <!--<th width="140">本月已付</th>-->
  345. <th width="140">应付总额</th>
  346. <th width="80">操作</th>
  347. </tr>
  348. </thead>
  349. <tbody ng-repeat="check in ALLList">
  350. <tr >
  351. <td style="color: #3f84f6">{{::check.vendorEnterprise.enName}}</td>
  352. <td ng-if="check.thisMonthCount.length > 0">
  353. <div ng-repeat="count in check.thisMonthCount">
  354. <span>{{count.currency}}:{{count.amount | number:2}}</span>
  355. </div>
  356. </td>
  357. <td ng-if="check.thisMonthCount.length === 0">-</td>
  358. <td ng-if="check.thisMonthTodoCount.length > 0">
  359. <div ng-repeat="count in check.thisMonthTodoCount">
  360. <span ng-if="count.amount > 0">{{count.currency}}:{{count.amount | number:2}}</span>
  361. </div>
  362. </td>
  363. <td ng-if="check.thisMonthTodoCount.length === 0">-</td>
  364. <td ng-if="check.thisMonthDoneCount.length > 0">
  365. <div ng-repeat="count in check.thisMonthDoneCount">
  366. <span ng-if="count.amount > 0">{{count.currency}}:{{count.amount | number:2}}</span>
  367. </div>
  368. </td>
  369. <td ng-if="check.thisMonthDoneCount.length === 0">-</td>
  370. <!--<td ng-if="check.apCheckAmounts.length > 0">-->
  371. <!--<div ng-repeat="count in check.apCheckAmounts">-->
  372. <!--<span ng-if="count.amount > 0">{{count.currency}}:{{count.amount | number:2}}</span>-->
  373. <!--</div>-->
  374. <!--</td>-->
  375. <!--<td ng-if="check.apCheckAmounts.length === 0">-</td>-->
  376. <td ng-if="check.totalCount.length > 0">
  377. <div ng-repeat="count in check.totalCount">
  378. <span ng-if="count.amount > 0">{{count.currency}}:{{count.amount | number:2}}</span>
  379. </div>
  380. </td>
  381. <td ng-if="check.totalCount.length === 0">-</td>
  382. <td style="color: #3f84f6;cursor: pointer" ng-click="goToMNs(check)">明细</td>
  383. </tr>
  384. </tbody>
  385. <tbody ng-if="!ALLList || ALLList.length == 0">
  386. <tr>
  387. <td colspan="6">
  388. <div id="empty">
  389. <div class="left_img">
  390. <a><img src="static/img/empty/uas_empty.png"></a>
  391. <a>B2B 商务</a>
  392. </div>
  393. </div>
  394. </td>
  395. </tr>
  396. </tbody>
  397. </table>
  398. </div>
  399. <div ng-if="active !== 'all'">
  400. <table class="order-table block" ng-table="tableParams">
  401. <thead>
  402. <tr class="header">
  403. <th width="150">对账期间</th>
  404. <th width="180">对账总额</th>
  405. <th width="180">对账人</th>
  406. </tr>
  407. </thead>
  408. <tbody ng-repeat="check in $data">
  409. <tr>
  410. <td class="first info" colspan="3">
  411. <div class="">
  412. <a href="javascript:void(0)" ng-if="!isUnread(check.id)">
  413. <i class="fa fa-circle-thin"></i>
  414. </a>
  415. <a href="javascript:void(0)" ng-if="isUnread(check.id)">
  416. <i class="fa fa-circle" style="color: #f40;"></i>
  417. </a>&nbsp;&nbsp;
  418. <span class="text-num" title="录单时间">{{::check.recordDate | date:'MM月dd日 HH:mm'}} <i class="fa fa-clock-o"></i></span>&nbsp;&nbsp;&nbsp;
  419. <span style="margin-left: 100px;width: 200px;display: inline-block;"><i class="fa fa-star" ng-class="{'text-default':check.status==201}"></i> {{::check.vendorName}}</span>
  420. <span style="margin-left: 200px;">单据编号:</span>
  421. <span class="text-num"><a ui-sref="fa.arCheck_detail({id:check.id})" title="点击查看详情" ng-click="setOrdersRead(check.id)" style="color: #5078cb">{{::check.code}}</a></span>
  422. </div>
  423. <div class="static">
  424. <p><span class="f14 text-num">{{::check.beginDate | date:'yyyy/MM/dd'}} - {{::check.endDate | date:'yyyy/MM/dd'}}</span></p>
  425. <p>
  426. <strong class="text-num">{{::(isUser?'-':(check.checkAmount | number:2))}}</strong>
  427. <span ng-if="!isUser" class="text-number">{{::check.currency}}</span>
  428. </p>
  429. <p style="text-align: center;margin-left: 0px">
  430. 对账人:{{::check.recorder}}
  431. </p>
  432. </div>
  433. </td>
  434. </tr>
  435. </tbody>
  436. <tbody ng-if="tableParams.total() == 0">
  437. <tr>
  438. <td colspan="3">
  439. <div id="empty">
  440. <div class="left_img">
  441. <a><img src="static/img/empty/uas_empty.png"></a>
  442. <a>B2B 商务</a>
  443. </div>
  444. <div class="right_link">
  445. </div>
  446. </div>
  447. </td>
  448. </tr>
  449. </tbody>
  450. </table>
  451. </div>
  452. </div>
  453. <div ng-hide="!showNotCheck" class="infoms add-apCheckList" >
  454. <form class="form-horizontal"
  455. style="padding-top: 10px; padding-bottom: 20px;">
  456. <div class="form-group form-group-sm form-group-inline">
  457. <div class="col-sm-6 control-label">
  458. <div style="text-align: left">
  459. <label>应付供应商:</label>
  460. <label style="text-align:left">
  461. {{suuorname}}
  462. </label>
  463. </div>
  464. <div style="text-align: left;margin-top: 20px">
  465. <label>本期应收:</label>
  466. <label style="text-align:left;vertical-align: top;">
  467. <div ng-if="dataInfo.thisMonthCount.length > 0" ng-repeat="count in dataInfo.thisMonthCount">
  468. <span>{{count.currency}}:{{count.amount | number:2}}</span>
  469. </div>
  470. <div ng-if="dataInfo.thisMonthCount.length === 0">
  471. 0
  472. </div>
  473. </label>
  474. </div>
  475. <div style="text-align: left;margin-top: 20px">
  476. <label>本期未对账:</label>
  477. <label style="text-align:left;vertical-align: top;">
  478. <div ng-if="dataInfo.thisMonthTodoCount.length > 0" ng-repeat="count in dataInfo.thisMonthTodoCount">
  479. <span>{{count.currency}}:{{count.amount | number:2}}</span>
  480. </div>
  481. <div ng-if="dataInfo.thisMonthTodoCount.length === 0">
  482. 0
  483. </div>
  484. </label>
  485. </div>
  486. <div style="text-align: left;margin-top: 20px">
  487. <label>本期已对账:</label>
  488. <label style="text-align:left;vertical-align: top;">
  489. <div ng-if="dataInfo.thisMonthDoneCount.length > 0" ng-repeat="count in dataInfo.thisMonthDoneCount">
  490. <span>{{count.currency}}:{{count.amount | number:2}}</span>
  491. </div>
  492. <div ng-if="dataInfo.thisMonthDoneCount.length === 0">
  493. 0
  494. </div>
  495. </label>
  496. </div>
  497. <!--<div style="text-align: left;margin-top: 20px">-->
  498. <!--<label>本期间已付总额:</label>-->
  499. <!--<label style="text-align:left;vertical-align: top;">-->
  500. <!--<div ng-if="dataInfo.apCheckAmounts.length > 0" ng-repeat="count in dataInfo.apCheckAmounts">-->
  501. <!--<span>{{count.currency}}:{{count.amount | number:2}}</span>-->
  502. <!--</div>-->
  503. <!--<div ng-if="dataInfo.apCheckAmounts.length === 0">-->
  504. <!--0-->
  505. <!--</div>-->
  506. <!--</label>-->
  507. <!--</div>-->
  508. <div style="text-align: left;margin-top: 20px">
  509. <label>应付总额:</label>
  510. <label style="text-align:left;vertical-align: top;">
  511. <div ng-if="dataInfo.totalCount.length > 0" ng-repeat="count in dataInfo.totalCount">
  512. <span>{{count.currency }}:{{count.amount | number:2}}</span>
  513. </div>
  514. <div ng-if="dataInfo.totalCount.length === 0">
  515. 0
  516. </div>
  517. </label>
  518. </div>
  519. </div>
  520. <div class="col-sm-6 control-label condition">
  521. <div>
  522. <label class="control-label">请选择月份:</label>
  523. <span ng-click="addMouth(-1)" style="display: inline-block;
  524. width: 32px;
  525. height: 32px;
  526. border: 1px solid #ddd;
  527. text-align: center;
  528. line-height: 32px;
  529. cursor: pointer;
  530. vertical-align: middle;">
  531. <img src="static/img/vendor/images/arrow-left-d-l.png" width="24"/>
  532. </span>
  533. <span class="control-label" style="padding-right: 5px;display: inline-block;vertical-align: middle;padding-top: 0;" ng-click="apCheckCondition.$open = false">
  534. <wui-date
  535. format="yyyy-mm"
  536. placeholder="请选择或输入日期"
  537. id="date4"
  538. btns="{'ok':'确定','now':'此刻'}"
  539. ng-model="thisMouth"
  540. >
  541. </wui-date>
  542. </span><span ng-show="MouthinShow" ng-click="addMouth(1)" style="display: inline-block;
  543. width: 32px;
  544. height: 32px;
  545. border: 1px solid #ddd;
  546. text-align: center;
  547. line-height: 32px;
  548. cursor: pointer;
  549. vertical-align: middle;">
  550. <img src="static/img/vendor/images/arrow-right-d-l.png" width="24"/></span>
  551. <label class="control-label com-check-radio" ng-click="apCheckCondition.$open = true" style="vertical-align: middle;padding-top: 0">
  552. <input type="radio" name="psa" ng-checked="apCheckCondition.$open === true" ng-model="apCheckCondition.$open" style="vertical-align: middle">自定义
  553. </label>
  554. </div>
  555. <div ng-hide="!apCheckCondition.$open" class="more open date fr apCheckCondition" style="margin-top: 14px;">
  556. <div class="form-inline">
  557. <div class="form-group">
  558. <div class="form-group input-group input-group-xs input-trigger">
  559. <input type="text" ng-model="apCheckCondition.dateFrom"
  560. class="form-control" placeholder="从"
  561. datepicker-popup="yyyy-MM-dd" is-open="apCheckCondition.$fromOpened"
  562. ng-required="true" max-date = "apCheckCondition.dateTo"
  563. current-text="今天" clear-text="清除" close-text="关闭"
  564. datepicker-options="{formatDayTitle: 'yyyy年M月', formatMonth: 'M月', showWeeks: false}"
  565. ng-focus="apCheckopenFilterDatePicker($event, apCheckCondition, '$fromOpened')"
  566. style="height: 26px">
  567. <span class="input-group-btn">
  568. <button type="button" class="btn btn-default"
  569. ng-click="apCheckopenFilterDatePicker($event, apCheckCondition, '$fromOpened')">
  570. <i class="fa fa-calendar"></i>
  571. </button>
  572. </span>
  573. </div>
  574. <em style="margin: 0 10px;display: inline-block">–</em>
  575. <div class="form-group input-group input-group-xs input-trigger">
  576. <input type="text" ng-model="apCheckCondition.dateTo"
  577. class="form-control" placeholder="到"
  578. datepicker-popup="yyyy-MM-dd" is-open="apCheckCondition.$toOpened"
  579. ng-required="true" min-date = "apCheckCondition.dateFrom"
  580. current-text="今天" clear-text="清除" close-text="关闭"
  581. datepicker-options="{formatDayTitle: 'yyyy年M月', formatMonth: 'M月', showWeeks: false}"
  582. ng-focus="apCheckopenFilterDatePicker($event, apCheckCondition, '$toOpened')" style="height: 26px">
  583. <span class="input-group-btn">
  584. <button type="button" class="btn btn-default"
  585. ng-click="apCheckopenFilterDatePicker($event, apCheckCondition, '$toOpened')">
  586. <i class="fa fa-calendar"></i>
  587. </button>
  588. </span>
  589. </div>
  590. </div>
  591. </div>
  592. </div>
  593. </div>
  594. </div>
  595. <div class="form-group form-group-sm form-group-inline">
  596. <div class="col-sm-12 text-right">
  597. <a ng-click="condition.$open2=!condition.$open2" class="text-simple"><span
  598. ng-bind="condition.$open2 ? '收起筛选条件' : '更多筛选条件'"></span><i
  599. class="fa fa-fw"
  600. ng-class="{'fa-angle-up': condition.$open2, 'fa-angle-down': !condition.$open2}"></i></a>
  601. <div class="btn-group btn-group-sm">
  602. <a class="btn btn-default" ng-click="searchOrder()" title="筛选"><i class="fa fa-search fa-fw btn-icon-left"></i>筛选</a>
  603. <a class="btn btn-default" ng-click="exportApcheckList()" title="导出Excel" ng-disabled="!data || data.length==0"><i class="fa fa-file-text fa-fw btn-icon-left"></i>导出</a>
  604. </div>
  605. </div>
  606. </div>
  607. <div class="form-group form-group-sm form-group-inline"
  608. ng-show="condition.$open2">
  609. <label class="col-sm-2 control-label">送货工厂:</label>
  610. <div class="col-sm-4">
  611. <div class="form-group form-group-sm has-feedback">
  612. <input type="search" class="form-control input-sm"
  613. ng-model="factory" placeholder="请输入送货工厂名称" /><span
  614. class="form-control-feedback text-simple"><i
  615. class="fa fa-search"></i></span>
  616. </div>
  617. </div>
  618. <label class="col-sm-2 control-label">税&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;率:</label>
  619. <div class="col-sm-4">
  620. <div class="form-group form-group-sm has-feedback">
  621. <input type="search" class="form-control input-sm"
  622. ng-model="taxRate" placeholder="请输入税率" /><span
  623. class="form-control-feedback text-simple"><i
  624. class="fa fa-search"></i></span>
  625. </div>
  626. </div>
  627. </div>
  628. <div class="form-group form-group-sm form-group-inline"
  629. ng-show="condition.$open2">
  630. <label class="col-sm-2 control-label">物料名称:</label>
  631. <div class="col-sm-4">
  632. <div class="form-group form-group-sm has-feedback">
  633. <input type="search" class="form-control input-sm"
  634. ng-model="prodTitle" placeholder="请输入物料名称" /><span
  635. class="form-control-feedback text-simple"><i
  636. class="fa fa-search"></i></span>
  637. </div>
  638. </div>
  639. <label class="col-sm-2 control-label">规&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;格:</label>
  640. <div class="col-sm-4">
  641. <div class="form-group form-group-sm has-feedback">
  642. <input type="search" class="form-control input-sm"
  643. ng-model="prodSpec" placeholder="请输入物料规格" /><span
  644. class="form-control-feedback text-simple"><i
  645. class="fa fa-search"></i></span>
  646. </div>
  647. </div>
  648. </div>
  649. <!--</div>-->
  650. </form>
  651. <!-- 标签scroll-table用于表头滚动 -->
  652. <div class="table-wrap" id="order-detail-list" scroll-table>
  653. <div class="table-header-wrap">
  654. <table class="table table-bordered">
  655. <tr>
  656. <th width="70">采购单</th>
  657. <th width="60">发货单</th>
  658. <th width="90">单据日期</th>
  659. <th width="60">验收单</th>
  660. <th width="70">物料编号</th>
  661. <th width="70">物料名称</th>
  662. <th width="70">规格型号</th>
  663. <th width="55">发货数量</th>
  664. <th width="100">验收数量</th>
  665. <th width="40">单价</th>
  666. <th width="40">税率</th>
  667. <th width="70">小计</th>
  668. <th width="100">
  669. 对账人<br />/日期
  670. </th>
  671. </tr>
  672. </table>
  673. </div>
  674. <div class="table-body-wrap">
  675. <table class="table table-bordered">
  676. <tr ng-repeat="check in data" ng-click="checkOne(check);getTotalMoney()" class="thAlign" style="height: 40px;">
  677. <td width="70">{{::check.ordercode}}</td>
  678. <td width="60">{{::check.sendcode}}</td>
  679. <td width="90">{{::check.pidate | date:'yyyy年MM月dd日' || '-'}}</td>
  680. <td width="60">{{::check.inoutno}}</td>
  681. <td width="70" title="{{check.prodcode}}">
  682. {{::check.prodcode}}
  683. </td>
  684. <td width="70" title="{{check.prodtitle}}">
  685. <div style="display: -webkit-box; text-overflow: ellipsis; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 3; -webkit-box-orient: vertical;">{{::check.prodtitle}}</div>
  686. </td>
  687. <td width="70" title="{{check.prodspec}}">
  688. <div style="display: -webkit-box; text-overflow: ellipsis; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 3; -webkit-box-orient: vertical;">{{::check.prodspec}}</div></td>
  689. <td width="55">{{::check.qty}}</td>
  690. <td width="100">{{::check.thischeckqty}}</td>
  691. <td width="40">{{::check.orderprice}}</td>
  692. <td width="40" align="center">{{::check.taxrate}}</td>
  693. <td width="70">{{::(check.orderprice || 0)*(check.thischeckqty || 0) | number:2}}</td>
  694. <td width="100" ng-if="check.haveChecked === 1">
  695. <div>{{::check.recorder || '-'}}</div>
  696. <div>{{::check.apCheckDate | date:'yyyy年MM月dd日' || '-'}}</div>
  697. </td>
  698. <td width="100" ng-if="check.haveChecked !== 1">
  699. 未对账
  700. </td>
  701. <!--<td width="100">-->
  702. <!--<div>{{::check.recorder || '-'}}</div>-->
  703. <!--<div>{{::check.apCheckDate | date:'yyyy年MM月dd日' || '-'}}</div>-->
  704. <!--</td>-->
  705. </tr>
  706. <tr ng-if="!data || data.length==0">
  707. <td colspan="11">
  708. <div class="empty-block">
  709. <i class="fa fa-exclamation-circle"></i>
  710. <p class="text-muted">没有对账数据,请先筛选</p>
  711. </div>
  712. </td>
  713. </tr>
  714. </table>
  715. </div>
  716. <div style="padding: 10px 20px">本期间应付总额:{{totalMoney | number:2 || 0}}</div>
  717. </div>
  718. </div>
  719. </div>
  720. <style>
  721. .order-table2 tbody td {
  722. text-align: center;
  723. padding: 20px 0
  724. }
  725. </style>
  726. <style>
  727. .wui-date-picker.left {
  728. margin-right : 0 !important;
  729. right: 0;
  730. left: auto
  731. }
  732. .add-apCheckList {
  733. background: #fff
  734. }
  735. .add-apCheckList input[type="checkbox"] {
  736. /*width: 16px;
  737. height: 16px*/
  738. }
  739. .add-apCheckList .table-wrap {
  740. overflow: hidden
  741. }
  742. .add-apCheckList .table-header-wrap {
  743. background: #f9f9f9;
  744. overflow-x: hidden;
  745. overflow-y: scroll;
  746. }
  747. .add-apCheckList .table-header-wrap table,.add-apCheckList .table-body-wrap table
  748. {
  749. width: 100%;
  750. table-layout: fixed;
  751. border-collapse: collapse;
  752. border-spacing: 0;
  753. margin-bottom: 0
  754. }
  755. .add-apCheckList .table-header-wrap th {
  756. text-align: center;
  757. }
  758. .add-apCheckList .table-body-wrap {
  759. max-height: 600px;
  760. overflow-x: auto;
  761. overflow-y: scroll;
  762. }
  763. .add-apCheckList td {
  764. word-break: break-all;
  765. text-align: center;
  766. }
  767. .add-apCheckList tbody {
  768. overflow: auto;
  769. }
  770. #order-detail-list .input-sm {
  771. border: #ccc 1px solid;
  772. }
  773. .infoms .has-feedback input[type="search"] {
  774. padding-right: 0 !important;
  775. }
  776. .infoms .table>tbody>tr>td{
  777. vertical-align: middle;
  778. }
  779. .infoms .form-horizontal .form-group-sm .control-label{
  780. font-size: 14px;
  781. }
  782. .infoms .form-group .form-control{
  783. font-size: 14px;
  784. }
  785. .wui-date.small .wui-date-picker {
  786. width: 260px
  787. }
  788. .wui-input {
  789. border: 1px solid #3f84f6;
  790. font-size: 14px;
  791. color: #3f84f6;
  792. font-weight: bold;
  793. }
  794. .wui-date-editor .iconfont {
  795. color: #3f84f6
  796. }
  797. .apCheckCondition ul {
  798. left: auto !important;
  799. right: 0;
  800. }
  801. </style>