edit-invoice-modal.html 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738
  1. <!--<style type="text/css">
  2. .content-header {
  3. font-size: 24px;
  4. border-bottom: 1px dashed rgb(129,184,233);
  5. padding-bottom: 10px;
  6. padding-left: 1em;
  7. }
  8. .content-title {
  9. font-size: 19px;
  10. }
  11. td > .simple-select {
  12. display: inline;
  13. }
  14. .normal-control-label {
  15. margin-bottom: 0;
  16. text-align: right;
  17. padding-top: 6px;
  18. }
  19. #bill-info label {
  20. font-weight: 700;
  21. }
  22. .base-line {
  23. vertical-align: -webkit-baseline-middle;
  24. }
  25. #bill-info .row {
  26. margin-left: 0px;
  27. margin-right: 0px;
  28. }
  29. #bill-info {
  30. font-size: 15px;
  31. margin-bottom: 1em;
  32. }
  33. .error {
  34. padding-top: 7px;
  35. line-height: 1.5;
  36. }
  37. div.radio {
  38. margin-top: 0px;
  39. }
  40. .padding-top-5 {
  41. padding-top: 5px;
  42. }
  43. label.padding-left-0 {
  44. padding-left: 0px;
  45. }
  46. .checkbox .col-md-3 {
  47. padding-right: 0px;
  48. }
  49. div.upload {
  50. margin-left: 15px;
  51. width: 370px;
  52. }
  53. #bill-info, #bill-info input, #bill-info select{
  54. font-size: 14px !important;
  55. }
  56. .height-34 {
  57. height: 34px;
  58. line-height: 26px;
  59. }
  60. .a-background {
  61. color: red;
  62. }
  63. .address .checkbox .col-md-3{
  64. width: 20%;
  65. }
  66. #bill-info .form-control {
  67. color: #000;
  68. font-size: 14px;
  69. }
  70. #bill-info .format-error {
  71. color: red;
  72. height: 30px;
  73. line-height: 30px;
  74. }
  75. #bill-info select {
  76. opacity: 1;
  77. }
  78. #bill-info .content-header{
  79. font-size: 14px;
  80. line-height: 40px;
  81. padding-bottom: 0;
  82. }
  83. .select-adder{
  84. background:url("static/img/user/images/xiala.png") right no-repeat ;
  85. background-position-x: 150px;
  86. }
  87. </style>-->
  88. <!--<div id="bill-info">
  89. <div class="row">
  90. <h2 class="content-header" ng-bind="bill.head?'修改开票资料':'新增开票资料'">修改开票资料</h2>
  91. </div>
  92. <div class="row">
  93. <label class="col-md-3 normal-control-label"><b class="text-inverse">*</b>发票类型:</label>
  94. <div class="radio col-md-9">
  95. <label class="radio-inline" ng-show="isNormal">
  96. <label class="padding-top-5"><input type="radio" ng-model="bill.kind" value="1206" ng-checked="bill.kind==1206"></label>
  97. <label class="padding-left-0">增值税普通发票(不可抵扣)</label>
  98. </label>
  99. <label class="radio-inline" ng-show="isSpecial">
  100. <label class="padding-top-5"><input type="radio" ng-model="bill.kind" value="1205" ng-checked="bill.kind==1205"></label>
  101. <label class="padding-left-0">增值税专用发票(可抵扣) </label>
  102. </label>
  103. </div>
  104. </div>
  105. <form class="form-horizontal" novalidate="novalidate" name="form" ng-if="bill.kind==1206">
  106. <div class="form-group">
  107. <label class="col-md-3 control-label"><b class="text-inverse">*</b>发票抬头:</label>
  108. <div class="col-md-5">
  109. <input type="text" class="form-control" ng-model="bill.head" name="billHead" required="required">
  110. </div>
  111. <div class="text-inverse error col-md-2" ng-show="(bill.head||form.billHead.$touched)&&form.billHead.$invalid">必填项</div>
  112. </div>
  113. <div class="form-group">
  114. <label class="col-md-3 control-label"><b class="text-inverse">*</b>收票人:</label>
  115. <div class="col-md-5">
  116. <input id="mpbillname" type="text" class="form-control" ng-model="bill.name" name="billName" required="required" ng-change="linkmanLen()">
  117. </div>
  118. <div class="text-inverse error col-md-2">
  119. <span ng-show="form.billName.$dirty && linkError">请勿超过10个字</span>
  120. <span ng-show="(bill.name||form.billName.$touched)&&form.billName.$invalid">必填项</span>
  121. </div>
  122. </div>
  123. <div class="form-group">
  124. <label class="col-md-3 control-label"><b class="text-inverse">*</b>收票人联系电话:</label>
  125. <div class="col-md-5">
  126. <input type="text" class="form-control" ng-model="bill.telephone" name="billTel"
  127. ng-pattern="/^((\(\d{3}\))|(\d{3}\\-))?(13|15|17|18)\d{9}$/" ng-length="11" required="required">
  128. </div>
  129. <div class="text-inverse error col-md-2" ng-show="(bill.telephone||form.billTel.$touched)&&form.billTel.$invalid">
  130. 请输入正确的手机号码
  131. </div>
  132. </div>
  133. <div class="form-group">
  134. <label for="landlineNumber" class="col-md-3 control-label"><strong class="text-inverse">*</strong>座机号码:</label>
  135. <div class="col-md-5">
  136. <input type="text" ng-model="bill.landlineNumber" required class="form-control" id="landlineNumber" name="landlineNumber" placeholder="请输入你的办公号码" ng-pattern="/^[0-9]{2,4}[\-\+]?[0-9]{6,8}$/">
  137. </div>
  138. <div class="col-md-2">
  139. <span ng-show="(bill.landlineNumber || form.landlineNumber.$touched) && myForm.landlineNumber.$invalid" class="format-error">请输入正确的座机号</span>
  140. </div>
  141. </div>
  142. <div class="form-group address">
  143. <label class="col-md-3 control-label"><b class="text-inverse">*</b>收票地址:</label>
  144. <div class="row checkbox">
  145. <div class="col-md-3">
  146. <select class="select-adder form-control"
  147. ng-model="bill.address.province" name="province"
  148. ng-options="key as key for (key,value) in division"
  149. ng-change="bill.address.city='';bill.address.district='';">
  150. <option value="">省</option>
  151. </select>
  152. </div>
  153. <div class="col-md-3">
  154. <select class="select-adder form-control" ng-model="bill.address.city" name="city"
  155. ng-options="key as key for (key,value) in division[bill.address.province]"
  156. ng-change="bill.address.district='';">
  157. <option value="">市</option>
  158. </select>
  159. </div>
  160. <div class="col-md-3">
  161. <select class="select-adder form-control" ng-model="bill.address.district" name="district"
  162. ng-options="value as value for value in division[bill.address.province][bill.address.city]" required="required">
  163. <option value="">区</option>
  164. </select>
  165. </div>
  166. </div>
  167. </div>
  168. <div class="form-group">
  169. <label class="col-md-3 control-label"><b class="text-inverse">*</b>收票详细地址:</label>
  170. <div class="col-md-5">
  171. <input id="mpaddress" type="text" class="form-control" ng-model="bill.detailAddress" name="billDetail" required="required" ng-change="addressLen()">
  172. </div>
  173. <div class="text-inverse error col-md-2">
  174. <span ng-show="form.billName.$dirty && addressError">请勿超过30个字</span>
  175. <span ng-show="(bill.detailAddress||form.billDetail.$touched)&&form.billDetail.$invalid">必填项</span>
  176. </div>
  177. </div>
  178. <div class="form-group">
  179. <label class="col-md-3 control-label"><b class="text-inverse">*</b></label>
  180. <div class="col-md-5">
  181. <label class="check-active checkbox-inline text-inverse">
  182. <input type="checkbox" checked="true" name="is_agree" ng-model="bill.is_agree" required="required" id="check-mpy" style="margin-top: 12px;" />
  183. <label for="check-mpy"></label>
  184. <span>我已阅读并同意</span>
  185. </label>
  186. <a href="/help/helpList/205" class="base-line" target="_blank" style=" position: relative;top: -3px;">《发票须知》</a>
  187. </div>
  188. </div>
  189. <div class="col-md-offset-3">
  190. <input type="submit" value="保存发票信息" class="btn btn-warning" ng-disabled="form.$invalid||(!bill.is_agree)||linkError||addressError" ng-click="saveBill()">
  191. <input type="button" value="取消修改" class="btn btn-default" ng-click="exit()">
  192. </div>
  193. </form>
  194. <form class="form-horizontal" novalidate="novalidate" name="form" ng-if="bill.kind==1205">
  195. <div class="form-group">
  196. <label class="col-md-3 control-label"><b class="text-inverse">*</b>发票抬头:</label>
  197. <div class="col-md-5">
  198. <input type="text" class="form-control" ng-model="bill.head" name="billHead" required="required">
  199. </div>
  200. <div class="text-inverse error col-md-2" ng-show="(bill.head||form.billHead.$touched)&&form.billHead.$invalid">必填项</div>
  201. </div>
  202. <div class="form-group">
  203. <label class="col-md-3 control-label"><b class="text-inverse">*</b>收票人:</label>
  204. <div class="col-md-5">
  205. <input id="mzbillname" type="text" class="form-control" ng-model="bill.name" name="billName" required="required" ng-change="linkmanLen()">
  206. </div>
  207. <div class="text-inverse error col-md-2">
  208. <span ng-show="form.billName.$dirty && linkError">请勿超过10个字</span>
  209. <span ng-show="(bill.name||form.billName.$touched)&&form.billName.$invalid">必填项</span>
  210. </div>
  211. </div>
  212. <div class="form-group">
  213. <label class="col-md-3 control-label"><b class="text-inverse">*</b>收票人联系电话:</label>
  214. <div class="col-md-5">
  215. <input type="text" class="form-control" ng-model="bill.telephone" name="billTel"
  216. ng-pattern="/^((\(\d{3}\))|(\d{3}\\-))?(13|15|17|18)\d{9}$/" ng-length="11" required="required">
  217. </div>
  218. <div class="text-inverse error col-md-2" ng-show="(bill.telephone || form.billTel.$touched)&&form.billTel.$invalid">输入正确的联系方式</div>
  219. </div>
  220. <div class="form-group">
  221. <label for="landlineNumber" class="col-md-3 control-label">座机号码:</label>
  222. <div class="col-md-5">
  223. <input type="text" ng-model="bill.landlineNumber" class="form-control" name="landlineNumber" placeholder="请输入你的办公号码" ng-pattern="/^[0-9]{2,4}[\-\+]?[0-9]{6,8}$/">
  224. </div>
  225. <div class="col-md-2">
  226. <span ng-show="(bill.landlineNumber || form.landlineNumber.$touched) && myForm.landlineNumber.$invalid" class="format-error">请输入正确的座机号</span>
  227. </div>
  228. </div>
  229. <div class="form-group address">
  230. <label class="col-md-3 control-label"><b class="text-inverse">*</b>收票地址:</label>
  231. <div class="row checkbox">
  232. <div class="col-md-3">
  233. <select required="required" class="select-adder form-control"
  234. ng-model="bill.address.province" name="province"
  235. ng-options="key as key for (key,value) in division"
  236. ng-change="bill.address.city='';bill.address.district='';">
  237. <option value="">省</option>
  238. </select>
  239. </div>
  240. <div class="col-md-3">
  241. <select class="select-adder form-control" ng-model="bill.address.city" name="city"
  242. ng-options="key as key for (key,value) in division[bill.address.province]"
  243. ng-change="bill.address.district='';" required="required">
  244. <option value="">市</option>
  245. </select>
  246. </div>
  247. <div class="col-md-3">
  248. <select class="select-adder form-control" ng-model="bill.address.district" name="district"
  249. ng-options="value as value for value in division[bill.address.province][bill.address.city]" required="required">
  250. <option value="">区</option>
  251. </select>
  252. </div>
  253. </div>
  254. </div>
  255. <div class="form-group">
  256. <label class="col-md-3 control-label"><b class="text-inverse">*</b>收票详细地址:</label>
  257. <div class="col-md-5">
  258. <input id="mzaddress" type="text" class="form-control" required="required" name="billDetail" ng-model="bill.detailAddress" ng-change="addressLen()">
  259. </div>
  260. <div class="text-inverse error col-md-2">
  261. <span ng-show="form.billName.$dirty && addressError">请勿超过30个字</span>
  262. <span ng-show="(bill.detailAddress||form.billDetail.$touched)&&form.billDetail.$invalid">必填项</span>
  263. </div>
  264. </div>
  265. <div class="form-group">
  266. <label class="col-md-3 control-label"><b class="text-inverse">*</b>单位地址:</label>
  267. <div class="col-md-5">
  268. <input type="text" class="form-control" ng-model="bill.companyAddress" name="companyAddr" required="required">
  269. </div>
  270. <div class="text-inverse error col-md-2" ng-show="(bill.companyAddress||form.companyAddr.$touched)&&form.companyAddr.$invalid">必填项</div>
  271. </div>
  272. <div class="form-group">
  273. <label class="col-md-3 control-label"><b class="text-inverse">*</b>单位电话:</label>
  274. <div class="col-md-5">
  275. <input type="text" class="form-control" placeholder="区号和号码使用 '-' 隔开,或者不填区号" name="companyPhone" ng-model="bill.companyPhone" ng-pattern="/^[0-9][0-9\-]*[0-9]$/" required="required">
  276. </div>
  277. <div class="text-inverse error col-md-2" ng-show="(bill.companyPhone||form.companyPhone.$touched)&&form.companyPhone.$invalid">输入正确的电话</div>
  278. </div>
  279. <div class="form-group">
  280. <label class="col-md-3 control-label"><b class="text-inverse">*</b>税务登记号:</label>
  281. <div class="col-md-5">
  282. <input type="text" class="form-control" ng-model="bill.companyTaxNumber" name="companyTaxNum" required="true" ng-minlength="15">
  283. </div>
  284. <div class="text-inverse error col-md-2" ng-show="(bill.companyTaxNumber||form.companyTaxNum.$touched)&&(form.companyTaxNum.$error.required||form.companyTaxNum.$error.minlength)">至少15位数字</div>
  285. </div>
  286. <div class="form-group">
  287. <label class="col-md-3 control-label"><b class="text-inverse">*</b>开户银行:</label>
  288. <div class="col-md-5">
  289. <input type="text" class="form-control" ng-model="bill.bankName" name="bankName" required="required">
  290. </div>
  291. <div class="text-inverse error col-md-2" ng-show="(bill.bankName||form.bankName.$touched)&&form.bankName.$invalid">必填项</div>
  292. </div>
  293. <div class="form-group">
  294. <label class="col-md-3 control-label"><b class="text-inverse">*</b>开户银行账户:</label>
  295. <div class="col-md-5">
  296. <input type="text" class="form-control" ng-model="bill.bankAccount" name="account" ng-pattern="/^[0-9]*$/" required ng-minlength="8" ng-maxlength="30">
  297. </div>
  298. <div class="text-inverse error col-md-3" ng-show="(bill.bankAccount||form.account.$touched)&&(form.account.$invalid)">输入正确的银行卡账号</div>
  299. </div>
  300. &lt;!&ndash;<div class="form-group" ng-show="bill.generalTaxpayerCertUrl">
  301. <label for="generalTaxpayerCert" class="col-md-3 control-label">一般纳税人认定证书:</label>
  302. <div class="col-md-5">
  303. <input type="file" id="generalTaxpayerCert" name="generalTaxpayerCert" class="form-control" ng-file-select ng-model="generalTaxpayerCertFile" ng-multiple="false" accept="image/*,application/pdf,*.pdf">
  304. </div>
  305. </div>&ndash;&gt;
  306. <div class="form-group" ng-show="bill.attachUrl&&!billInfoRevise">
  307. <label class="col-md-3 control-label" for="exampleInputFile">开票资料:</label>
  308. <div class="col-md-5 height-34">
  309. <a href="{{bill.attachUrl}}" target="_blank">点击查看</a>&nbsp;<a class="a-background" ng-click="billInfoRevise=true;">修改</a>
  310. </div>
  311. </div>
  312. <div class="form-group" ng-show="!bill.attachUrl || billInfoRevise">
  313. <label class="col-md-3 control-label" for="exampleInputFile">上传开票资料:</label>
  314. <div class="col-md-5">
  315. <input class="form-control" type="file" ng-file-select ng-model="bill.billInfo" name="billInfo" id="InputFile" ng-multiple="false" accept="image/gif,image/jpeg,image/jpg,image/png,image/svg,application/pdf,*.pdf">
  316. </div>
  317. </div>
  318. <div class="form-group">
  319. <label class="col-md-3 control-label"><b class="text-inverse">*</b></label>
  320. <div class="col-md-5">
  321. <label class="check-active checkbox-inline text-inverse">
  322. <input checked="true" type="checkbox" ng-model="bill.is_agree" name="is_agree" required="required" id="check-mzy">
  323. <label for="check-mzy"></label>
  324. <span>我已阅读并同意</span>
  325. </label>
  326. <a href="/help/helpList/205">《发票须知》</a>
  327. </div>
  328. </div>
  329. <div class="col-md-offset-3">
  330. <input type="submit" value="保存发票信息" class="btn btn-warning" ng-disabled="form.$invalid||(!bill.is_agree)||linkError||addressError" ng-click="saveBill()">
  331. <input type="button" ng-if="!invoiceId" value="取消新建" class="btn btn-default" ng-click="exit()">
  332. <input type="button" ng-if="invoiceId" value="取消修改" class="btn btn-default" ng-click="exit()">
  333. </div>
  334. </form>
  335. </div>-->
  336. <style>
  337. /*新增普票样式*/
  338. .content-title {
  339. font-size: 19px;
  340. }
  341. td > .simple-select {
  342. display: inline;
  343. }
  344. .normal-control-label {
  345. margin-bottom: 0;
  346. text-align: right;
  347. padding-top: 7px;
  348. padding-right: 23px;
  349. }
  350. #bill-info label {
  351. font-size: 14px;
  352. line-height: 1.429;
  353. font-weight: normal;
  354. }
  355. #bill-info span.disable {
  356. color: rgb(153, 153, 153);
  357. }
  358. .base-line {
  359. vertical-align: -webkit-baseline-middle;
  360. }
  361. #bill-info .row {
  362. margin-left: 0px;
  363. margin-right: 0px;
  364. }
  365. #bill-info {
  366. font-size: 15px;
  367. margin-bottom: 1em;
  368. }
  369. .error {
  370. padding-top: 7px;
  371. line-height: 1.5;
  372. }
  373. div.radio {
  374. margin-top: 0px;
  375. margin-bottom: 0;
  376. height: 27px;
  377. line-height: 27px;
  378. padding-top: 6px;
  379. padding-left: 0;
  380. }
  381. .padding-top-5 {
  382. padding-top: 5px;
  383. }
  384. label.padding-left-0 {
  385. padding-left: 0px;
  386. }
  387. .checkbox .col-md-3 {
  388. padding-right: 0px;
  389. }
  390. div.upload {
  391. margin-left: 15px;
  392. width: 370px;
  393. }
  394. #bill-info, #bill-info input, #bill-info select{
  395. font-size: 14px !important;
  396. }
  397. .height-34 {
  398. height: 34px;
  399. line-height: 26px;
  400. }
  401. .a-background {
  402. color: red;
  403. }
  404. .address .checkbox .col-md-3{
  405. width: 20%;
  406. }
  407. #bill-info .form-control {
  408. color: #000;
  409. font-size: 14px;
  410. }
  411. #bill-info .format-error {
  412. color: red;
  413. height: 30px;
  414. line-height: 30px;
  415. }
  416. #bill-info select {
  417. opacity: 1;
  418. }
  419. #bill-info .content-header{
  420. font-size: 14px;
  421. color: rgb(80, 120, 203);
  422. font-weight: bold;
  423. line-height: 1.429;
  424. padding: 10px 0 10px 40px;
  425. }
  426. .select-adder{
  427. background:url("static/img/user/images/xiala.png") right no-repeat ;
  428. background-position-x: 150px;
  429. }
  430. .form-btn .btn {
  431. background: #5078cb;
  432. border-color: #3b88c3;
  433. width: 60px;
  434. height: 26px;
  435. line-height: 13px;
  436. color: #fff;
  437. border-radius: 0;
  438. text-align: center;
  439. vertical-align: middle;
  440. white-space: nowrap;
  441. }
  442. .form-btn .btn:first-child{
  443. background: #c8c6c6;
  444. border: 1px solid #c8c6c6;
  445. }
  446. .form-area {
  447. background: #f5f8fe;
  448. margin: 0 15px;
  449. }
  450. .form-area .row {
  451. padding-top: 15px;
  452. }
  453. .form-area .address .row {
  454. padding-top: 0px;
  455. }
  456. .form-area form {
  457. padding-top: 15px;
  458. }
  459. .form-bottom {
  460. background: #fff;
  461. text-align: center;
  462. vertical-align: middle;
  463. padding-top: 20px;
  464. padding-bottom: 3px;
  465. }
  466. .ticket_record_list dl dt span {
  467. font-weight: normal;
  468. }
  469. /*radio*/
  470. #bill-info .radioLabel {
  471. line-height: 20px;
  472. cursor: pointer;
  473. color: #666;
  474. }
  475. #bill-info .radio-inline {
  476. padding-left: 0;
  477. margin: 0 26px;
  478. }
  479. #bill-info .radioLabel label{
  480. width: 12px;
  481. height: 12px;
  482. background: url(static/img/icon/check-rule.png);
  483. background-position: 0 0px;
  484. vertical-align: middle;
  485. margin-bottom: 0 !important;
  486. margin-right: 0px !important;
  487. padding: 0;
  488. min-height: 12px;
  489. left: -7px;
  490. }
  491. #bill-info .radioLabel input[type="radio"]:checked + label {
  492. background-position: -15px -12px;
  493. }
  494. #bill-info .radioLabel input[type="radio"]:checked + label{
  495. color: #5078cb;
  496. }
  497. #bill-info .radioLabel input[type="radio"]{
  498. display: none;
  499. }
  500. #bill-info .form-area .input-file-default {
  501. width: 75px;
  502. }
  503. .ticket_record_list dl dd:hover {
  504. background: #f1f5ff;
  505. }
  506. #bill-info .select-file-box input {
  507. display: none;
  508. }
  509. #bill-info .select-file-box span {
  510. width: 74px;
  511. display: block;
  512. text-align: center;
  513. height: 22px;
  514. line-height: 22px;
  515. background: #ff8522;
  516. font-size: 12px;
  517. color: #fff;
  518. margin-top: 5px;
  519. position: relative;
  520. left: -22px;
  521. border-radius: 2px;
  522. }
  523. .cursor-not-allowed {
  524. cursor: not-allowed!important;
  525. }
  526. .ticket_record_list .ticket_data dd {
  527. border-left: #dae5fd 1px solid;
  528. border-bottom: #dae5fd 1px solid!important;
  529. border-right: #dae5fd 1px solid;
  530. }
  531. #bill-info .form-input-line {
  532. height: 34px;
  533. width: 331px;
  534. display: inline-block;
  535. margin: 0 15px;
  536. float: left;
  537. }
  538. #bill-info .form-input-line input[type='text'],#bill-info .form-input-line select {
  539. border-radius: 2px;
  540. border: 1px solid #eef4ff;
  541. }
  542. #bill-info .file-line {
  543. width: 247px;
  544. }
  545. #bill-info .address .form-input-line {
  546. margin: 0 10px 0 0;
  547. }
  548. #bill-info .address .form-input-line:first-child {
  549. margin-left: 15px;
  550. }
  551. #bill-info .control-label{
  552. position: relative;
  553. top: 7px;
  554. }
  555. #bill-info .normal-control-label {
  556. position: relative;
  557. top: 5px;
  558. }
  559. .bg-fff8ee {
  560. background: #fff8ee;
  561. }
  562. .bg-fff {
  563. -webkit-box-shadow: 0 0 0px 1000px white inset!important;
  564. }
  565. input:-webkit-autofill,
  566. input:-webkit-autofill:hover,
  567. input:-webkit-autofill:focus,
  568. input:-webkit-autofill:active {
  569. -webkit-transition-delay: 99999s;
  570. -webkit-transition: color 99999s ease-out, background-color 99999s ease-out;
  571. /* -webkit-box-shadow: 0 0 0px 1000px white inset;*/
  572. }
  573. .modal-lg {
  574. width: 914px;
  575. }
  576. </style>
  577. <div id="bill-info">
  578. <div class="row">
  579. <h2 class="content-header ng-binding" ng-bind="bill.head?'修改开票资料':'新增开票资料'">修改开票资料</h2>
  580. </div>
  581. <div class="form-area">
  582. <form class="form-horizontal" novalidate="novalidate" name="form">
  583. <div class="form-group">
  584. <label class="col-md-2 control-label"><b class="text-inverse">*</b>发票抬头:</label>
  585. <div class="form-input-line">
  586. <input type="text" class="form-control" ng-class="{'bg-fff8ee': !initFlag.initBillHead&&(form.billHead.$invalid || !validForm.validBillHead)}" ng-model="bill.head" ng-focus="form.billHead.$touched = false;" ng-blur="form.billHead.$touched = true;initFlag.initBillHead = false;checkBillHead()" name="billHead" required="required" placeholder="请输入发票抬头">
  587. </div>
  588. <div class="text-inverse error col-md-3" ng-show="form.billHead.$touched&&(form.billHead.$invalid || !validForm.validBillHead)" ng-bind="form.billHead.$error.required?'请填写发票抬头':'请勿超过50个字'"></div>
  589. </div>
  590. <div class="form-group" ng-if="invoiceType == 1205">
  591. <label class="col-md-2 control-label"><b class="text-inverse">*</b>单位地址:</label>
  592. <div class="form-input-line">
  593. <input type="text" class="form-control" ng-class="{'bg-fff8ee': !initFlag.initCompanyAddress&&(form.companyAddr.$invalid || !validForm.validCompanyAddress)}" ng-model="bill.companyAddress" ng-focus="form.companyAddr.$touched = false;" ng-blur="form.companyAddr.$touched = true;initFlag.initCompanyAddress = false; checkCompanyAddress()" name="companyAddr" required="required" placeholder="请输入单位地址">
  594. </div>
  595. <div class="text-inverse error col-md-3" ng-show="form.companyAddr.$touched&&(form.companyAddr.$invalid || !validForm.validCompanyAddress)" ng-bind="form.companyAddr.$error.required?'请填写单位地址':'请勿超过50个字'"></div>
  596. </div>
  597. <div class="form-group" ng-if="invoiceType == 1205">
  598. <label class="col-md-2 control-label"><b class="text-inverse">*</b>单位电话:</label>
  599. <div class="form-input-line">
  600. <input type="text" class="form-control" ng-class="{'bg-fff8ee':!initFlag.initCompanyPhone&&form.companyPhone.$error.required, 'bg-fff':!form.companyPhone.$invalid}" ng-focus="form.companyPhone.$touched = false" ng-blur="form.companyPhone.$touched = true;initFlag.initCompanyPhone=false;" placeholder="区号和号码使用 '-' 隔开" name="companyPhone" ng-model="bill.companyPhone" ng-pattern="/^0\d{2,3}-[1-9]\d{6,7}$/" ng-maxlength="20" required="required">
  601. </div>
  602. <div class="text-inverse error col-md-3" ng-show="form.companyPhone.$touched&&form.companyPhone.$invalid" ng-bind="form.companyPhone.$error.required?'请填写单位电话':form.companyPhone.$error.maxlength?'请勿超过20个字符':'请填写正确的电话号码,用-隔开'"></div>
  603. </div>
  604. <div class="form-group" ng-if="invoiceType == 1205">
  605. <label class="col-md-2 control-label"><b class="text-inverse">*</b>税务登记号:</label>
  606. <div class="form-input-line">
  607. <input type="text" class="form-control" ng-class="{'bg-fff8ee':!initFlag.initCompanyTaxNum&&form.companyTaxNum.$error.required, 'bg-fff':!form.companyTaxNum.$invalid}" ng-model="bill.companyTaxNumber" ng-focus="form.companyTaxNum.$touched = false" ng-blur="form.companyTaxNum.$touched = true; initFlag.initCompanyTaxNum = false;" name="companyTaxNum" required="true" ng-maxlength="20" ng-minlength="15" ng-pattern="/^[0-9a-zA-Z]+$/" placeholder="请输入税务登记号">
  608. </div>
  609. <div class="text-inverse error col-md-3" ng-show="form.companyTaxNum.$touched&&(form.companyTaxNum.$invalid)" ng-bind="form.companyTaxNum.$error.required?'请填写税务登记号':'请填写15-20位数字或字母'"></div>
  610. </div>
  611. <div class="form-group" ng-if="invoiceType == 1205">
  612. <label class="col-md-2 control-label"><b class="text-inverse">*</b>开户银行:</label>
  613. <div class="form-input-line">
  614. <input type="text" class="form-control" ng-class="{'bg-fff8ee': !initFlag.initBankName&&(form.bankName.$invalid || !validForm.validBankName)}" ng-model="bill.bankName" ng-focus="form.bankName.$touched = false;" ng-blur="form.bankName.$touched = true;initFlag.initBankName = false; checkBankName()" name="bankName" required="required" placeholder="请输入开户银行">
  615. </div>
  616. <div class="text-inverse error col-md-3" ng-show="form.bankName.$touched&&(form.bankName.$invalid || !validForm.validBankName)" ng-bind="form.bankName.$error.required?'请填写开户银行':'请勿超过30个字'"></div>
  617. </div>
  618. <div class="form-group" ng-if="invoiceType == 1205">
  619. <label class="col-md-2 control-label"><b class="text-inverse">*</b>开户银行账户:</label>
  620. <div class="form-input-line">
  621. <input type="text" class="form-control" ng-class="{'bg-fff8ee':!initFlag.initBankAccount&&form.account.$error.required}" ng-model="bill.bankAccount" name="account" ng-focus="form.account.$touched = false" ng-blur="form.account.$touched = true; initFlag.initBankAccount=false" ng-pattern="/^[0-9]*$/" required ng-maxlength="30" placeholder="请输入开户银行账号">
  622. </div>
  623. <div class="text-inverse error col-md-3" ng-show="form.account.$touched&&(form.account.$invalid)" ng-bind="form.account.$error.required?'请填写开户银行账号':'请填写30位以内的数字'"></div>
  624. </div>
  625. <div class="form-group" ng-if="invoiceType == 1205">
  626. <label class="col-md-2 control-label"><b class="text-inverse">*</b>上传开户许可证:{{form.permissionUpload}}</label>
  627. <div class="form-input-line file-line">
  628. <input type="text" name="permission" required class="form-control" ng-model="bill.attachUrl" readonly style="background: #fff">
  629. </div>
  630. <div class="col-md-1">
  631. <label class="select-file-box">
  632. <span>选择文件</span>
  633. <input class="input-file-default" type="file" ng-file-select ng-model="bill.billInfo" ng-change="onUploadPermission()" ng-multiple="false" accept="image/gif,image/jpeg,image/jpg,image/png,image/svg,application/pdf,*.pdf">
  634. </label></div>
  635. <div class="text-inverse error col-md-3" ng-show="isDoUpload&&(form.permission.$error.required)">请勿超过3M</div>
  636. </div>
  637. <div class="form-group">
  638. <label class="col-md-2 control-label"><b class="text-inverse">*</b>收票人:</label>
  639. <div class="form-input-line">
  640. <input id="mzbillname" ng-class="{'bg-fff8ee': !initFlag.initBillName&&(form.billName.$invalid || !validForm.validBillName)}" type="text" class="form-control" ng-focus="form.billName.$touched = false; " ng-blur="form.billName.$touched = true;initFlag.initBillName = false; checkBillName()" ng-model="bill.name" name="billName" required="required" placeholder="请输入收票人">
  641. </div>
  642. <div class="text-inverse error col-md-3" ng-show="form.billName.$touched&&(form.billName.$invalid || !validForm.validBillName)" ng-bind="form.billName.$error.required?'请填写收票人姓名':'请勿超过10个字'"></div>
  643. </div>
  644. <div class="form-group">
  645. <label class="col-md-2 control-label"><b class="text-inverse">*</b>联系电话:</label>
  646. <div class="form-input-line">
  647. <input type="text" class="form-control" ng-class="{'bg-fff8ee':!initFlag.initTelephone&&form.billTel.$error.required, 'bg-fff':!form.billTel.$invalid||!form.billTel.$touched}" ng-model="bill.telephone" ng-focus="form.billTel.$touched = false" ng-blur="form.billTel.$touched = true; initFlag.initTelephone=false;" name="billTel"
  648. ng-pattern="/^[0-9]*$/" ng-minlength="8" ng-maxlength="11" required="required" placeholder="请输入联系电话">
  649. </div>
  650. <div class="text-inverse error col-md-3" ng-show="form.billTel.$touched&&form.billTel.$invalid" ng-bind="form.billTel.$error.required?'请填写联系电话':'请输入8-11位数字'"></div>
  651. </div>
  652. <div class="form-group address">
  653. <label class="col-md-2 control-label"><b class="text-inverse">*</b>所在地区:</label>
  654. <div class="row checkbox">
  655. <div class="form-input-line" style="width: 160px">
  656. <select required="required" class="select-adder form-control"
  657. ng-model="bill.address.province" name="province"
  658. ng-options="key as key for (key,value) in division"
  659. ng-change="bill.address.city='';bill.address.district='';">
  660. <option value="">省</option>
  661. </select>
  662. </div>
  663. <div class="form-input-line" style="width: 160px">
  664. <select class="select-adder form-control" ng-model="bill.address.city" name="city"
  665. ng-options="key as key for (key,value) in division[bill.address.province]"
  666. ng-change="bill.address.district='';" required="required">
  667. <option value="">市</option>
  668. </select>
  669. </div>
  670. <div class="form-input-line" style="width: 160px">
  671. <select class="select-adder form-control" ng-model="bill.address.district" name="district"
  672. ng-options="value as value for value in division[bill.address.province][bill.address.city]" required="required">
  673. <option value="">区</option>
  674. </select>
  675. </div>
  676. </div>
  677. </div>
  678. <div class="form-group">
  679. <label class="col-md-2 control-label"><b class="text-inverse">*</b>详细地址:</label>
  680. <div class="form-input-line" style="width: 502px">
  681. <input id="mzaddress" type="text" class="form-control" ng-class="{'bg-fff8ee': !initFlag.initDetailAddress&&(form.billDetail.$invalid|| !validForm.validDetailAddress)}" required="required" name="billDetail" ng-model="bill.detailAddress" title="建议您填写详细发件地址,如街道名,门牌号,楼层和房间号等信息"
  682. placeholder="建议您填写详细发件地址,如街道名,门牌号,楼层和房间号等信息" ng-focus="form.billDetail.$touched = false; " ng-blur="form.billDetail.$touched = true;initFlag.initDetailAddress = false; checkDetailAddress()" >
  683. </div>
  684. <div class="text-inverse error col-md-3" ng-show="form.billDetail.$touched&&(form.billDetail.$invalid|| !validForm.validDetailAddress)" ng-bind="form.billDetail.$error.required?'请填写详细地址':'请勿超过30个字'"></div>
  685. </div>
  686. <div class="form-bottom">
  687. <div class="form-group">
  688. <label class="check-active checkbox-inline text-inverse">
  689. <input checked="true" type="checkbox" ng-model="bill.is_agree" name="is_agree" id="check-mzy">
  690. <label for="check-mzy" style="position: relative;bottom: 2px;"></label>
  691. <span style="color: #333;">我已阅读并同意</span>
  692. </label>
  693. <a href="/help/helpList/205" target="_blank" style="color: #5078cb; font-size: 14px; position: relative;top: 2px;">《发票须知》</a>
  694. </div>
  695. <div class="form-btn">
  696. <input type="button" value="取消" class="btn" ng-click="exitEdit()">
  697. <input type="submit" value="保存" class="btn"
  698. ng-click="saveBill(form.$invalid)">
  699. </div>
  700. </div>
  701. </form>
  702. </div>
  703. </div>