index.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <template>
  2. <div class="area_asset">
  3. <van-tabs :active="active" @change="onChange">
  4. <van-tab title="待处理" :name="null"></van-tab>
  5. <van-tab title="已处理" :name="1"></van-tab>
  6. </van-tabs>
  7. <div style="display: flex">
  8. <div class="searchbox">
  9. <uni-search-bar
  10. placeholder="资产名称模糊查找"
  11. clearButton="none"
  12. cancelButton="none"
  13. v-model="search.qymc"
  14. >
  15. </uni-search-bar>
  16. </div>
  17. <div class="addbutton" @click="goadd">
  18. <uni-icons type="plusempty" size="30rpx"></uni-icons>新增走访
  19. </div>
  20. </div>
  21. <div class="area_list">
  22. <div class="status">待走访</div>
  23. <div class="area_value">资产名称:原金路织带公司(土地)</div>
  24. <div class="mt22rpx area_value">
  25. 资产类型/面积(㎡):土地(房屋751.77/土地2430.3
  26. </div>
  27. <div class="mt22rpx area_value">坐落位置:湖渎社区</div>
  28. <div class="mt22rpx area_value">当前状态:闲置</div>
  29. <div style="display: flex; justify-content: flex-end">
  30. <button
  31. style="
  32. width: 200px;
  33. background-color: blue;
  34. height: 48rpx;
  35. line-height: 48rpx;
  36. "
  37. @click="clockIn()"
  38. type="primary"
  39. >
  40. 打卡
  41. </button>
  42. </div>
  43. <div style="display: flex; justify-content: flex-end">
  44. <button
  45. style="
  46. width: 200px;
  47. background-color: blue;
  48. height: 48rpx;
  49. line-height: 48rpx;
  50. "
  51. @click="reportTask()"
  52. type="primary"
  53. >
  54. 走访记录
  55. </button>
  56. </div>
  57. </div>
  58. <confirm-position ref="confirmposition" />
  59. </div>
  60. </template>
  61. <script>
  62. import confirmPosition from "./confirm_position.vue";
  63. export default {
  64. data() {
  65. return {
  66. search: {},
  67. };
  68. },
  69. components: {
  70. confirmPosition,
  71. },
  72. methods: {
  73. clockIn() {
  74. this.$refs.confirmposition.setVisible();
  75. },
  76. reportTask() {
  77. uni.navigateTo({
  78. url: "/pages/subPackages/visits_task/report",
  79. });
  80. },
  81. goadd() {
  82. uni.navigateTo({
  83. url: "/pages/subPackages/visits_task/add",
  84. });
  85. },
  86. },
  87. };
  88. </script>
  89. <style lang="scss">
  90. .dis_flex {
  91. display: flex;
  92. }
  93. .area_asset {
  94. .searchbox {
  95. display: inline-block;
  96. background: white;
  97. width: 80%;
  98. }
  99. .addbutton {
  100. height: 102rpx;
  101. line-height: 102rpx;
  102. background: white;
  103. color: #0000cc;
  104. }
  105. .title {
  106. width: calc(100%-48rpx);
  107. padding: 48rpx 48rpx 16rpx 48rpx;
  108. background: white;
  109. font-size: 22rpx;
  110. color: #666666;
  111. .title_name {
  112. margin-bottom: 20rpx;
  113. }
  114. .title_info {
  115. display: flex;
  116. justify-content: space-between;
  117. }
  118. }
  119. .area_list {
  120. width: calc(100%-110rpx);
  121. padding: 22rpx;
  122. margin: 22rpx 22rpx;
  123. background: white;
  124. .status {
  125. text-align: right;
  126. }
  127. }
  128. .area_value {
  129. font-size: 26rpx;
  130. color: #333333;
  131. }
  132. .mt22rpx {
  133. margin-top: 22rpx;
  134. }
  135. }
  136. </style>