arCheck.html 30 KB

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