Переглянути джерело

修改一张图地块详情显示方式

sugb 8 місяців тому
батько
коміт
d648afc382

+ 45 - 44
src/components/OneMap/BasicMap.vue

@@ -20,6 +20,7 @@
     <div v-if="analysisResult" id="right-sild" @click="handleDrawer" :style="drawerStyle">
       <p class="ttitle"><br/>分<br/>析<br/>结<br/>果</p>
     </div>
+    <!--显示弹窗-->
     <div>
       <query-info ref="detail" v-model="infoShow"></query-info>
     </div>
@@ -676,55 +677,55 @@ export default {
           // 点击"地块详情"
           if (actionId === 'showDKDetail' && this.resData.sysOrgCode != null) {
             //获取弹出的popup所归属的graphic的attributes
-            //TODO:
             // getAction("")
             if (this.resData.sysOrgCode.slice(0, 3) == 'A04') {
-              this.result.单位名称 = this.resData.createBy
-              this.result.地块名称 = this.resData.dk
-              this.result.文件类型 = this.resData.wjlx
-              this.result.文件编号 = this.resData.wjbh
-              this.result.土地使用权人 = this.resData.tdsyqr
-              this.result.实际占用土地面积 = parseFloat(this.resData.sjzytdmj).toFixed(2)+'㎡'
-              this.result.其中证载使用土地面积 = parseFloat(this.resData.qzpzsymj).toFixed(2)+'㎡'
-              this.result.实际使用建筑面积 = parseFloat(this.resData.sjsyjzmj).toFixed(2)+'㎡'
-              this.result.其中证载使用建筑面积 = parseFloat(this.resData.qzpzsymj2).toFixed(2)+'㎡'
-              this.result.是否共用宗 = this.resData.sfgyz
-              this.result.容积率 = parseFloat(this.resData.sjrjl).toFixed(2)
-              this.result.使用权使用方式 = this.resData.syqsyfs
-              this.result.坐落位置 = this.resData.zlwz
-              this.result.实际用途 = this.resData.sjytText
-              this.result.权属起始时间 = this.resData.qsqssj
-              this.result.权属结束时间 = this.resData.qsdqsj
-              this.result.担保 = this.resData.dbdycfqk
-              this.result.备注 = this.resData.BZ
-              this.result.土地使用现状 = this.resData.tdsyxz
-              this.result.地块编号 = this.resData.dkbh
-              this.result.IMAGE = this.resData.images
+              // this.result.单位名称 = this.resData.createBy
+              // this.result.地块名称 = this.resData.dk
+              // this.result.文件类型 = this.resData.wjlx
+              // this.result.文件编号 = this.resData.wjbh
+              // this.result.土地使用权人 = this.resData.tdsyqr
+              // this.result.实际占用土地面积 = parseFloat(this.resData.sjzytdmj).toFixed(2)+'㎡'
+              // this.result.其中证载使用土地面积 = parseFloat(this.resData.qzpzsymj).toFixed(2)+'㎡'
+              // this.result.实际使用建筑面积 = parseFloat(this.resData.sjsyjzmj).toFixed(2)+'㎡'
+              // this.result.其中证载使用建筑面积 = parseFloat(this.resData.qzpzsymj2).toFixed(2)+'㎡'
+              // this.result.是否共用宗 = this.resData.sfgyz
+              // this.result.容积率 = parseFloat(this.resData.sjrjl).toFixed(2)
+              // this.result.使用权使用方式 = this.resData.syqsyfs
+              // this.result.坐落位置 = this.resData.zlwz
+              // this.result.实际用途 = this.resData.sjytText
+              // this.result.权属起始时间 = this.resData.qsqssj
+              // this.result.权属结束时间 = this.resData.qsdqsj
+              // this.result.担保 = this.resData.dbdycfqk
+              // this.result.备注 = this.resData.BZ
+              // this.result.土地使用现状 = this.resData.tdsyxz
+              // this.result.地块编号 = this.resData.dkbh
+              // this.result.IMAGE = this.resData.images
               this.infoShow = true
-              this.$refs.detail.loadDetail(this.result)
+              this.$refs.detail.loadDetail(this.resData)
             }
             if (this.resData.sysOrgCode.slice(0, 3) == 'A03') {
-              this.result.单位名称 = this.resData.createBy
-              this.result.地块名称 = this.resData.dk
-              this.result.文件类型 = this.resData.zslx
-              this.result.文件编号 = this.resData.wjbh
-              this.result.土地使用权人 = this.resData.tdsyqr
-              this.result.实际占用土地面积 = parseFloat(this.resData.sjzytdmj).toFixed(2)+'㎡'
-              this.result.其中证载使用土地面积 = parseFloat(this.resData.qzpzsymj).toFixed(2)+'㎡'
-              this.result.实际使用建筑面积 = parseFloat(this.resData.sjsyjzmj).toFixed(2)+'㎡'
-              this.result.其中证载使用建筑面积 = parseFloat(this.resData.qzpzsymj2).toFixed(2)+'㎡'
-              this.result.使用权使用方式 = this.resData.syqsyfs
-              this.result.坐落位置 = this.resData.zlwz
-              this.result.实际用途 = this.resData.sjyt
-              this.result.权属起始时间 = this.resData.qsqssj
-              this.result.权属结束时间 = this.resData.qsdqsj
-              this.result.担保 = this.resData.dbdycfqk
-              this.result.土地使用现状 = this.resData.tdsyxz
-              this.result.备注 = this.resData.BZ
-              this.result.地块编号 = this.resData.dkbh
-              this.result.IMAGE = this.resData.images
+              // this.result.单位名称 = this.resData.createBy
+              // this.result.地块名称 = this.resData.dk
+              // this.result.文件类型 = this.resData.zslx
+              // this.result.文件编号 = this.resData.wjbh
+              // this.result.土地使用权人 = this.resData.tdsyqr
+              // this.result.实际占用土地面积 = parseFloat(this.resData.sjzytdmj).toFixed(2)+'㎡'
+              // this.result.其中证载使用土地面积 = parseFloat(this.resData.qzpzsymj).toFixed(2)+'㎡'
+              // this.result.实际使用建筑面积 = parseFloat(this.resData.sjsyjzmj).toFixed(2)+'㎡'
+              // this.result.其中证载使用建筑面积 = parseFloat(this.resData.qzpzsymj2).toFixed(2)+'㎡'
+              // this.result.使用权使用方式 = this.resData.syqsyfs
+              // this.result.坐落位置 = this.resData.zlwz
+              // this.result.实际用途 = this.resData.sjyt
+              // this.result.权属起始时间 = this.resData.qsqssj
+              // this.result.权属结束时间 = this.resData.qsdqsj
+              // this.result.担保 = this.resData.dbdycfqk
+              // this.result.土地使用现状 = this.resData.tdsyxz
+              // this.result.备注 = this.resData.BZ
+              // this.result.地块编号 = this.resData.dkbh
+              // this.result.IMAGE = this.resData.images
               this.infoShow = true
-              this.$refs.detail.loadDetail(this.result)
+              this.$refs.detail.loadDetail(this.resData)
+              //this.$refs.detail.loadDetail(this.result)
             }
           } else if (actionId == 'showAll') {
             if (this.resData.vr == null) {
@@ -756,7 +757,7 @@ export default {
           })
         }).then((res) => {
           console.log("获取的地块信息")
-          console.log(JSON.stringify(this.resData))
+          // console.log(JSON.stringify(this.resData))
           if (res.sysOrgCode.slice(0, 3) == 'A04') {
             var dwmc = res.createBy
             var dkmc = res.dk

+ 279 - 52
src/components/OneMap/widgets/QueryInfo.vue

@@ -1,30 +1,101 @@
-
 <template>
-  <div style="z-index: 999" v-if='value&&data.length>0' class='detail' :style="leftStyle" v-drag='`.detail .ant-card-head`'>
-    <a-card  :title='title' >
-      <a-icon slot='extra' class='panelClose' type='close' @click="$emit('input',false)"/>
-      <a-descriptions bordered :column='2'>
-        <a-descriptions-item v-for='(item,index) in data' :key='item.field' :label='item.field'>
-          {{ item.val }}
-        </a-descriptions-item>
-
-        <a-descriptions-item :label=image>
-          <!--            <img v-for='(item,index) in this.images' alt="无图片" style="width: 100%" :src="item"/>-->
-<!--          <view-images  isMultiple v-model="this.images" :disabled='uploadDisabled'></view-images>-->
-          <ImagesView :image-list="images"></ImagesView>
-
-        </a-descriptions-item>
-      </a-descriptions>
+  <div style='z-index: 999' v-if='value && data.length>0' class='detail' :style='leftStyle'
+       v-drag='`.detail .ant-card-head`'>
+    <a-card :title='title'>
+      <a-icon slot='extra' class='panelClose' type='close' @click="$emit('input',false)" />
+      <div class="descriptions-container">
+        <div class="separator">
+          <h4><b>土地基本信息</b></h4>
+        </div>
+        <a-descriptions :column="2" :bordered="true" class="description-group">
+          <a-descriptions-item v-for='(item) in list_baseinfo' :key='item.field' :label='item.label'>
+            {{ item.val }}
+          </a-descriptions-item>
+        </a-descriptions>
+
+        <div class="separator">
+          <h4><b>土地权证信息</b></h4>
+        </div>
+        <a-descriptions :column="2" :bordered="true" class="description-group">
+          <a-descriptions-item v-for='(item) in list_tdqz' :key='item.field' :label='item.label'>
+            {{ item.val }}
+          </a-descriptions-item>
+        </a-descriptions>
+
+        <div class="separator">
+          <h4><b>土地使用信息</b></h4>
+        </div>
+        <a-descriptions :column="2" :bordered="true" class="description-group">
+          <a-descriptions-item v-for='(item) in list_tdsy' :key='item.field' :label='item.label'>
+            {{ item.val }}
+          </a-descriptions-item>
+        </a-descriptions>
+
+        <div class="separator">
+          <h4><b>土地使用情况及盘活利用信息</b></h4>
+        </div>
+        <a-descriptions :column="2" :bordered="true" class="description-group">
+          <a-descriptions-item v-for='(item) in list_tdph' :key='item.field' :label='item.label'>
+            {{ item.val }}
+          </a-descriptions-item>
+        </a-descriptions>
+
+        <div class="separator">
+          <h4><b>土地价值信息</b></h4>
+        </div>
+        <a-descriptions :column="2" :bordered="true" class="description-group">
+          <a-descriptions-item v-for='(item) in list_tdjz' :key='item.field' :label='item.label'>
+            {{ item.val }}
+          </a-descriptions-item>
+        </a-descriptions>
+
+        <div class="separator">
+          <h4><b>经营信息</b></h4>
+        </div>
+        <a-descriptions :column="2" :bordered="true" class="description-group">
+          <a-descriptions-item v-for='(item) in list_tdjy' :key='item.field' :label='item.label'>
+            {{ item.val }}
+          </a-descriptions-item>
+        </a-descriptions>
+
+        <div class="separator">
+          <h4><b>审核信息</b></h4>
+        </div>
+        <a-descriptions :column="2" :bordered="true" class="description-group">
+          <a-descriptions-item v-for='(item) in list_tdsh' :key='item.field' :label='item.label'>
+            {{ item.val }}
+          </a-descriptions-item>
+        </a-descriptions>
+
+        <div class="separator">
+          <h4><b>照片信息</b></h4>
+        </div>
+        <a-descriptions :column="1" :bordered="true" class="description-group">
+          <a-descriptions-item :label=image>
+            <ImagesView :image-list='images'></ImagesView>
+          </a-descriptions-item>
+        </a-descriptions>
+      </div>
+
+<!--      <a-descriptions bordered :column='2'>-->
+<!--        <a-descriptions-item v-for='(item,index) in data' :key='item.field' :label='item.field'>-->
+<!--          {{ item.val }}-->
+<!--        </a-descriptions-item>-->
+<!--        <a-descriptions-item :label=image>-->
+<!--          <ImagesView :image-list='images'></ImagesView>-->
+<!--        </a-descriptions-item>-->
+<!--      </a-descriptions>-->
     </a-card>
   </div>
 </template>
 
 <script>
-import ViewImages from "@comp/jeecg/ViewImages";
-import ImagesView from "@comp/jeecg/ImagesView";
+import ViewImages from '@comp/jeecg/ViewImages'
+import ImagesView from '@comp/jeecg/ImagesView'
+
 export default {
   name: 'QueryInfo',
-  components: {ViewImages,ImagesView},
+  components: { ViewImages, ImagesView },
   props: {
     value: {
       type: Boolean,
@@ -33,7 +104,7 @@ export default {
     },
     title: {
       type: String,
-      default: "详情"
+      default: '详情'
     }
   },
   data() {
@@ -43,74 +114,230 @@ export default {
       images: [],
       leftStyle: '',
       previewVisible: false,
-      uploadDisabled: false
-    };
+      uploadDisabled: false,
+      detail_info: {},
+      list_baseinfo: [],
+      list_tdqz: [],
+      list_tdsy: [],
+      list_tdph:[],
+      list_tdjz:[],
+      list_tdjy:[],
+      list_tdsh:[],
+    }
   },
   methods: {
     handleCancel() {
-      this.close();
-      this.previewVisible = false;
+      this.close()
+      this.previewVisible = false
     },
-    loadDetail(attributes) {
+    loadDetail(res) {
+      this.list_baseinfo = []
+      this.list_tdqz = []
+      this.list_tdsy = []
+      this.list_tdph=[]
+      this.list_tdjz=[]
+      this.list_tdjy=[]
+      this.list_tdsh=[]
+      var baseinfo = {
+        createBy: '录入主体',
+        dk: '宗地名称',
+        ssqTypeName: '权利类型',
+        ssqOtherName: '其它权利类型',
+        tdgsqyy: '土地归属企业',
+        qsqx: '权属期限',
+        qsdqsj: '权属到期时间',
+        gjczqyName: '国家出资企业',
+        xzqh: '行政区划',
+        zlwz: '详细地址',
+        zscyqk: '产权证持有情况',
+        otherZscyqk: '其他权证持有情况'
+      };
+      var tdqz = {
+        wjlx: '文件类型',
+        wjbh: '产权证号',
+        tdsyqr: '权证登记使用人名称',
+        qsqssj: '土地获取时间',
+        qzpzsymj: '证载面积',
+        pzyt: '批准用途',
+        otherPzyt: '其它证载(批准)用途',
+        zfghyt: '政府规划用途',
+        otherZfghyt: '其它规划用途'
+      };
+      var tdsy = {
+        tdsjsyr: '土地实际使用人',
+        sfyz: '权证登记人和使用人一致',
+        syqsyfs: '使用权类型',
+        otherZfghyt: '其他使用权类型',
+        sjytText: '实际用途',
+        otherSjyt: '其他实际用途',
+        zfghsfyz: '政府规划用途是否与实际用途一致',
+        sjytsffh: '实际用途是否符合划拨用地目录',
+        cqbgbjtdje: '产权变更需补交的土地出让金数额(万元)',
+        sfxyjntdsys: '是否需要缴纳土地使用税',
+        tdsysjnje: '土地使用税缴纳金额',
+        sfgyz: '是否共用宗地',
+        zjzmj: '总建筑面积(平方米)',
+        qzpzsymj2: '证载建筑面积(平方米)',
+        sjzytdmj: '实际面积(平方米)',
+        sjsyjzmj: '实际建筑面积(平方米)',
+        sjrjl: '容积率'
+      };
+      var tdph={
+        tdsyxz: '土地使用现状',
+        zcsyzx: '正常使用现状',
+        dbdycfqk: '土地资产的担保、抵押、查封情况',
+        dphxz: '待盘活现状',
+        phsj: '计划盘活时间',
+        phlytj: '是否有盘活意愿',
+        yxphfs: '其他盘活利用途径',
+        yxphzt: '意向盘活主体',
+        dsjzwsfyz: '地上建筑物产权人是否与权证登记人使用人名称是否一致',
+        dsjzwcqr: '地上建筑物产权人',
+        dsjzwyt: '地上建筑物用途',
+        dlwzName: '地理区位情况',
+        sfczjf: '是否存在产权纠纷',
+        cqxxbcsm: '产权信息补充说明'
+      };
+      var tdjz={
+        tdzmyz: '土地账面原值(万元)',
+        tdzmjz: '土地账面净值(万元)',
+        tdscjz: '土地市场价值(万元)',
+        tdzljz: '土地租赁价值(万元)',
+      };
+      var tdjy={
+        yysr: '主营业务收入(万元)',
+        nss: '企业所得税(万元)',
+        jyrs: '就业人数',
+        lirun: '净利润(万元)',
+        yys: '营业税及附加(万元)',
+        bz: '备注',
+      };
+      var tdsh={
+        shzt: '审核是否通过',
+        shyj: '审核意见',
+        shren: '审核人',
+        shrq: '审核日期',
+      };
+      console.log(res)
+      this.detail_info = res
       this.images = []
-      let width = document.getElementById('basic-map').offsetWidth - 355;
-      this.leftStyle = `left:${width * 0.9}px`;
-      this.leftStyle = `right:1 rem`;
-      if (attributes) {
-        this.data = [];
-        for (let key in attributes) {
-          let item = {};
-          if(key != "IMAGE"){
-            item.field = key;
-            item.val = attributes[key];
-            this.data.push(item);
+      let width = document.getElementById('basic-map').offsetWidth - 355
+      this.leftStyle = `left:${width * 0.9}px`
+      this.leftStyle = `right:1 rem`
+      if (res) {
+        this.data = []
+        for (let key in res) {
+          let item = {}
+          if (key != 'images') {
+            item.field = key
+            item.val = res[key]
+            //key 包含在字段之内
+            if (baseinfo[key] != null) {
+              item.label = baseinfo[key]
+              this.list_baseinfo.push(item)
+            }
+            //key 包含在字段之内
+            if (tdqz[key] != null) {
+              item.label = tdqz[key]
+              this.list_tdqz.push(item)
+            }
+
+            //key 包含在字段之内
+            if (tdsy[key] != null) {
+              item.label = tdsy[key]
+              this.list_tdsy.push(item)
+            }
+            //土地盘活
+            if (tdph[key] != null) {
+              item.label = tdph[key]
+              this.list_tdph.push(item)
+            }
+            //土地价值
+            if (tdjz[key] != null) {
+              item.label = tdjz[key]
+              this.list_tdjz.push(item)
+            }
+            //土地经营信息
+            if (tdjy[key] != null) {
+              item.label = tdjy[key]
+              this.list_tdjy.push(item)
+            }
+            //土地审核信息
+            if (tdsh[key] != null) {
+              item.label = tdsh[key]
+              this.list_tdsh.push(item)
+            }
+            this.data.push(item)
           }
         }
       }
-      if (attributes.IMAGE != null) {
-        var StringImage = attributes.IMAGE;
-        var img;
-        var result="";
-        if (StringImage.includes(",")) {
-
-          img = StringImage.split(",")
+      if (res.images != null) {
+        console.log('照片不为空')
+        console.log(res.images)
+        let StringImage = res.images
+        let img
+        let result = ''
+        if (StringImage.includes(',')) {
+          img = StringImage.split(',')
           for (let i = 0; i < img.length; i++) {
-             result = "/tdzcxx/images/"+img[i]
+            result = '/tdzcxx/images/' + img[i]
             //result="http://localhost:8080/jeecg-boot/sys/common/statics/"+img[i]
             this.images.push(result)
           }
         } else if (StringImage != null) {
-          result = "/tdzcxx/images/"+ StringImage
+          result = '/tdzcxx/images/' + StringImage
           //result="http://localhost:8080/jeecg-boot/sys/common/statics/"+StringImage
           this.images.push(result)
         }
       }
     }
   }
-};
+}
 </script>
 
 <style>
+.items {
+  text-align: center;
+}
+
 .detail {
   display: flex;
   position: fixed;
   top: 210px;
-  right: 40%;
+  right: 30%;
 }
 
 .detail .ant-card-body {
   padding: 4px;
-  width: 900px;
-  max-height: 600px;
+  width: 1080px;
+  max-height: 720px;
   overflow-y: auto;
-/*  box-shadow: 0 0 5px #357ee5;*/
+  /*  box-shadow: 0 0 5px #357ee5;*/
 }
+
 .detail .ant-card-head {
-  background-color:rgba(24, 129, 253, 0.78);
-  color:white;
+  background-color: rgba(24, 129, 253, 0.78);
+  color: white;
 }
+
 .detail .ant-descriptions-bordered .ant-descriptions-item-label, .ant-descriptions-bordered .ant-descriptions-item-content {
   padding: 9px 18px;
 }
+.separator {
+  margin-top: 16px;
+  margin-bottom: 16px;
+  text-align: center;
+}
+.descriptions-container {
+  width: 100%;
+  max-width: 1600px; /* 或者根据需要设置一个合适的宽度 */
+  margin: auto;
+}
+/* 增加 label 的宽度 */
+.ant-descriptions-item-content {
+  min-width: 200px;
+  white-space: normal; /* 允许文本换行 */
+}
+
 </style>
 `

+ 2 - 2
src/views/qcsb/modules/QcSsgqzysytdqkDetail.vue

@@ -141,7 +141,7 @@
             <tr>
               <td >
                 <a-col :span="24">
-                  <a-form-model-item label='产权证持有情况' :labelCol='labelCol' :wrapperCol='wrapperCol' prop='zscyqk'>
+                  <a-form-model-item label='产权证持有情况' :labelCol='labelCol' :wrapperCol='wrapperCol' prop='zscyqk'>
                     <a-col :span="22">
 <!--                      <a-radio-group v-if="!disabled" v-model="model.zscyqk" >
                         <a-radio :value="1">有</a-radio>
@@ -897,7 +897,7 @@
                   <a-form-model-item label="净利润(万元)" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="jyrs">
                     <a-col :span="22">
                       <a-input v-if="!disabled && !isAudit" v-model="model.lirun" placeholder="请输入净利润"/>
-                      <span v-else  >{{ model.jyrs }}</span>
+                      <span v-else  >{{ model.lirun }}</span>
                     </a-col>
                   </a-form-model-item>
                 </a-col>