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

2 lines
5.4 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-62927868","chunk-2d0ea097"],{"024e":function(t,e,a){},6512:function(t,e,a){"use strict";a("024e")},"8fa4":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{title:"审核信息",visible:t.dialogVisible,width:"50%","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[e("el-form",{ref:"form",attrs:{model:t.auditInfo,"label-width":"100px"}},[e("el-form-item",{attrs:{label:"审核状态",prop:"state"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请审核"},model:{value:t.auditInfo.state,callback:function(e){t.$set(t.auditInfo,"state",e)},expression:"auditInfo.state"}},[e("el-option",{attrs:{label:"同意",value:"1100"}}),e("el-option",{attrs:{label:"拒绝",value:"1200"}})],1)],1),e("el-form-item",{attrs:{label:"原因",prop:"remark"}},[e("el-input",{attrs:{type:"textarea",placeholder:"必填,请填写原因",rows:4,maxlength:"200","show-word-limit":""},model:{value:t.auditInfo.remark,callback:function(e){t.$set(t.auditInfo,"remark",e)},expression:"auditInfo.remark"}})],1)],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:t.handleClose}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:t._auditSubmit}},[t._v("确 定")])],1)],1)},o=[],n={name:"Audit",data(){return{dialogVisible:!1,auditInfo:{state:"",remark:""}}},watch:{"auditInfo.state"(t){"1100"===t?this.auditInfo.remark="同意":"1200"===t&&(this.auditInfo.remark="")}},methods:{open(){this.dialogVisible=!0,this.clearAuditInfo()},handleClose(){this.dialogVisible=!1,this.clearAuditInfo()},auditValidate(){return this.auditInfo.state?this.auditInfo.remark?!(this.auditInfo.remark.length>200)||(this.$message.error("原因内容不能超过200字"),!1):(this.$message.error("原因内容不能为空"),!1):(this.$message.error("审核状态不能为空"),!1)},_auditSubmit(){this.auditValidate()&&(this.$emit("auditNotify",{state:this.auditInfo.state,remark:this.auditInfo.remark}),this.handleClose())},clearAuditInfo(){this.auditInfo={state:"",remark:""}}}},s=n,r=a("2877"),l=Object(r["a"])(s,i,o,!1,null,null,null);e["default"]=l.exports},d37f:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"animated fadeInRight ecommerce"},[e("el-card",[e("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[e("span",[t._v(t._s(t.$t("auditShopCommunity.title")))])]),e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.auditShopCommunityInfo.shopCommunitys,border:"",stripe:""}},[e("el-table-column",{attrs:{prop:"communityId",label:t.$t("auditShopCommunity.communityCode"),align:"center"}}),e("el-table-column",{attrs:{prop:"communityName",label:t.$t("auditShopCommunity.communityName"),align:"center"}}),e("el-table-column",{attrs:{prop:"shopName",label:t.$t("auditShopCommunity.shopName"),align:"center"}}),e("el-table-column",{attrs:{prop:"createTime",label:t.$t("auditShopCommunity.joinTime"),align:"center"}}),e("el-table-column",{attrs:{prop:"startTime",label:t.$t("auditShopCommunity.startTime"),align:"center"}}),e("el-table-column",{attrs:{prop:"endTime",label:t.$t("auditShopCommunity.endTime"),align:"center"}}),e("el-table-column",{attrs:{prop:"stateName",label:t.$t("auditShopCommunity.status"),align:"center"}}),e("el-table-column",{attrs:{label:t.$t("auditShopCommunity.operation"),align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-button",{attrs:{size:"mini"},on:{click:function(e){return t.handleAudit(a.row)}}},[t._v(" "+t._s(t.$t("auditShopCommunity.audit"))+" ")])]}}])})],1),e("el-pagination",{staticStyle:{"margin-top":"20px","text-align":"right"},attrs:{"current-page":t.currentPage,"page-size":t.pageSize,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handlePageChange}})],1),e("audit-dialog",{ref:"auditDialog",on:{auditNotify:t.handleAuditSubmit}})],1)},o=[],n=a("b775");function s(t){return new Promise((e,a)=>{Object(n["a"])({url:"/shop.queryShopCommunity",method:"get",params:t}).then(t=>{const a=t.data;e(a)}).catch(t=>{a(t)})})}function r(t){return new Promise((e,a)=>{Object(n["a"])({url:"/shop.auditShopCommunity",method:"post",data:t}).then(t=>{const i=t.data;0==i.code?e(i):a(i.msg)}).catch(t=>{a(t)})})}var l=a("8fa4"),u={name:"AuditShopCommunity",components:{AuditDialog:l["default"]},data(){return{auditShopCommunityInfo:{shopCommunitys:[],conditions:{state:"12001"}},currentPage:1,pageSize:10,total:0,currentAuditInfo:null}},created(){this.getList()},methods:{async getList(){try{const t={...this.auditShopCommunityInfo.conditions,page:this.currentPage,row:this.pageSize},e=await s(t);this.auditShopCommunityInfo.shopCommunitys=e.data,this.total=e.total||0}catch(t){console.error("获取店铺入驻小区列表失败:",t)}},handleAudit(t){this.currentAuditInfo=t,this.$refs.auditDialog.open()},async handleAuditSubmit(t){try{const e={...t,shopId:this.currentAuditInfo.shopId,storeId:this.currentAuditInfo.storeId,scId:this.currentAuditInfo.scId};await r(e),this.$message.success(this.$t("common.operateSuccess")),this.getList()}catch(e){this.$message.error(e),console.error("审核失败:",e)}},handlePageChange(t){this.currentPage=t,this.getList()}}},d=u,m=(a("6512"),a("2877")),c=Object(m["a"])(d,i,o,!1,null,"53ceb1fc",null);e["default"]=c.exports}}]);
//# sourceMappingURL=chunk-62927868.5fdddd08.js.map