You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1 lines
36 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-992df78e"],{"174a":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"group-page"},[a("div",{staticClass:"toolbar"},[a("el-button",{attrs:{type:"goon",size:"mini",icon:"el-icon-circle-plus-outline"},on:{click:e.addGroup}},[e._v(" 新增 ")])],1),a("div",{staticClass:"group-content"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{id:"tables",data:e.storeDetails,"row-key":"id"}},[a("el-table-column",{attrs:{label:"店铺信息"}},[a("el-table-column",{attrs:{align:"center",prop:"logo",label:"店铺logo"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{width:"100%",height:"100px"},attrs:{src:e.row.logo}})]}}])}),a("el-table-column",{attrs:{align:"center",prop:"storeName",label:"店铺名称"}}),a("el-table-column",{attrs:{align:"center",prop:"nickName",label:"店铺别名"}}),a("el-table-column",{attrs:{align:"center",prop:"shipAddress",label:"发货地址"}}),a("el-table-column",{attrs:{align:"center",prop:"remark",label:"店铺简介"}}),a("el-table-column",{attrs:{align:"center",prop:"mobile",label:"注册手机号"}}),a("el-table-column",{attrs:{align:"center",prop:"openStartTime",label:"店铺营业时间开始"}}),a("el-table-column",{attrs:{align:"center",prop:"openEndTime",label:"店铺营业时间结束"}})],1),a("el-table-column",{attrs:{label:"退货地址"}},e._l(e.returnAddress,(function(t,s){return a("el-table-column",{key:s,attrs:{align:"center",prop:e.returnAddress[s].prop,label:t.label}})})),1),a("el-table-column",{attrs:{label:"门店地址信息"}},e._l(e.storeAddress,(function(t,s){return a("el-table-column",{key:s,attrs:{align:"center",prop:e.storeAddress[s].prop,label:t.label}})})),1),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.preventDefault(),e.editGroup(t.row)}}},[e._v(" 编辑 ")]),a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.preventDefault(),e.editWX(t.row)}}},[e._v(" 微信配置 ")])]}}])})],1)],1),a("grope-edit",{ref:"edit",attrs:{"dialog-visible":e.dialog.isVisible,type:e.dialog.type},on:{close:e.editClose,success:e.getStoreDetails}}),a("wx-edit",{ref:"wxEdit",attrs:{"dialog-visible":e.dialogWx.isVisible,type:e.dialogWx.type},on:{close:e.editWxClose,success:e.getStoreDetails}})],1)},i=[],r=(a("96cf"),a("1da1")),n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{staticClass:"group-dialog",attrs:{"close-on-click-modal":!1,title:e.title,type:e.type,visible:e.isVisible,width:"70%",top:"50px"},on:{"update:visible":function(t){e.isVisible=t}}},[a("el-form",{ref:"form",attrs:{model:e.form,"label-width":"100px"}},[e.form.dadaStatus?e._e():a("el-button",{staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:e.kaitongDa}},[e._v("开通达达配送")]),a("el-row",[a("el-col",{staticStyle:{"margin-right":"200px"},attrs:{span:10}},[a("div",{staticClass:"shop-details"},[a("el-form-item",{attrs:{label:"店铺logo"}},[a("el-upload",{class:[{"avatar-uploader":!e.form.logo}],attrs:{headers:e.headers,data:e.dataObj,action:e.action,"show-file-list":!1,"on-success":e.handleAvatarSuccess,disabled:e.disabled1}},[e.form.logo?a("img",{staticClass:"avatar",attrs:{src:e.form.logo,width:"80",height:"80"}}):a("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1),a("el-form-item",{attrs:{label:"店铺别名"}},[a("el-input",{attrs:{disabled:e.disabled1,size:"mini"},model:{value:e.form.nickName,callback:function(t){e.$set(e.form,"nickName",t)},expression:"form.nickName"}})],1),a("el-form-item",{attrs:{label:"店铺名称"}},[a("el-input",{attrs:{disabled:e.disabled1,size:"mini"},model:{value:e.form.storeName,callback:function(t){e.$set(e.form,"storeName",t)},expression:"form.storeName"}})],1),a("el-form-item",{attrs:{label:"发货地址"}},[a("el-input",{attrs:{disabled:e.disabled1,resize:e.disabled1?"none":"",type:"textarea"},model:{value:e.form.shipAddress,callback:function(t){e.$set(e.form,"shipAddress",t)},expression:"form.shipAddress"}})],1),a("el-form-item",{attrs:{label:"店铺简介"}},[a("el-input",{attrs:{disabled:e.disabled1,resize:e.disabled1?"none":"",type:"textarea"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1),a("el-form-item",{attrs:{label:"收单类型"}},[a("el-select",{attrs:{size:"mini"},model:{value:e.form.posType,callback:function(t){e.$set(e.form,"posType",t)},expression:"form.posType"}},e._l(e.optionList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.desc,value:e.code}})})),1)],1),a("el-form-item",{attrs:{label:"营业服务"}},[a("el-input",{attrs:{disabled:e.disabled1,size:"mini"},model:{value:e.form.businessService,callback:function(t){e.$set(e.form,"businessService",t)},expression:"form.businessService"}})],1),a("el-form-item",{attrs:{label:"业务类型"}},[a("el-input",{attrs:{disabled:e.disabled1,size:"mini"},model:{value:e.form.businessType,callback:function(t){e.$set(e.form,"businessType",t)},expression:"form.businessType"}})],1),a("el-form-item",{attrs:{label:"注册手机号"}},[a("el-input",{attrs:{disabled:e.disabled1,size:"mini"},model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1),a("el-form-item",{attrs:{label:"店铺营业时间"}},[a("el-time-picker",{attrs:{"is-range":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",placeholder:"选择时间范围"},model:{value:e.openTime,callback:function(t){e.openTime=t},expression:"openTime"}})],1),a("el-form-item",{attrs:{label:"启用仓库管理"}},[a("el-radio-group",{attrs:{disabled:e.disabled1},model:{value:e.form.useErp,callback:function(t){e.$set(e.form,"useErp",t)},expression:"form.useErp"}},[a("el-radio",{attrs:{label:!1}},[e._v("不启用")]),a("el-radio",{attrs:{label:!0}},[e._v("启用")])],1)],1)],1)]),a("el-col",{attrs:{span:10}},[a("div",{staticClass:"h5"},[a("div",{staticClass:"title"},[e._v("门店地址信息")])]),a("div",{staticClass:"shop-details"},[a("el-form-item",{attrs:{label:"省份"}},[a("el-input",{attrs:{disabled:e.disabled1,size:"mini"},model:{value:e.form.province,callback:function(t){e.$set(e.form,"province",t)},expression:"form.province"}})],1),a("el-form-item",{attrs:{label:"城市"}},[a("el-input",{attrs:{disabled:e.disabled1,size:"mini"},model:{value:e.form.city,callback:function(t){e.$set(e.form,"city",t)},expression:"form.city"}})],1),a("el-form-item",{attrs:{label:"地区"}},[a("el-input",{attrs:{disabled:e.disabled1,size:"mini"},model:{value:e.form.district,callback:function(t){e.$set(e.form,"district",t)},expression:"form.district"}})],1),a("el-form-item",{attrs:{label:"详细地址"}},[a("el-input",{attrs:{disabled:e.disabled1,size:"mini"},model:{value:e.form.address,callback:function(t){e.$set(e.form,"address",t)},expression:"form.address"}})],1),a("el-form-item",{attrs:{label:"店铺经度(lng)"}},[a("el-input",{attrs:{disabled:e.disabled1,size:"mini"},model:{value:e.form.longitude,callback:function(t){e.$set(e.form,"longitude",t)},expression:"form.longitude"}}),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.openMap}},[e._v("打开地图")])],1),a("el-form-item",{attrs:{label:"店铺纬度(lat)"}},[a("el-input",{attrs:{disabled:e.disabled1,size:"mini"},model:{value:e.form.latitude,callback:function(t){e.$set(e.form,"latitude",t)},expression:"form.latitude"}})],1),a("el-form-item",{attrs:{label:"负责人名称"}},[a("el-input",{attrs:{disabled:e.disabled1,size:"mini"},model:{value:e.form.headName,callback:function(t){e.$set(e.form,"headName",t)},expression:"form.headName"}})],1),a("el-form-item",{attrs:{label:"负责人电话"}},[a("el-input",{attrs:{disabled:e.disabled1,size:"mini"},model:{value:e.form.headMobile,callback:function(t){e.$set(e.form,"headMobile",t)},expression:"form.headMobile"}})],1)],1)]),a("el-col",{attrs:{span:16}},[a("div",{staticClass:"h5"},[a("div",{staticClass:"title"},[e._v("退货地址")])]),a("div",{staticClass:"shop-details"},[a("el-form-item",{attrs:{label:"地址"}},[a("el-input",{attrs:{disabled:e.disabled1,size:"mini"},model:{value:e.form.refundAddress,callback:function(t){e.$set(e.form,"refundAddress",t)},expression:"form.refundAddress"}})],1),a("el-form-item",{attrs:{label:"联系人"}},[a("el-input",{attrs:{disabled:e.disabled1,size:"mini"},model:{value:e.form.refundContact,callback:function(t){e.$set(e.form,"refundContact",t)},expression:"form.refundContact"}})],1),a("el-form-item",{attrs:{label:"联系电话"}},[a("el-input",{attrs:{disabled:e.disabled1,size:"mini"},model:{value:e.form.refundTel,callback:function(t){e.$set(e.form,"refundTel",t)},expression:"form.refundTel"}})],1)],1)])],1),a("el-form-item",{staticClass:"btn-wrap",attrs:{size:"large"}},[a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v(" 确定 ")]),a("el-button",{on:{click:function(t){e.isVisible=!1}}},[e._v(" 取消 ")])],1)],1),a("el-drawer",{attrs:{title:"",visible:e.drawer,"append-to-body":!0,"with-header":!1,size:"60%","before-close":e.handleClose},on:{"update:visible":function(t){e.drawer=t}}},[e.drawer?a("search-input-amap",{on:{currentLocation:e.currentLocation}}):e._e(),a("div",{staticClass:"demo-drawer__footer",staticStyle:{"margin-top":"15px"}},[a("el-button",{on:{click:e.cancelForm}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.confirmDrawer}},[e._v(" 确 定")])],1)],1)],1)},o=[],l=(a("4160"),a("ac1f"),a("1276"),a("159b"),a("5657")),c=a("8d2c"),d=a("c1df"),m=a.n(d),u=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{attrs:{inline:!0}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("el-select",{staticClass:"tipInput",attrs:{filterable:"",remote:"","reserve-keyword":"",clearable:"",placeholder:"搜地点","remote-method":e.remoteMethod,loading:e.loading},on:{change:e.tipChange},model:{value:e.tipInput,callback:function(t){e.tipInput=t},expression:"tipInput"}},e._l(e.tips,(function(t,s){return a("el-option",{key:s,attrs:{label:t.name,value:t.id}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.name))]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(t.district))])])})),1)],1)],1),a("div",{staticStyle:{height:"750px",width:"100%"},attrs:{id:"a-map"}})],1)},p=[],f=(a("d81d"),a("b0c0"),a("841c"),a("b85c")),b={name:"Map",data:function(){return{tipInput:"",loading:!1,map:void 0,tips:[]}},mounted:function(){this.initMap()},methods:{initMap:function(){this.map=new AMap.Map("a-map",{resizeEnable:!0,zoom:13,keyboardEnable:!1}),this.mapClick()},tipChange:function(e){var t,a=Object(f["a"])(this.tips);try{for(a.s();!(t=a.n()).done;){var s=t.value;if(e===s.id){this.map.setZoom(13),this.map.setCenter(s.location),this.makerLocation(s.location);var i={address:s.district+s.name+s.address,location:s.location};this.$emit("currentLocation",i);break}}}catch(r){a.e(r)}finally{a.f()}},remoteMethod:function(e){if(""!==e){this.loading=!0;var t=this;AMap.plugin("AMap.Autocomplete",(function(){var a={city:"全国"},s=new AMap.Autocomplete(a);s.search(e,(function(e,a){t.tips=a.tips||[],t.loading=!1}))}))}else this.tips=[]},makerLocation:function(e){var t=e.lng,a=e.lat,s=new AMap.Marker({position:new AMap.LngLat(t,a),title:"位置标题"});console.log(this.map.getAllOverlays("marker"),"this.map.getAllOverlays('marker')"),this.map.remove(this.map.getAllOverlays("marker")),this.map.add(s)},mapClick:function(){var e=this;e.map.on("click",(function(t){console.log(t.lnglat,"eee");var a=new AMap.Geocoder({});a.getAddress(t.lnglat,(function(a,s){if("complete"===a&&s.regeocode){e.tipInput=s.regeocode.formattedAddress,e.makerLocation(t.lnglat);var i={address:e.tipInput,location:t.lnglat};e.$emit("currentLocation",i)}else console.log("根据经纬度查询地址失败")}))}))}}},h=b,g=(a("3803"),a("2877")),v=Object(g["a"])(h,u,p,!1,null,"6e4bfaa4",null),y=v.exports,k={components:{SearchInputAmap:y},props:{dialogVisible:{type:Boolean,default:!1},type:{type:String,default:"add"}},data:function(){return{form:{},default:{logo:"",storeName:"",shipAddress:"",remark:"",mobile:"",useErp:!1,refundAddress:"",refundContact:"",refundTel:"",province:"",city:"",district:"",address:"",longitude:"",latitude:"",headName:"",headMobile:"",openStartTime:"",openEndTime:"",isAutoSendRefundAddress:1,posType:"",businessService:"",nickName:"",businessType:""},openTime:[],payChannelChooses:[],headers:{Authorization:""},action:"".concat("https://pos.admin.api.lotus-wallet.com","/file/upload"),dataObj:{folderId:1},disabled1:!1,storeDetails:{longitude:"",latitude:""},drawer:!1,searchAddress:"",optionList:[{desc:"普通餐饮",code:"NORMALSTORE"},{desc:"快消餐饮",code:"FASTSTORE"},{desc:"零售店",code:"RETAILSTORE"}],currentSide:{longitude:"",latitude:"",address:""}}},computed:{isVisible:{get:function(){return this.dialogVisible},set:function(){this.close(),this.reset()}},title:function(){return"add"===this.type?"新增店铺信息":"编辑店铺信息"}},created:function(){this.headers.token="Bearer "+l["a"].get("TOKEN",""),this.headers.tenant="0000"},methods:{kaitongDa:function(){var e={deliveryName:"DADA",storeId:this.form.id};c["a"].openDadaDelivery(e).then((function(e){console.log(e.data)}))},setParams:function(e){console.log(e,"data"),this.openTime=[],e?(this.form=JSON.parse(JSON.stringify(e)),this.form.posType=this.form.posType.code,this.form.openStartTime&&this.form.openEndTime?this.openTime.push(new Date(2021,6,10,this.form.openStartTime.split(":")[0],this.form.openStartTime.split(":")[1],this.form.openStartTime.split(":")[2]),new Date(2021,6,10,this.form.openEndTime.split(":")[0],this.form.openEndTime.split(":")[1])):this.openTime=[new Date(2021,6,28,0,0),new Date(2021,6,28,23,59)]):(this.form=JSON.parse(JSON.stringify(this.default)),this.openTime=[new Date(2016,9,10,8,0),new Date(2016,9,10,23,40)])},close:function(){this.$emit("close")},reset:function(){this.form={}},getMap:function(){var e=this,t=new AMap.Map("map",{zoom:13,center:[114.31667,30.51667]});function a(a){console.log(a),t.clearMap();var s=a.lnglat.getLng(),i=a.lnglat.getLat(),r=new AMap.Marker({position:[s,i],offset:new AMap.Pixel(-13,-30)});e.lnglat=s+","+i,t.add(r),t.setFitView(),console.log(e.lnglat.split(","),"经纬度"),e.form.longitude=s,e.form.latitude=i}t.on("click",a)},openMap:function(){var e=this;this.disabled1?this.$message({message:"请先点击编辑按钮",type:"error"}):(this.drawer=!0,setTimeout((function(){e.getMap()}),0))},currentLocation:function(e){this.currentSide={},this.currentSide.address=e.address,this.currentSide.longitude=e.location.lng,this.currentSide.latitude=e.location.lat},cancelForm:function(){this.drawer=!1},confirmDrawer:function(){this.drawer=!1,this.form.address=this.currentSide.address,this.form.longitude=this.currentSide.longitude,this.form.latitude=this.currentSide.latitude},handleClose:function(e){e()},handleCheckedCitiesChange:function(e){e.length},getStoreDetails:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var a,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,c["a"].findDefaultStore();case 2:a=t.sent,s=a.data.data,e.form=s,e.$set(e.form,"openTime",[e.storeDetails.openStartTime,e.storeDetails.openEndTime]);case 6:case"end":return t.stop()}}),t)})))()},onSubmit:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:"add"===e.type?e.addStore():e.updateStore();case 1:case"end":return t.stop()}}),t)})))()},addStore:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var a,s,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log(e.form,"this.form"),e.optionList.forEach((function(t){e.form.posType==t.code&&(e.form.posType=t)})),t.next=4,c["a"].addStoreList(e.form);case 4:a=t.sent,s=a.data,i=s.code,0===i&&(e.isVisible=!1,e.$message({message:e.$t("tips.createSuccess"),type:"success"}),e.$emit("success"));case 8:case"end":return t.stop()}}),t)})))()},editDisabled1:function(){this.disabled1=!this.disabled1},updateStore:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var a,s,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.openTime?(e.form.openStartTime=m()(e.openTime[0]).format("HH:mm:ss"),e.form.openEndTime=m()(e.openTime[1]).format("HH:mm:ss")):(e.form.openStartTime="",e.form.openEndTime=""),e.optionList.forEach((function(t){e.form.posType==t.code&&(e.form.posType=t)})),e.form.payChannelChooses=e.payChannelChooses,t.next=5,c["a"].updateStore(e.form);case 5:a=t.sent,s=a.data,i=s.code,0===i&&(e.isVisible=!1,e.$message({message:e.$t("tips.updateSuccess"),type:"success"}),e.$emit("success"));case 9:case"end":return t.stop()}}),t)})))()},handleAvatarSuccess:function(e){var t=e.data.url;this.form.logo=t},approve:function(){this.$router.push({path:"/setting/shop/wechat-approve"})}}},j=k,_=(a("23bd"),Object(g["a"])(j,n,o,!1,null,"22190c94",null)),S=_.exports,w=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{staticClass:"dialog-wrap",attrs:{"close-on-click-modal":!1,title:e.title,type:e.type,visible:e.isVisible,width:"800px"},on:{"update:visible":function(t){e.isVisible=t}}},[a("el-form",{ref:"form",attrs:{model:e.sizeForm,rules:e.rules,"label-width":"100px",size:"mini"}},[a("el-button",{staticStyle:{margin:"0 0 10px 50px"},attrs:{type:"primary"},on:{click:e.clickMoren}},[e._v("使用默认微信配置")]),a("el-form-item",{attrs:{label:"小程序appid:"}},[a("el-input",{model:{value:e.params.mini_program_app_id,callback:function(t){e.$set(e.params,"mini_program_app_id",t)},expression:"params.mini_program_app_id"}})],1),a("el-form-item",{attrs:{label:"小程序secret:"}},[a("el-input",{model:{value:e.params.mini_program_secret,callback:function(t){e.$set(e.params,"mini_program_secret",t)},expression:"params.mini_program_secret"}})],1),a("el-form-item",{attrs:{label:"商户id:"}},[a("el-input",{model:{value:e.params.mini_mch_id,callback:function(t){e.$set(e.params,"mini_mch_id",t)},expression:"params.mini_mch_id"}})],1),a("el-form-item",{attrs:{label:"商户密钥:"}},[a("el-input",{model:{value:e.params.mini_mch_key,callback:function(t){e.$set(e.params,"mini_mch_key",t)},expression:"params.mini_mch_key"}})],1),a("el-form-item",{attrs:{label:"p12证书文件:"}},[a("el-input",{staticStyle:{"margin-bottom":"5px"},model:{value:e.params.mini_key_path,callback:function(t){e.$set(e.params,"mini_key_path",t)},expression:"params.mini_key_path"}}),a("el-upload",{staticClass:"upload-demo",staticStyle:{width:"130%"},attrs:{action:e.actions,"before-remove":e.beforeRemovezs,"on-success":e.handleImageSuccesszs,"on-change":e.handleChangezs,clearFiles:e.clearFileszs,"on-remove":e.onRemovezs,multiple:"",headers:e.headers,data:e.dataObj,"file-list":e.fileListzs}},[a("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-upload"}},[e._v("点击上传")]),a("span",[e._v("请上传正确的p12证书文件")])],1)],1),a("el-form-item",{attrs:{label:"p12文件编码:"}},[a("el-input",{attrs:{type:"password"},model:{value:e.params.mini_key_sn_no,callback:function(t){e.$set(e.params,"mini_key_sn_no",t)},expression:"params.mini_key_sn_no"}})],1),a("el-form-item",{attrs:{label:"cert证书文件:"}},[a("el-input",{staticStyle:{"margin-bottom":"5px"},model:{value:e.params.mini_key_cert_path,callback:function(t){e.$set(e.params,"mini_key_cert_path",t)},expression:"params.mini_key_cert_path"}}),a("el-upload",{staticClass:"upload-demo",staticStyle:{width:"130%"},attrs:{action:e.actions,"before-remove":e.beforeCertificate,"on-success":e.handleImageCertificate,"on-change":e.handleChangeCertificate,"on-remove":e.onRemoveCertificate,multiple:"",headers:e.headers,data:e.dataObj,"file-list":e.fileListdz}},[a("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-upload"}},[e._v("点击上传")]),a("span",{staticStyle:{"font-size":"12px",color:""}},[e._v("请上传cert证书文件地址(p12导出,v3接口使用)")])],1)],1),a("el-form-item",{attrs:{label:"key文件:"}},[a("el-input",{staticStyle:{"margin-bottom":"5px"},model:{value:e.params.mini_key_key_path,callback:function(t){e.$set(e.params,"mini_key_key_path",t)},expression:"params.mini_key_key_path"}}),a("el-upload",{staticClass:"upload-demo",staticStyle:{width:"130%"},attrs:{action:e.actions,"before-remove":e.beforeCerSecretkey,"on-success":e.handleImageSecretkey,"on-change":e.handleChangeSecretkey,"on-remove":e.onRemoveSecretkey,multiple:"",headers:e.headers,data:e.dataObj,"file-list":e.fileListmy}},[a("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-upload"}},[e._v("点击上传")]),a("span",{staticStyle:{"font-size":"12px",color:""}},[e._v("请上传key文件(p12导出,v3接口使用)")])],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.close}},[e._v(" 取 消 ")]),a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("确定")])],1)],1)},x=[],z={props:{list:{type:Array,default:function(){return[]}},dialogVisible:{type:Boolean,default:!1},type:{type:String,default:"add"}},data:function(){return{attachment:this.initAttachment(),currentIndex:"",sizeForm:{},headers:{Authorization:""},actions:"".concat("https://pos.admin.api.lotus-wallet.com","/file/upload"),dataObj:{folderId:1},id:"",params:{mini_key_cert_path:"",mini_key_key_path:"",mini_key_path:"",mini_key_sn_no:"",mini_mch_id:"",mini_mch_key:"",mini_program_app_id:"",mini_program_secret:""},disabled:!1,rules:{},fileListzs:[{name:""}],fileListdz:[{name:""}],fileListmy:[{name:""}]}},computed:{isVisible:{get:function(){return this.dialogVisible},set:function(){this.close(),this.reset()}},title:function(){var e={edit:"微信配置"};return e[this.type]}},created:function(){this.headers.token="Bearer "+l["a"].get("TOKEN",""),this.headers.tenant="0000"},methods:{clickMoren:function(){for(var e in this.params)this.params[e]="null";this.fileListzs[0].name="",this.fileListdz[0].name="",this.fileListmy[0].name=""},handleImageSuccesszs:function(e){this.params.mini_key_path=e.data.url},beforeRemovezs:function(e,t){return this.$confirm("确定移除 ".concat(e.name,"?"))},handleChangezs:function(e,t){t.length>0&&(this.fileListzs=[t[t.length-1]])},clearFileszs:function(){console.log("clearFileszs")},onRemovezs:function(){this.params.mini_key_path=""},handleImageCertificate:function(e){this.params.mini_key_cert_path=e.data.url},handleChangeCertificate:function(e,t){t.length>0&&(this.fileListdz=[t[t.length-1]])},onRemoveCertificate:function(){this.params.mini_key_cert_path=""},beforeCertificate:function(e,t){return this.$confirm("确定移除 ".concat(e.name,"?"))},handleImageSecretkey:function(e){this.params.mini_key_key_path=e.data.url},handleChangeSecretkey:function(e,t){t.length>0&&(this.fileListmy=[t[t.length-1]])},onRemoveSecretkey:function(){this.params.mini_key_key_path=""},beforeCerSecretkey:function(e,t){return this.$confirm("确定移除 ".concat(e.name,"?"))},initAttachment:function(){return{id:"",mini_key_cert_path:"",mini_key_key_path:"",mini_key_path:"",mini_key_sn_no:"",mini_mch_id:"",mini_mch_key:"",mini_program_app_id:"",mini_program_secret:""}},clickIndex:function(e,t){this.currentIndex=e,this.params.tagId=t},close:function(){this.$emit("close")},extractUrl:function(){},handleRemove:function(e,t){},reset:function(){this.params={},this.$refs.form.clearValidate(),this.$refs.form.resetFields(),this.attachment=this.initAttachment()},onSubmit:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:"add"===e.type?e.addGroup():e.updateGroup();case 1:case"end":return t.stop()}}),t)})))()},addGroup:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,a.disabled=!0;case 2:case"end":return t.stop()}}),t)})))()},updateGroup:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var a,s,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e,t.next=3,c["a"].updateWxStore(e.params,e.id);case 3:a=t.sent,s=a.data,i=s.code,0===i&&(e.isVisible=!1,e.$message({message:e.$t("tips.updateSuccess"),type:"success"}),e.$emit("success"));case 7:case"end":return t.stop()}}),t)})))()},delectGroupImg:function(){this.params.groupImg=""},setParams:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.miniParam&&(this.params=e.miniParam),this.id=e.id,this.fileListzs[0].name=this.params.mini_key_path,this.fileListdz[0].name=this.params.mini_key_cert_path,this.fileListmy[0].name=this.params.mini_key_key_path},setIdAndSubmit:function(e){var t=this;e&&(t.disabled=!1,t.isVisible=!1,t.$message({message:t.$t("tips.createSuccess"),type:"success"}),t.$emit("success"))}}},T=z,C=(a("53ef"),Object(g["a"])(T,w,x,!1,null,"4aeaeecf",null)),O=C.exports,$={components:{GropeEdit:S,wxEdit:O},data:function(){return{loading:!0,formParams:{current:1,map:{},model:{groupImg:"",groupName:"",isDelete:0},order:"ascending",size:10,sort:"sort"},dialog:{type:"add",isVisible:!1},dialogWx:{type:"edit",isVisible:!1},shopInformation:[{label:"店铺logo",prop:"logo"},{label:"店铺名称",prop:"storeName"},{label:"发货地址",prop:"shipAddress"},{label:"店铺简介",prop:"remark"},{label:"注册手机号",prop:"mobile"},{label:"店铺营业时间开始",prop:"openStartTime"},{label:"店铺营业时间结束",prop:"openEndTime"},{label:"启用仓库管理",prop:"useErp"}],returnAddress:[{label:"地址",prop:"refundAddress"},{label:"联系人",prop:"refundContact"},{label:"联系电话",prop:"refundTel"}],storeAddress:[{label:"省份",prop:"province"},{label:"城市",prop:"city"},{label:"地区",prop:"district"},{label:"详细地址",prop:"address"},{label:"店铺经度",prop:"longitude"},{label:"店铺纬度",prop:"latitude"},{label:"负责人名称",prop:"headName"},{label:"负责人电话",prop:"headMobile"}],storeDetails:[]}},created:function(){this.getStoreDetails()},methods:{getStoreDetails:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var a,s,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,c["a"].searchStoreList();case 3:a=t.sent,s=a.data,i=s.code,0===i&&(e.storeDetails=s.data,e.loading=!1);case 7:case"end":return t.stop()}}),t)})))()},editClose:function(){this.dialog.isVisible=!1},editGroup:function(e){e.groupImg,e.groupName,e.id,e.printerId,e.sort,e.kitchenGroup;this.dialog={type:"edit",isVisible:!0},this.$refs.edit.setParams(e)},addGroup:function(){this.dialog={type:"add",isVisible:!0},this.$refs.edit.setParams()},editWX:function(e){this.dialogWx={type:"edit",isVisible:!0},this.$refs.wxEdit.setParams(e)},editWxClose:function(){this.dialogWx.isVisible=!1},delete:function(e){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function a(){var s,i,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,Goods.deleteGroup(e);case 2:s=a.sent,i=s.data,r=i.code,0===r&&(t.$message({message:t.$t("tips.deleteSuccess"),type:"success"}),t.getGroupList());case 6:case"end":return a.stop()}}),a)})))()},deleteGroup:function(e){var t=this,a=e.id;this.$confirm(this.$t("tips.confirmDelete"),this.$t("common.tips"),{confirmButtonText:this.$t("common.confirm"),cancelButtonText:this.$t("common.cancel"),type:"warning"}).then((function(){t.delete({id:a})})).catch((function(){}))}}},L=$,A=(a("9b64"),Object(g["a"])(L,s,i,!1,null,"e5ae9dd6",null));t["default"]=A.exports},1920:function(e,t,a){},"23bd":function(e,t,a){"use strict";var s=a("cc4d"),i=a.n(s);i.a},3803:function(e,t,a){"use strict";var s=a("1920"),i=a.n(s);i.a},4678:function(e,t,a){var s={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df48","./fa.js":"8df48","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b46","./gd.js":"f6b46","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f32","./sq.js":"c8f32","./sr":"cf1e9","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e9","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function i(e){var t=r(e);return a(t)}function r(e){if(!a.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}i.keys=function(){return Object.keys(s)},i.resolve=r,e.exports=i,i.id="4678"},"4e3c":function(e,t,a){},"53ef":function(e,t,a){"use strict";var s=a("dbd3"),i=a.n(s);i.a},"8d2c":function(e,t,a){"use strict";var s=a("9256"),i={getLogistics:"/logistics/detail/page",addLogistics:"/logistics",checkLogistics:"/logistics/detail/",updateLogistics:"/logistics",deleteLogistics:"/logistics",getProductList:"/product/page",findDefaultStore:"/store/findDefaultStore",updateStore:"/store",searchStoreList:"/store/getStoreList",openDadaDelivery:"/store/openDadaDelivery",queryCouponList:"/coupon/queryCouponList",updateWxStore:"/store/setStoreWxPayConfig"};t["a"]={updateStore:function(e){return Object(s["a"])({method:"PUT",url:i.updateStore,data:e})},findDefaultStore:function(){return Object(s["a"])({method:"GET",url:i.findDefaultStore})},getLogistics:function(e){return Object(s["a"])({method:"POST",url:i.getLogistics,data:e})},addLogistics:function(e){return Object(s["a"])({method:"POST",url:i.addLogistics,data:e})},checkLogistics:function(e){return Object(s["a"])({method:"GET",url:i.checkLogistics+e})},updateLogistics:function(e){return Object(s["a"])({method:"PUT",url:i.updateLogistics,data:e})},deleteLogistics:function(e){return Object(s["a"])({method:"DELETE",url:i.deleteLogistics,data:e})},eidtGroup:function(e){return Object(s["a"])({method:"PUT",url:i.productGroup,data:e})},deleteGroup:function(e){return Object(s["a"])({method:"POST",url:i.deleteGroup,data:e})},searchStoreList:function(e){return Object(s["a"])({method:"GET",url:i.searchStoreList,data:e})},addStoreList:function(e){return Object(s["a"])({method:"POST",url:i.updateStore,data:e})},deleteStore:function(e){return Object(s["a"])({method:"DELETE",url:i.updateStore,data:e})},openDadaDelivery:function(e){return Object(s["a"])({method:"GET",url:i.openDadaDelivery,data:e})},queryCouponList:function(e){return Object(s["a"])({method:"GET",url:i.queryCouponList,data:e})},updateWxStore:function(e,t){return Object(s["a"])({method:"POST",url:i.updateWxStore+"?id="+t,data:e})}}},9256:function(e,t,a){"use strict";a("99af"),a("4160"),a("caad"),a("4fad"),a("d3b7"),a("159b");var s=a("5530"),i=a("bc3a"),r=a.n(i),n=a("5c96"),o=a("5657");a("27ae");function l(e,t){"ECONNABORTED"===e.code?Object(n["Message"])({message:"请求超时"}):e.response&&e.response.data?Object(n["Message"])({message:e.response.data}):e.message&&Object(n["Message"])({message:e.message}),t(e)}function c(e,t){e.data.isError&&(4e4===e.data.code||40001===e.data.code||40002===e.data.code||40003===e.data.code||40005===e.data.code||40006===e.data.code||40008===e.data.code?n["MessageBox"].alert(e.data.msg,"提醒",{confirmButtonText:"确定",callback:function(){window.location.hash="/login"}}):n["Message"].error(e.data.msg)),t(e)}r.a.interceptors.request.use((function(e){var t=!1!==e.headers["X-isToken"]||e.headers["X-isToken"],a=o["a"].get("TOKEN","");a&&t&&(e.headers.token="Bearer "+a);var s="ceres_admin_web",i="ceres_admin_web";return e.headers["Authorization"]="Basic ".concat("".concat(s,":").concat(i)),e}),(function(e){return Promise.reject(e)})),r.a.interceptors.response.use((function(e){return e}),(function(e){return Promise.reject(e)}));var d=function(e){console.log(e,"opts");var t={ts:Date.now()},a=e.method.toUpperCase(),i={method:a,url:"".concat("https://pos.admin.api.lotus-wallet.com").concat(e.url),responseType:e.responseType||"",timeout:2e4},n=["PUT","POST","PATCH"];n.includes(a)?i.data=e.data||{}:i.params=Object(s["a"])(Object(s["a"])({},t),e.data||{}),e.formData&&(i.transformRequest=[function(e){var t=new FormData;return e&&Object.entries(e).forEach((function(e){t.append(e[0],e[1])})),t}]);var o=new Promise((function(e,t){r()(i).then((function(t){c(t,e)})).catch((function(e){l(e,t)}))}));return o};t["a"]=d},"9b64":function(e,t,a){"use strict";var s=a("4e3c"),i=a.n(s);i.a},cc4d:function(e,t,a){},dbd3:function(e,t,a){}}]);