invoice.html 17 KB

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