paybilldetails.html 4.8 KB

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