dingxin 6 лет назад
Родитель
Сommit
9c389034e5

+ 26
- 18
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BuildingTreeServiceImpl.java Просмотреть файл

@@ -695,12 +695,14 @@ public class BuildingTreeServiceImpl implements BuildingTreeServiceI {
695 695
 		if (type.equals("roomNo")) {
696 696
 			TpLevel tpLevel = tpLevelMapper.selectById(id);
697 697
 			QueryWrapper<TpBuildingOwnerInfo> tpBuildingOwnerInfo = new QueryWrapper<>();
698
-			 tpBuildingOwnerInfo.eq("community_id", tpLevel.getCommunityId())
699
-								.eq("phase_id", tpLevel.getPhaseId())
700
-								.eq("building_id", tpLevel.getBuildingId())
701
-								.eq("unit_id", tpLevel.getUnitId())
702
-								.eq("level_id", tpLevel.getId())
703
-								.eq("verify_status", 1);
698
+			if (null!=tpLevel) {
699
+				tpBuildingOwnerInfo.eq("community_id", tpLevel.getCommunityId())
700
+						.eq("phase_id", tpLevel.getPhaseId())
701
+						.eq("building_id", tpLevel.getBuildingId())
702
+						.eq("unit_id", tpLevel.getUnitId())
703
+						.eq("level_id", tpLevel.getId())
704
+						.eq("verify_status", 1);
705
+			    }
704 706
 			List<TpBuildingOwnerInfo> ifoBuid = tpBuildingOwnerInfoMapper .selectList(tpBuildingOwnerInfo);
705 707
 			if (null != ifoBuid && ifoBuid.size()>0) {
706 708
 				return false;
@@ -709,10 +711,12 @@ public class BuildingTreeServiceImpl implements BuildingTreeServiceI {
709 711
 		if (type.equals("level")) {
710 712
 			TpUnit tpUnit = tpUnitMapper.selectById(id);
711 713
 			QueryWrapper<TpBuildingOwnerInfo> tpBuildingOwnerInfo = new QueryWrapper<>();
712
-			 tpBuildingOwnerInfo.eq("community_id", tpUnit.getCommunityId())
713
-								.eq("phase_id", tpUnit.getPhaseId())
714
-								.eq("building_id", tpUnit.getBuildingId())
715
-								.eq("verify_status", 1);
714
+			if (null!=tpUnit) {
715
+				tpBuildingOwnerInfo.eq("community_id", tpUnit.getCommunityId())
716
+						.eq("phase_id", tpUnit.getPhaseId())
717
+						.eq("building_id", tpUnit.getBuildingId())
718
+						.eq("verify_status", 1);
719
+				}
716 720
 			List<TpBuildingOwnerInfo> ifoBuid = tpBuildingOwnerInfoMapper.selectList(tpBuildingOwnerInfo);
717 721
 			if (null != ifoBuid && ifoBuid.size()>0) {
718 722
 				return false;
@@ -722,10 +726,12 @@ public class BuildingTreeServiceImpl implements BuildingTreeServiceI {
722 726
 			//判断书否有已审核人员
723 727
 			TpBuilding tpBuilding = tpBuildingMapper.selectById(id);
724 728
 			QueryWrapper<TpBuildingOwnerInfo> tpBuildingOwnerInfo = new QueryWrapper<>();
725
-			 tpBuildingOwnerInfo.eq("community_id", tpBuilding.getCommunityId())
726
-								.eq("phase_id", tpBuilding.getPhaseId())
727
-								.eq("building_id", tpBuilding.getId())
728
-								.eq("verify_status", 1);
729
+			if (null!=tpBuilding) {
730
+				tpBuildingOwnerInfo.eq("community_id", tpBuilding.getCommunityId())
731
+						.eq("phase_id", tpBuilding.getPhaseId())
732
+						.eq("building_id", tpBuilding.getId())
733
+						.eq("verify_status", 1);
734
+			    }
729 735
 			List<TpBuildingOwnerInfo> ifoBuid = tpBuildingOwnerInfoMapper.selectList(tpBuildingOwnerInfo);
730 736
 			if (null != ifoBuid && ifoBuid.size()>0) {
731 737
 				return false;
@@ -733,10 +739,12 @@ public class BuildingTreeServiceImpl implements BuildingTreeServiceI {
733 739
 		}
734 740
 		if (type.equals("building")) {
735 741
 			TpPhase phase = tpPhaseMapper.selectById(id);
736
-			QueryWrapper<TpBuildingOwnerInfo> tpBuildingOwnerInfo = new QueryWrapper<>();
737
-			 tpBuildingOwnerInfo.eq("community_id", phase.getCommunityId())
738
-								.eq("phase_id", phase.getId())
739
-								.eq("verify_status", 1);
742
+				QueryWrapper<TpBuildingOwnerInfo> tpBuildingOwnerInfo = new QueryWrapper<>();
743
+			if (null!=phase) {
744
+				tpBuildingOwnerInfo.eq("community_id", phase.getCommunityId())
745
+						.eq("phase_id", phase.getId())
746
+						.eq("verify_status", 1);
747
+				}
740 748
 			List<TpBuildingOwnerInfo> ifoBuid = tpBuildingOwnerInfoMapper.selectList(tpBuildingOwnerInfo);
741 749
 			if (null != ifoBuid && ifoBuid.size()>0) {
742 750
 				return false;

+ 1
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TpActivityServiceImpl.java Просмотреть файл

@@ -241,7 +241,7 @@ public class TpActivityServiceImpl extends ServiceImpl<TpActivityMapper, TpActiv
241 241
 //                        String codeUrl= imageServiceI.getImageUrl(inputStream);
242 242
 
243 243
                         TdImages tdImages= new TdImages();
244
-                        tdImages.setImageUrl("" + tpActivity.getId());
244
+                        tdImages.setImageUrl(qrCodePerproties.getUrl() + tpActivity.getId());
245 245
                         tdImages.setUuid(tpActivity.getId());
246 246
                         tdImages.setType("activityCode");
247 247
                         tdImages.setCreateUser(userElement.getId());

+ 1
- 1
CODE/smart-community/property-api/src/main/resources/application.yml Просмотреть файл

@@ -14,4 +14,4 @@ mybatis-plus:
14 14
 
15 15
 # 二维码生成地址
16 16
 qr-code:
17
-  url: http://jhhhhh?activeId=
17
+  url: https://www.baidu.com/

+ 3
- 1
VUECODE/smart-property-manage/src/api/buildingOwnerInfo.js Просмотреть файл

@@ -247,7 +247,9 @@ export function verifyinfoAdd(data) {
247 247
     method: 'put',
248 248
     params: {
249 249
       verifyStatus: data.status,
250
-      roleState: data.roleId
250
+      roleState: data.roleId,
251
+      remark: data.remark
252
+
251 253
     }
252 254
   })
253 255
 }

+ 0
- 15
VUECODE/smart-property-manage/src/views/building/buildingdata/index.vue Просмотреть файл

@@ -110,25 +110,11 @@ export default {
110 110
         console.log('error addNode')
111 111
       })
112 112
       },
113
-      // suo(){
114
-      //   this.liste=[177,26,25]
115
-      //    console.log('1111'); 
116
-      // },
117 113
       //删除当前节点
118 114
       remove(data){
119 115
       this.treeQuery.id = data.id
120 116
       this.treeQuery.name = data.name
121 117
       this.treeQuery.type = data.type
122
-      console.log('当前节点',data.id)
123
-      console.log('当前名称',data.name)
124
-      console.log('当前类型',data.type)
125
-      // if(data.type=='phase'){
126
-      //   his.$message({
127
-      //       type: 'info',
128
-      //       message: '不可删除根节点'
129
-      //     }); 
130
-      //     return
131
-      // }
132 118
       this.$store.dispatch('DeleteNode', this.treeQuery).then((res) => {
133 119
         if(res.code=='1'){
134 120
           this.$message({
@@ -155,7 +141,6 @@ export default {
155 141
           this.BuildingTreeList(this.treeQuery).then(response => {
156 142
             console.log(response.data)
157 143
               if (response.code === "0") {
158
-                // data = response.data
159 144
                 resolve(response.data);
160 145
               }
161 146
           }).catch(() => {

+ 31
- 3
VUECODE/smart-property-manage/src/views/building/info/index.vue Просмотреть файл

@@ -2,6 +2,18 @@
2 2
   <div id="root">
3 3
     <div class="form-div">
4 4
       <el-form ref="form" label-width="150px" label-position="left">
5
+        <el-dialog
6
+        title="提示"
7
+        :visible.sync="dialogVisible"
8
+        width="30%">
9
+        <span><el-radio v-model="listQuery.remark" label="不认识的人的手机号">不认识的人的手机号</el-radio>
10
+              <el-radio v-model="listQuery.remark" label="其他原因需要沟通">其他原因需要沟通</el-radio>
11
+        </span>
12
+        <span slot="footer" class="dialog-footer">
13
+          <el-button @click="dialogVisible = false">取 消</el-button>
14
+          <el-button type="primary" @click="submitAudit()">确 定</el-button>
15
+        </span>
16
+      </el-dialog>
5 17
         <el-form-item label="基本信息"/>
6 18
         <el-form-item>
7 19
           <table>
@@ -43,7 +55,7 @@
43 55
                 </el-select>
44 56
               </td>
45 57
               <td>审核状态</td>                  
46
-              <td v-if="listQuery.verifyStatus=='1'">{{ '审核通过' }}   <td>
58
+              <td v-if="listQuery.verifyStatus=='1'">{{ '审核通过' }}<td>
47 59
               <td v-if="listQuery.verifyStatus=='2' && listQuery.off=='1' "><font color="red">{{ '审核未通过' }}</font><td>
48 60
               <td v-if="listQuery.verifyStatus=='0' && listQuery.off=='1' "><font color="red">{{ '未审核' }}</font><td>    
49 61
               <td v-if="listQuery.off=='2' && listQuery.verifyStatus !='1'">
@@ -111,9 +123,11 @@ export default {
111 123
         off: '1', // 控制按钮的展示
112 124
         type: '', 
113 125
         roleId:'',
114
-        status: '' // select值
126
+        status: '', // select值
127
+        remark: ''
115 128
       },
116 129
       total: 0, // 数据总数
130
+      dialogVisible: false
117 131
       
118 132
     }
119 133
   },
@@ -151,6 +165,20 @@ export default {
151 165
    console.log('this.listQuery.off',this.listQuery.off)
152 166
   },
153 167
   userVerifyAudit(){
168
+    // 审核不通过的情况下弹框选择提示原因
169
+    if(this.listQuery.status=='2'){
170
+      this.dialogVisible = true
171
+      return
172
+     }
173
+     this.submit()
174
+    },
175
+
176
+    submitAudit(){
177
+      this.dialogVisible = true
178
+      this.submit()
179
+    },
180
+    // 审核结果提交
181
+    submit(){
154 182
       this.$store.dispatch('VerifyinfoAdd', this.listQuery).then((res) => {
155 183
         const resCode = res.code
156 184
         if (resCode === '0') {
@@ -169,7 +197,7 @@ export default {
169 197
       }).catch(() => {
170 198
         console.log('UserVerifyAudit error')
171 199
       })
172
-    },
200
+    }
173 201
   }
174 202
 
175 203
 }