lsyd.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <template>
  2. <view class="content">
  3. <view class="item">
  4. <text class="title">项目名称</text>
  5. <text class="val">{{ objs.xmmc || '' }}</text>
  6. </view>
  7. <view class="item">
  8. <text class="title">审批面积(亩)</text>
  9. <text class="val">{{ ((objs.spmj || 0) * 0.0015).toFixed(2)}}</text>
  10. </view>
  11. <view class="item">
  12. <text class="title">建设单位</text>
  13. <text class="val">{{ objs.jsdw || ''}}</text>
  14. </view>
  15. <view class="item">
  16. <text class="title">建设地址</text>
  17. <text class="val">{{ objs.jsdz || ''}}</text>
  18. </view>
  19. <view class="item">
  20. <text class="title">联系人</text>
  21. <text class="val">{{ objs.lxr || '' }}</text>
  22. </view>
  23. <view class="item">
  24. <text class="title">联系方式</text>
  25. <text class="val">{{ objs.lxfs || '' }}</text>
  26. </view>
  27. <view class="item">
  28. <text class="title">发证时间</text>
  29. <text class="val">{{ (objs.fzsj || '') | formatDate }}</text>
  30. </view>
  31. <view class="item">
  32. <text class="title">到期时间</text>
  33. <text class="val">{{ (objs.dqsj || '') | formatDate }}</text>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. export default {
  39. props: {
  40. objs: {
  41. type: Object,
  42. default(){
  43. return {}
  44. }
  45. }
  46. },
  47. filters: {
  48. formatDate(dateStr){
  49. if(!dateStr) return;
  50. const date = new Date(dateStr);
  51. const year = date.getFullYear();
  52. const month = date.getMonth()+1;
  53. const day = date.getDate();
  54. const monthStr = month < 10 ? `0${month}` : month;
  55. const dayStr = day < 10 ? `0${day}` : day;
  56. return `${year}-${monthStr}-${dayStr}`;
  57. }
  58. },
  59. data() {
  60. return {
  61. }
  62. },
  63. methods: {
  64. }
  65. }
  66. </script>
  67. <style lang="scss" scoped>
  68. @import '../common.scss';
  69. </style>