pay.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <ion-view view-title="报销" hide-back-button="true">
  2. <ion-nav-buttons side="left">
  3. <button class="button ion-chevron-left button-clear button-dark" ng-click="goBack()">&nbsp;返回</button>
  4. </ion-nav-buttons>
  5. <ion-nav-buttons side="right">
  6. <button class="button button-clear" ng-click="toman()" ng-if="roleid==1">管理&nbsp;&nbsp;</button>
  7. <button class="button button-clear" ng-click="popover.show($event)">
  8. <i class="icon ion-android-add"></i>
  9. </button>
  10. </ion-nav-buttons>
  11. <ion-content>
  12. <ion-refresher pulling-text="下拉刷新" on-refresh="doRefresh()"></ion-refresher>
  13. <a class="item item-icon-right" ng-href="#/billlist/0">我提交的报销单
  14. <i class="icon ion-chevron-right icon-accessory"></i>
  15. <!--<span class="badge badge-assertive">1</span>-->
  16. </a>
  17. <a class="item item-icon-right" ng-href="#/billapprove/1">需要我审批的报销单
  18. <i class="icon ion-chevron-right icon-accessory"></i>
  19. <!--<span class="badge badge-assertive">1</span>-->
  20. </a>
  21. <a class="item item-icon-right" ng-href="#/billpay/3">需要我支付的报销单
  22. <i class="icon ion-chevron-right icon-accessory"></i>
  23. </a>
  24. <div class="item item-divider">消费记录({{recordlist.results.length}})</div>
  25. <ion-list>
  26. <div class="item item-icon-left" ng-repeat="record in recordlist.results" ng-click="torecord(record)">
  27. <i class="icon icon-style" style="background-color:{{record.type_modal.icon_color}}" ng-class="record.type_modal.icon"></i>{{record.description}}
  28. <span class="item-note assertive">¥{{record.amount}}</span>
  29. <p>{{record.spend_date | date:'yyyy-MM-dd'}}</p>
  30. </div>
  31. </ion-list>
  32. <ion-infinite-scroll spinner="android" ng-if="moreCanBeLoaded()" on-infinite="loadMore()" distance="1%" immediate-check="false"></ion-infinite-scroll>
  33. </ion-content>
  34. <script id="templates/paymenu.html" type="text/ng-template">
  35. <ion-popover-view ng-class="{'true':'details-popup','false':'popver_view'}[is_have_step]">
  36. <ion-content>
  37. <ion-list>
  38. <ion-item class="item item-button" ng-click="torecord()">添加消费记录</ion-item>
  39. <ion-item class="item item-button" ng-click="addpaybill()" ng-if="is_have_step">创建报销单</ion-item>
  40. <ion-item class="item item-button" ng-click="toauditstep()">{{is_have_step?"修改审批人":"添加审批步骤"}}</ion-item>
  41. </ion-list>
  42. </ion-content>
  43. </ion-popover-view>
  44. </script>
  45. </ion-view>