移动端
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

110 wiersze
3.7 KiB

  1. <template>
  2. <div class="app-container">
  3. <van-nav-bar
  4. title="项目公告"
  5. left-arrow
  6. fixed
  7. placeholder
  8. @click-left="onClickLeft"
  9. />
  10. <van-cell title="项目名称" :value="noticeDetail.projectName" />
  11. <van-cell v-if="noticeDetail.projectStatus == '2'" title="终止原因" type="textarea" :value="noticeDetail.terminateReason" />
  12. <template v-else>
  13. <van-cell title="项目编号" :value="noticeDetail.projectCode" />
  14. <van-cell title="转出方式" :value="noticeDetail.rollout" />
  15. <van-cell title="交易方式" :value="noticeDetail.dealType" />
  16. <van-cell title="成交时间" :value="noticeDetail.dealTime" />
  17. <van-cell title="标的区域" :value="noticeDetail.deptName" />
  18. <van-cell title="转出方" :value="noticeDetail.outName" />
  19. <van-cell title="受让方" :value="noticeDetail.memberType == 1 ? noticeDetail.realname:noticeDetail.companyName" />
  20. <van-cell title="公示开始时间" :value="noticeDetail.dealPublicityStartTime" />
  21. <van-cell title="公示结束时间" :value="noticeDetail.dealPublicityStopTime" />
  22. <van-cell title="转出面积/数量" :value="noticeDetail.allCount+noticeDetail.allCountUnit" />
  23. <van-cell title="转出年限" :value="noticeDetail.outStartTime+'至'+noticeDetail.outStopTime" />
  24. <van-cell title="成交价格" :value="noticeDetail.dealMoney+noticeDetail.unit" />
  25. <van-cell title="成交金额" :value="noticeDetail.dealMoneySum" />
  26. </template>
  27. <div v-if="noticeDetail.projectStatus == '2'">
  28. <van-divider>附件</van-divider>
  29. <van-cell :title="item.fileName" :url="'/api'+item.fileUrl" is-link v-for="(item,index) in attachmentQueryList">
  30. <!-- 使用 right-icon 插槽来自定义右侧图标 -->
  31. <template #icon>
  32. <img src="../../assets/images/file_icon.png" style="display: block;width: 24px;margin-right: 5px;" alt="">
  33. </template>
  34. </van-cell>
  35. </div>
  36. </div>
  37. </template>
  38. <script>
  39. import {attachmentQuery, noticeDetails} from "@/api/notice/index";
  40. export default {
  41. name: "noticeDetail",
  42. data() {
  43. return {
  44. noticeDetail:'',
  45. attachmentQueryList:[]
  46. };
  47. },
  48. created() {
  49. this.getDetail();
  50. },
  51. methods: {
  52. //成交公告集合
  53. getDetail(){
  54. console.log(this.$route.query.id)
  55. noticeDetails(this.$route.query.id).then(response => {
  56. console.log(response)
  57. this.noticeDetail = response.data;
  58. //转出方式字典
  59. this.getDicts("rollout_type").then(res => {
  60. this.noticeDetail.rollout = this.selectDictLabel(res.data,response.data.rollout);
  61. });
  62. //交易方式字典
  63. this.getDicts("deal_type").then(res => {
  64. this.noticeDetail.dealType = this.selectDictLabel(res.data,response.data.dealType);
  65. });
  66. //面积单位字典
  67. this.getDicts("area_unit").then(res => {
  68. this.noticeDetail.allCountUnit = this.selectDictLabel(res.data,response.data.allCountUnit);
  69. });
  70. //成交价格字典
  71. this.getDicts("price_unit").then(res => {
  72. this.noticeDetail.unit = this.selectDictLabel(res.data,response.data.unit);
  73. });
  74. let query = {
  75. tableName: 't_transaction_deal_publicity',
  76. bizPath: 'transaction',
  77. tableId:this.$route.query.id,
  78. fileType:''
  79. }
  80. attachmentQuery(query).then(response => {
  81. this.attachmentQueryList = response.rows;
  82. });
  83. });
  84. },
  85. },
  86. };
  87. </script>
  88. <style scoped lang="scss">
  89. .app-container {
  90. padding: 0 0 0.5rem;
  91. background: #ffffff;
  92. }
  93. .title{
  94. font-size: 0.5rem;
  95. margin-bottom: 0.5rem;
  96. }
  97. .van-row{
  98. margin-bottom: 0.4rem;
  99. }
  100. .van-col{
  101. font-size: 0.4rem;
  102. color: #666666;
  103. }
  104. </style>