invoiceReceivables.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  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 class="clearfix">
  184. <legend><div class="fR"><a href="/invoiceReceivablesAS">查看所有</a></div>部分入账收款({{halfCount}})</legend>
  185. <!-- if !empty({{halfList}}) -->
  186. <table class="table table-bordered table-condensed">
  187. <tbody>
  188. <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="120">绑定发票</th></tr>
  189. <!-- loop halfList -->
  190. <tr>
  191. <td><b>¥{{halfList' value.receivablesPrice}}</b></td>
  192. <td>{{halfList' value.receivablesMessage}}</td>
  193. <td>{{halfList' value.receivablesBank}}<br>{{halfList' value.receivablesDate}}</td>
  194. <td><b>¥{{halfList' value.bindPrice}}</b></td>
  195. <td><b>¥{{halfList' value.uPrice}}</b></td>
  196. <td>
  197. <!-- loop halfList' value.invoiceList -->
  198. <a href="#invdetail" node-invoice='INFO' data-isKey="{{halfList' value' key}}" data-toggle="modal">{{halfList' value' value}}</a>&nbsp;
  199. <!-- endloop -->
  200. </td>
  201. <td>
  202. <a class="button btn-block" href="#search-invoice" bind-invoice='receivables' node-key="{{halfList' value.iridAuthKey}}" data-toggle="modal">查询发票</a>
  203. </tr>
  204. <!-- endloop -->
  205. </tbody>
  206. </table>
  207. <!-- else -->
  208. <blockquote><p class="colGray">暂时没有部分入账收款</p></blockquote>
  209. <!-- endif -->
  210. </div>
  211. </div>
  212. </div>
  213. </div>
  214. </div>
  215. </div>
  216. <!--弹出(发票详情)-->
  217. <div class="modal fade" id="invdetail">
  218. <div id="nc"></div>
  219. </div>
  220. <!--弹出发票详情-->
  221. <div class="modal hide fade" id="recorded">
  222. <div class="modal-dialog modal-lg">
  223. <div class="modal-content">
  224. <form action="/invoiceCompareClaimPrice" method="post" name="receivablesInvoiceBind">
  225. <input type="hidden" name="iidKey" id="inKey" value="">
  226. <div class="modal-header">
  227. <h3>发票入账</h3>
  228. </div>
  229. <div class="modal-body saeaList">
  230. <table class="table table-bordered table-condensed">
  231. <tbody>
  232. <tr>
  233. <th class="taC" colspan="4">收款信息填写</th>
  234. </tr>
  235. <tr>
  236. <th class="taC">收款金额</th>
  237. <td><input name="receivablesPrice" checkInvoicePrice=true placeholder="输入开票金额" pattern="[0-9]" min="0" step="0.01" type="number">
  238. <span class="colRed colTip"><span style="" checkInvoicePrice=msg></span></span></td>
  239. </tr>
  240. <tr>
  241. <th class="taC">收款信息</th><td><input type="text" name="receivablesMessage" ></td>
  242. </tr>
  243. <tr>
  244. <th class="taC">收款银行</th><td>
  245. <select name="receivablesBank">
  246. <option value="公司广发">公司广发</option>
  247. <option value="其他">其他</option>
  248. </select>
  249. </td>
  250. </tr>
  251. <tr>
  252. <th class="taC">银行到账时间</th><td><input name="receivablesDate" type="date"></td>
  253. </tr>
  254. </tbody>
  255. </table>
  256. <div id="irtc"></div>
  257. </div>
  258. <div class="modal-footer">
  259. <input type="submit" class="button" value="确认入账">
  260. <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
  261. </div>
  262. </form>
  263. </div>
  264. </div>
  265. </div>
  266. <!--弹出(录入收款)-->
  267. <div class="modal hide fade" id="inputbill">
  268. <form action="/invoiceReceivablesDo" method="post" name="receivablesInvoice">
  269. <div class="modal-dialog ">
  270. <div class="modal-content">
  271. <div class="modal-header">
  272. <h3>录入收款</h3>
  273. </div>
  274. <div class="modal-body saeaList">
  275. <table class="table table-bordered table-condensed">
  276. <tbody>
  277. <tr>
  278. <th class="taC" colspan="4">收款信息填写</th>
  279. </tr>
  280. <tr>
  281. <th class="taC">收款金额</th>
  282. <td>
  283. <input value="" name="receivablesPrice" placeholder="输入收款金额" pattern="[0-9]" min="0" step="0.01" type="number">
  284. </td>
  285. </tr>
  286. <tr>
  287. <th class="taC" >收款信息</th>
  288. <td>
  289. <input name="receivablesMessage" type="text">
  290. </td>
  291. </tr>
  292. <tr>
  293. <th class="taC">收款银行</th><td>
  294. <select name="receivablesBank">
  295. <option value="公司广发">公司广发</option>
  296. <option value="其他">其他</option>
  297. </select>
  298. </td>
  299. </tr>
  300. <tr>
  301. <th class="taC">银行到账时间</th>
  302. <td><input name="receivablesDate" value='{{receivablesDate}}' type="date"></td>
  303. </tr>
  304. <tr>
  305. <th class="taC">认领收款</th><td colspan="3">
  306. <select name="receivablesCategory" >
  307. <option post-data="PUBLIC" value="PUBLIC" >公共待认领款项</option>
  308. <!-- loop category -->
  309. <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>
  310. <!-- endloop -->
  311. </select>
  312. <select name="receivablesStaff" style="display:none">
  313. <option value="PUBLIC">办事处待认领款项</option>
  314. <!-- loop staffList -->
  315. <option value="{{staffList' value.sid}}-{{staffList' value.username}}">{{staffList' value.category}}-{{staffList' value.username}}</option>
  316. <!-- endloop -->
  317. </select></td>
  318. </tr>
  319. </tbody></table>
  320. </div>
  321. <div class="modal-footer">
  322. <input type="submit" class="button" value="确认录入">
  323. <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
  324. </div>
  325. </div></div>
  326. </form>
  327. </div>
  328. <!--弹出(查询发票)-->
  329. <div class="modal hide fade" id="search-invoice">
  330. <form action="/invoiceBindReceivables" id="IBR" method="post">
  331. <input type="hidden" name="key" value="">
  332. <input type="hidden" name="invoiceKey" value="">
  333. <div class="modal-dialog modal-lg">
  334. <div class="modal-content">
  335. <div class="modal-header">
  336. <h3>查询发票</h3>
  337. </div>
  338. <div class="modal-body saeaList" >
  339. <div node-receivablesHtml='true'>
  340. </div>
  341. <!--没找到对应开票-->
  342. <blockquote node-search='invoice' style="display:none">
  343. <p>暂时没有查询到“珠海XXXX公司”的未入账发票</p>
  344. <p><div class="input-append">
  345. <input class="datepicker-here span4" name='searchTitle' placeholder="你可以按关键词模糊搜索" data-range="true" data-multiple-dates-separator=" - " data-language="zh" type="text">
  346. <button class="btn btn-small" invoice-search='title' type="button">查询</button>
  347. </div></p>
  348. </blockquote>
  349. <div node-invoiceHtml='true'>
  350. <!--搜索结果-->
  351. <table class="table table-bordered table-condensed">
  352. <thead><tr><th>开票单位(抬头)</th><th>开票金额</th><th>提交开票</th><th>出票</th><th>开票流水号</th><th width="80">入账</th></tr></thead>
  353. </table>
  354. </div>
  355. </div>
  356. <div class="modal-footer">
  357. <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
  358. </div>
  359. </div>
  360. </div>
  361. </div>
  362. <!--弹出内容-->
  363. <script type="text/javascript">autoFlashHeight();</script>
  364. </body>