sanfangHetong.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <template>
  2. <view class="admin-jiazheng-list">
  3. <view class="phone-navBar-box">
  4. <view @click="goUpPage" class="nav-bar-icon"></view>
  5. <text class="nav-bar-title">三方合同</text>
  6. <uni-icons class="nav-bar-right-icon bar-ml10" type="search" size="20" @click="toggle('top')"></uni-icons>
  7. </view>
  8. <view class="jiazheng-search-box">
  9. <view @click.stop="clickAlltype" class="select-item-box">
  10. <text class="select-text">{{data.statusText}}</text>
  11. <icon class="select-jt-default" />
  12. </view>
  13. </view>
  14. <view class="jz-new-btn-box">
  15. <button type="default" class="phone-green-btn" @click="handleAdd">新增合同</button>
  16. </view>
  17. <!-- 状态面板 -->
  18. <view class="all-type-box" v-show="isOpen" @click="clickAlltype">
  19. <view class="phone-radio-group data-check-radio-group">
  20. <!-- 技能块展示 -->
  21. <view v-for="item in listStatus" @click="handleSelectStatus(item)" :key="item.status" class="phone-radio-item">
  22. {{ item.statusText }}
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </template>
  28. <script setup>
  29. import {
  30. ref,
  31. reactive
  32. } from "vue";
  33. import {
  34. onLoad
  35. } from "@dcloudio/uni-app";
  36. import {
  37. getJiazhengList,
  38. getJiazhengJineng,
  39. getJiazhengZhiyeAll,
  40. getJiazhengLeixing
  41. } from "@/api/jiazheng.js"
  42. import customTabbarAdminVue from "@/components/custom-tabbar/custom-tabbar-admin.vue";
  43. const data = reactive({
  44. status: 0,
  45. statusText: '待签字'
  46. })
  47. const isOpen = ref(false)
  48. const listStatus = ref([
  49. {
  50. statusText: '有效',
  51. status: 2,
  52. },
  53. {
  54. statusText: '待审核',
  55. status: 1,
  56. },
  57. {
  58. statusText: '待签字',
  59. status: 0,
  60. },{
  61. statusText: '失效',
  62. status: 3,
  63. }
  64. ])
  65. function toggle() {}
  66. function goUpPage() {}
  67. function clickAlltype() {
  68. isOpen.value = !isOpen.value;
  69. }
  70. function handleSelectStatus(item) {
  71. data.status = item.status;
  72. data.statusText = item.statusText;
  73. }
  74. function handleAdd() {}
  75. </script>
  76. <style>
  77. </style>