ssoInvoice.html 28 KB

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