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

2 lines
8.6 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2803d380"],{"674c":function(t,e,r){"use strict";r("705f")},"705f":function(t,e,r){},b6f5:function(t,e,r){"use strict";r.r(e);var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"animated fadeInRight ecommerce"},[e("el-row",[e("el-col",{attrs:{span:24}},[e("el-card",[e("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[e("span",[t._v("基本信息")])]),e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.listStoreManageInfo.listStores,border:""}},[e("el-table-column",{attrs:{prop:"name",label:"商户名称",align:"center"}}),e("el-table-column",{attrs:{prop:"address",label:"商户地址",align:"center"}}),e("el-table-column",{attrs:{prop:"tel",label:"联系电话",align:"center"}}),e("el-table-column",{attrs:{prop:"storeTypeName",label:"商户类型",align:"center"}}),e("el-table-column",{attrs:{prop:"artificialPerson",label:"企业法人",align:"center"}}),e("el-table-column",{attrs:{prop:"nearByLandmarks",label:"附近地标",align:"center"}}),e("el-table-column",{attrs:{label:"操作",align:"right"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("el-button",{attrs:{size:"mini"},on:{click:function(e){return t._openEditStoreInfoModel(r.row)}}},[t._v("修改")])]}}])})],1),e("el-pagination",{staticClass:"pagination",attrs:{"current-page":t.currentPage,"page-size":t.pageSize,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1)],1)],1),e("el-row",[e("el-col",{attrs:{span:24}},[e("el-card",[e("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[e("span",[t._v("商户信息")])]),e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.listStoreManageInfo.storeAttrDtoList,border:""}},[e("el-table-column",{attrs:{prop:"name",label:"属性名",align:"center"}}),e("el-table-column",{attrs:{prop:"value",label:"属性值",align:"center"}}),e("el-table-column",{attrs:{label:"操作",align:"right"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("el-button",{attrs:{size:"mini"},on:{click:function(e){return t._openEditStoreAttrModel(r.row)}}},[t._v("修改")])]}}])})],1),e("el-pagination",{staticClass:"pagination",attrs:{"current-page":t.currentPage,"page-size":t.pageSize,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1)],1)],1),e("edit-store-info",{ref:"editStoreInfo"}),e("edit-store-attr",{ref:"editStoreAttr"})],1)},o=[],i=function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{title:"修改商户信息",visible:t.dialogVisible,width:"70%"},on:{"update:visible":function(e){t.dialogVisible=e},close:t.handleClose}},[e("el-form",{attrs:{model:t.editStoreInfo,"label-width":"120px"}},[e("el-form-item",{attrs:{label:"商户名称"}},[e("el-input",{attrs:{placeholder:"商户名称不能修改",readonly:""},model:{value:t.editStoreInfo.name,callback:function(e){t.$set(t.editStoreInfo,"name",e)},expression:"editStoreInfo.name"}})],1),e("el-form-item",{attrs:{label:"商户地址",prop:"address"}},[e("el-input",{attrs:{placeholder:"必填,请填写商户地址"},model:{value:t.editStoreInfo.address,callback:function(e){t.$set(t.editStoreInfo,"address",e)},expression:"editStoreInfo.address"}})],1),e("el-form-item",{attrs:{label:"电话",prop:"tel"}},[e("el-input",{attrs:{placeholder:"必填,请填写联系电话"},model:{value:t.editStoreInfo.tel,callback:function(e){t.$set(t.editStoreInfo,"tel",e)},expression:"editStoreInfo.tel"}})],1),e("el-form-item",{attrs:{label:"附近地标",prop:"nearByLandmarks"}},[e("el-input",{attrs:{placeholder:"必填,请填写附近地标"},model:{value:t.editStoreInfo.nearByLandmarks,callback:function(e){t.$set(t.editStoreInfo,"nearByLandmarks",e)},expression:"editStoreInfo.nearByLandmarks"}})],1),e("el-form-item",{attrs:{label:"地区 x坐标"}},[e("el-input",{attrs:{placeholder:"选择填请填写x坐标"},model:{value:t.editStoreInfo.mapX,callback:function(e){t.$set(t.editStoreInfo,"mapX",e)},expression:"editStoreInfo.mapX"}})],1),e("el-form-item",{attrs:{label:"地区 y坐标"}},[e("el-input",{attrs:{placeholder:"选填请填写y坐标"},model:{value:t.editStoreInfo.mapY,callback:function(e){t.$set(t.editStoreInfo,"mapY",e)},expression:"editStoreInfo.mapY"}})],1)],1),e("span",{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.submitEditStoreInfo}},[t._v("保存")])],1)],1)},s=[],l=r("b775");function n(t){return new Promise((e,r)=>{Object(l["a"])({url:"/listStoreManage.getStoreInfo",method:"get",params:t}).then(t=>{const r=t.data;e(r)}).catch(t=>{r(t)})})}function d(t){return new Promise((e,r)=>{Object(l["a"])({url:"/updateStoreInfo.updateStoreInfo",method:"post",data:t}).then(t=>{const r=t.data;e(r)}).catch(t=>{r(t)})})}function c(t){return new Promise((e,r)=>{Object(l["a"])({url:"/storeAttr.updateStoreAttr",method:"post",data:t}).then(t=>{const r=t.data;e(r)}).catch(t=>{r(t)})})}var u={name:"EditStoreInfo",data(){return{dialogVisible:!1,editStoreInfo:{storeId:"",name:"",address:"",tel:"",nearByLandmarks:"",mapX:"",mapY:""}}},methods:{open(t){this.refreshEditStoreInfo(t),this.dialogVisible=!0},refreshEditStoreInfo(t){this.editStoreInfo={storeId:t.storeId,name:t.name,address:t.address,tel:t.tel,nearByLandmarks:t.nearByLandmarks,mapX:t.mapX,mapY:t.mapY}},handleClose(){this.clearEditStoreInfo()},clearEditStoreInfo(){this.editStoreInfo={storeId:"",name:"",address:"",tel:"",nearByLandmarks:"",mapX:"",mapY:""}},editStoreValidate(){return this.editStoreInfo.address?this.editStoreInfo.tel?!!this.editStoreInfo.nearByLandmarks||(this.$message.error("附近地标必填"),!1):(this.$message.error("联系电话必填"),!1):(this.$message.error("商户地址必填"),!1)},submitEditStoreInfo(){this.editStoreValidate()&&d(this.editStoreInfo).then(()=>{this.$message.success("修改成功"),this.dialogVisible=!1,this.$emit("refresh")}).catch(t=>{console.error("修改失败",t)})}}},f=u,p=r("2877"),h=Object(p["a"])(f,i,s,!1,null,null,null),m=h.exports,S=function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{title:"修改商户信息 - "+t.editStoreAttr.name,visible:t.dialogVisible,width:"50%"},on:{"update:visible":function(e){t.dialogVisible=e},close:t.handleClose}},[e("el-form",{attrs:{model:t.editStoreAttr,"label-width":"120px"}},[e("el-form-item",{attrs:{label:t.editStoreAttr.name}},[e("el-input",{attrs:{placeholder:"商户属性必填"},model:{value:t.editStoreAttr.value,callback:function(e){t.$set(t.editStoreAttr,"value",e)},expression:"editStoreAttr.value"}})],1)],1),e("span",{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.submitEditStoreAttr}},[t._v("保存")])],1)],1)},b=[],g={name:"EditStoreAttr",data(){return{dialogVisible:!1,editStoreAttr:{attrId:"",value:"",name:""}}},methods:{open(t){this.refreshEditStoreAttr(t),this.dialogVisible=!0},refreshEditStoreAttr(t){this.editStoreAttr={attrId:t.attrId,value:t.value,name:t.name}},handleClose(){this.clearEditStoreAttr()},clearEditStoreAttr(){this.editStoreAttr={attrId:"",value:"",name:""}},editStoreAttrValidate(){return!!this.editStoreAttr.value||(this.$message.error("属性值必填"),!1)},submitEditStoreAttr(){this.editStoreAttrValidate()&&c(this.editStoreAttr).then(()=>{this.$message.success("修改成功"),this.dialogVisible=!1,this.$emit("refresh")}).catch(t=>{console.error("修改失败",t)})}}},I=g,v=Object(p["a"])(I,S,b,!1,null,null,null),A=v.exports,k={name:"StoreInfoManage",components:{EditStoreInfo:m,EditStoreAttr:A},data(){return{listStoreManageInfo:{listStores:[],storeAttrDtoList:[],total:0,records:1,conditions:{name:"",storeTypeCd:"",tel:""}},currentPage:1,pageSize:10}},created(){this._listListStores(this.currentPage,this.pageSize)},methods:{_listListStores(t,e){this.listStoreManageInfo.conditions.page=t,this.listStoreManageInfo.conditions.row=e,n(this.listStoreManageInfo.conditions).then(t=>{this.listStoreManageInfo.listStores=t.stores,this.listStoreManageInfo.storeAttrDtoList=this.listStoreManageInfo.listStores[0].storeAttrDtoList,this.total=t.records}).catch(t=>{console.error("请求失败处理",t)})},handleCurrentChange(t){this.currentPage=t,this._listListStores(this.currentPage,this.pageSize)},_queryListStoreMethod(){this._listListStores(this.currentPage,this.pageSize)},_openEditStoreInfoModel(t){this.$refs.editStoreInfo.open(t)},_openEditStoreAttrModel(t){this.$refs.editStoreAttr.open(t)}}},y=k,_=(r("674c"),Object(p["a"])(y,a,o,!1,null,"d238ffb2",null));e["default"]=_.exports}}]);
//# sourceMappingURL=chunk-2803d380.a35c840e.js.map