invoice.html 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  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. <script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>js/notifications/notifications.js"></script>
  8. <body>
  9. <div class="mainLayout">
  10. <div class="mainMenu">
  11. <div class="menuItem">
  12. <a href="/" class="mLogo">CLD</a>
  13. <ul>
  14. <!-- include 'menuReceipt' -->
  15. </ul>
  16. </div>
  17. </div>
  18. <div class="warpContent">
  19. <div class="subMenu fL">
  20. <div class="menuItem">
  21. <!-- include 'invoiceMenu' -->
  22. </div>
  23. </div>
  24. <div class="adminContent autoHeight">
  25. <div class="saea-borad">
  26. <div class="borad-menu">
  27. <a href="/invoiceAdd" class="invoice">申请开票</a>
  28. </div>
  29. <div class="borad-news">
  30. <div class="saeaList">
  31. <div class="clearfix">
  32. <table class="table table-bordered table-condensed">
  33. <tbody>
  34. <tr><th class="taC">本月累计开票</th><td>¥{{isMonth.statisticsMonth.0.invoicePrice}}</td>
  35. <th class="taC">本月累计入账</th><td>¥{{isMonth.statisticsMonth.0.accountPrice}}</td></tr>
  36. {{htm}}
  37. <tr><th class="taC">今年累计开票</th><td>¥{{isMonth.statisticsYear.0.invoicePrice}}</td>
  38. <th class="taC">今年累计入账</th><td>¥{{isMonth.statisticsYear.0.accountPrice}}</td></tr>
  39. </tbody>
  40. </table>
  41. </div>
  42. <div class="clearfix">
  43. <legend><div class="fR"><a href="/invoiceUntreadIsAchieve">申请退票</a></div>待处理</legend>
  44. <!-- if !empty({{invoiceList.handleInvoice}}) -->
  45. <table class="table table-bordered table-condensed">
  46. <tbody>
  47. <tr><th class="taC" width="70">状态</th><th class="taC">开票单位(抬头)</th><th class="taC" width="90">开票金额</th><th class="taC">开票流水号</th><th class="taC">处理时间</th><th class="taC" width="120">操作</th></tr>
  48. <!-- loop invoiceList.handleInvoice -->
  49. <tr>
  50. <td>
  51. <!-- if {{pendingInvoice' value.status}}==3 -->
  52. <span class="colOrange">已退回</span>
  53. <!-- elseif {{pendingInvoice' value.status}}==4 -->
  54. <span class="colRed">已终止</span>
  55. <!-- elseif {{pendingInvoice' value.status}}==2 and {{pendingInvoice' value.printStatus}}==1 and {{pendingInvoice' value.untreadStatus}}==0 -->
  56. <!--废弃 <span class="colBlue">已出票</span> -->
  57. <!-- if {{pendingInvoice' value.doPost}}==1 -->
  58. <!--废弃 <a href="#shipping" node-post="express-msg" post-data="{{invoicePost' value.iidKey}}" data-toggle="modal">邮寄</a> -->
  59. <!-- endif -->
  60. <!-- elseif {{pendingInvoice' value.status}}==2 and {{pendingInvoice' value.printStatus}}==1 and {{pendingInvoice' value.untreadStatus}}==2 -->
  61. <span class="colRed">已退票</span>
  62. <!-- endif -->
  63. </td>
  64. <td>
  65. <!-- if !empty({{pendingInvoice' value.invoiceType}}) -->
  66. {{pendingInvoice' value.invoiceCompany}}
  67. <!-- else -->
  68. {{pendingInvoice' value.invoiceTitle}}
  69. <!-- endif -->
  70. </td>
  71. <td><!-- if !empty({{pendingInvoice' value.invoiceType}}) -->
  72. <b>¥{{pendingInvoice' value.invoicePrice}}</b><sup>专</sup>
  73. <!-- else -->
  74. <b>¥{{pendingInvoice' value.invoicePrice}}</b>
  75. <!-- endif --></td>
  76. <td>
  77. <a href="#invdetail" node-invoice='INFO' data-isKey="{{pendingInvoice' value.iidKeyUrl}}" data-toggle="modal">{{invoiceList' value.invoiceSerial}}</a>
  78. </td>
  79. <td>{{invoiceList' value.OperationLog.username}} {{invoiceList' value.OperationLog.date}}</td>
  80. <td width="">
  81. <!-- if {{pendingInvoice' value.status}}==3 -->
  82. <div class="btn-group">
  83. <a class="button btn-red btn-inline" diss-data="{{pendingInvoice' value.iidKey}}" node-invoice="droppedInvoice" data-toggle="modal" href="#invalid">终止开票</a>
  84. <a class="button btn-inline" href="/invoiceEdit/{{pendingInvoice' value.iidKeyUrl}}.html">重新提交</a>
  85. </div>
  86. <!-- elseif {{pendingInvoice' value.status}}==4 -->
  87. <a class="button btn-gray btn-block" href="/invoiceDelDo/{{pendingInvoice' value.iidKeyUrl}}.do">从待处理移除</a>
  88. <!-- elseif {{pendingInvoice' value.status}}==2 and {{pendingInvoice' value.printStatus}}==1 and {{pendingInvoice' value.untreadStatus}}==0 -->
  89. <!--废弃
  90. <div class="btn-group">
  91. <a class="button btn-red btn-inline" diss-data="{{pendingInvoice' value.iidKey}}" node-invoice="untreadInvoice" href="#return" data-toggle="modal">申请退票</a>
  92. <a class="button btn-green" diss-data="{{pendingInvoice' value.iidKey}}" node-receivalbles="bind" href="#recorded" data-toggle="modal">发票核销</a>
  93. </div>
  94. -->
  95. <!-- elseif {{pendingInvoice' value.status}}==2 and {{pendingInvoice' value.printStatus}}==1 and {{pendingInvoice' value.untreadStatus}}==2 -->
  96. <a class="button btn-gray btn-block" href="/invoiceDelDo/{{pendingInvoice' value.iidKeyUrl}}.do">从待处理移除</a>
  97. <!-- endif -->
  98. </td>
  99. </tr>
  100. <!-- endloop -->
  101. </tbody>
  102. </table>
  103. <!-- else -->
  104. <blockquote><p class="colGray">暂时没有需要处理的发票 </p></blockquote>
  105. <!-- endif -->
  106. </div>
  107. <div class="clearfix">
  108. <legend><div class="fR"></div>处理中</legend>
  109. <!-- if !empty({{invoiceList.pendingInvoice}}) -->
  110. <table class="table table-bordered table-condensed">
  111. <tbody>
  112. <tr><th class="taC" width="70">状态</th><th class="taC">开票单位(抬头)</th><th class="taC" width="90">开票金额</th><th class="taC">开票流水号</th><th class="taC">处理时间</th></tr>
  113. <!-- loop invoiceList.pendingInvoice -->
  114. <tr>
  115. <td>
  116. <!-- if ({{pendingInvoice' value.status}}==2 and {{pendingInvoice' value.printStatus}}==0) or ({{pendingInvoice' value.status}}==2 and {{pendingInvoice' value.postStatus}}==0 and {{pendingInvoice' value.doPost}}==1 ) -->
  117. <span class="colBlue">出票中</span>
  118. <!-- elseif {{pendingInvoice' value.status}}==1 -->
  119. <span class="">审核中</span>
  120. <!-- elseif {{pendingInvoice' value.status}}==2 and {{pendingInvoice' value.printStatus}}==1 and {{pendingInvoice' value.untreadStatus}}==1 -->
  121. <span class="colRed">退票中</span>
  122. <!-- endif -->
  123. </td>
  124. <td>
  125. <!-- if !empty({{pendingInvoice' value.invoiceType}}) -->
  126. {{pendingInvoice' value.invoiceCompany}}
  127. <!-- else -->
  128. {{pendingInvoice' value.invoiceTitle}}
  129. <!-- endif -->
  130. </td>
  131. <td>
  132. <!-- if !empty({{pendingInvoice' value.invoiceType}}) -->
  133. <b>¥{{pendingInvoice' value.invoicePrice}}</b><sup>专</sup>
  134. <!-- else -->
  135. <b>¥{{pendingInvoice' value.invoicePrice}}</b>
  136. <!-- endif --></td>
  137. <td><a href="#invdetail" node-invoice='INFO' data-isKey="{{pendingInvoice' value.iidKeyUrl}}" data-toggle="modal">{{invoiceList' value.invoiceSerial}}</a></td>
  138. <td>{{invoiceList' value.OperationLog.username}} {{invoiceList' value.OperationLog.date}}</td>
  139. </tr>
  140. <!-- endloop -->
  141. </tbody>
  142. </table>
  143. <!-- else -->
  144. <blockquote><p class="colGray">暂时没有正在处理的发票 </p></blockquote>
  145. <!-- endif -->
  146. </div>
  147. <div class="clearfix">
  148. <legend><div class="fR"><a href="/invoiceMyUnAccountAchieve">查看更多</a></div>待入账({{countArray(myInvoiceUnAccount)}})</legend>
  149. <!-- if !empty({{myInvoiceUnAccount}}) -->
  150. <table class="table table-bordered table-condensed">
  151. <tbody>
  152. <tr><th class="taC">开票单位(抬头)</th><th class="taC" width="90">开票金额</th><th class="taC">开票流水号</th><th class="taC" width="90">收款金额</th><th class="taC">出票时间</th></tr>
  153. <!-- loop myInvoiceUnAccount -->
  154. <tr>
  155. <td>
  156. <!-- if !empty({{myInvoiceUnAccount' value.invoiceType}}) -->
  157. {{myInvoiceUnAccount' value.invoiceCompany}}
  158. <!-- else -->
  159. {{myInvoiceUnAccount' value.invoiceTitle}}
  160. <!-- endif -->
  161. </td>
  162. <td>
  163. <!-- if !empty({{myInvoiceUnAccount' value.invoiceType}}) -->
  164. <b>¥{{myInvoiceUnAccount' value.invoicePrice}}</b><sup>专</sup>
  165. <!-- else -->
  166. <b>¥{{myInvoiceUnAccount' value.invoicePrice}}</b>
  167. <!-- endif -->
  168. </td>
  169. <td><a href="#invdetail" node-invoice='INFO' data-isKey="{{myInvoiceUnAccount' value.iidKeyK}}" data-toggle="modal">{{myInvoiceUnAccount' value.invoiceSerial}}</a></td>
  170. <td><b>{{myInvoiceUnAccount' value.irList.0.price}}</b></td>
  171. <td>2016-03-03 11:30:03</td>
  172. </tr>
  173. <!-- endloop -->
  174. </tbody>
  175. </table>
  176. <!-- else -->
  177. <blockquote><p class="colGray">暂时没有待入账的发票 </p></blockquote>
  178. <!-- endif -->
  179. </div>
  180. <div class="clearfix">
  181. <legend><div class="fR"><a href="/invoiceAchieve">查看更多</a></div>最近入账</legend>
  182. <!-- if !empty({{receivablesList}}) -->
  183. <table class="table table-bordered table-condensed">
  184. <tbody>
  185. <tr><th class="taC">开票单位(抬头)</th><th class="taC" width="90">开票金额</th><th class="taC">开票流水号</th><th class="taC" width="90">收款金额</th><th class="taC">收款流水号</th><th class="taC">处理时间</th></tr>
  186. <!-- loop receivablesList -->
  187. <tr>
  188. <td>
  189. <!-- if !empty({{receivablesList' value.invoiceType}}) -->
  190. {{receivablesList' value.invoiceCompany}}
  191. <!-- else -->
  192. {{receivablesList' value.invoiceTitle}}
  193. <!-- endif --></td>
  194. <td>
  195. <!-- if !empty({{pendingInvoice' value.invoiceType}}) -->
  196. <b>¥{{receivablesList' value.invoicePrice}}</b><sup>专</sup>
  197. <!-- else -->
  198. <b>¥{{receivablesList' value.invoicePrice}}</b>
  199. <!-- endif -->
  200. </td>
  201. <td><a href="#invdetail" node-invoice='INFO' data-isKey="{{receivablesList' value.iidKeyK}}" data-toggle="modal">{{receivablesList' value.invoiceSerial}}</a></td>
  202. <td><b>¥{{receivablesList' value.sumPrice}}</b></td>
  203. <td>
  204. <!-- loop list' value.irList -->
  205. <a href="#billing" node-invoice='INFO' data-type="receivables" data-isKey="{{list' value' value.iridKeyK}}" data-toggle="modal">{{list' value' value.receivablesSerial}}</a>&nbsp;
  206. <!-- endloop -->
  207. </td>
  208. <td>{{receivablesList' value.userName}} {{receivablesList' value.updateTime}}</td>
  209. </tr>
  210. <!-- endloop -->
  211. </tbody>
  212. </table>
  213. <!-- else -->
  214. <blockquote><p class="colGray">暂时没有入账完成的收款</p></blockquote>
  215. <!-- endif -->
  216. </div>
  217. </div>
  218. </div>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. <div loading-msg='true' style="position:absolute; left:50%; top:50%; "></div>
  224. <!--弹出(发票详情)-->
  225. <div class="modal fade" id="invdetail">
  226. <div id="nc"></div>
  227. </div>
  228. <!--弹出发票详情-->
  229. <!--弹出收款-->
  230. <div class="modal fade" id="billing">
  231. <div id="nr"></div>
  232. </div>
  233. <!--弹出收款-->
  234. <!--弹出终止-->
  235. <div class="modal hide fade" id="invalid">
  236. <form action="/invoiceDroppedDo" method="post" name="droppedInvoice">
  237. <input type="hidden" name='droppedIidKey' value="">
  238. <div class="modal-dialog ">
  239. <div class="modal-content">
  240. <div class="modal-header">
  241. <h3>是否终止该发票</h3>
  242. </div>
  243. <div class="modal-body">
  244. 终止后该发票申请将无法继续审批。
  245. </div>
  246. <div class="modal-footer">
  247. <input type="submit" class="button" value="是的">
  248. <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
  249. </div>
  250. </div></div>
  251. </form>
  252. </div>
  253. <!--终止-->
  254. <!--弹出 退票 废弃
  255. <div class="modal hide fade" id="return">
  256. <form action="/invoiceUntreadDo" method="post" name="untreadInvoice">
  257. <input type="hidden" name='untreadIidKey' value="">
  258. <div class="modal-dialog ">
  259. <div class="modal-content">
  260. <div class="modal-header">
  261. <h3>申请退票</h3>
  262. </div>
  263. <div class="modal-body saeaList">
  264. <table class="table table-bordered table-condensed">
  265. <tbody>
  266. <tr>
  267. <th class="taC"><span class="colRed">*</span>退票原因</th>
  268. <td>
  269. <textarea class="span4" name="untreadReason" placeholder="请详细填写退票原因"></textarea>
  270. </td>
  271. </tr>
  272. <tr>
  273. <th class="taC"><span class="colRed">*</span>是否邮寄</th>
  274. <td><label class="radio inline"><input name="untreadPost" node-untread='post' value="1" checked type="radio">是</label>
  275. <label class="radio inline"><input name="untreadPost" value="0" type="radio">否</label>
  276. </td>
  277. </tr>
  278. </tbody>
  279. </table>
  280. <table post-box='ture' class="table table-bordered table-condensed">
  281. <tbody>
  282. <tr>
  283. <th colspan="2" class="taC">退票邮寄信息</th>
  284. </tr>
  285. <tr>
  286. <th class="taC" width="100"><span class="colRed">*</span>快递公司</th><td>
  287. <select name="untreadCompany">
  288. <!-- loop expressList -->
  289. <option value="{{expressList' value.company}}:{{expressList' value.com}}">{{expressList' value.company}}</option>
  290. <!-- endloop -->
  291. <!--弹出 退票 废弃
  292. </select>
  293. </td>
  294. </tr>
  295. <tr>
  296. <th class="taC" width="100"><span class="colRed">*</span>快递单号</th>
  297. <td><input type="text" name="untreadNumber" placeholder="请正确填写单号,方便跟踪查询。"></td>
  298. </tr>
  299. <tr>
  300. <th class="taC" width="100"><span class="colRed">*</span>邮寄物品</th>
  301. <td><textarea class="span4" name="untreadItems" placeholder="请详细填写邮寄回总部的快递包含什么物件。"></textarea>
  302. </td>
  303. </tr>
  304. </tbody>
  305. </table>
  306. </div>
  307. <div class="modal-footer">
  308. <input type="submit" class="button" value="确认提交">
  309. <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
  310. </div>
  311. </div></div>
  312. </form>
  313. </div>
  314. -->
  315. <!--退票-->
  316. <!--弹出入账 废弃
  317. <div class="modal hide fade" id="recorded">
  318. <div class="modal-dialog modal-lg">
  319. <div class="modal-content">
  320. <div class="modal-header">
  321. <h3>发票入账</h3>
  322. </div>
  323. <form action="/invoiceEnterReceivables" method="post" onsubmit="return sures()" >
  324. <input type="hidden" name="key" value="">
  325. <input type="hidden" name="invoiceKey" value="">
  326. <div class="modal-body">
  327. <p class="alert">1.收款入账 &gt; 2.发票核销 &gt; 3.获取销售提成</p>
  328. <p node-loading='true' class="alert hide" >入账处理中...</p>
  329. <table node-enter="receivables" class="table table-bordered table-condensed">
  330. <thead>
  331. <tr><th colspan="5" class="taC">已入账收款</th></tr>
  332. <tr><th>金额</th><th>到款信息</th><th>到款银行</th><th>到款时间</th><th>入账操作</th></tr></thead>
  333. <tbody box-enter="true">
  334. </tbody>
  335. </table>
  336. <p node-msg='true' class="alert alert-erro hide"></p>
  337. <p node-msg='true2' class="alert alert-erro hide"></p>
  338. <table class="table table-bordered table-condensed">
  339. <thead><th>金额</th><th>到款信息</th><th>到款银行</th><th>到款时间</th><th>入账操作</th></thead>
  340. <tbody data-invoice="myReceivables" >
  341. </tbody>
  342. </table>
  343. </div>
  344. <div class="modal-footer">
  345. <input type="submit" class="button" value="确定核销">
  346. <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
  347. </div>
  348. </div></div>
  349. </form>
  350. </div>
  351. -->
  352. <!--入账-->
  353. <!--弹出邮寄-->
  354. <div class="modal hide fade" id="shipping">
  355. <div class="modal-dialog">
  356. <div class="modal-content">
  357. <div class="modal-header">
  358. <h3>邮寄物品</h3>
  359. </div>
  360. <div class="modal-body saeaList">
  361. <div style='text-align: center' loading-msg='express-msg'></div>
  362. <table class="table table-bordered table-condensed">
  363. <tbody>
  364. <tr>
  365. <th colspan="4" class="taC">申请邮寄信息</th>
  366. </tr>
  367. <tr>
  368. <th class="taC" width="100">收件人</th>
  369. <td recipients-data='express-msg'></td>
  370. <th class="taC" width="100">收件人手机/电话</th>
  371. <td recipientsPhone-data='express-msg'></td>
  372. </tr>
  373. <tr>
  374. <th class="taC" width="100">收件地址</th>
  375. <td recipientsAddress-data='express-msg' colspan="3"></td>
  376. </tr>
  377. <tr>
  378. <th class="taC" width="100">邮寄物品</th>
  379. <td mailItems-data='express-msg' colspan="3"></td>
  380. </tr>
  381. </tbody>
  382. </table>
  383. <table class="table table-bordered table-condensed">
  384. <tbody>
  385. <tr>
  386. <th colspan="4" class="taC">实际邮寄信息</th>
  387. </tr>
  388. <tr>
  389. <th class="taC" width="100">快递公司</th>
  390. <td expressCompany-data='express-msg'></td>
  391. <th class="taC" width="100">快递单号</th>
  392. <td expressNumber-data='express-msg'></td>
  393. </tr>
  394. </tr>
  395. <tr>
  396. <tr>
  397. <th class="taC" width="100">邮寄物品</th>
  398. <td colspan="3" actualItems-data='express-msg'></td>
  399. </tr>
  400. </tbody>
  401. </table>
  402. </div>
  403. <div class="modal-footer">
  404. <a href="#" class="button btn-gray" data-dismiss="modal"
  405. aria-hidden="true">关闭</a>
  406. </div>
  407. </div>
  408. </div>
  409. </div>
  410. <!--邮寄-->
  411. <script type="text/javascript">autoFlashHeight();</script>
  412. </body>