invoiceStoreEdit.html 13 KB

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