paybilldetails.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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-content>
  6. <ion-spinner ng-if="loading" class="center init-load" icon="android"></ion-spinner>
  7. <div ng-if="!loading">
  8. <ion-item class="mission-header item item-avatar " type="item-text-wrap">
  9. <img ng-src="../../../img/panda.png" style="">
  10. <span class="item-note">{{bill.create_date | date:'MM-dd'}}</span>
  11. <h2>{{bill.create_user.username}}</h2>
  12. <p>{{bill.create_user.degree}}</p>
  13. </ion-item>
  14. <div class="item item-text-wrap bill-details-item">
  15. {{bill.title}}
  16. <p> 报销金额:
  17. <label for="" class="energized">{{bill.total_amount}}元 </label>
  18. </p>
  19. <p> 备注:
  20. <label for="" class="dark">{{bill.note}}</label>
  21. </p>
  22. <!--<p style="float:right">报销单号:{{bill.billno}}</p>-->
  23. </div>
  24. <div class="item item-divider"></div>
  25. <ion-item class="item auditemp-box">
  26. 消费详情
  27. <label for="" class="edit-text-label positive">{{bill.record.length}}笔消费</label>
  28. <div class="item item-text-wrap bill-record-box">
  29. <div class="item item-icon-left" ng-repeat="rd in bill.record">
  30. <i class="icon icon-style {{rd.type_modal.icon}}" style="background-color:{{rd.type_modal.icon_color}}"></i>{{rd.type_modal.name}}
  31. <span class="item-note ">¥{{rd.amount}}</span>
  32. <p>{{rd.spend_date | date:'yyyy-MM-dd'}}</p>
  33. <p>{{rd.description}}</p>
  34. <div class="blob"><image-popover all-images="rd.files"></image-popover></div>
  35. <!-- <hr> -->
  36. </div>
  37. </div>
  38. <!--<div class="bill-grant">-->
  39. <!--<p><i class="ion-android-add"></i>&nbsp;补助-->
  40. <!--<la bel class="assertive">¥ {{bill.grant}}</label>-->
  41. <!--</p>-->
  42. <!--</div>-->
  43. </ion-item>
  44. <div class="item item-divider"></div>
  45. <ion-item class="item">审批信息
  46. <span ng-if="bill.status == 1" class="item-note energized">未支付</span>
  47. </ion-item>
  48. <section id="cd-timeline" class="cd-container">
  49. <div ng-repeat="hs in billhistorydata">
  50. <div class="cd-timeline-block">
  51. <div class="cd-timeline-picture">
  52. <img ng-src={{hs.profilePicture}} />
  53. </div>
  54. <!-- cd-timeline-img -->
  55. <div class="cd-timeline-content">
  56. <h5 class="marginBottom0 marginTop0">
  57. <i class="{{hs.icon}}"></i>
  58. <span ng-class="{true:'task-create-member-p'}[$index == 0 && !bill.verifier.is_teller]">{{hs.title}}</span>
  59. <label class="cd-author">{{hs.date | date: "yyyy年MM月dd日 HH:mm"}}</label>
  60. </h5>
  61. <p class="timelineText">{{hs.text}}</p>
  62. </div>
  63. </div>
  64. </div>
  65. </section>
  66. <button ng-if="user == bill.create_user.id && user != bill.verifier.verifier_id && (bill.status == 0 || bill.history.length == 0)" class="button button-full button-assertive" ng-click="deleteBill()">撤销</button>
  67. </div>
  68. <ion-item ng-if="user == bill.verifier.verifier_id || user == bill.create_user.id && bill.status == 0" class="item"></ion-item>
  69. </ion-content>
  70. <ion-footer-bar ng-if="(!bill.status && user == bill.verifier.verifier_id) || (user == bill.create_user.id && bill.status == 0) || (user == bill.verifier.verifier_id && bill.status == 1)">
  71. <div class="bar bar-footer" ng-if="user == bill.verifier.verifier_id && !bill.status">
  72. <button class="button button-balanced col-40" ng-click="audit(1)">同意</button>
  73. <div class="col-20"></div>
  74. <button class="button button-energized col-40" ng-click="audit(0)">驳回</button>
  75. </div>
  76. <div class="bar bar-footer" ng-if="user == bill.create_user.id && bill.status == 0">
  77. <div class="col-10"></div>
  78. <button class="button button-energized col-80" ng-click="toedit()">已被驳回,请修改报销单</button>
  79. <div class="col-10"></div>
  80. </div>
  81. <div class="bar bar-footer" ng-if="user == bill.verifier.verifier_id && bill.status == 1">
  82. <div class="col-10"></div>
  83. <button class="button button-balanced col-80" ng-click="audit(2)">标记为已支付</button>
  84. <div class="col-10"></div>
  85. </div>
  86. </ion-footer-bar>
  87. </ion-view>