invoice.html 21 KB

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