Przeglądaj źródła

加入审核撤回功能

wuxw 6 lat temu
rodzic
commit
0b96347400

+ 46 - 0
WebService/src/main/java/com/java110/web/components/community/RecallAuditEnterFinishCommunityComponent.java

@@ -0,0 +1,46 @@
+package com.java110.web.components.community;
+
+
+import com.alibaba.fastjson.JSONObject;
+import com.java110.core.context.IPageData;
+import com.java110.core.context.PageData;
+import com.java110.web.smo.community.IAuditEnterCommunitySMO;
+import com.java110.web.smo.community.IListAuditEnterCommunitysSMO;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.stereotype.Component;
+
+
+/**
+ * 小区审核
+ * <p>
+ * add by wuxw
+ * <p>
+ * 2019-06-29
+ */
+@Component("recallAuditEnterFinishCommunity")
+public class RecallAuditEnterFinishCommunityComponent {
+
+    @Autowired
+    private IAuditEnterCommunitySMO auditEnterCommunitySMOImpl;
+
+
+    /**
+     * 审核 小区
+     *
+     * @param pd 页面数据封装
+     * @return 返回 ResponseEntity 对象
+     */
+    public ResponseEntity<String> recall(IPageData pd) {
+        return auditEnterCommunitySMOImpl.auditEnterCommunity(pd);
+    }
+
+    public IAuditEnterCommunitySMO getAuditEnterCommunitySMOImpl() {
+        return auditEnterCommunitySMOImpl;
+    }
+
+    public void setAuditEnterCommunitySMOImpl(IAuditEnterCommunitySMO auditEnterCommunitySMOImpl) {
+        this.auditEnterCommunitySMOImpl = auditEnterCommunitySMOImpl;
+    }
+
+}

+ 3 - 0
WebService/src/main/resources/components/communityPackage/audit-enter-community-manage/auditEnterCommunityManage.html

@@ -107,6 +107,7 @@
                                 <!--v-on:click="_openEnterAuditCommunityModal(community)"-->
                                 <div class="btn-group" v-if="community.auditStatusCd!='1000'">
                                     <button class="btn-white btn btn-xs"
+                                            v-on:click="_openRecallAuditFinishCommunityModal(community)
                                             >撤回审核
                                     </button>
                                 </div>
@@ -132,5 +133,7 @@
                callBackListener="auditEnterCommunityManage"
                callBackFunction="notifyAuditInfo"
     ></vc:create>
+    <!--撤回审核-->
+    <vc:create name="recallAuditEnterFinishCommunity"></vc:create>
 
 </div>

+ 3 - 0
WebService/src/main/resources/components/communityPackage/audit-enter-community-manage/auditEnterCommunityManage.js

@@ -66,6 +66,9 @@
                 vc.component.auditEnterCommunityManageInfo.currentCommunityMemberId = _community.communityMemberId;
                 vc.emit('audit','openAuditModal',{});
             },
+            _openRecallAuditFinishCommunityModal:function(_community){
+                vc.emit('recallAuditEnterFinishCommunity','openRecallAuditEnterFinishCommunityModal',_community);
+            },
             _auditEnterCommunityState:function(_auditInfo){
                 _auditInfo.communityMemberId = vc.component.auditEnterCommunityManageInfo.currentCommunityMemberId;
                 vc.http.post(

+ 19 - 0
WebService/src/main/resources/components/communityPackage/recallAuditEnterFinishCommunity/recallAuditEnterFinishCommunity.html

@@ -0,0 +1,19 @@
+<div class="modal fade" id="recallAuditEnterFinishCommunityModel" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
+    <div class="modal-dialog" role="document">
+        <div class="modal-content">
+            <div class="modal-header">
+                <h5 class="modal-title" id="exampleModalLabel">请确认您的操作!</h5>
+                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
+                    <span aria-hidden="true">&times;</span>
+                </button>
+            </div>
+            <div class="modal-body">
+                <tr align="center"><th>确定撤回审核</th></tr>
+            </div>
+            <div class="modal-footer">
+                <button type="button" class="btn btn-secondary" data-dismiss="modal" v-on:click="closeRecallAuditEnterFinishCommunityModel()">点错了</button>
+                <button type="button" class="btn btn-primary" v-on:click="recallAuditEnterFinishCommunity()">确认撤回</button>
+            </div>
+        </div>
+    </div>
+</div>

+ 56 - 0
WebService/src/main/resources/components/communityPackage/recallAuditEnterFinishCommunity/recallAuditEnterFinishCommunity.js

@@ -0,0 +1,56 @@
+(function(vc,vm){
+
+    vc.extends({
+        data:{
+            recallAuditEnterFinishCommunityInfo:{
+
+            }
+        },
+         _initMethod:function(){
+
+         },
+         _initEvent:function(){
+             vc.on('recallAuditEnterFinishCommunity','openRecallAuditEnterFinishCommunityModal',function(_params){
+
+                vc.component.recallAuditEnterFinishCommunityInfo = _params;
+                $('#recallAuditEnterFinishCommunityModel').modal('show');
+
+            });
+        },
+        methods:{
+            recallAuditEnterFinishCommunity:function(){
+                var _paramObj = {
+                    communityMemberId:vc.component.recallAuditEnterFinishCommunityInfo.communityMemberId,
+                    state:'1000',
+                    remark:'撤回审核'
+                };
+                vc.http.post(
+                    'recallAuditEnterFinishCommunity',
+                    'recall',
+                    JSON.stringify(_paramObj),
+                    {
+                        emulateJSON:true
+                     },
+                     function(json,res){
+                        //vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
+                        if(res.status == 200){
+                            //关闭model
+                            $('#recallAuditEnterFinishCommunityModel').modal('hide');
+                            vc.emit('auditEnterCommunityManage','listCommunity',{});
+                            return ;
+                        }
+                        vc.message(json);
+                     },
+                     function(errInfo,error){
+                        console.log('请求失败处理');
+                        vc.message(json);
+
+                     });
+            },
+            closeRecallAuditEnterFinishCommunityModel:function(){
+                $('#recallAuditEnterFinishCommunityModel').modal('hide');
+            }
+        }
+    });
+
+})(window.vc,window.vc.component);