|
@@ -0,0 +1,203 @@
|
|
|
+<template>
|
|
|
+ <view class="nocheckBox">
|
|
|
+ <navigation-bar :isBack="true" @toBack="toBackHandle"></navigation-bar>
|
|
|
+ <view class="container">
|
|
|
+ <view class="warningBox">
|
|
|
+ <text class="title">基本信息</text>
|
|
|
+ <view class="content" v-if="mapType === 'bj-lsyd'">
|
|
|
+ <view class="item">
|
|
|
+ <text class="title">项目名称</text>
|
|
|
+ <text class="val">{{ objs.xmmc || '' }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <text class="title">审批面积(亩)</text>
|
|
|
+ <text class="val">{{ ((objs.spmj || 0) * 0.0015).toFixed(2)}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <text class="title">建设单位</text>
|
|
|
+ <text class="val">{{ objs.jsdz || ''}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <text class="title">建设地址</text>
|
|
|
+ <text class="val">{{ objs.jsdz || ''}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <text class="title">联系人</text>
|
|
|
+ <text class="val">{{ objs.lxr || '' }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <text class="title">联系方式</text>
|
|
|
+ <text class="val">{{ objs.lxfs || '' }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <text class="title">发证时间</text>
|
|
|
+ <text class="val">{{ (objs.fzsj || '') | formatDate }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <text class="title">到期时间</text>
|
|
|
+ <text class="val">{{ (objs.dqsj || '') | formatDate }}</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="content" v-else>
|
|
|
+ <view class="item">
|
|
|
+ <text class="title">地块名称</text>
|
|
|
+ <text class="val">{{ objs.dkmc || '' }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <text class="title">权利人名称</text>
|
|
|
+ <text class="val">{{ objs.tdqlr || '' }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <text class="title">投资项目名称</text>
|
|
|
+ <text class="val">{{ objs.tzxmmc || '' }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <text class="title">面积(亩)</text>
|
|
|
+ <text class="val">{{ ((objs.gdzmj || 0) * 15).toFixed(2)}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <text class="title">批准文号</text>
|
|
|
+ <text class="val">{{ objs.pzwh || ''}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <text class="title">电子监管号</text>
|
|
|
+ <text class="val">{{ objs.dzjgh || ''}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <text class="title">受让人地址</text>
|
|
|
+ <text class="val">{{ objs.ssrdz || '' }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <text class="title">坐落</text>
|
|
|
+ <text class="val">{{ objs.tdzl || '' }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <text class="title">签订时间</text>
|
|
|
+ <text class="val">{{ (objs.qdrq || '') | formatDate }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <text class="title">批准时间</text>
|
|
|
+ <text class="val">{{ (objs.pzrq || '') | formatDate }}</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import navigationBar from '../../components/navigationBar/navigationBar.vue';
|
|
|
+import httpAjax from '@/utils/https.js';
|
|
|
+import CustomMixins from '@/mixins/CustomMixins.js';
|
|
|
+import config from '@/utils/config';
|
|
|
+const FormData = require('@/utils/formData/formData.js');
|
|
|
+
|
|
|
+export default {
|
|
|
+ mixins: [CustomMixins],
|
|
|
+ components: {
|
|
|
+ navigationBar,
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ objs: {},
|
|
|
+ collapseList: [],
|
|
|
+ accordionVal: '',
|
|
|
+ warningId: '',
|
|
|
+ source: '',
|
|
|
+ mapType: 'bj-lsyd'
|
|
|
+ };
|
|
|
+ },
|
|
|
+ onReady(){
|
|
|
+ wx.setNavigationBarTitle(({
|
|
|
+ title: '要素一本账'
|
|
|
+ }))
|
|
|
+ },
|
|
|
+ filters: {
|
|
|
+ formatDate(dateStr){
|
|
|
+ if(!dateStr) return;
|
|
|
+ const date = new Date(dateStr);
|
|
|
+ const year = date.getFullYear();
|
|
|
+ const month = date.getMonth()+1;
|
|
|
+ const day = date.getDate();
|
|
|
+ const monthStr = month < 10 ? `0${month}` : month;
|
|
|
+ const dayStr = day < 10 ? `0${day}` : day;
|
|
|
+ return `${year}-${monthStr}-${dayStr}`;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onReady() {
|
|
|
+ uni.showTabBar();
|
|
|
+ },
|
|
|
+ onLoad(option) {
|
|
|
+ const objs = JSON.parse(option['obj']);
|
|
|
+ this.source = option['source'];
|
|
|
+ this.mapType = option['type']
|
|
|
+ this.objs = objs;
|
|
|
+ this.initList();
|
|
|
+ },
|
|
|
+ beforeDestroy() {},
|
|
|
+ methods: {
|
|
|
+ toXcDetail(){
|
|
|
+ wx.navigateTo({
|
|
|
+ url: `/pages/nocheckDetail/index?obj=${JSON.stringify(this.objs)}`,
|
|
|
+ });
|
|
|
+ },
|
|
|
+ previewImg(current, index) {
|
|
|
+ const urls = this.collapseList[index].imgList.map((item) => {
|
|
|
+ return item.fileurl;
|
|
|
+ });
|
|
|
+ uni.previewImage({
|
|
|
+ current,
|
|
|
+ urls,
|
|
|
+ });
|
|
|
+ },
|
|
|
+ initList() {
|
|
|
+ const sendData = {
|
|
|
+ dksyh: this.objs.dksyh,
|
|
|
+ };
|
|
|
+ httpAjax({
|
|
|
+ url: 'app/xc/getXcjlListByDksyh',
|
|
|
+ method: 'GET',
|
|
|
+ data: sendData,
|
|
|
+ })
|
|
|
+ .then((result) => {
|
|
|
+ if (result.data) {
|
|
|
+ this.initImgs(result.data);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ console.error('');
|
|
|
+ });
|
|
|
+ },
|
|
|
+ initImgs(data) {
|
|
|
+ let that = this;
|
|
|
+ let fileList = JSON.parse(JSON.stringify(data));
|
|
|
+
|
|
|
+ fileList.forEach((item) => {
|
|
|
+ item.imgList.forEach((l) => {
|
|
|
+ that.getOSSFileById(l.fileId).then((res) => {
|
|
|
+ let s = new Uint8Array(res[1].data);
|
|
|
+ let sd = uni.arrayBufferToBase64(s);
|
|
|
+ l.fileurl = 'data:image/png;base64,' + sd;
|
|
|
+ });
|
|
|
+ });
|
|
|
+ });
|
|
|
+ this.collapseList = fileList;
|
|
|
+ },
|
|
|
+
|
|
|
+ getOSSFileById(fileId) {
|
|
|
+ return uni.request({
|
|
|
+ url: config.baseUrl + 'api/oss/download?id' + '=' + fileId,
|
|
|
+ responseType: 'arraybuffer',
|
|
|
+ });
|
|
|
+ },
|
|
|
+ collapseChange() {},
|
|
|
+ toBackHandle() {
|
|
|
+ uni.navigateBack();
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss">
|
|
|
+@import './index.scss';
|
|
|
+</style>
|