invoice.html 17 KB

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