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

2 lines
8.6 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-41321e11","chunk-2d0ea097"],{8213:function(t,o,e){},"8d52":function(t,o,e){"use strict";e.r(o);var i=function(){var t=this,o=t._self._c;return o("div",{staticClass:"animated fadeInRight ecommerce"},[o("el-card",{staticClass:"ibox"},[o("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[o("div",[t._v(t._s(t.$t("shopCommunity.queryCondition")))])]),o("div",{},[o("el-form",{staticClass:"flex justify-start",attrs:{inline:!0,model:t.shopCommunityInfo.conditions}},[o("el-form-item",[o("el-form-item",[o("el-input",{attrs:{placeholder:t.$t("shopCommunity.shopName")},model:{value:t.shopCommunityInfo.conditions.shopName,callback:function(o){t.$set(t.shopCommunityInfo.conditions,"shopName",o)},expression:"shopCommunityInfo.conditions.shopName"}})],1)],1),o("el-form-item",[o("el-form-item",[o("el-input",{attrs:{placeholder:t.$t("shopCommunity.communityName")},model:{value:t.shopCommunityInfo.conditions.communityName,callback:function(o){t.$set(t.shopCommunityInfo.conditions,"communityName",o)},expression:"shopCommunityInfo.conditions.communityName"}})],1)],1),o("el-form-item",[o("el-form-item",[o("el-select",{staticStyle:{width:"100%"},model:{value:t.shopCommunityInfo.conditions.state,callback:function(o){t.$set(t.shopCommunityInfo.conditions,"state",o)},expression:"shopCommunityInfo.conditions.state"}},[o("el-option",{attrs:{value:24002,label:t.$t("shopCommunity.auditPass")}}),o("el-option",{attrs:{value:48004,label:t.$t("shopCommunity.auditNotPass")}})],1)],1)],1),o("el-form-item",[o("el-button",{attrs:{type:"primary",size:"small"},on:{click:t._queryAuditShopCommunitysMethod}},[t._v(" "+t._s(t.$t("shopCommunity.query"))+" ")])],1)],1)],1)]),o("el-card",{staticClass:"ibox"},[o("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[o("div",[t._v(t._s(t.$t("shopCommunity.shopCommunity")))])]),o("div",{},[o("el-table",{staticStyle:{width:"100%"},attrs:{data:t.shopCommunityInfo.shopCommunitys,border:""}},[o("el-table-column",{attrs:{prop:"communityId",label:t.$t("shopCommunity.communityCode"),align:"center"}}),o("el-table-column",{attrs:{prop:"communityName",label:t.$t("shopCommunity.communityName"),align:"center"}}),o("el-table-column",{attrs:{prop:"shopName",label:t.$t("shopCommunity.shopName"),align:"center"}}),o("el-table-column",{attrs:{prop:"createTime",label:t.$t("shopCommunity.settledTime"),align:"center"}}),o("el-table-column",{attrs:{prop:"startTime",label:t.$t("shopCommunity.startTime"),align:"center"}}),o("el-table-column",{attrs:{prop:"endTime",label:t.$t("shopCommunity.endTime"),align:"center"}}),o("el-table-column",{attrs:{prop:"stateName",label:t.$t("shopCommunity.state"),align:"center"}}),o("el-table-column",{attrs:{label:t.$t("shopCommunity.operation"),align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("el-button",{attrs:{type:"text",size:"small"},on:{click:function(o){return t._openShopCommunityWithdrawModel(e.row)}}},[t._v(" "+t._s(t.$t("shopCommunity.withdraw"))+" ")])]}}])})],1),o("el-pagination",{attrs:{"current-page":t.shopCommunityInfo.conditions.page,"page-size":t.shopCommunityInfo.conditions.row,total:t.shopCommunityInfo.total,layout:"total, prev, pager, next"},on:{"current-change":t.handlePageChange}})],1)]),o("audit",{ref:"audit",attrs:{"call-back-listener":"auditShopCommunity","call-back-function":"notifyAudit"}}),o("shop-community-withdraw",{ref:"shopCommunityWithdraw"})],1)},a=[],s=e("b775");function n(t){return new Promise((o,e)=>{Object(s["a"])({url:"/shop.queryShopCommunity",method:"get",params:t}).then(t=>{const e=t.data;o(e)}).catch(t=>{e(t)})})}function m(t){return new Promise((o,e)=>{Object(s["a"])({url:"/shop.auditShopCommunity",method:"post",data:t,headers:{"Content-Type":"application/json"}}).then(t=>{const e=t.data;o(e)}).catch(t=>{e(t)})})}var l=e("8fa4"),r=function(){var t=this,o=t._self._c;return o("el-dialog",{attrs:{title:t.$t("shopCommunityWithdraw.confirmOperation"),visible:t.dialogVisible,width:"30%"},on:{"update:visible":function(o){t.dialogVisible=o}}},[o("el-form",[o("el-form-item",{attrs:{label:t.$t("shopCommunityWithdraw.withdrawReason")}},[o("el-input",{attrs:{type:"textarea",rows:3,placeholder:t.$t("shopCommunityWithdraw.remarkPlaceholder")},model:{value:t.shopCommunityWithdrawInfo.remark,callback:function(o){t.$set(t.shopCommunityWithdrawInfo,"remark",o)},expression:"shopCommunityWithdrawInfo.remark"}})],1)],1),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:t.closeShopCommunityWithdrawModel}},[t._v(t._s(t.$t("shopCommunityWithdraw.cancel")))]),o("el-button",{attrs:{type:"primary"},on:{click:t.updateShopCommunityWithdraw}},[t._v(t._s(t.$t("shopCommunityWithdraw.confirmWithdraw")))])],1)],1)},u=[],h={name:"ShopCommunityWithdraw",data(){return{dialogVisible:!1,shopCommunityWithdrawInfo:{remark:"",state:""}}},methods:{open(t){this.shopCommunityWithdrawInfo={...t},this.dialogVisible=!0},async updateShopCommunityWithdraw(){if(this.shopCommunityWithdrawInfo.remark){this.shopCommunityWithdrawInfo.state="12001";try{await m(this.shopCommunityWithdrawInfo),this.$message.success(this.$t("shopCommunityWithdraw.processSuccess")),this.dialogVisible=!1,this.$emit("auditShopCommunity","listAuditShopCommunitys",{})}catch(t){this.$message.error(this.$t("shopCommunityWithdraw.processFailed")+t)}}else this.$message.error(this.$t("shopCommunityWithdraw.remarkRequired"))},closeShopCommunityWithdrawModel(){this.dialogVisible=!1}}},d=h,p=e("2877"),c=Object(p["a"])(d,r,u,!1,null,null,null),y=c.exports,f={name:"ShopCommunity",components:{Audit:l["default"],ShopCommunityWithdraw:y},data(){return{DEFAULT_PAGE:1,DEFAULT_ROWS:10,shopCommunityInfo:{shopCommunitys:[],total:0,records:1,conditions:{state:"24002",shopName:"",communityName:"",page:1,row:10}}}},created(){this._listAuditShopCommunitys(this.DEFAULT_PAGE,this.DEFAULT_ROWS)},methods:{async _listAuditShopCommunitys(t,o){this.shopCommunityInfo.conditions.page=t,this.shopCommunityInfo.conditions.row=o;try{const t=await n(this.shopCommunityInfo.conditions);this.shopCommunityInfo.total=t.total,this.shopCommunityInfo.records=t.records,this.shopCommunityInfo.shopCommunitys=t.data}catch(e){console.error("请求失败处理",e)}},_openShopCommunityWithdrawModel(t){this.$refs.shopCommunityWithdraw.open(t)},_queryAuditShopCommunitysMethod(){this._listAuditShopCommunitys(this.DEFAULT_PAGE,this.DEFAULT_ROWS)},handlePageChange(t){this._listAuditShopCommunitys(t,this.DEFAULT_ROWS)}}},C=f,b=(e("91de"),Object(p["a"])(C,i,a,!1,null,"1b1eb9d0",null));o["default"]=b.exports},"8fa4":function(t,o,e){"use strict";e.r(o);var i=function(){var t=this,o=t._self._c;return o("el-dialog",{attrs:{title:"审核信息",visible:t.dialogVisible,width:"50%","before-close":t.handleClose},on:{"update:visible":function(o){t.dialogVisible=o}}},[o("el-form",{ref:"form",attrs:{model:t.auditInfo,"label-width":"100px"}},[o("el-form-item",{attrs:{label:"审核状态",prop:"state"}},[o("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请审核"},model:{value:t.auditInfo.state,callback:function(o){t.$set(t.auditInfo,"state",o)},expression:"auditInfo.state"}},[o("el-option",{attrs:{label:"同意",value:"1100"}}),o("el-option",{attrs:{label:"拒绝",value:"1200"}})],1)],1),o("el-form-item",{attrs:{label:"原因",prop:"remark"}},[o("el-input",{attrs:{type:"textarea",placeholder:"必填,请填写原因",rows:4,maxlength:"200","show-word-limit":""},model:{value:t.auditInfo.remark,callback:function(o){t.$set(t.auditInfo,"remark",o)},expression:"auditInfo.remark"}})],1)],1),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:t.handleClose}},[t._v("取 消")]),o("el-button",{attrs:{type:"primary"},on:{click:t._auditSubmit}},[t._v("确 定")])],1)],1)},a=[],s={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:""}}}},n=s,m=e("2877"),l=Object(m["a"])(n,i,a,!1,null,null,null);o["default"]=l.exports},"91de":function(t,o,e){"use strict";e("8213")}}]);
//# sourceMappingURL=chunk-41321e11.43d47ef1.js.map