(window.webpackJsonp=window.webpackJsonp||[]).push([[30],{1019:function(e,t,r){"use strict";r.r(t);r(12),r(13),r(6),r(16),r(11),r(17);var o=r(4),menu=(r(14),r(90),r(24),r(36),r(92),r(717)),n=(r(412),r(5));function d(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,r)}return t}var l={data:function(){return{obj:{},choose_type:"",isShowStreet:!1,strShow:!1,district_select:[],props:{value:"v",children:"c",label:"n"},district:[],addressList:[],dialogVisible:!1,form:{address_id:"",username:"",mobile:"",city:"",address:"",province:"",district:"",isdefault:!1,streetName:""}}},components:{Menu:menu.default},head:function(){return{title:"收件人管理-".concat(this.basicSet.seo.title),meta:[{name:"keywords",content:"收件人管理,".concat(this.basicSet.seo.keywords)},{name:"description",content:"".concat(this.basicSet.seo.description)}]}},computed:function(e){for(var i=1;i0?(e.districtVal=t.data,e.isShowStreet=!0,e.$forceUpdate()):e.isShowStreet=!1})).catch((function(e){console.log(e)}))},_initAddressInfo:function(){var e=this;this.fun.$get("member.member-address.address",{},"正在获取").then((function(t){if(1==t.result){var r=[],o=[];t.data.province.map((function(e){r.push({v:e.id,n:e.areaname,c:[]})})),t.data.city.map((function(e){o.push({parentid:e.parentid,v:e.id,n:e.areaname,c:[]})})),t.data.district.map((function(e){o.map((function(t){e.parentid==t.v&&t.c.push({v:e.id,n:e.areaname})}))})),o.map((function(e){r.map((function(t){e.parentid==t.v&&t.c.push({v:e.v,n:e.n,c:e.c})}))})),r.map((function(e){0==e.c.length?e.c="":e.c.map((function(e){0==e.c.length&&(e.c="")}))})),e.district=r,r&&window.localStorage.setItem("provinceData",JSON.stringify(r))}}))},getAddress:function(){var e=this;this.fun.$get("member.member-address.index",{},"正在获取").then((function(t){1==t.result&&(e.addressList=t.data)}))},postData:function(e,t){var r=this;r.$confirm("是否设为默认地址","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"success"}).then((function(){r.fun.$get("member.member-address.setDefault",{address_id:e},"修改中").then((function(e){1==e.result?r.$message.success(e.msg):r.$message.error(e.msg)}))})).catch((function(){}))},deleteHandler:function(e,t){var r=this;this.$confirm("是否删除","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"success"}).then((function(){var o={address_id:e.id};r.fun.$get("member.member-address.destroy",o,"修改中").then((function(e){1==e.result?(r.addressList.splice(t,1),r.$message.success("删除成功")):r.$message.error(e.msg)}))})).catch((function(){}))},close:function(){this.dialogVisible=!1},open:function(e,t){t?(this.form.isdefault=1==t.isdefault,this.form.username=t.username,this.form.mobile=t.mobile,this.form.city=t.city,this.form.address=t.address,this.form.province=t.province,this.form.district=t.district,this.form.address_id=t.id,this.form.streetName=t.street,this.district_select=[t.province_id,t.city_id,t.district_id],this.getStreet(this.district_select[2])):(this.district_select=[],this.$forceUpdate(),this.districtVal=[],this.isShowStreet=!1,this.form={address_id:"",username:"",mobile:"",city:"",address:"",province:"",district:"",isdefault:!1,streetName:""}),this.choose_type=e,this.dialogVisible=!0}}},c=l,f=(r(923),r(1)),component=Object(f.a)(c,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"person_manage"},[r("div",{staticClass:"manage_content m-auto flex"},[r("Menu"),e._v(" "),r("div",{staticClass:"right_info"},[r("h3",{staticStyle:{"margin-bottom":"27px","font-size":"20px"}},[e._v("收件人管理")]),e._v(" "),r("div",{staticClass:"addressee"},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.open("add")}}},[e._v("新增收件人")])],1),e._v(" "),r("div",{staticClass:"table"},[[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.addressList}},[r("el-table-column",{attrs:{prop:"username",label:"收货人",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{prop:"mobile",label:"收货人手机号",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{prop:"address",align:"center",label:"所在地址"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(t.row.province)+" "+e._s(t.row.city)+" "+e._s(t.row.district)+"\n "+e._s(t.row.street)+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"detail_address",align:"center",label:"详细地址"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(t.row.address)+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticClass:"flex flex-a-c operation flex-j-c"},[r("div",{on:{click:function(r){return e.open("edit",t.row)}}},[e._v("修改")]),e._v(" "),r("div",{staticClass:"line"}),e._v(" "),r("div",{on:{click:function(r){return e.deleteHandler(t.row,t.$index)}}},[e._v("删除")]),e._v(" "),r("div",{staticClass:"line"}),e._v(" "),r("div",{on:{click:function(r){return e.postData(t.row.id)}}},[e._v("设为默认")])])]}}])})],1)]],2)]),e._v(" "),r("el-dialog",{staticClass:"dialog_connect",attrs:{title:"编辑收货地址",visible:e.dialogVisible,width:"878px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[r("div",[r("el-form",{staticStyle:{width:"100%","padding-left":"215px"},attrs:{"label-width":"106px"}},[r("el-form-item",{attrs:{label:"收件人"}},[r("el-input",{attrs:{placeholder:"请输入收件人"},model:{value:e.form.username,callback:function(t){e.$set(e.form,"username",t)},expression:"form.username"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号码"}},[r("el-input",{attrs:{placeholder:"请输入手机号码"},model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1),e._v(" "),e.dialogVisible?r("el-form-item",{attrs:{label:"所在地区"}},[r("el-cascader",{ref:"refSubCat",attrs:{options:e.district,props:e.props},on:{change:e.handleChange},model:{value:e.district_select,callback:function(t){e.district_select=t},expression:"district_select"}})],1):e._e(),e._v(" "),e.isShowStreet&&e.dialogVisible?r("el-form-item",{attrs:{label:"街道"}},[r("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.streetName,callback:function(t){e.$set(e.form,"streetName",t)},expression:"form.streetName"}},e._l(e.districtVal,(function(e){return r("el-option",{key:e.id,attrs:{value:e.areaname,label:e.areaname}})})),1)],1):e._e(),e._v(" "),r("el-form-item",{attrs:{label:""}},[r("el-input",{attrs:{type:"textarea",placeholder:"请输入详细地址"},model:{value:e.form.address,callback:function(t){e.$set(e.form,"address",t)},expression:"form.address"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"设为默认地址"}},[r("el-checkbox",{model:{value:e.form.isdefault,callback:function(t){e.$set(e.form,"isdefault",t)},expression:"form.isdefault"}},[e._v("设为默认")])],1)],1),e._v(" "),r("div",{staticClass:"btn_wrap flex"},[r("el-button",{staticClass:"flex flex-a-c flex-j-c",on:{click:e.close}},[e._v("关闭")]),e._v(" "),r("el-button",{staticClass:"flex flex-a-c flex-j-c",staticStyle:{"margin-left":"56px"},attrs:{type:"primary"},on:{click:e.alterAddresshandle}},[e._v("确定")])],1)],1)])],1)])}),[],!1,null,"479ed331",null);t.default=component.exports},814:function(e,t,r){var content=r(924);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(8).default)("4adb54d2",content,!0,{sourceMap:!1})},923:function(e,t,r){"use strict";r(814)},924:function(e,t,r){var o=r(7)(!1);o.push([e.i,".col_red[data-v-479ed331]{color:#f11111}.col_green[data-v-479ed331]{color:#44be95}.col_white[data-v-479ed331]{color:#fff}.flex-col[data-v-479ed331]{flex-direction:column}.flex-j-c[data-v-479ed331]{justify-content:center}.flex-j-sb[data-v-479ed331]{justify-content:space-between}.flex-j-ar[data-v-479ed331]{justify-content:space-around}.flex-a-c[data-v-479ed331]{align-items:center}.flex-a-e[data-v-479ed331]{align-items:flex-end}.w[data-v-479ed331]{width:1200px}.m-auto[data-v-479ed331]{margin:0 auto}.height-one[data-v-479ed331]{height:100%}.flex[data-v-479ed331]{display:flex}.text-overflow[data-v-479ed331]{-webkit-line-clamp:4}.text-overflow[data-v-479ed331],.text-overflow-2[data-v-479ed331]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical}.text-overflow-2[data-v-479ed331]{-webkit-line-clamp:2}.text-overflow-3[data-v-479ed331]{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.overflow-hide[data-v-479ed331],.text-overflow-3[data-v-479ed331]{overflow:hidden;text-overflow:ellipsis}.overflow-hide[data-v-479ed331]{white-space:nowrap}.hiddenScroll[data-v-479ed331]{scrollbar-width:none;-ms-overflow-style:none;overflow-x:hidden;overflow-y:scroll}.hiddenScroll[data-v-479ed331]::-webkit-scrollbar{display:none}.finger-point[data-v-479ed331]{cursor:pointer}.cursor-default[data-v-479ed331]{cursor:default}.el-icon-circle-close[data-v-479ed331]{color:#fff}.person_manage .manage_content[data-v-479ed331]{width:1200px;padding:32px 0}.person_manage .manage_content .right_info[data-v-479ed331]{margin-left:22px;width:944px}.person_manage .manage_content .right_info .addressee[data-v-479ed331]{text-align:right;margin-bottom:20px}.person_manage .manage_content .right_info .addressee .el-button[data-v-479ed331]{width:116px;height:40px;border-radius:4px;font-size:16px}.person_manage .manage_content .right_info .operation[data-v-479ed331]{color:#f11111;cursor:pointer}.person_manage .manage_content .right_info .line[data-v-479ed331]{width:1px;background-color:#f11111;margin:5px;height:14px}.person_manage .manage_content .dialog_connect .el-textarea[data-v-479ed331]{width:314px;height:110px}.person_manage .manage_content .dialog_connect .el-textarea[data-v-479ed331] .el-textarea__inner{height:100%}.person_manage .manage_content .dialog_connect .btn_wrap[data-v-479ed331]{margin-top:51px;padding-left:277px}.person_manage .manage_content .dialog_connect .btn_wrap .el-button[data-v-479ed331]{width:134px;height:43px;border-radius:4px;font-size:16px}.person_manage .manage_content .dialog_connect[data-v-479ed331] .el-dialog__header{border-bottom:1px solid #f2f2f2}.person_manage .manage_content .dialog_connect[data-v-479ed331] .el-dialog__body{padding:30px 0 29px}.person_manage .manage_content .dialog_connect[data-v-479ed331] .el-input{width:314px;height:42px;font-size:16px}",""]),e.exports=o}}]);