detailsOfTheReport.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458
  1. <template>
  2. <view class="page-container">
  3. <!-- 变更摘要头部 -->
  4. <view class="summary-header">
  5. <text class="summary-title">变更摘要</text>
  6. </view>
  7. <!-- 变更简述 -->
  8. <view class="change-brief">
  9. 新增1名家庭成员,修改户信息,新增2块地
  10. </view>
  11. <!-- 变更内容模块(可收起/展开) -->
  12. <view class="change-content-card">
  13. <view class="module-header" @click="toggleChangeContent">
  14. <text class="module-title">变更内容</text>
  15. <text class="toggle-icon">{{ contentExpand ? "∨ 收起" : "∧ 收起" }}</text>
  16. </view>
  17. <view class="module-body" v-if="contentExpand">
  18. <text class="change-item">新增1名家庭成员: [丁爱兰]</text>
  19. <text class="change-item">
  20. 承包方地址从<span class="old-val">null</span>变更为
  21. <text class="link-text">湘乡市望春门街道桑枣社区一组</text>
  22. </text>
  23. <text class="change-item">
  24. 承包方联系电话从<span class="old-val">无</span>变更为[13762226769]
  25. </text>
  26. <text class="change-item">
  27. 新增地块[00003糯泗四亩1.84亩]
  28. </text>
  29. <text class="change-item">
  30. 新增地块[00011糯泗四亩1.66亩]
  31. </text>
  32. </view>
  33. </view>
  34. <!-- 基本信息模块 -->
  35. <view class="info-module">
  36. <text class="module-title">基本信息</text>
  37. <view class="info-item">
  38. <text class="label">承包方姓名<text class="required">*</text></text>
  39. <text class="value">王战伟</text>
  40. </view>
  41. <view class="info-item">
  42. <text class="label">承包方编码</text>
  43. <text class="value">430381001004001001</text>
  44. </view>
  45. <view class="info-item">
  46. <text class="label">证件类型<text class="required">*</text></text>
  47. <text class="value">居民身份证</text>
  48. </view>
  49. <view class="info-item">
  50. <text class="label">证件号码<text class="required">*</text></text>
  51. <text class="value">430322**********1015</text>
  52. <text class="eye-icon">👁️</text>
  53. </view>
  54. <view class="info-item">
  55. <text class="label">承包方类型<text class="required">*</text></text>
  56. <text class="value">农户</text>
  57. </view>
  58. <view class="info-item">
  59. <text class="label">联系电话<text class="changed-tag">变更</text></text>
  60. <text class="value changed-val">13762226769</text>
  61. </view>
  62. <view class="info-item">
  63. <text class="label">邮政编码</text>
  64. <text class="value">暂无</text>
  65. </view>
  66. <view class="info-item">
  67. <text class="label">承包方地址<text class="changed-tag">变更</text></text>
  68. <text class="value">湘乡市望春门街道桑枣社区一组</text>
  69. </view>
  70. </view>
  71. <!-- 家庭成员模块(可收起/展开) -->
  72. <view class="member-module">
  73. <view class="module-header" @click="toggleMember">
  74. <text class="module-title">家庭成员</text>
  75. <text class="toggle-icon">{{ memberExpand ? "∨ 收起" : "∧ 收起" }}</text>
  76. </view>
  77. <view class="module-body" v-if="memberExpand">
  78. <text class="content-desc">家庭成员信息(1)</text>
  79. <view class="member-item" @click="familyMembersPage()">
  80. <view class="member-info">
  81. <text class="member-name">王战伟</text>
  82. <text class="member-role">男 户主</text>
  83. <text class="changed-val">99</text>
  84. </view>
  85. <text class="member-id changed-val">430322**********1015</text>
  86. <text class="arrow-icon">→</text>
  87. </view>
  88. </view>
  89. </view>
  90. <!-- 地块信息模块(可收起/展开) -->
  91. <view class="land-module">
  92. <view class="module-header" @click="toggleLand">
  93. <text class="module-title">地块信息</text>
  94. <text class="toggle-icon">{{ landExpand ? "∨ 收起" : "∧ 收起" }}</text>
  95. </view>
  96. <view class="module-body" v-if="landExpand">
  97. <view class="land-desc">
  98. <text>地块信息(2块 共3.5亩)</text>
  99. <text class="all-location" @click="handleLocation()">全部地块位置</text>
  100. </view>
  101. <view class="land-item">
  102. <text class="land-code">00003</text>
  103. <text class="land-area">糯泗四亩1.84亩</text>
  104. <text class="location-tag" @click="handleLocation()">地块位置</text>
  105. <view class="" @click="plotDetailsPage()">
  106. <view class="land-boundary changed-val">
  107. <text>地块东至:田埂</text>
  108. <text>地块西至:王战克</text>
  109. </view>
  110. <view class="land-boundary changed-val">
  111. <text>地块南至:道路</text>
  112. <text>地块北至:道路</text>
  113. </view>
  114. <text class="arrow-icon">→</text>
  115. </view>
  116. </view>
  117. <view class="land-item">
  118. <text class="land-code">00011</text>
  119. <text class="land-area">糯泗四亩1.66亩</text>
  120. <text class="location-tag" @click="handleLocation()">地块位置</text>
  121. <view class="" @click="plotDetailsPage()">
  122. <view class="land-boundary changed-val">
  123. <text>地块东至:房屋</text>
  124. <text>地块西至:王立冬</text>
  125. </view>
  126. <view class="land-boundary changed-val">
  127. <text>地块南至:道路</text>
  128. <text>地块北至:王奥</text>
  129. </view>
  130. <text class="arrow-icon">→</text>
  131. </view>
  132. </view>
  133. <text class="remark changed-val">备注:分为两块,一块0.4,一块0.2</text>
  134. </view>
  135. </view>
  136. <!-- 附件信息模块(可收起/展开) -->
  137. <view class="attach-module">
  138. <view class="module-header" @click="toggleAttach">
  139. <text class="module-title">附件信息</text>
  140. <text class="toggle-icon">{{ attachExpand ? "∨ 收起" : "∧ 收起" }}</text>
  141. </view>
  142. <view class="module-body" v-if="attachExpand">
  143. <view class="info-item">
  144. <text class="label">备注说明</text>
  145. <text class="value">暂无</text>
  146. </view>
  147. </view>
  148. </view>
  149. </view>
  150. </template>
  151. <script setup>
  152. import {
  153. ref
  154. } from 'vue';
  155. // 控制模块展开/收起
  156. const contentExpand = ref(true);
  157. const memberExpand = ref(true);
  158. const landExpand = ref(true);
  159. const attachExpand = ref(true);
  160. // 切换变更内容展开状态
  161. const toggleChangeContent = () => {
  162. contentExpand.value = !contentExpand.value;
  163. };
  164. // 切换家庭成员展开状态
  165. const toggleMember = () => {
  166. memberExpand.value = !memberExpand.value;
  167. };
  168. // 切换地块信息展开状态
  169. const toggleLand = () => {
  170. landExpand.value = !landExpand.value;
  171. };
  172. // 切换附件信息展开状态
  173. const toggleAttach = () => {
  174. attachExpand.value = !attachExpand.value;
  175. };
  176. const familyMembersPage = () => {
  177. uni.navigateTo({
  178. url: `/pages/investigator/Households/familyMembers`
  179. })
  180. }
  181. // 地块位置点击事件
  182. const handleLocation = (item) => {
  183. uni.navigateTo({
  184. url: `/pages/map/map`
  185. });
  186. };
  187. const plotDetailsPage = () => {
  188. uni.navigateTo({
  189. url: `/pages/investigator/Households/plotDetails`
  190. });
  191. }
  192. </script>
  193. <style scoped>
  194. /* 页面容器 */
  195. .page-container {
  196. padding: 24rpx;
  197. background-color: #f5f5f5;
  198. min-height: 100vh;
  199. }
  200. /* 变更摘要头部 */
  201. .summary-header {
  202. margin-bottom: 16rpx;
  203. }
  204. .summary-title {
  205. font-size: 32rpx;
  206. font-weight: 600;
  207. color: #1d2129;
  208. }
  209. /* 变更简述 */
  210. .change-brief {
  211. background-color: #fff;
  212. border-radius: 16rpx;
  213. padding: 20rpx;
  214. font-size: 28rpx;
  215. color: #1d2129;
  216. margin-bottom: 20rpx;
  217. }
  218. /* 通用模块样式 */
  219. .change-content-card,
  220. .info-module,
  221. .member-module,
  222. .land-module,
  223. .attach-module {
  224. background-color: #fff;
  225. border-radius: 16rpx;
  226. margin-bottom: 20rpx;
  227. }
  228. /* 模块头部(可点击) */
  229. .module-header {
  230. display: flex;
  231. justify-content: space-between;
  232. align-items: center;
  233. padding: 24rpx;
  234. border-bottom: 1rpx solid #f5f5f5;
  235. }
  236. .module-title {
  237. font-size: 28rpx;
  238. font-weight: 500;
  239. color: #1d2129;
  240. }
  241. .toggle-icon {
  242. font-size: 24rpx;
  243. color: #86909c;
  244. }
  245. /* 模块内容区 */
  246. .module-body {
  247. padding: 24rpx;
  248. }
  249. /* 变更内容项 */
  250. .change-item {
  251. display: block;
  252. font-size: 28rpx;
  253. color: #1d2129;
  254. margin-bottom: 16rpx;
  255. }
  256. .change-item:last-child {
  257. margin-bottom: 0;
  258. }
  259. .old-val {
  260. color: #86909c;
  261. text-decoration: line-through;
  262. }
  263. .link-text {
  264. color: #1677ff;
  265. text-decoration: underline;
  266. }
  267. /* 信息项通用样式 */
  268. .info-item {
  269. display: flex;
  270. align-items: center;
  271. justify-content: space-between;
  272. padding: 16rpx 24rpx;
  273. border-bottom: 1rpx solid #f5f5f5;
  274. }
  275. .info-item:last-child {
  276. border-bottom: none;
  277. }
  278. .label {
  279. font-size: 28rpx;
  280. color: #86909c;
  281. }
  282. .required {
  283. color: #ff4d4f;
  284. margin-left: 4rpx;
  285. }
  286. .value {
  287. font-size: 28rpx;
  288. color: #1d2129;
  289. text-align: right;
  290. }
  291. .eye-icon {
  292. font-size: 28rpx;
  293. margin-left: 12rpx;
  294. color: #86909c;
  295. }
  296. .changed-tag {
  297. font-size: 22rpx;
  298. color: #ff4d4f;
  299. margin-left: 8rpx;
  300. }
  301. .changed-val {
  302. color: #ff4d4f;
  303. }
  304. /* 家庭成员项 */
  305. .content-desc {
  306. font-size: 24rpx;
  307. color: #86909c;
  308. margin-bottom: 20rpx;
  309. display: block;
  310. }
  311. .member-item {
  312. display: flex;
  313. flex-direction: column;
  314. padding: 16rpx 0;
  315. border-bottom: 1rpx solid #f5f5f5;
  316. position: relative;
  317. }
  318. .member-item:last-child {
  319. border-bottom: none;
  320. }
  321. .member-info {
  322. display: flex;
  323. align-items: center;
  324. margin-bottom: 8rpx;
  325. }
  326. .member-name {
  327. font-size: 28rpx;
  328. color: #1d2129;
  329. margin-right: 16rpx;
  330. }
  331. .member-role {
  332. font-size: 24rpx;
  333. color: #86909c;
  334. margin-right: 16rpx;
  335. }
  336. .new-tag {
  337. font-size: 22rpx;
  338. color: #ff4d4f;
  339. }
  340. .member-id {
  341. font-size: 24rpx;
  342. color: #86909c;
  343. }
  344. .arrow-icon {
  345. position: absolute;
  346. right: 0;
  347. top: 50%;
  348. transform: translateY(-50%);
  349. font-size: 24rpx;
  350. color: #86909c;
  351. }
  352. /* 地块信息项 */
  353. .land-desc {
  354. display: flex;
  355. justify-content: space-between;
  356. align-items: center;
  357. margin-bottom: 20rpx;
  358. }
  359. .all-location {
  360. font-size: 24rpx;
  361. color: #1677ff;
  362. }
  363. .land-item {
  364. display: flex;
  365. flex-direction: column;
  366. padding: 16rpx 0;
  367. border-bottom: 1rpx solid #f5f5f5;
  368. position: relative;
  369. }
  370. .land-item:last-child {
  371. border-bottom: none;
  372. }
  373. .land-code {
  374. font-size: 28rpx;
  375. color: #1d2129;
  376. margin-right: 16rpx;
  377. }
  378. .land-area {
  379. font-size: 28rpx;
  380. color: #1d2129;
  381. }
  382. .location-tag {
  383. font-size: 22rpx;
  384. color: #fff;
  385. background-color: #1677ff;
  386. padding: 4rpx 12rpx;
  387. border-radius: 4rpx;
  388. position: absolute;
  389. right: 30rpx;
  390. top: 20rpx;
  391. }
  392. .land-boundary {
  393. display: flex;
  394. justify-content: space-between;
  395. font-size: 24rpx;
  396. margin-top: 8rpx;
  397. }
  398. .remark {
  399. font-size: 24rpx;
  400. margin-top: 20rpx;
  401. display: block;
  402. }
  403. </style>