Files
PropertyDeployment/resources/Web/MicroCommunityMallWeb/html/js/chunk-171759c3.80413026.js
Anfioo adfd019d2d 江门
1
2026-02-01 15:37:55 +08:00

2 lines
8.5 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-171759c3"],{5535:function(t,e,o){"use strict";o.r(e);var i=function(){var t=this,e=t._self._c;return e("div",[e("el-row",[e("el-col",{attrs:{span:24}},[e("el-card",{staticClass:"box-card"},[e("div",{staticClass:"clearfix flex justify-between",attrs:{slot:"header"},slot:"header"},[e("span",[t._v("我的小区")]),e("div",{staticClass:"float-right"},[e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t._openEnterCommunityModal()}}},[e("i",{staticClass:"el-icon-plus"}),t._v(" 入驻小区 ")])],1)]),e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.communityInfo.enterCommunityInfo,border:"",stripe:""}},[e("el-table-column",{attrs:{prop:"provName",label:"省份"}}),e("el-table-column",{attrs:{prop:"cityName",label:"市/州"}}),e("el-table-column",{attrs:{prop:"areaName",label:"县/区",width:"150"}}),e("el-table-column",{attrs:{prop:"name",label:"小区名称",width:"200"}}),e("el-table-column",{attrs:{prop:"communityId",label:"小区编码"}}),e("el-table-column",{attrs:{prop:"tel",label:"联系方式"}}),e("el-table-column",{attrs:{prop:"communityArea",label:"面积"}}),e("el-table-column",{attrs:{label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t._showCommunityStatus(e.row.auditStatusCd))+" ")]}}])}),e("el-table-column",{attrs:{label:"操作",align:"right"},scopedSlots:t._u([{key:"default",fn:function(o){return[e("el-button-group",["1100"==o.row.auditStatusCd&&"7020181217000001"!=o.row.communityId?e("el-button",{attrs:{size:"mini"},on:{click:function(e){return t._openExitCommunityModel(o.row)}}},[t._v(" 申请退出 ")]):t._e(),"1100"==o.row.auditStatusCd?e("el-button",{attrs:{size:"mini"},on:{click:function(e){return t._openUpdateCommunityModel(o.row)}}},[t._v(" 修改面积 ")]):t._e()],1)]}}])})],1),e("el-pagination",{staticClass:"float-right",attrs:{layout:"prev, pager, next",total:100}})],1)],1)],1),e("store-enter-community",{ref:"storeEnterCommunity"}),e("store-exit-community",{ref:"storeExitCommunity"}),e("edit-community-area",{ref:"editCommunityArea"})],1)},n=[],a=o("b775");function r(t){return new Promise((e,o)=>{Object(a["a"])({url:"/enterCommunity/listMyCommunity",method:"get",params:t}).then(t=>{const o=t.data;e(o)}).catch(t=>{o(t)})})}function l(t){return new Promise((e,o)=>{Object(a["a"])({url:"/storeEnterCommunity/listNoEnterCommunity",method:"get",params:t}).then(t=>{const o=t.data;e(o)}).catch(t=>{o(t)})})}function s(t){return new Promise((e,o)=>{Object(a["a"])({url:"/storeEnterCommunity/_saveEnterCommunity",method:"post",data:t}).then(t=>{const o=t.data;e(o)}).catch(t=>{o(t)})})}function m(t){return new Promise((e,o)=>{Object(a["a"])({url:"/storeExitCommunity/exit",method:"post",data:t}).then(t=>{const o=t.data;e(o)}).catch(t=>{o(t)})})}function u(t){return new Promise((e,o)=>{Object(a["a"])({url:"/editCommunity/update",method:"post",data:t}).then(t=>{const o=t.data;e(o)}).catch(t=>{o(t)})})}var c=function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{title:"申请入驻",visible:t.dialogVisible,width:"80%"},on:{"update:visible":function(e){t.dialogVisible=e},close:t.handleClose}},[e("p",{staticStyle:{color:"red"}},[t._v(t._s(t.errorInfo))]),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:24}},[e("el-card",{attrs:{header:"flex justify-between"}},[e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:18}}),e("el-col",{attrs:{span:6}},[e("el-input-group",[e("el-input",{attrs:{placeholder:"输入小区名称",size:"small"},model:{value:t.searchCommunityName,callback:function(e){t.searchCommunityName=e},expression:"searchCommunityName"}}),e("el-button",{attrs:{slot:"append",type:"primary",size:"small"},on:{click:t.listNoEnterCommunity},slot:"append"},[t._v("查询")])],1)],1)],1),e("el-table",{staticStyle:{width:"100%","margin-top":"15px"},attrs:{data:t.communityInfo,border:"",stripe:""}},[e("el-table-column",{attrs:{prop:"communityId",label:"小区ID"}}),e("el-table-column",{attrs:{prop:"name",label:"名称"}}),e("el-table-column",{attrs:{prop:"address",label:"地址"}}),e("el-table-column",{attrs:{label:"操作",align:"right"},scopedSlots:t._u([{key:"default",fn:function(o){return[e("el-button",{attrs:{size:"mini"},on:{click:function(e){return t._saveEnterCommunity(o.row)}}},[t._v("申请入驻")])]}}])})],1)],1)],1)],1)],1)},d=[],y={name:"StoreEnterCommunity",data(){return{dialogVisible:!1,communityInfo:[],errorInfo:"",searchCommunityName:""}},methods:{open(){this.dialogVisible=!0,this.searchCommunityName="",this.listNoEnterCommunity()},handleClose(){this.dialogVisible=!1,this.errorInfo=""},async listNoEnterCommunity(){try{const t=await l({communityName:this.searchCommunityName});this.communityInfo=t}catch(t){console.error("查询未入驻小区失败:",t)}},async _saveEnterCommunity(t){try{await s({communityId:t.communityId}),this.$emit("refresh"),this.dialogVisible=!1}catch(e){this.errorInfo=e.message||"申请入驻失败",console.error("申请入驻失败:",e)}}}},h=y,p=o("2877"),f=Object(p["a"])(h,c,d,!1,null,null,null),b=f.exports,C=function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{title:"请确认您的操作!",visible:t.dialogVisible,width:"30%"},on:{"update:visible":function(e){t.dialogVisible=e},close:t.handleClose}},[e("div",{attrs:{align:"center"}},[e("p",[t._v("确认退出小区,退出后不可恢复!")])]),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:t.closeStoreExitCommunityModal}},[t._v("点错了")]),e("el-button",{attrs:{type:"primary"},on:{click:t.deleteExitCommunity}},[t._v("确认")])],1)])},g=[],v={name:"StoreExitCommunity",data(){return{dialogVisible:!1,communityInfo:{}}},methods:{open(t){this.communityInfo=t,this.dialogVisible=!0},handleClose(){this.dialogVisible=!1},closeStoreExitCommunityModal(){this.dialogVisible=!1},async deleteExitCommunity(){try{await m(this.communityInfo),this.$emit("refresh"),this.dialogVisible=!1}catch(t){console.error("退出小区失败:",t),this.$message.error("退出小区失败")}}}},_=v,w=Object(p["a"])(_,C,g,!1,null,null,null),E=w.exports,x=function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{title:"修改面积",visible:t.dialogVisible,width:"50%"},on:{"update:visible":function(e){t.dialogVisible=e},close:t.handleClose}},[e("h3",{staticClass:"m-t-none m-b"},[t._v("修改面积")]),e("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules,"label-width":"100px"}},[e("el-form-item",{attrs:{label:"小区面积",prop:"communityArea"}},[e("el-input",{attrs:{placeholder:"必填,请填写小区面积"},model:{value:t.form.communityArea,callback:function(e){t.$set(t.form,"communityArea",e)},expression:"form.communityArea"}})],1)],1),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.editCommunityArea}},[t._v("保存")])],1)],1)},I=[],V={name:"EditCommunityArea",data(){return{dialogVisible:!1,form:{communityId:"",communityArea:""},rules:{communityArea:[{required:!0,message:"小区面积不能为空",trigger:"blur"},{pattern:/^\d+(\.\d{1,2})?$/,message:"小区面积必须是3.00格式",trigger:"blur"}]}}},methods:{open(t){this.form={communityId:t.communityId,communityArea:t.communityArea},this.dialogVisible=!0},handleClose(){this.$refs.form.resetFields()},editCommunityArea(){this.$refs.form.validate(async t=>{if(t)try{await u(this.form),this.$emit("refresh"),this.dialogVisible=!1,this.$message.success("修改成功")}catch(e){console.error("修改面积失败:",e),this.$message.error("修改面积失败")}})}}},k=V,S=(o("c590"),Object(p["a"])(k,x,I,!1,null,"3d4e24a1",null)),A=S.exports,N={name:"EnterCommunity",components:{StoreEnterCommunity:b,StoreExitCommunity:E,EditCommunityArea:A},data(){return{communityInfo:{enterCommunityInfo:[]}}},created(){this.listMyCommunity()},methods:{async listMyCommunity(){try{const t=await r({});this.communityInfo.enterCommunityInfo=t}catch(t){console.error("获取小区列表失败:",t)}},_openEnterCommunityModal(){this.$refs.storeEnterCommunity.open()},_openExitCommunityModel(t){this.$refs.storeExitCommunity.open(t)},_openUpdateCommunityModel(t){this.$refs.editCommunityArea.open(t)},_showCommunityStatus(t){return"1000"==t?"入驻审核":"1200"==t?"入驻失败":"1100"==t?"入驻成功":"未知"}}},$=N,j=(o("a5aa"),Object(p["a"])($,i,n,!1,null,"0941a185",null));e["default"]=j.exports},"79be":function(t,e,o){},a5aa:function(t,e,o){"use strict";o("79be")},c590:function(t,e,o){"use strict";o("e91b")},e91b:function(t,e,o){}}]);
//# sourceMappingURL=chunk-171759c3.80413026.js.map