移动端
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

235 Zeilen
6.2 KiB

  1. <template>
  2. <div class="home_wrapper">
  3. <header-nav
  4. :headings="headingsTitle"
  5. :currentNav="1"
  6. returnUrl="/sunVillage/index"
  7. ></header-nav>
  8. <projectNav :serialTag="2"></projectNav>
  9. <div class="make_detail">
  10. <div class="make_tab">
  11. <div class="flex_block current">收支明细公开</div>
  12. <div class="flex_block">资产负债公开</div>
  13. </div>
  14. <!--1--->
  15. <div class="payment_details">
  16. <div class="info_wrap">
  17. <div class="date_main" @click="selectDateFun">
  18. <i class="icon"></i>
  19. <div class="year">2022</div>
  20. <div class="month">1月</div>
  21. </div>
  22. <div class="unit">单位:张村</div>
  23. </div>
  24. <div class="table_wrap">
  25. <div class="head_main">
  26. <div class="flex f1">凭证号</div>
  27. <div class="flex f2">摘要</div>
  28. <div class="flex f3">收入金额<br />(元)</div>
  29. <div class="flex f4">日期</div>
  30. </div>
  31. <div class="tbody_main">
  32. <div
  33. class="item_list"
  34. @click="skip('/sunVillage/injoint/meansOf_desc')"
  35. >
  36. <div class="flex f1">记11号</div>
  37. <div class="flex f2">收项目1季度预收款</div>
  38. <div class="flex f3">4500</div>
  39. <div class="flex f4">02/25</div>
  40. </div>
  41. <div
  42. class="item_list"
  43. @click="skip('/sunVillage/injoint/meansOf_desc')"
  44. >
  45. <div class="flex f1">记11号</div>
  46. <div class="flex f2">收项目1季度预收款</div>
  47. <div class="flex f3">4500</div>
  48. <div class="flex f4">02/25</div>
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. <van-popup v-model:show="dateVisbile" round position="bottom">
  54. <van-datetime-picker
  55. v-model="selectDate.currentDate"
  56. type="month-day"
  57. title="选择月日"
  58. :min-date="selectDate.minDate"
  59. :max-date="selectDate.maxDate"
  60. :formatter="formatter"
  61. @confirm="onConfirmMonth"
  62. @cancel="dateVisbile = false"
  63. />
  64. </van-popup>
  65. </div>
  66. </div>
  67. </template>
  68. <style scoped lang="scss">
  69. .home_wrapper {
  70. width: 100%;
  71. min-height: 100vh;
  72. background: #fff;
  73. .make_detail {
  74. margin: 20px 24px 0;
  75. .make_tab {
  76. height: 60px;
  77. display: flex;
  78. margin-bottom: 20px;
  79. .flex_block {
  80. background: rgba(247, 247, 247, 0.9);
  81. color: rgb(151, 151, 151);
  82. margin-right: 18px;
  83. padding: 0 16px;
  84. font-size: 32px;
  85. display: flex;
  86. justify-content: center; /* 相对父元素水平居中 */
  87. align-items: center;
  88. &.current {
  89. background: rgba(237, 237, 237, 0.9);
  90. border-bottom: 1px solid #07c160;
  91. color: #333;
  92. }
  93. }
  94. }
  95. .payment_details {
  96. .info_wrap {
  97. display: flex;
  98. height: 68px;
  99. margin-bottom: 12px;
  100. justify-content: space-between;
  101. .date_main {
  102. width: 270px;
  103. height: 68px;
  104. border-bottom: 2px solid #ededed;
  105. display: flex;
  106. justify-content: center;
  107. align-items: center;
  108. font-size: 28px;
  109. .icon {
  110. width: 26px;
  111. height: 26px;
  112. background: url("../../../../assets/images/sunVillage/select_date_icon.jpg")
  113. no-repeat;
  114. background-size: 100% 100%;
  115. display: block;
  116. margin: 0 25px 0 12px;
  117. }
  118. .year {
  119. margin-right: 30px;
  120. }
  121. }
  122. .unit {
  123. width: 270px;
  124. display: flex;
  125. justify-content: center;
  126. align-items: center;
  127. font-size: 28px;
  128. }
  129. }
  130. .table_wrap {
  131. .head_main {
  132. height: 76px;
  133. display: flex;
  134. color: #bababa;
  135. .flex {
  136. display: flex;
  137. justify-content: center;
  138. align-items: center;
  139. text-align: center;
  140. &.f1 {
  141. flex: 3;
  142. }
  143. &.f2 {
  144. flex: 5;
  145. }
  146. &.f3 {
  147. flex: 2;
  148. }
  149. &.f4 {
  150. flex: 2;
  151. }
  152. }
  153. }
  154. .tbody_main {
  155. .item_list {
  156. height: 150px;
  157. display: flex;
  158. .flex {
  159. display: flex;
  160. justify-content: center;
  161. align-items: center;
  162. text-align: center;
  163. overflow: hidden;
  164. white-space: nowrap;
  165. text-overflow: ellipsis;
  166. &.f1 {
  167. flex: 3;
  168. }
  169. &.f2 {
  170. flex: 5;
  171. }
  172. &.f3 {
  173. flex: 2;
  174. }
  175. &.f4 {
  176. flex: 2;
  177. }
  178. }
  179. }
  180. }
  181. }
  182. }
  183. }
  184. }
  185. </style>
  186. <script>
  187. import headerNav from "@/components/sunVillage/common/header.vue";
  188. import projectNav from "@/components/sunVillage/injoint/nav";
  189. export default {
  190. name: "sunVillageMeansOf",
  191. components: { headerNav, projectNav },
  192. data() {
  193. return {
  194. headingsTitle: "三资公开",
  195. dateVisbile: false,
  196. selectDate: {
  197. currentDate: new Date(),
  198. minDate: new Date(2020, 0, 1),
  199. maxDate: new Date(2025, 10, 1),
  200. },
  201. };
  202. },
  203. mounted() {},
  204. methods: {
  205. skip(url) {
  206. this.$router.push(url);
  207. },
  208. selectDateFun() {
  209. this.dateVisbile = !this.dateVisbile;
  210. },
  211. formatter(type, val) {
  212. if (type === "month") {
  213. return val + "月";
  214. }
  215. if (type === "day") {
  216. return val + "日";
  217. }
  218. return val;
  219. },
  220. onConfirmMonth(val) {
  221. let year = val.getFullYear();
  222. let month = val.getMonth() + 1;
  223. if (month >= 1 && month <= 9) {
  224. month = `0${month}`;
  225. }
  226. console.log(year + "-" + month);
  227. },
  228. },
  229. };
  230. </script>