erpbx-record.html 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <ion-view view-title="{{recordid && recordid == -1 ? '新建' : recordid && recordid == 0 ? null : '编辑'}}消费记录">
  2. <ion-nav-buttons side="right">
  3. <button ng-if="!isCheck()" class="button button-clear" ng-click="saverecord()">完成</button>
  4. </ion-nav-buttons>
  5. <ion-content>
  6. <ion-item class="item-divider"></ion-item>
  7. <ion-item class="item-input text-input">
  8. <span class="input-label">金额</span>
  9. <span ng-if="isCheck()">{{record.amt}}</span>
  10. <input ng-if="!isCheck()" type="number" ng-model="record.amt" placeholder="输入金额">
  11. </ion-item>
  12. <ion-item class="item-divider"></ion-item>
  13. <ion-item class="item-icon-right" ng-click="showModal('type')">
  14. 消费类型
  15. <span class="item-note">{{record.fee_name}}</span>
  16. <i ng-if="!isCheck()" class="icon ion-chevron-right icon-accessory"></i>
  17. </ion-item>
  18. <ion-item class="item-icon-right" ng-click="selectDate()">
  19. 消费日期
  20. <span class="item-note">{{record.bx_dd | date:"yyyy-MM-dd"}}</span>
  21. <i ng-if="!isCheck()" class="icon ion-chevron-right icon-accessory"></i>
  22. </ion-item>
  23. <ion-item class="item-divider"></ion-item>
  24. <ion-item class="item-icon-right" ng-click="showModal('tax')">
  25. 扣税类别
  26. <span class="item-note">{{record.tax_id}}.{{taxCategory[record.tax_id]}}</span>
  27. <i ng-if="!isCheck()" class="icon ion-chevron-right icon-accessory"></i>
  28. </ion-item>
  29. <ion-item>
  30. 税率
  31. <span class="item-note">{{record.tax_rto}}</span>
  32. </ion-item>
  33. <ion-item ng-if="recordid != -1 && recordid != 0">
  34. 税额
  35. <span class="item-note">{{record.tax}}</span>
  36. </ion-item>
  37. <div ng-if="language == 'zh-TW'">
  38. <ion-item class="item-divider"></ion-item>
  39. <ion-item class="item-input text-input">
  40. <span class="input-label">发票号码</span>
  41. <span ng-if="isCheck()">{{record.inv_no}}</span>
  42. <input ng-if="!isCheck()" type="text" maxlength="14" ng-model="record.inv_no" placeholder="输入发票号码">
  43. </ion-item>
  44. <ion-item class="item-input text-input">
  45. <span class="input-label">统一编号</span>
  46. <span ng-if="isCheck()">{{record.uni_no_pay}}</span>
  47. <input ng-if="!isCheck()" type="text" maxlength="20" ng-model="record.uni_no_pay" placeholder="输入统一编号">
  48. </ion-item>
  49. </div>
  50. <ion-item class="item-divider"></ion-item>
  51. <ion-item>票据图片</ion-item>
  52. <erp-bx-photo-bar files="record.files" delete-image="deleteimage_list" is-disabled="isCheck()"></erp-bx-photo-bar>
  53. <ion-item class="item-divider"></ion-item>
  54. <label class="item item-input text-input">
  55. <span class="input-label">描述</span>
  56. <span ng-if="isCheck()">{{record.rem}}</span>
  57. <input ng-if="!isCheck()" type="text" ng-model="record.rem" placeholder="输入描述"/>
  58. </label>
  59. <ion-item class="item-divider"></ion-item>
  60. <div ng-if="recordid != -1 && recordid != 0">
  61. <ion-item class="assertive center" ng-click="deleteRecord()">
  62. 删除
  63. </ion-item>
  64. <ion-item class="item-divider"></ion-item>
  65. </div>
  66. </ion-content>
  67. <erp-bx-larger-image></erp-bx-larger-image>
  68. </ion-view>