特易招,招聘小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

126 lines
2.3 KiB

7 months ago
5 months ago
7 months ago
5 months ago
7 months ago
5 months ago
5 months ago
7 months ago
5 months ago
7 months ago
5 months ago
7 months ago
5 months ago
7 months ago
5 months ago
7 months ago
5 months ago
7 months ago
5 months ago
7 months ago
5 months ago
7 months ago
5 months ago
7 months ago
5 months ago
7 months ago
  1. <template>
  2. <!-- 记工记账 -->
  3. <view class="page">
  4. <navbar title="记工记账" leftClick @leftClick="$utils.navigateBack" />
  5. <view style="font-weight: 500; margin-top: 20rpx;">
  6. <uv-tabs :list="tabsSatus" lineWidth="0"
  7. lineHeight="0"
  8. :scrollable="false"
  9. @click="clickTabsType"
  10. activeStyle="color: #3796F8;"></uv-tabs>
  11. </view>
  12. <view class="page-two">
  13. <view class="cell" style="margin-top: 40rpx;">
  14. <uv-cell v-for="(item,index) in list"
  15. :key="index"
  16. :label="item.billDate"
  17. :title="item.notebookId_dictText"
  18. :value="`${typeNo[item.type]}${item.amount}`"></uv-cell>
  19. </view>
  20. </view>
  21. <uv-empty mode="list" v-if="list.length == 0"></uv-empty>
  22. </view>
  23. </template>
  24. <script>
  25. import mixinList from '@/mixins/list.js'
  26. export default {
  27. mixins : [mixinList],
  28. data() {
  29. return {
  30. mixinsListApi : 'queryBill',
  31. apiType : '',
  32. tabsSatus : [
  33. {
  34. name: '记账',
  35. index: 0,
  36. },
  37. {
  38. name: '记工',
  39. index: 1,
  40. },
  41. ],
  42. id : 0,
  43. typeNo : ['+', '-'],
  44. }
  45. },
  46. onLoad({apiType, id}) {
  47. this.id = id
  48. this.queryParams.employNoteBookId = id
  49. this.apiType = apiType
  50. // this.mixinsListApi += apiType || ''
  51. },
  52. onShow() {},
  53. methods: {
  54. clickTabsType({index}){
  55. console.log(index);
  56. this.mixinsListApi = ['queryBill', 'notebookQueryWork'][index]
  57. this.getData()
  58. },
  59. }
  60. }
  61. </script>
  62. <style scoped lang="less">
  63. .page {
  64. background-color: #fff;
  65. padding-bottom: 100rpx;
  66. .page-two {
  67. width: 90%;
  68. margin-left: 5%;
  69. .wire {
  70. border-bottom: 4rpx dashed rgb(168, 197, 255);
  71. }
  72. .option {
  73. padding: 40rpx 40rpx 40rpx 0rpx;
  74. .select {
  75. background-color: #EBF0FC;
  76. padding: 15rpx 20rpx;
  77. border: none;
  78. color: #4280FD;
  79. }
  80. }
  81. .select-date {
  82. padding: 30rpx 0;
  83. .select {
  84. padding: 15rpx 0rpx;
  85. border: none;
  86. color: #4280FD;
  87. }
  88. }
  89. .card {
  90. display: flex;
  91. justify-content: space-around;
  92. align-items: center;
  93. background-color: #F2F5FD;
  94. .card-one,
  95. .card-two {
  96. display: flex;
  97. justify-content: center;
  98. align-items: center;
  99. height: 150rpx;
  100. width: 50%;
  101. font-size: 28rpx;
  102. line-height: 40rpx;
  103. }
  104. image {
  105. height: 50rpx;
  106. width: 50rpx;
  107. margin-right: 20rpx;
  108. }
  109. }
  110. }
  111. }
  112. </style>