invoiceEdit.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  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="<?= invoiceValidator ?>"></script>
  6. <script>
  7. $(function() {
  8. $('input[type=radio][name=invoiceForm]').change(function() {
  9. if (this.value == 'paper') {
  10. $('tr[paperTR]').show();
  11. $('tr[electronicTR]').hide();
  12. $('table[electronicContact]').hide();
  13. $('div[paperMark]').show();
  14. $('#electronicPhone').val('1');
  15. } else if (this.value == 'electronic') {
  16. $('tr[paperTR]').hide();
  17. $('tr[electronicTR]').show();
  18. $('table[electroniCcontact]').show();
  19. $('div[paperMark]').hide();
  20. $('#electronicPhone').val('');
  21. }
  22. });
  23. })
  24. </script>
  25. <body>
  26. <div class="mainLayout">
  27. <div class="mainMenu">
  28. <div class="menuItem">
  29. <a href="#" class="mLogo">CLD</a>
  30. <ul>
  31. <!-- include 'menuReceipt' -->
  32. </ul>
  33. </div>
  34. </div>
  35. <div class="warpContent">
  36. <div class="subMenu fL">
  37. <div class="menuItem">
  38. <ul>
  39. <!-- include 'invoiceMenu' -->
  40. </ul>
  41. </div>
  42. </div>
  43. <div class="adminContent autoHeight">
  44. <legend>
  45. 开票重新申请
  46. </legend>
  47. <div class="borad-news">
  48. <div class="saeaList">
  49. <form action="/invoiceEditDo" method="post" id="invoice">
  50. <input type="hidden" name="iidKey" value="{{invoiceDetail.iidKey}}">
  51. <table class="table table-bordered table-condensed">
  52. <tbody>
  53. <tr>
  54. <th class="taC">审批人退回意见</th>
  55. </tr>
  56. <tr>
  57. <td colspan="3" class="colRed">{{operation.username}}:{{operation.operation}}</td>
  58. </tr>
  59. </tbody>
  60. </table>
  61. <table class="table table-bordered table-condensed">
  62. <tbody>
  63. <tr>
  64. <th class="taC" width="150">所在办事处</th>
  65. <td>
  66. <select name="cid">
  67. <!-- loop invoiceDetail.category -->
  68. <option <!-- if {{category' value.cid}}=={{invoiceDetail.cid}} --> selected <!-- endif --> value="{{category' value.cid}}:{{category' value.title}}">{{category' value.title}}</option>
  69. <!-- endloop -->
  70. </select>
  71. </td>
  72. <th class="taC" width="150"><span class="colRed">*</span>开票内容</th><td><select name="invoiceElement" >
  73. <!-- include 'invoiceElement' -->
  74. </select></td>
  75. </tr>
  76. <tr>
  77. <th class="taC"><span class="colRed">*</span>数量</th>
  78. <td>
  79. <input style="width:60px" name="invoiceQuantity" id="invoiceQuantity" value="{{invoiceDetail.invoiceQuantity}}" placeholder="输入数量" pattern="[0-9]" type="number" min="1" step="1">
  80. </td>
  81. <th class="taC"><span class="colRed">*</span>单价</th>
  82. <td><input style="width:100px" name="invoiceUnitPrice" id="invoiceUnitPrice" value="{{invoiceDetail.invoiceUnitPrice}}" placeholder="输入单价" pattern="[0-9]" type="number" min="1" step="100"></td>
  83. </tr>
  84. <tr>
  85. <th class="taC"><span class="colRed">*</span>开票金额</th>
  86. <td colspan="3">
  87. <p class="colGray">数量*单价=开票金额</p>
  88. <b class="colOrange" id="tp" style="font-size:18px">¥{{invoiceDetail.invoicePrice}}</b>
  89. <input value="{{invoiceDetail.invoicePrice}}" placeholder="输入开票金额" pattern="[0-9]" name="invoicePrice-del" id="invoicePrice" type="hidden" min="0" step="0.01">
  90. </td>
  91. </tr>
  92. <tr>
  93. <th class="taC">发票备注</th><td colspan="3"><textarea placeholder="用于发票右下角备注栏内容,如项目名称、项目地点" name="remark" style="width:550px">{{invoiceDetail.remark}}</textarea>
  94. </td>
  95. </tr>
  96. <tr>
  97. <th class="taC"><span class="colRed">*</span>发票形式</th><td colspan="3">
  98. <label class="radio inline"><input type="radio" <!-- if {{invoiceDetail.invoiceForm}}==0 --> checked <!-- endif --> name="invoiceForm" value="paper">纸质发票</label>
  99. <label class="radio inline" ><input type="radio" s <!-- if {{invoiceDetail.invoiceForm}}==1 --> checked <!-- endif --> name="invoiceForm" value="electronic">电子发票</label>
  100. </td>
  101. </tr>
  102. <tr <!-- if {{invoiceDetail.invoiceForm}}==0 --> style="display:none" <!-- endif --> electronicTR >
  103. <th class="taC"><span class="colRed">*</span>发票类型</th><td colspan="3">
  104. 增值税普通发票(电子发票)
  105. </td>
  106. </tr>
  107. <tr <!-- if {{invoiceDetail.invoiceForm}}==1 --> style="display:none" <!-- endif --> paperTR>
  108. <th class="taC"><span class="colRed">*</span>发票类型</th><td colspan="3">
  109. <label class="radio inline"><input name="invoiceType" id="invoicePlain" onclick="invoiceShow()" value="0" <!-- if {{invoiceDetail.invoiceType}}==0 --> checked <!-- endif --> type="radio">增值税普通发票</label>
  110. <label class="radio inline"><input name="invoiceType" id="invoiceSpecial" onclick="invoiceShow()" value="1" <!-- if {{invoiceDetail.invoiceType}}==1 --> checked <!-- endif --> type="radio">增值税专用发票</label>
  111. </td>
  112. </tr>
  113. </tbody>
  114. </table>
  115. <table id="plainInvoice_box" class="table table-bordered table-condensed" <!-- if {{invoiceDetail.invoiceType}}==1 --> style="display:none" <!-- endif --> >
  116. <tbody>
  117. <tr>
  118. <th colspan="4" class="taC">增值税普通发票</th>
  119. </tr>
  120. <tr>
  121. <th class="taC" width="150"><span class="colRed">*</span>发票抬头</th>
  122. <td ><input name="invoiceTitle" id="invoiceTitle" value="{{invoiceDetail.invoiceTitle}}" type="text" ></td>
  123. <th class="taC" width="150"><span class="colRed"></span>纳税人识别码</th>
  124. <td><input name="TINT" id="TINT" value="{{invoiceDetail.TIN}}" type="text"></td>
  125. </tr>
  126. <tr>
  127. <th class="taC"><span class="colRed"></span>注册地址</th>
  128. <td><input type="text" name="addressT" id="addressT" value="{{invoiceDetail.address}}"></td>
  129. <th class="taC"><span class="colRed"></span>注册电话</th>
  130. <td><input type="text" name="phoneT" id="phoneT" value="{{invoiceDetail.phone}}"></td>
  131. </tr>
  132. <tr>
  133. <th class="taC"><span class="colRed"></span>开户银行</th>
  134. <td><input type="text" name="bankT" id="bankT" value="{{invoiceDetail.bank}}"></td>
  135. <th class="taC"><span class="colRed"></span>银行账号</th>
  136. <td><input type="text" name="bankAccountT" id="bankAccountT" value="{{invoiceDetail.bankAccount}}"></td>
  137. </tr>
  138. </tbody>
  139. </table>
  140. <table id="specialInvoice_box" class="table table-bordered table-condensed" <!-- if {{invoiceDetail.invoiceType}}==0 --> style="display:none" <!-- endif --> >
  141. <tbody>
  142. <tr>
  143. <th colspan="4" class="taC">增值税专用发票</th>
  144. </tr>
  145. <tr>
  146. <th class="taC" width="150"><span class="colRed">*</span>单位名称</th>
  147. <td>
  148. <input name="invoiceCompany" id="invoiceCompany" value="{{invoiceDetail.invoiceCompany}}" type="text">
  149. </td>
  150. <th class="taC" width="150"><span class="colRed">*</span>纳税人识别码</th>
  151. <td><input name="TIN" id="TIN" value="{{invoiceDetail.TIN}}" type="text"></td>
  152. </tr>
  153. </tr>
  154. <tr>
  155. <th class="taC"><span class="colRed">*</span>注册地址</th>
  156. <td><input type="text" value="{{invoiceDetail.address}}" name="address" id="address"></td>
  157. <th class="taC"><span class="colRed">*</span>注册电话</th>
  158. <td><input type="text" value="{{invoiceDetail.phone}}" name="phone" id="phone"></td>
  159. </tr>
  160. <tr>
  161. <th class="taC"><span class="colRed">*</span>开户银行</th>
  162. <td><input type="text" name="bank" id="bank" value="{{invoiceDetail.bank}}"></td>
  163. <th class="taC"><span class="colRed">*</span>银行账号</th>
  164. <td><input type="text" name="bankAccount" id="bankAccount" value="{{invoiceDetail.bankAccount}}"></td>
  165. </tr>
  166. </tbody>
  167. </table>
  168. <table class="table table-bordered table-condensed">
  169. <tr>
  170. <th colspan="4" class="taC">邮寄信息</th>
  171. </tr>
  172. <tr>
  173. <th class="taC" width="150"><span class="colRed">*</span>是否邮寄</th><td colspan="3">
  174. <label class="radio inline">
  175. <input type="radio" onclick="mailShow()" id="isMail" name="doPost" value="1" <!-- if {{invoiceDetail.doPost}}==1 --> checked <!-- endif --> >是</label>
  176. <label class="radio inline"><input type="radio" onclick="mailShow()" name="doPost" value="0" <!-- if {{invoiceDetail.doPost}}==0 --> checked <!-- endif --> >否</label>
  177. </td>
  178. </tr>
  179. <tbody id="mail_box" <!-- if {{invoiceDetail.doPost}}==0 --> style="display:none" <!-- endif --> >
  180. <tr>
  181. <th class="taC" width="150"><span class="colRed">*</span>收件人</th>
  182. <td><input type="text" name="recipients" id="recipients" value="{{invoiceDetail.recipients}}" ></td>
  183. <th class="taC" width="150"><span class="colRed">*</span>收件人手机/电话</th>
  184. <td><input type="text" name="recipientsPhone" id="recipientsPhone" value="{{invoiceDetail.recipientsPhone}}" ></td>
  185. </tr>
  186. <tr>
  187. <th class="taC" width="150"><span class="colRed">*</span>收件地址</th>
  188. <td colspan="3"><input type="text" class="span6" name="recipientsAddress" id="recipientsAddress" value="{{invoiceDetail.recipientsAddress}}" ></td>
  189. </tr>
  190. <tr>
  191. <th class="taC" width="150">邮寄物品</th>
  192. <td colspan="3">
  193. <div class="checkbox">
  194. <label>
  195. <input <!-- if !empty({{invoiceDetail.mailItemsJson.softLock}}) --> checked <!-- endif --> type="checkbox" name="softLock" value="1">
  196. 软件锁 <br><input type="number" name="softLockNum" class="span1" placeholder="数量" value="{{invoiceDetail.mailItemsJson.softLock}}">
  197. </label>
  198. </div>
  199. <div paperMark <!-- if {{invoiceDetail.invoiceForm}}==1 --> style="display:none" <!-- endif --> class="checkbox">
  200. <label>
  201. <input type="checkbox" checked disabled value="1">
  202. 发票 <br>1
  203. </label>
  204. </div>
  205. <div class="checkbox">
  206. <label>
  207. <input <!-- if !empty({{invoiceDetail.mailItemsJson.contract}}) --> checked <!-- endif --> type="checkbox" name="contract" value="1">
  208. 合同 <br><input type="number" name="contractNum" class="span1" placeholder="数量" value="{{invoiceDetail.mailItemsJson.contract}}">
  209. </label>
  210. </div>
  211. <div class="checkbox">
  212. <label>
  213. <input <!-- if !empty({{invoiceDetail.mailItemsJson.instructions}}) --> checked <!-- endif --> type="checkbox" name="instructions" value="1">
  214. 说明书 <br><input type="number" name="instructionsNum" class="span1" placeholder="数量" value="{{invoiceDetail.mailItemsJson.instructions}}">
  215. </label>
  216. </div>
  217. <div class="checkbox">
  218. <label>
  219. <input <!-- if !empty({{invoiceDetail.mailItemsJson.remittance}}) --> checked <!-- endif --> type="checkbox" name="remittance" value="1">
  220. 汇款账号单
  221. </label>
  222. </div>
  223. <div class="checkbox">
  224. <label>
  225. <input type="checkbox" checked="" disabled="">
  226. 备注<br><input type="text" class="span4" name="mailItems" value="{{invoiceDetail.mailItemsJson.mailItems}}" placeholder="备注信息或其他需要邮寄物品请填写在这,写明数量。">
  227. </label>
  228. </div>
  229. </td>
  230. </tr>
  231. </tbody>
  232. </table>
  233. <table <!-- if {{invoiceDetail.invoiceForm}}==0 --> style="display:none" <!-- endif --> electronicContact class="table table-bordered table-condensed">
  234. <tbody>
  235. <tr>
  236. <th colspan="4" class="taC">电子发票发送</th>
  237. </tr>
  238. <tr>
  239. <th class="taC" width="150">收件人手机</th>
  240. <td><input class="contact" type="text" name="electronicPhone" id="electronicPhone" <!-- if empty({{invoiceDetail.electronicPhone}}) --> value="1" <!-- else --> value="{{invoiceDetail.electronicPhone}}" <!-- endif --> placeholder="手机号"
  241. data-rule="required(from, .contact); digits" data-msg-required="请至少填写一种联系方式">
  242. </td>
  243. </tr>
  244. <tr>
  245. <th class="taC" width="150">收件人邮箱</th>
  246. <td><input class="contact" type="text" name="electronicEmail" value="{{invoiceDetail.electronicEmail}}" placeholder="邮箱"
  247. data-rule="required(from, .contact); email">
  248. </td>
  249. </tr>
  250. <tr>
  251. <td class="taC" width="150" colspan="4"><span class="colRed">*电子发票收取方式二选一,手机和邮箱,请必填一项,推荐邮箱。</span></td>
  252. </tr>
  253. </tbody>
  254. </table>
  255. <p class="alert">重新提交审批,将由退回人继续审批,无需从头开始审批。</p>
  256. <p class="taR"><input type="submit" class="button" value="重新审批"></p>
  257. </p>
  258. </form>
  259. </div>
  260. </div>
  261. </div>
  262. </div>
  263. <script type="text/javascript">autoFlashHeight();</script>
  264. </body>