apCheck.html 32 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009
  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: auto;
  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: -13px;
  104. margin-right: 1px;
  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. .block {
  116. position: relative;
  117. }
  118. </style>
  119. <style>
  120. .com_tab {
  121. height: 40px;
  122. margin-bottom: 10px;
  123. }
  124. .com_tab ul {
  125. width: 100%;
  126. margin: 0 auto;
  127. height: 40px;
  128. line-height: 40px;
  129. background: #fff;
  130. }
  131. .com_tab ul li {
  132. height: 40px;
  133. text-align: center;
  134. float: left;
  135. position: relative;
  136. min-width: 110px;
  137. }
  138. .com_tab:nth-of-type(1) ul li.active > a {
  139. border-bottom: #fff;
  140. background: #5078cb;
  141. color: #fff !important;
  142. }
  143. .com_tab ul li a {
  144. min-width: 110px;
  145. }
  146. .com_tab ul li > a {
  147. font-size: 14px;
  148. height: 40px;
  149. padding: 0 20px;
  150. display: inline-block;
  151. }
  152. .com_tab:nth-of-type(1) ul li::after {
  153. background:url('static/img/vendor/images/downicon.png');
  154. width: 11px;
  155. height: 6px;
  156. position: absolute;
  157. bottom: 0px;
  158. left: 50%;
  159. content: ' ';
  160. margin-left: -5px;
  161. display: none;
  162. }
  163. .com_tab ul li::after {
  164. background:url('static/img/vendor/images/downicon.png');
  165. width: 11px;
  166. height: 6px;
  167. position: absolute;
  168. bottom: 0px;
  169. left: 50%;
  170. content: ' ';
  171. margin-left: -5px;
  172. display: none;
  173. }
  174. .com_tab ul li.active:after {
  175. display: block;
  176. }
  177. .oder01 ul li.active a{
  178. border-bottom: 1px solid #fff;
  179. color: #f15601;
  180. }
  181. .oder01 ul li.active a em {
  182. color: #f15601;
  183. }
  184. .oder01 ul li a em {
  185. color: #323232
  186. }
  187. .screen {
  188. background: #fff;
  189. padding-top: 10px;
  190. padding-right: 11px;
  191. line-height: 32px;
  192. padding-left: 22px;
  193. width: 100%;
  194. height: 50px;
  195. position: relative;
  196. }
  197. .screen .sreach input {
  198. border: #5078cb 1px solid;
  199. height: 32px;
  200. width: 280px;
  201. box-shadow: none;
  202. padding-left: 10px;
  203. background: #fff;
  204. float: left;
  205. vertical-align: middle;
  206. font-size: 14px;
  207. }
  208. .screen .sreach a.seek {
  209. width: 58px;
  210. height: 32px;
  211. background: #5078cb;
  212. color: #fff;
  213. line-height: 32px;
  214. float: none;
  215. border-radius: 2px;
  216. vertical-align: unset;
  217. }
  218. .order-table {
  219. background: #fff;
  220. width: 100%;
  221. }
  222. .order-table .header > th {
  223. height: 38px;
  224. text-align: center;
  225. background: #fff;
  226. border-top: 1px solid #e8e8e8;
  227. border-bottom: 1px solid #e8e8e8;
  228. font-size: 14px;
  229. }
  230. .order-table .sep-row {
  231. height: 10px;
  232. }
  233. .order-table .selector {
  234. vertical-align: middle;
  235. margin: 0 0 2px 0;
  236. }
  237. .toolbar label {
  238. margin-right: 10px;
  239. margin-bottom: 0;
  240. }
  241. .toolbar .select_all {
  242. margin: 0 6px 0 10px;
  243. line-height: 20px;
  244. }
  245. .toolbar .btn {
  246. -moz-border-radius: 2px;
  247. margin-right: 5px;
  248. border: 1px solid #dcdcdc;
  249. border-radius: 2px;
  250. -webkit-border-radius: 2px;
  251. }
  252. .order-table .order-hd {
  253. background: #f5f5f5;
  254. height: 40px;
  255. line-height: 40px;
  256. }
  257. .order-table .order-hd td.first {
  258. padding-left: 20px;
  259. }
  260. .order-table .order-hd .order-main span {
  261. margin-right: 8px;
  262. }
  263. .order-table .order-hd .order-code {
  264. font-style: normal;
  265. font-family: verdana;
  266. }
  267. .order-table .order-hd .order-sum {
  268. position: relative;
  269. padding: 0 5px;
  270. }
  271. .order-table .order-hd .dropdown-toggle {
  272. line-height: 40px;
  273. display: block;
  274. color: #5078cb;
  275. /*padding: 0 10px;*/
  276. }
  277. .order-table .operates {
  278. display: none;
  279. }
  280. .order-table > tbody:hover .operates {
  281. display: block;
  282. }
  283. .order-table .order-bd {
  284. border-bottom: 1px solid #e6e6e6;
  285. }
  286. .order-table .order-bd > td {
  287. padding: 10px 5px;
  288. text-align: center;
  289. }
  290. .order-table .order-bd .product {
  291. padding-left: 20px;
  292. }
  293. .input-xs, .input-group-xs > .form-control, .input-group-xs > .input-group-addon, .input-group-xs > .input-group-btn > .btn {
  294. height: 26px;
  295. padding: 0 5px;
  296. font-size: 12px;
  297. line-height: 1.5;
  298. border-radius: 3px;
  299. }
  300. .order-table .order-hd .dropdown-toggle:hover + .order-snapshot {
  301. display: block;
  302. }
  303. .order-table .order-hd .order-snapshot{
  304. padding: 10px 15px;
  305. display: none;
  306. width: 250px;
  307. position: absolute;
  308. top: 32px;
  309. left: 39px;
  310. border: 1px solid rgba(0,0,0,0.15);
  311. -webkit-box-shadow: 0 0 5px rgba(0,0,0,0.3);
  312. -moz-box-shadow: 0 0 5px rgba(0,0,0,0.3);
  313. -o-box-shadow: 0 0 5px rgba(0,0,0,0.3);
  314. box-shadow: 0 0 5px rgba(0,0,0,0.3);
  315. }
  316. .order-snapshot .title {
  317. border-top: 1px dashed #ddd;
  318. }
  319. .order-snapshot .dl-horizontal dt {
  320. width: 60px;
  321. text-align: left;
  322. font-weight: normal;
  323. color: #999;
  324. padding: 4px 0;
  325. }
  326. .order-snapshot .dl-horizontal dd {
  327. margin-left: 80px;
  328. padding: 4px 0;
  329. }
  330. /*arrow*/
  331. .order-send {
  332. position: relative;
  333. }
  334. .order-send.arrow-border:before, .arrow-border:after {
  335. content: '';
  336. position: absolute;
  337. top: 20px;
  338. width: 0;
  339. height: 0;
  340. border: 7px solid transparent;
  341. }
  342. .order-send.arrow-border.arrow-bottom-right:before {
  343. content: '';
  344. position: absolute;
  345. left: -13px;
  346. border-bottom-color: #fff;
  347. border-right-color: #fff;
  348. margin-top: -10px;
  349. }
  350. .menu .new-dot {
  351. width: 20px;
  352. height: 20px;
  353. line-height: 20px;
  354. font-size: 12px;
  355. color: #fff;
  356. font-weight: inherit;
  357. top: -2px;
  358. }
  359. .f14{
  360. font-size:14px;
  361. }
  362. .screen .sreach input {
  363. width: 288px
  364. }
  365. .modal {
  366. position: fixed;
  367. top: 0;
  368. right: 0;
  369. bottom: 0;
  370. left: 0;
  371. z-index: 1050;
  372. display: none;
  373. overflow: hidden;
  374. -webkit-overflow-scrolling: touch;
  375. outline: 0;
  376. margin: 0 !important;
  377. }
  378. .modal-open .modal {
  379. overflow-x: hidden;
  380. overflow-y: auto;
  381. }
  382. #empty {
  383. padding: 70px 0;
  384. margin: 0 auto;
  385. text-align: center;
  386. }
  387. #empty .left_img {
  388. display: inline-block;
  389. color: #3f84f6;
  390. }
  391. #empty .left_img a {
  392. font-size: 25px;
  393. color: #3f84f6;
  394. }
  395. #empty .right_link p {
  396. margin: 0;
  397. font-size: 14px;
  398. color: #666;
  399. }
  400. #empty_info .empty_title {
  401. color: #3f84f6;
  402. font-size: 18px;
  403. }
  404. #empty_info .empty_explain {
  405. font-size: 16px;
  406. color: #999;
  407. }
  408. #empty_info .empty_explain .info {
  409. text-indent: -22px;
  410. }
  411. .f16 {
  412. font-size: 16px !important;
  413. }
  414. .f14 {
  415. font-size: 14px !important;
  416. }
  417. #empty_info {
  418. padding-top:20px;
  419. padding-left: 60px;
  420. padding-bottom: 40px;
  421. }
  422. table tbody tr td {
  423. border-bottom: #e8e8e8 1px solid;
  424. border-right: #e8e8e8 1px solid;
  425. font-size: 14px;
  426. color: #666;
  427. }
  428. .ng-table-pager::after {
  429. clear: both;
  430. content: ' ';
  431. zoom: 1;
  432. display: block;
  433. visibility: hidden;
  434. }
  435. .ng-table-pager {
  436. padding-right: 20px;
  437. padding-top: 50px;
  438. margin-right: 0 !important;
  439. }
  440. .text-mns {
  441. padding-right: 15px;
  442. position: absolute;
  443. bottom: 64px;
  444. right: 20px;
  445. font-size: 12px;
  446. }
  447. .Boom18 {
  448. bottom: 18px;
  449. }
  450. .fixed {
  451. position: absolute;
  452. left: 0px;
  453. top: 0px;
  454. width: 40px;
  455. }
  456. .order-table tbody:hover {
  457. border: 2px solid #3c7cf5
  458. }
  459. .order-table tbody:hover .order-bd:nth-last-of-type(1) {
  460. background: #f8fafe
  461. }
  462. .order-table .order-hdt {
  463. background: #f5f5f5;
  464. }
  465. </style>
  466. <!--<link rel="stylesheet" href="static/css/public.css">-->
  467. <link rel="stylesheet" href="static/css/wui.min.css">
  468. <div class="user_right fr" style="position: relative">
  469. <div class="com_tab">
  470. <ul class="fl">
  471. <li class="active"><a href="javascript:void(0)">B2B</a></li>
  472. <li><a ui-sref="pay_center" href="javascript:void(0)">优软商城</a></li>
  473. <li class="down-purchase" style="margin-right: 0;min-width: 80px" ng-hide="active === 'all'">
  474. <a href="#" style="min-width: 80px" ng-click="exportXls()" target="_self" title="导出Excel表格" class="blue f14"><i class="fa fa-file-text fa-fw"></i>导出</a>
  475. </li>
  476. <!--<li class="down-purchase" style="margin-right: 0;min-width: 80px" ng-hide="showNotCheck">-->
  477. <!--<a class="text-simple append" style="min-width: 80px" ui-sref="fa_apCheckList" title="新增对账单">-->
  478. <!--<i class="fa fa-plus-square fa-fw"></i>新增对账单-->
  479. <!--</a>-->
  480. <!--</li>-->
  481. </ul>
  482. </div>
  483. <div class="com_tab tab_top" style="margin-bottom: 0px">
  484. <ul>
  485. <li ng-class="{'active': active=='all'}" ng-click="setActive('all')"><a> 未对账</a></li>
  486. <li ng-class="{'active': active=='todo'}" ng-click="setActive('todo')"><a>待确认(<em ng-class="{'color-black': !unread.replied }" ng-bind="unread.replied || 0"></em>)</a></li>
  487. <li ng-class="{'active': active=='done'}" ng-click="setActive('done')"><a>已确认</a></li>
  488. <li ng-class="{'active': active=='end'}" ng-click="setActive('end')"><a>已作废(<em ng-class="{'color-black': !unread.cancelled }" ng-bind="unread.cancelled || 0"></em>)</a></li>
  489. </ul>
  490. </div>
  491. <div class="screen check-filter">
  492. <div class="radio-block date-radio" ng-if="active !== 'all'" style="width: 33%">
  493. 时间:
  494. <label class="com-check-radio">
  495. <input type="radio" id="oneMonth" name="date" ng-click="changeDateZone(1);condition.$open=false" checked>
  496. <label for="oneMonth"></label>
  497. 30天
  498. </label>
  499. <label class="com-check-radio">
  500. <input type="radio" id="threeMonth" name="date" ng-click="changeDateZone(3);condition.$open=false">
  501. <label for="threeMonth"></label>
  502. 90天
  503. </label>
  504. <label class="com-check-radio">
  505. <input type="radio" id="sixMonth" name="date" ng-click="changeDateZone(6);condition.$open=false">
  506. <label for="sixMonth"></label>
  507. 180天
  508. </label>
  509. <label class="com-check-radio">
  510. <input type="radio" id="autoMonth" name="date" ng-click="condition.$open=!condition.$open;changeDateZone(-1)">
  511. <label for="autoMonth"></label>
  512. 自定义
  513. </label>
  514. </div>
  515. <div class="sreach fr">
  516. <div ng-show="condition.$open" class="date fl">
  517. <div class="data-input">
  518. <input type="text" ng-model="condition.dateFrom"
  519. class="form-control select-adder" placeholder="起始时间"
  520. datepicker-popup="yyyy-MM-dd"
  521. is-open="condition.$fromOpened"
  522. max-date="condition.dateTo" current-text="今天" clear-text="清除" close-text="关闭"
  523. ng-focus="openFilterDatePicker($event, condition, '$fromOpened')"
  524. datepicker-options="{formatDayTitle: 'yyyy年M月', formatMonth: 'M月', showWeeks: false}"
  525. style="width: 130px"
  526. />
  527. <button class="open" ng-click="openFilterDatePicker($event, condition, '$fromOpened')"></button>
  528. </div>
  529. <em>–</em>
  530. <div class="data-input">
  531. <input type="text" ng-model="condition.dateTo"
  532. class="form-control select-adder" placeholder="结束时间"
  533. datepicker-popup="yyyy-MM-dd"
  534. is-open="condition.$toOpened"
  535. min-date="condition.dateFrom" current-text="今天" clear-text="清除" close-text="关闭"
  536. ng-focus="openFilterDatePicker($event, condition, '$toOpened')"
  537. datepicker-options="{formatDayTitle: 'yyyy年M月', formatMonth: 'M月', showWeeks: false}"
  538. style="width: 130px"
  539. />
  540. <button class="open" ng-click="openFilterDatePicker($event, condition, '$toOpened')"></button>
  541. </div>
  542. </div>
  543. <div class="sreach-input fr">
  544. <input type="search" placeholder="单据编号/客户名称/物料名称" class="form-control" ng-model="keyword" ng-search="onSearch(keyword)" ng-show="active !== 'all'"/>
  545. <input type="search" placeholder="客户名称" class="form-control" ng-model="keyword" ng-search="onSearch(keyword)" ng-show="active === 'all'"/>
  546. <a class="seek" href="javascript:void(0)" ng-click="onSearch(keyword)">搜索</a>
  547. </div>
  548. </div>
  549. </div>
  550. <div ng-hide="showNotCheck">
  551. <!--<div ng-show="active === 'all'">-->
  552. <!--<table class="order-table block order-table2" ng-table="tableParams" width="100%" style="table-layout:fixed">-->
  553. <!--</table>-->
  554. <!--</div>-->
  555. <div >
  556. <table class="order-table block" ng-class="{'order-table2': active === 'all'}" ng-table="tableParams" ng-table="tableParams" width="100%" style="table-layout:fixed">
  557. <thead ng-show="active !== 'all'">
  558. <tr class="header">
  559. <th width="230">对账期间</th>
  560. <th width="180">对账总额</th>
  561. <th width="180">明细条目</th>
  562. <th width="100">商品总数</th>
  563. <th width="100">对账结果</th>
  564. <th width="100">操作</th>
  565. </tr>
  566. </thead>
  567. <tbody ng-show="active !== 'all'" ng-repeat="check in $data">
  568. <tr class="order-bd order-hdt">
  569. <td colspan="6" style="text-align: left">
  570. <a href="javascript:void(0)" ng-if="!isUnread(check.id)" class="circle-icon">
  571. 已读
  572. </a>
  573. <a href="javascript:void(0)" ng-if="isUnread(check.id)" class="no-circle-icon">
  574. 未读
  575. </a>
  576. <span class="text-num text-bold;" style="font-weight:bold" title="录单时间">日期:{{::check.recordDate | date:'MM月dd日 HH:mm'}}</span>
  577. &nbsp;&nbsp;&nbsp;
  578. <span>
  579. <!--<i class="fa fa-star" ng-class="{'text-default':check.status==201}"></i>-->
  580. <img src="static/img/user/images/shop_home.png" style="margin-right: 5px">{{::check.custName}}</span>
  581. <span style="margin-left: 100px;">单据编号:</span>
  582. <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>
  583. </td>
  584. </tr>
  585. <tr class="order-bd" style="padding: 15px 0 ">
  586. <td class="first info" colspan="1" style="text-align: left">
  587. <div class="static">
  588. <p><span class="f14 text-num">{{::check.beginDate | date:'yyyy/MM/dd'}} - {{::check.endDate | date:'yyyy/MM/dd'}}</span></p>
  589. </div>
  590. </td>
  591. <td>
  592. <p>
  593. <strong class="text-num">{{::(isUser?'-':(check.checkAmount | number:2))}}</strong>
  594. <span ng-if="!isUser" class="text-number">{{::check.currency}}</span>
  595. </p>
  596. </td>
  597. <td>
  598. <p>
  599. <strong class="text-num">{{::check.items.length}}</strong> 条<br>
  600. </p>
  601. </td>
  602. <td>
  603. <p>
  604. <strong class="text-num">{{getTotalProd(check) | number}}</strong> <i class="fa fa-cubes"></i>
  605. </p>
  606. </td>
  607. <td class="status">
  608. <div ng-if="check.checkStatus == '未对账'" class="text-center text-muted f14"><br>未对账!</div>
  609. <div></div>
  610. <div ng-if="check.checkStatus == '已确认'" class="text-center text-muted f14">
  611. <br> <i class="fa fa-check-square-o"></i> 已确认
  612. </div>
  613. <div ng-if="check.checkStatus == '不同意'" class="text-center text-muted f14">
  614. <br> <i class="fa fa-check-square-o"></i> 不同意
  615. </div>
  616. <div ng-if="check.checkStatus == '已作废'" class="text-center text-muted f14">
  617. <br> <i class="fa fa-check-square-o"></i> 已作废
  618. </div>
  619. </td>
  620. <td>
  621. <div ng-hide="check.status" class="block">
  622. <span class="text-trans error">未提交</span>
  623. </div>
  624. <div ng-show="check.status" class="block">
  625. <span class="text-trans success">已提交</span>
  626. </div>
  627. <div class="" style="margin-top: 33px;margin-right: 20px;">
  628. <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>
  629. </div>
  630. <!-- <a ui-sref="fa.apCheck_detail({id:check.id})" class="operate operate-undo text-center"
  631. target="_blank">查看详情</a> -->
  632. </td>
  633. </tr>
  634. </tbody>
  635. <thead ng-show="active === 'all'">
  636. <tr class="header">
  637. <th width="313">客户名称</th>
  638. <th width="250">上次对账时间</th>
  639. <th width="250">未对账总额</th>
  640. <th width="160">操作</th>
  641. </tr>
  642. </thead>
  643. <tbody ng-show="active === 'all'" ng-repeat="check in ALLList">
  644. <tr >
  645. <td style="color: #3f84f6">{{::check.myEnterprise.enName}}</td>
  646. <td ng-if="check.lastCheckDate">{{::check.lastCheckDate | date : 'MM月dd日 HH:mm'}}</td>
  647. <td ng-if="!check.lastCheckDate">-</td>
  648. <td>{{::check.uncheckedCount || '-'}}</td>
  649. <td style="color: #3f84f6;cursor: pointer" ng-click="goToMNs(check)">立即对账</td>
  650. </tr>
  651. </tbody>
  652. <tbody ng-if="active !== 'all' && tableParams.total() == 0">
  653. <tr>
  654. <td colspan="6">
  655. <div id="empty">
  656. <div class="left_img">
  657. <a><img src="static/img/all/empty-cart.png"></a>
  658. <a>B2B 商务</a>
  659. </div>
  660. <div class="right_link">
  661. <p ng-if="active != 'all'">暂无对账信息!</p>
  662. <p ng-if="active == 'all'">您还未生成对账单,请立即新增对账!</p>
  663. <!--<a ng-if="active == 'all'" ui-sref="fa_apCheckList"><i class="fa fa-plus-square fa-fw"></i> 新增对账单</a>-->
  664. </div>
  665. </div>
  666. </td>
  667. </tr>
  668. </tbody>
  669. <tbody ng-if="active === 'all' && ALLList.length === 0">
  670. <tr>
  671. <td colspan="4">
  672. <div class="empty">
  673. <div class="left_img">
  674. <a><img src="static/img/all/empty-cart.png"></a>
  675. <a>B2B 商务</a>
  676. </div>
  677. <div class="right_link">
  678. <p ng-if="active != 'all'">暂无对账信息!</p>
  679. <p ng-if="active == 'all'">您还未生成对账单,请立即新增对账!</p>
  680. <!--<a ng-if="active == 'all'" ui-sref="fa_apCheckList"><i class="fa fa-plus-square fa-fw"></i> 新增对账单</a>-->
  681. </div>
  682. </div>
  683. </td>
  684. </tr>
  685. </tbody>
  686. </table>
  687. </div>
  688. </div>
  689. <div ng-hide="!showNotCheck" class="infoms add-apCheckList" >
  690. <form class="form-horizontal"
  691. style="padding-top: 10px; padding-bottom: 20px;">
  692. <div class="form-group form-group-sm form-group-inline">
  693. <label class="col-sm-1 control-label">客&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;户:</label>
  694. <div class="col-sm-7 control-label" style="text-align:left">
  695. {{suuorname}}
  696. </div>
  697. <label class="col-sm-2 control-label">请选择月份:</label>
  698. <div class="col-sm-2" style="padding-right: 5px">
  699. <wui-date
  700. format="yyyy-mm"
  701. placeholder="请选择或输入日期"
  702. id="date4"
  703. btns="{'ok':'确定','now':'此刻'}"
  704. ng-model="thisMouth"
  705. >
  706. </wui-date>
  707. </div>
  708. </div>
  709. <div class="form-group form-group-sm form-group-inline">
  710. <div class="col-sm-12 text-right">
  711. <a ng-click="condition.$open=!condition.$open" class="text-simple"><span
  712. ng-bind="condition.$open ? '收起筛选条件' : '更多筛选条件'"></span><i
  713. class="fa fa-fw"
  714. ng-class="{'fa-angle-up': condition.$open, 'fa-angle-down': !condition.$open}"></i></a>
  715. <div class="btn-group btn-group-sm">
  716. <a class="btn btn-default" ng-click="searchOrder()" title="筛选"><i class="fa fa-search fa-fw btn-icon-left"></i>筛选</a>
  717. <a class="btn btn-default" ng-click="createApCheck(check.$selected)" ng-disabled="!data || data.length==0"><i class="fa fa-check-circle-o fa-fw btn-icon-left"></i>对账</a>
  718. <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>
  719. </div>
  720. </div>
  721. </div>
  722. <div class="form-group form-group-sm form-group-inline"
  723. ng-show="condition.$open">
  724. <!--<label class="col-sm-2 control-label">应付供应商:</label>-->
  725. <!--<div class="col-sm-4">-->
  726. <!--<div class="form-group form-group-sm has-feedback">-->
  727. <!--<input type="search" class="form-control input-sm"-->
  728. <!--ng-model="receiveName" placeholder="可用应付供应商名称筛选" /><span-->
  729. <!--class="form-control-feedback text-simple"><i-->
  730. <!--class="fa fa-search"></i></span>-->
  731. <!--</div>-->
  732. <!--</div>-->
  733. <!--ng-show="condition.$open">-->
  734. <label class="col-sm-2 control-label">税率:</label>
  735. <div class="col-sm-4">
  736. <div class="form-group form-group-sm has-feedback">
  737. <input type="search" class="form-control input-sm"
  738. ng-model="taxRate" placeholder="请输入税率" /><span
  739. class="form-control-feedback text-simple"><i
  740. class="fa fa-search"></i></span>
  741. </div>
  742. </div>
  743. <label class="col-sm-2 control-label">送货工厂:</label>
  744. <div class="col-sm-4">
  745. <div class="form-group form-group-sm has-feedback">
  746. <input type="search" class="form-control input-sm"
  747. ng-model="factory" placeholder="请输入送货工厂名称" /><span
  748. class="form-control-feedback text-simple"><i
  749. class="fa fa-search"></i></span>
  750. </div>
  751. </div>
  752. </div>
  753. <div class="form-group form-group-sm form-group-inline"
  754. ng-show="condition.$open">
  755. <label class="col-sm-2 control-label">物料名称:</label>
  756. <div class="col-sm-4">
  757. <div class="form-group form-group-sm has-feedback">
  758. <input type="search" class="form-control input-sm"
  759. ng-model="prodTitle" placeholder="请输入物料名称" /><span
  760. class="form-control-feedback text-simple"><i
  761. class="fa fa-search"></i></span>
  762. </div>
  763. </div>
  764. <label class="col-sm-2 control-label">规&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;格:</label>
  765. <div class="col-sm-4">
  766. <div class="form-group form-group-sm has-feedback">
  767. <input type="search" class="form-control input-sm"
  768. ng-model="prodSpec" placeholder="请输入物料规格" /><span
  769. class="form-control-feedback text-simple"><i
  770. class="fa fa-search"></i></span>
  771. </div>
  772. </div>
  773. </div>
  774. <!--<div class="form-group form-group-sm form-group-inline"-->
  775. <!---->
  776. <!--</div>-->
  777. </form>
  778. <!-- 标签scroll-table用于表头滚动 -->
  779. <div class="table-wrap" id="order-detail-list" scroll-table>
  780. <div class="table-header-wrap">
  781. <table class="table table-bordered">
  782. <tr>
  783. <th width="36" style="vertical-align: middle;">
  784. <input type="checkbox" name="checkbox" ng-model="checkboxes.checked" ng-click="checkAll()"></th>
  785. <th width="100">本次<br>对账数</th>
  786. <!--<th width="70">客户<br>名称</th>-->
  787. <th width="60">单据<br>编号</th>
  788. <th width="60">发货<br>单号</th>
  789. <th width="35">序号</th>
  790. <th width="60">类型</th>
  791. <th width="60">单据<br>日期</th>
  792. <th width="90">应付<br>供应商</th>
  793. <th width="70">客户<br>采购单</th>
  794. <th width="65">客户<br>料号</th>
  795. <th width="70">客户物<br>料名称</th>
  796. <th width="70">客户规<br>格型号</th>
  797. <th width="65">送货<br>工厂</th>
  798. <th width="55">数量</th>
  799. <th width="40">单价</th>
  800. <th width="30">币别</th>
  801. <th width="40">税率</th>
  802. <th width="60">金额</th>
  803. <th width="70">本次对<br>账金额</th>
  804. </tr>
  805. </table>
  806. </div>
  807. <div class="table-body-wrap">
  808. <table class="table table-bordered">
  809. <tr ng-repeat="check in data"
  810. class="thAlign" style="height: 40px;">
  811. <td width="36" style="text-align: center;vertical-align: middle;"><input
  812. ng-model="check.$selected" name="checkbox"
  813. ng-click="checkOne(check)" ng-change="getTotalMoney()"
  814. type="checkbox"></td>
  815. <td width="100"><input ng-model="check.thischeckqty"
  816. type="number" max="data.maxThisCheckQty"
  817. min="data.minThisCheckQty" ng-change="getTotalMoney()"
  818. style="width: 75px;" class=" input-sm text-center"></td>
  819. <!--<td width="70" title="{{check.custname}}"><div-->
  820. <!--style="display: -webkit-box; text-overflow: ellipsis; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 3; -webkit-box-orient: vertical;">{{::check.custname}}</div></td>-->
  821. <td width="60">{{::check.inoutno}}</td>
  822. <td width="60">{{::check.sendcode}}</td>
  823. <td width="35" align="center">{{::check.detno}}</td>
  824. <td width="60">{{::check.piclass}}</td>
  825. <td width="60">{{::check.pidate | date:'yyyy-MM-dd' }}</td>
  826. <td width="90" title="{{check.receivename}}">
  827. <div
  828. style="display: -webkit-box; text-overflow: ellipsis; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 3; -webkit-box-orient: vertical;">{{::check.receivename}}</div>
  829. </td>
  830. <td width="70">{{::check.ordercode}}</td>
  831. <td width="65">{{::check.prodcode}}</td>
  832. <td width="70" title="{{check.prodtitle}}">
  833. <div
  834. style="display: -webkit-box; text-overflow: ellipsis; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 3; -webkit-box-orient: vertical;">{{::check.prodtitle}}</div>
  835. </td>
  836. <td width="70" title="{{check.prodspec}}"><div
  837. style="display: -webkit-box; text-overflow: ellipsis; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 3; -webkit-box-orient: vertical;">{{::check.prodspec}}</div></td>
  838. <td width="65">{{::check.factory}}</td>
  839. <td width="55">{{::check.qty}}</td>
  840. <td width="40">{{::check.orderprice}}</td>
  841. <td width="30">{{::check.currency}}</td>
  842. <td width="40" align="center">{{::check.taxrate}}</td>
  843. <td width="60">{{::(check.qty || 0)*(check.orderprice || 0) | number:2}}</td>
  844. <td width="60">{{::(check.orderprice || 0)*(check.thischeckqty || 0) | number:2}}</td>
  845. </tr>
  846. <tr ng-if="!data || data.length==0">
  847. <td colspan="19">
  848. <div class="empty-block">
  849. <i class="fa fa-exclamation-circle"></i>
  850. <p class="text-muted">没有对账数据,请先筛选</p>
  851. </div>
  852. </td>
  853. </tr>
  854. </table>
  855. </div>
  856. <div style="padding: 10px 20px">总金额合计:{{totalMoney | number:2 || 0}}</div>
  857. </div>
  858. </div>
  859. <div ng-if="infoCommon.totalElement > 0 && !showNotCheck" class="text-mns text-right" ng-class="infoCommon.totalElement > 20 ? '': 'Boom18'">
  860. 显示&nbsp;{{(infoCommon .page - 1 ) * infoCommon.size + 1}}-{{infoCommon.all >= 20 ? infoCommon.page * infoCommon.size: (infoCommon.page - 1 ) * infoCommon.size + infoCommon.all}}&nbsp;条,共&nbsp;{{infoCommon.totalElement}}&nbsp;条
  861. </div>
  862. </div>
  863. <style>
  864. .order-table2 tbody td {
  865. text-align: center;
  866. padding: 20px 0
  867. }
  868. </style>
  869. <style>
  870. .wui-date-picker.left {
  871. margin-right : 0 !important;
  872. right: 0;
  873. left: auto
  874. }
  875. .wui-date-picker.left table tbody tr td {
  876. border: 0
  877. }
  878. .add-apCheckList {
  879. background: #fff
  880. }
  881. .add-apCheckList input[type="checkbox"] {
  882. /*width: 16px;
  883. height: 16px*/
  884. }
  885. .add-apCheckList .table-wrap {
  886. overflow: hidden
  887. }
  888. .add-apCheckList .table-header-wrap {
  889. background: #f9f9f9;
  890. overflow-x: hidden;
  891. overflow-y: scroll;
  892. }
  893. .add-apCheckList .table-header-wrap table,.add-apCheckList .table-body-wrap table
  894. {
  895. width: 100%;
  896. table-layout: fixed;
  897. border-collapse: collapse;
  898. border-spacing: 0;
  899. margin-bottom: 0
  900. }
  901. .add-apCheckList .table-header-wrap th {
  902. text-align: center;
  903. }
  904. .add-apCheckList .table-body-wrap {
  905. max-height: 600px;
  906. overflow-x: auto;
  907. overflow-y: scroll;
  908. }
  909. .add-apCheckList td {
  910. word-break: break-all;
  911. text-align: center;
  912. }
  913. .add-apCheckList tbody {
  914. overflow: auto;
  915. }
  916. #order-detail-list .input-sm {
  917. border: #ccc 1px solid;
  918. }
  919. .infoms .has-feedback input[type="search"] {
  920. padding-right: 0 !important;
  921. }
  922. .infoms .table>tbody>tr>td{
  923. vertical-align: middle;
  924. }
  925. .form-horizontal .form-group {
  926. margin-right: 0px;
  927. margin-left: 0px;
  928. }
  929. .infoms .form-horizontal .form-group-sm .control-label{
  930. font-size: 14px;
  931. }
  932. .infoms .form-group .form-control{
  933. font-size: 14px;
  934. }
  935. .wui-date.small .wui-date-picker {
  936. width: 260px
  937. }
  938. .empty {
  939. padding: 70px 0;
  940. margin: 0 auto;
  941. text-align: center;
  942. background: #fff;
  943. }
  944. .empty .left_img {
  945. display: inline-block;
  946. color: #3f84f6;
  947. }
  948. .empty .left_img a {
  949. font-size: 25px;
  950. color: #3f84f6;
  951. }
  952. .empty .right_link p {
  953. margin: 0;
  954. font-size: 14px;
  955. color: #666;
  956. }
  957. </style>