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

142 lines
2.8 KiB

6 months ago
4 months ago
6 months ago
4 months ago
6 months ago
4 months ago
6 months ago
4 months ago
6 months ago
4 months ago
6 months ago
4 months ago
6 months ago
4 months ago
6 months ago
4 months ago
6 months ago
4 months ago
4 months ago
6 months ago
4 months ago
6 months ago
4 months ago
4 months ago
6 months ago
4 months ago
4 months ago
4 months ago
6 months ago
4 months ago
6 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.apiType = apiType
  64. // this.mixinsListApi += apiType || ''
  65. this.mixinsListApi = this.apiList[this.apiIndex]
  66. },
  67. onShow() {},
  68. methods: {
  69. clickTabsType({index}){
  70. this.list = []
  71. this.apiIndex = index
  72. this.mixinsListApi = this.apiList[this.apiIndex]
  73. this.getData()
  74. },
  75. }
  76. }
  77. </script>
  78. <style scoped lang="less">
  79. .page {
  80. background-color: #fff;
  81. padding-bottom: 100rpx;
  82. .page-two {
  83. width: 90%;
  84. margin-left: 5%;
  85. .wire {
  86. border-bottom: 4rpx dashed rgb(168, 197, 255);
  87. }
  88. .option {
  89. padding: 40rpx 40rpx 40rpx 0rpx;
  90. .select {
  91. background-color: #EBF0FC;
  92. padding: 15rpx 20rpx;
  93. border: none;
  94. color: #4280FD;
  95. }
  96. }
  97. .select-date {
  98. padding: 30rpx 0;
  99. .select {
  100. padding: 15rpx 0rpx;
  101. border: none;
  102. color: #4280FD;
  103. }
  104. }
  105. .card {
  106. display: flex;
  107. justify-content: space-around;
  108. align-items: center;
  109. background-color: #F2F5FD;
  110. .card-one,
  111. .card-two {
  112. display: flex;
  113. justify-content: center;
  114. align-items: center;
  115. height: 150rpx;
  116. width: 50%;
  117. font-size: 28rpx;
  118. line-height: 40rpx;
  119. }
  120. image {
  121. height: 50rpx;
  122. width: 50rpx;
  123. margin-right: 20rpx;
  124. }
  125. }
  126. }
  127. }
  128. </style>