特易招,招聘小程序
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.

143 lines
2.8 KiB

4 months ago
2 months ago
4 months ago
2 months ago
4 months ago
2 months ago
4 months ago
2 months ago
4 months ago
2 months ago
4 months ago
2 months ago
4 months ago
2 months ago
4 months ago
2 months ago
4 months ago
2 months ago
2 months ago
4 months ago
2 months ago
2 months ago
4 months ago
2 months ago
2 months ago
4 months ago
2 months ago
2 months ago
2 months ago
4 months ago
2 months ago
4 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. v-if="apiIndex == 0">
  15. <uv-cell v-for="(item,index) in list"
  16. :key="index"
  17. :label="item.billDate"
  18. :title="bill.typeTitle[item.type]"
  19. :value="`${bill.typeNo[item.type]}${item.amount}`"></uv-cell>
  20. </view>
  21. <view class="cell" style="margin-top: 40rpx;"
  22. v-if="apiIndex == 1">
  23. <uv-cell v-for="(item,index) in list"
  24. :key="index"
  25. :label="item.workDate"
  26. :title="`工作${item.overtime}小时`"
  27. :value="item.remarks"></uv-cell>
  28. </view>
  29. </view>
  30. <uv-empty mode="list" v-if="list.length == 0"></uv-empty>
  31. </view>
  32. </template>
  33. <script>
  34. import mixinList from '@/mixins/list.js'
  35. export default {
  36. mixins : [mixinList],
  37. data() {
  38. return {
  39. mixinsListApi : 'queryBill',
  40. apiType : '',
  41. tabsSatus : [
  42. {
  43. name: '记账',
  44. index: 0,
  45. },
  46. {
  47. name: '记工',
  48. index: 1,
  49. },
  50. ],
  51. id : 0,
  52. bill : {
  53. typeNo : ['+', '-'],
  54. typeTitle : ['收入', '支出'],
  55. },
  56. apiIndex : 0,
  57. apiList : ['queryBill', 'notebookQueryWork'],
  58. }
  59. },
  60. onLoad({apiType, id}) {
  61. this.id = id
  62. this.queryParams.employNoteBookId = id
  63. this.queryParams.notebookId = id
  64. this.apiType = apiType
  65. // this.mixinsListApi += apiType || ''
  66. this.mixinsListApi = this.apiList[this.apiIndex]
  67. },
  68. onShow() {},
  69. methods: {
  70. clickTabsType({index}){
  71. this.list = []
  72. this.apiIndex = index
  73. this.mixinsListApi = this.apiList[this.apiIndex]
  74. this.getData()
  75. },
  76. }
  77. }
  78. </script>
  79. <style scoped lang="less">
  80. .page {
  81. background-color: #fff;
  82. padding-bottom: 100rpx;
  83. .page-two {
  84. width: 90%;
  85. margin-left: 5%;
  86. .wire {
  87. border-bottom: 4rpx dashed rgb(168, 197, 255);
  88. }
  89. .option {
  90. padding: 40rpx 40rpx 40rpx 0rpx;
  91. .select {
  92. background-color: #EBF0FC;
  93. padding: 15rpx 20rpx;
  94. border: none;
  95. color: #4280FD;
  96. }
  97. }
  98. .select-date {
  99. padding: 30rpx 0;
  100. .select {
  101. padding: 15rpx 0rpx;
  102. border: none;
  103. color: #4280FD;
  104. }
  105. }
  106. .card {
  107. display: flex;
  108. justify-content: space-around;
  109. align-items: center;
  110. background-color: #F2F5FD;
  111. .card-one,
  112. .card-two {
  113. display: flex;
  114. justify-content: center;
  115. align-items: center;
  116. height: 150rpx;
  117. width: 50%;
  118. font-size: 28rpx;
  119. line-height: 40rpx;
  120. }
  121. image {
  122. height: 50rpx;
  123. width: 50rpx;
  124. margin-right: 20rpx;
  125. }
  126. }
  127. }
  128. }
  129. </style>