invoice.html 17 KB

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