invoiceReceivables.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  1. <!-- include 'header' -->
  2. <link rel=stylesheet href="<?= WEB_SITE_GLOBAL ?>css/jquery.validator.css">
  3. <script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>js/jquery.validator.min.js"></script>
  4. <script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>js/zh-CN.js"></script>
  5. <script src="<?= WEB_SITE_GLOBAL ?>js/invoice.validator.js"></script>
  6. <script src="<?= WEB_SITE_GLOBAL ?>js/invoice.js"></script>
  7. <body>
  8. <div class="mainLayout">
  9. <div class="mainMenu">
  10. <div class="menuItem">
  11. <a href="#" class="mLogo">CLD</a>
  12. <ul>
  13. <!-- include 'menuReceipt' -->
  14. </ul>
  15. </div>
  16. </div>
  17. <div class="warpContent">
  18. <div class="subMenu fL">
  19. <div class="menuItem">
  20. <!-- include 'invoiceMenu' -->
  21. </div>
  22. </div>
  23. <div class="adminContent autoHeight">
  24. <div class="borad-menu">
  25. <a href="#inputbill" data-toggle="modal" class="invoice">录入收款</a>
  26. </div>
  27. <div class="borad-news">
  28. <div class="saeaList">
  29. <div class="clearfix">
  30. <legend><div class="fR"><a href="/invoiceAS">查看所有</a></div>未入账发票</legend>
  31. <!-- if !empty({{invoiceUnAccount}}) -->
  32. <div class="input-append">
  33. <form action="/invoiceReceivables" id="ira" method="post">
  34. <input name="invoiceTC" class="datepicker-here span6" placeholder="输入开票单位查询" data-range="true" data-multiple-dates-separator=" - " data-language="zh" type="text">
  35. <input type="submit" value="查询" class="btn btn-small">
  36. </form>
  37. </div>
  38. <table class="table table-bordered table-condensed">
  39. <thead><tr><th>开票单位(抬头)</th><th>开票金额</th><th>提交开票</th><th>出票</th><th>开票流水号</th><th width="80">入账</th></tr></thead>
  40. <tbody>
  41. <!-- loop invoiceUnAccount -->
  42. <tr>
  43. <td><!-- if !empty({{invoiceUnAccount' value.invoiceType}}) -->
  44. {{invoiceUnAccount' value.invoiceCompany}}
  45. <!-- else -->
  46. {{invoiceUnAccount' value.invoiceTitle}}
  47. <!-- endif -->
  48. </td>
  49. <td>
  50. <!-- if !empty({{invoiceUnAccount' value.invoiceType}}) -->
  51. <b>¥{{invoiceUnAccount' value.invoicePrice}}</b><sup>专</sup>
  52. <!-- else -->
  53. <b>¥{{invoiceUnAccount' value.invoicePrice}}</b>
  54. <!-- endif -->
  55. </td>
  56. <td>{{invoiceUnAccount' value.categoryName}}{{invoiceUnAccount' value.userName}} {{invoiceUnAccount' value.date}}</td>
  57. <td>{{invoiceUnAccount' value.lastApprover.username}}&nbsp;{{invoiceUnAccount' value.printTime}}</td>
  58. <td>
  59. <a href="#invdetail" node-invoice='INFO' data-isKey="{{invoiceUnAccount' value.iidKeyUrl}}" data-toggle="modal">{{invoiceUnAccount' value.invoiceSerial}}</a>
  60. </td>
  61. <td>
  62. <a class="button btn-block" href="#recorded" node-invoiceReceivables='INFO' data-isKey="{{invoiceUnAccount' value.iidKeyUrl}}" data-toggle="modal">入账</a>
  63. </td>
  64. </tr>
  65. <!-- endloop -->
  66. </tbody>
  67. </table>
  68. <!-- else -->
  69. <blockquote><p class="colGray">暂时未入账发票</p></blockquote>
  70. <!-- endif -->
  71. </div>
  72. <div class="clearfix">
  73. <legend><div class="fR"><a href="/invoiceReceivablesAS">查看所有</a></div>最近认领&amp;录入</legend>
  74. <!-- if !empty({{receivablesInput}}) -->
  75. <table class="table table-bordered table-condensed">
  76. <tbody>
  77. <tr><th class="taC" width="70">收款金额</th><th class="taC">银行到账信息</th><th class="taC">银行/到账时间</th><th class="taC">收款录入</th><th class="taC">收款认领</th><th class="taC">开票单位</th><th class="taC" width="80">绑定发票</th></tr>
  78. <!-- loop receivablesInput -->
  79. <tr>
  80. <td><b>¥{{receivablesInput' value.receivablesPrice}}</b></td>
  81. <td>{{receivablesInput' value.receivablesMessage}}</td>
  82. <td>{{receivablesInput' value.receivablesBank}}<br>{{receivablesInput' value.receivablesDate}}</td>
  83. <td>{{receivablesInput' value.inputStaff}} {{receivablesInput' value.date}}<br>
  84. <!-- if {{receivablesInput' value.inputType}}==1 -->
  85. 办事处待认领款项
  86. <!-- else -->
  87. 公共待认领款项
  88. <!-- endif -->
  89. </td>
  90. <td>
  91. <!-- if {{receivablesInput' value.receivablesStaff}}!='PUBLIC' -->
  92. {{receivablesInput' value.receivablesCategory.1}}-{{receivablesInput' value.receivablesStaff.1}}<br>
  93. {{receivablesInput' value.confirmTime}}
  94. <!-- endif -->
  95. </td>
  96. <td>
  97. {{receivablesInput' value.recepitTitleMark}}
  98. </td>
  99. <td>
  100. <!-- if {{receivablesInput' value.bindStatus}}==0&&{{receivablesInput' value.receivablesStaff}}!='PUBLIC' -->
  101. <a class="button btn-block" href="#search-invoice" bind-invoice='receivables' node-key="{{receivablesInput' value.iridKey}}" data-toggle="modal">查询发票</a>
  102. <!-- endif -->
  103. </td>
  104. </tr>
  105. <!-- endloop -->
  106. </tbody>
  107. </table>
  108. <!-- else -->
  109. <blockquote><p class="colGray">暂时没有最近认领的收款</p></blockquote>
  110. <!-- endif -->
  111. </div>
  112. <div class="clearfix">
  113. <legend>最近入账</legend>
  114. <!-- if !empty({{receivablesList}}) -->
  115. <table class="table table-bordered table-condensed">
  116. <tbody>
  117. <tr><th class="taC" width="70">收款金额</th><th class="taC">银行到账信息</th><th class="taC">银行/到账时间</th>
  118. <th class="taC">开票金额</th><th class="taC">开票单位</th><th class="taC">开票流水号</th></tr>
  119. <!-- loop receivablesList -->
  120. <tr>
  121. <td><b>¥{{receivablesList' value.receivablesPrice}}</b></td>
  122. <td>{{receivablesList' value.receivablesMessage}}</td>
  123. <td>{{receivablesList' value.receivablesBank}} {{receivablesList' value.receivablesDate}}</td>
  124. <td>{{receivablesList' value.invoiceDetail.invoicePrice}}</td>
  125. <td>
  126. <!-- if !empty({{receivablesList' value.invoiceDetail.invoiceType}}) -->
  127. {{receivablesList' value.invoiceDetail.invoiceCompany}}
  128. <!-- else -->
  129. {{receivablesList' value.invoiceDetail.invoiceTitle}}
  130. <!-- endif -->
  131. </td>
  132. <td><a href="#invdetail" node-invoice='INFO' data-isKey="{{receivablesList' value.invoiceDetail.iidKeyUrl}}" data-toggle="modal">{{receivablesList' value.invoiceDetail.invoiceSerial}}</a></td>
  133. </tr>
  134. <!-- endloop -->
  135. </tbody>
  136. </table>
  137. <!-- else -->
  138. <blockquote><p class="colGray">暂时没有最近入账</p></blockquote>
  139. <!-- endif -->
  140. </div>
  141. <div class="clearfix">
  142. <legend><div class="fR"><a href="/invoiceAS">查看所有</a></div>部分入账发票({{ieaCount}})</legend>
  143. <!-- if !empty({{invoiceExistAccount}}) -->
  144. <table class="table table-bordered table-condensed">
  145. <thead><tr><th>开票单位(抬头)</th><th>开票金额</th><th>提交开票</th>
  146. <th>已入账金额</th>
  147. <th>剩余入账金额</th>
  148. <th>开票流水号</th><th width="80">入账</th></tr></thead>
  149. <tbody>
  150. <!-- loop invoiceExistAccount -->
  151. <tr>
  152. <td>
  153. <!-- if !empty({{invoiceUnAccount' value.invoiceType}}) -->
  154. {{invoiceUnAccount' value.invoiceCompany}}
  155. <!-- else -->
  156. {{invoiceUnAccount' value.invoiceTitle}}
  157. <!-- endif -->
  158. </td>
  159. <td>
  160. <!-- if !empty({{invoiceUnAccount' value.invoiceType}}) -->
  161. <b>¥{{invoiceUnAccount' value.invoicePrice}}</b><sup>专</sup>
  162. <!-- else -->
  163. <b>¥{{invoiceUnAccount' value.invoicePrice}}</b>
  164. <!-- endif -->
  165. </td>
  166. <td>{{invoiceUnAccount' value.categoryName}}{{invoiceUnAccount' value.userName}} {{invoiceUnAccount' value.date}}</td>
  167. <td>{{invoiceUnAccount' value.existAccount}}</td>
  168. <td>{{invoiceUnAccount' value.balance}}</td>
  169. <td>
  170. <a href="#invdetail" node-invoice='INFO' data-isKey="{{invoiceUnAccount' value.iidKeyUrl}}" data-toggle="modal">{{invoiceUnAccount' value.invoiceSerial}}</a>
  171. </td>
  172. <td>
  173. <a class="button btn-block" href="#recorded" node-invoiceReceivables='INFO' data-isKey="{{invoiceUnAccount' value.iidKeyUrl}}" data-toggle="modal">入账</a>
  174. </td>
  175. </tr>
  176. <!-- endloop -->
  177. </tbody>
  178. </table>
  179. <!-- else -->
  180. <blockquote><p class="colGray">暂时没有部分入账发票</p></blockquote>
  181. <!-- endif -->
  182. </div>
  183. </div>
  184. </div>
  185. </div>
  186. </div>
  187. </div>
  188. <!--弹出(发票详情)-->
  189. <div class="modal fade" id="invdetail">
  190. <div id="nc"></div>
  191. </div>
  192. <!--弹出发票详情-->
  193. <div class="modal hide fade" id="recorded">
  194. <div class="modal-dialog modal-lg">
  195. <div class="modal-content">
  196. <form action="/invoiceCompareClaimPrice" method="post" name="receivablesInvoiceBind">
  197. <input type="hidden" name="iidKey" id="inKey" value="">
  198. <div class="modal-header">
  199. <h3>发票入账</h3>
  200. </div>
  201. <div class="modal-body saeaList">
  202. <table class="table table-bordered table-condensed">
  203. <tbody>
  204. <tr>
  205. <th class="taC" colspan="4">收款信息填写</th>
  206. </tr>
  207. <tr>
  208. <th class="taC">收款金额</th>
  209. <td><input name="receivablesPrice" checkInvoicePrice=true placeholder="输入开票金额" pattern="[0-9]" min="0" step="0.01" type="number">
  210. <span class="colRed colTip"><span style="position:absolute;z-index=1;width:150px;top:-12px" checkInvoicePrice=msg></span></span></td>
  211. </tr>
  212. <tr>
  213. <th class="taC">收款信息</th><td><input type="text" name="receivablesMessage" ></td>
  214. </tr>
  215. <tr>
  216. <th class="taC">收款银行</th><td>
  217. <select name="receivablesBank">
  218. <option value="公司广发">公司广发</option>
  219. <option value="其他">其他</option>
  220. </select>
  221. </td>
  222. </tr>
  223. <tr>
  224. <th class="taC">银行到账时间</th><td><input name="receivablesDate" type="date"></td>
  225. </tr>
  226. </tbody>
  227. </table>
  228. <div id="irtc"></div>
  229. </div>
  230. <div class="modal-footer">
  231. <input type="submit" class="button" value="确认入账">
  232. <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
  233. </div>
  234. </form>
  235. </div>
  236. </div>
  237. </div>
  238. <!--弹出(录入收款)-->
  239. <div class="modal hide fade" id="inputbill">
  240. <form action="/invoiceReceivablesDo" method="post" name="receivablesInvoice">
  241. <div class="modal-dialog ">
  242. <div class="modal-content">
  243. <div class="modal-header">
  244. <h3>录入收款</h3>
  245. </div>
  246. <div class="modal-body saeaList">
  247. <table class="table table-bordered table-condensed">
  248. <tbody>
  249. <tr>
  250. <th class="taC" colspan="4">收款信息填写</th>
  251. </tr>
  252. <tr>
  253. <th class="taC">收款金额</th>
  254. <td>
  255. <input value="" name="receivablesPrice" placeholder="输入收款金额" pattern="[0-9]" min="0" step="0.01" type="number">
  256. </td>
  257. </tr>
  258. <tr>
  259. <th class="taC" >收款信息</th>
  260. <td>
  261. <input name="receivablesMessage" type="text">
  262. </td>
  263. </tr>
  264. <tr>
  265. <th class="taC">收款银行</th><td>
  266. <select name="receivablesBank">
  267. <option value="公司广发">公司广发</option>
  268. <option value="其他">其他</option>
  269. </select>
  270. </td>
  271. </tr>
  272. <tr>
  273. <th class="taC">银行到账时间</th>
  274. <td><input name="receivablesDate" value='{{receivablesDate}}' type="date"></td>
  275. </tr>
  276. <tr>
  277. <th class="taC">认领收款</th><td colspan="3">
  278. <select name="receivablesCategory" >
  279. <option post-data="PUBLIC" value="PUBLIC" >公共待认领款项</option>
  280. <!-- loop category -->
  281. <option <!-- if {{category' value.cid}} == {{staff.0.cid}} --> selected <!-- endif --> post-data="{{category' value.cid}}" value="{{category' value.cid}}:{{category' value.title}}" >{{category' value.title}}</option>
  282. <!-- endloop -->
  283. </select>
  284. <select name="receivablesStaff" style="display:none">
  285. <option value="PUBLIC">办事处待认领款项</option>
  286. <!-- loop staffList -->
  287. <option value="{{staffList' value.sid}}-{{staffList' value.username}}">{{staffList' value.category}}-{{staffList' value.username}}</option>
  288. <!-- endloop -->
  289. </select></td>
  290. </tr>
  291. </tbody></table>
  292. </div>
  293. <div class="modal-footer">
  294. <input type="submit" class="button" value="确认录入">
  295. <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
  296. </div>
  297. </div></div>
  298. </form>
  299. </div>
  300. <!--弹出(查询发票)-->
  301. <div class="modal hide fade" id="search-invoice">
  302. <form action="/invoiceBindReceivables" id="IBR" method="post">
  303. <input type="hidden" name="key" value="">
  304. <input type="hidden" name="invoiceKey" value="">
  305. <div class="modal-dialog modal-lg">
  306. <div class="modal-content">
  307. <div class="modal-header">
  308. <h3>查询发票</h3>
  309. </div>
  310. <div class="modal-body saeaList" >
  311. <div node-receivablesHtml='true'>
  312. </div>
  313. <!--没找到对应开票-->
  314. <blockquote node-search='invoice' style="display:none">
  315. <p>暂时没有查询到“珠海XXXX公司”的未入账发票</p>
  316. <p><div class="input-append">
  317. <input class="datepicker-here span4" name='searchTitle' placeholder="你可以按关键词模糊搜索" data-range="true" data-multiple-dates-separator=" - " data-language="zh" type="text">
  318. <button class="btn btn-small" invoice-search='title' type="button">查询</button>
  319. </div></p>
  320. </blockquote>
  321. <div node-invoiceHtml='true'>
  322. <!--搜索结果-->
  323. <table class="table table-bordered table-condensed">
  324. <thead><tr><th>开票单位(抬头)</th><th>开票金额</th><th>提交开票</th><th>出票</th><th>开票流水号</th><th width="80">入账</th></tr></thead>
  325. </table>
  326. </div>
  327. </div>
  328. <div class="modal-footer">
  329. <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
  330. </div>
  331. </div>
  332. </div>
  333. </div>
  334. <!--弹出内容-->
  335. <script type="text/javascript">autoFlashHeight();</script>
  336. </body>