(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-7f247eb7"],{"0fae":function(t,e,n){},5334:function(t,e,n){"use strict";n("0fae");var r=n("2f62"),i=n("90e7");function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o={name:"city",props:{type:{type:Number,default:0},selectArr:{type:Array,default:[]}},data:function(){return{iSselect:!1,addressModal:!1,cityList:[],activeCity:-1,loading:!1}},computed:function(t){for(var e=1;e0&&t.selectArr.forEach((function(t,n){t.children.forEach((function(t,n){e.city_id==t.city_id&&(e.isShow=!1)}))}))}))})),e.data.forEach((function(t,e,n){var r=0,i=0;t.children.forEach((function(t,e){t.isShow?i++:r++})),r==t.children.length&&(t.isShow=!1),t.childNum=i})),t.cityList=e.data}))},allCheckbox:function(){var t=this,e=this.iSselect;t.cityList.forEach((function(n,r){t.$set(t.cityList[r],"checked",e),e?t.$set(t.cityList[r],"count",t.cityList[r].children.length):t.$set(t.cityList[r],"count",0),t.cityList[r].children.forEach((function(n,i){t.$set(t.cityList[r].children[i],"checked",e)}))}))},empty:function(){var t=this;t.cityList.forEach((function(e,n){t.$set(t.cityList[n],"checked",!1),t.cityList[n].children.forEach((function(e,r){t.$set(t.cityList[n].children[r],"checked",!1)})),t.$set(t.cityList[n],"count",0)})),this.iSselect=!1},checkedClick:function(t){var e=this;e.cityList[t].checked?(e.$set(e.cityList[t],"count",e.cityList[t].childNum),e.cityList[t].children.forEach((function(n,r){e.$set(e.cityList[t].children[r],"checked",!0)}))):(e.$set(e.cityList[t],"count",0),e.$set(e.cityList[t],"checked",!1),e.cityList[t].children.forEach((function(n,r){e.$set(e.cityList[t].children[r],"checked",!1)})),e.iSselect=!1)},primary:function(t,e){var n=!1,r=0;this.cityList[t].children.forEach((function(t,e){t.checked&&(n=!0,r++)})),this.$set(this.cityList[t],"count",r),this.$set(this.cityList[t],"checked",n)},confirm:function(){var t=this,e=[];if(t.cityList.forEach((function(n,r){var i={};n.checked&&(i={name:n.name,city_id:n.city_id,children:[]}),t.cityList[r].children.forEach((function(t,e){t.checked&&i.children.push({city_id:t.city_id})})),void 0!==i.city_id&&e.push(i)})),0===e.length)return t.$Message.error("至少选择一个省份或者城市");this.$emit("selectCity",e,this.type),t.addressModal=!1,this.cityList=[]},close:function(){this.addressModal=!1,this.cityList=[]}},mounted:function(){}},s=(n("c14a"),n("2877")),u=(Object(s.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Modal",{staticClass:"modal",attrs:{title:"选择可配送区域",width:"50%",mask:!0},model:{value:t.addressModal,callback:function(e){t.addressModal=e},expression:"addressModal"}},[n("Row",{attrs:{gutter:24,type:"flex"}},[n("Col",{staticClass:"item",attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[n("div",{staticClass:"acea-row row-right row-middle"},[n("Checkbox",{on:{"on-change":t.allCheckbox},model:{value:t.iSselect,callback:function(e){t.iSselect=e},expression:"iSselect"}},[t._v("全选")]),n("div",{staticClass:"empty",on:{click:t.empty}},[t._v("清空")])],1)])],1),n("Row",{attrs:{gutter:24,type:"flex",loading:t.loading}},t._l(t.cityList,(function(e,r){return e.isShow?n("Col",{key:r,staticClass:"item",attrs:{xl:6,lg:6,md:6,sm:8,xs:6}},[n("div",{on:{mouseenter:function(e){return t.enter(r)},mouseleave:function(e){return t.leave()}}},[n("Checkbox",{attrs:{label:e.name},on:{"on-change":function(e){return t.checkedClick(r)}},model:{value:e.checked,callback:function(n){t.$set(e,"checked",n)},expression:"item.checked"}},[t._v(t._s(e.name))]),n("span",{staticClass:"red"},[t._v("("+t._s((e.count||0)+"/"+e.childNum)+")")]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.activeCity===r,expression:"activeCity===index"}],staticClass:"city"},[n("div",{staticClass:"checkBox"},[n("div",{staticClass:"arrow"}),n("div",t._l(e.children,(function(e,i){return n("Checkbox",{directives:[{name:"show",rawName:"v-show",value:e.isShow,expression:"city.isShow"}],key:i,staticClass:"itemn",attrs:{label:e.name},on:{"on-change":function(e){return t.primary(r,i)}},model:{value:e.checked,callback:function(n){t.$set(e,"checked",n)},expression:"city.checked"}},[t._v(t._s(e.name))])})),1)])])],1)]):t._e()})),1),n("div",{attrs:{slot:"footer"},slot:"footer"},[n("Button",{on:{click:t.close}},[t._v("取消")]),n("Button",{attrs:{type:"primary"},on:{click:t.confirm}},[t._v("确定")])],1),t.loading?n("Spin",{attrs:{size:"large",fix:""}}):t._e()],1)],1)}),[],!1,null,"592a9618",null).exports,n("a34a")),l=n.n(u);function d(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e-1?"el-link el-link--primary":"":t.join()==this.current.join()?"el-link el-link--primary":""},querySearch:function(t,e){var n=this;this.props.lazySearch(t,(function(t){e(t),t&&t.length||(n.isSearchEmpty=!0)}))},handleSelect:function(t){var e=this;this.props.multiple?-1==this.current.findIndex((function(n){return n.join()==t[e.props.value].join()}))&&(this.$refs.panel.clearCheckedNodes(),this.current.push(t[this.props.value]),this.$emit("change",this.current)):null!=this.current&&t[this.props.value].join()===this.current.join()||(this.$refs.panel.activePath=[],this.current=t[this.props.value],this.$emit("change",this.current)),this.keyword=""},initOptions:function(){var t=f(l.a.mark((function t(){var e=this;return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.props.lazyLoad(0,(function(t){e.$set(e,"options",t),e.props.multiple?e.current=d(e.value):e.current=e.value}));case 1:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),getLabelArray:function(){var t=f(l.a.mark((function t(){var e,n,r,i=this;return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.props.multiple){t.next=16;break}e=[],n=0;case 3:if(!(n-1&&(this.$refs.panel.clearCheckedNodes(),this.current.splice(e,1),this.$emit("change",this.current))},clearBtnClick:function(){this.$refs.panel.clearCheckedNodes(),this.current=[],this.$emit("change",this.current)},change:function(){this.$emit("change",this.current)}}};function m(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e0?n("span",{staticClass:"lazy-cascader-clear",on:{click:function(e){return e.stopPropagation(),t.clearBtnClick(e)}}},[n("i",{staticClass:"el-icon-close"})]):t._e()])])],1)}),[],!1,null,null,null).exports},props:{merchantType:{type:Number,default:0}},data:function(){var t=this;return{props:{children:"children",label:"label",value:"value",multiple:!0,lazy:!0,lazyLoad:this.lazyLoad,checkStrictly:!0},isTemplate:!1,columns:[{title:"可配送区域",slot:"regionName",minWidth:200},{title:"首件",key:"first",minWidth:70,render:function(e,n){return e("Input",{props:{type:"number",value:t.templateList[n.index].first},on:{"on-change":function(e){t.templateList[n.index].first=e.target.value}}})}},{title:"运费(元)",key:"price",minWidth:70,render:function(e,n){return e("Input",{props:{type:"number",value:t.templateList[n.index].first_price},on:{"on-change":function(e){t.templateList[n.index].first_price=e.target.value}}})}},{title:"续件",key:"continue",minWidth:70,render:function(e,n){return e("Input",{props:{type:"number",value:t.templateList[n.index].continue},on:{"on-change":function(e){t.templateList[n.index].continue=e.target.value}}})}},{title:"续费(元)",key:"continue_price",minWidth:70,render:function(e,n){return e("Input",{props:{type:"number",value:t.templateList[n.index].continue_price},on:{"on-change":function(e){t.templateList[n.index].continue_price=e.target.value}}})}},{title:"操作",slot:"action",minWidth:70}],columns2:[{title:"选择地区",slot:"placeName",minWidth:250},{title:"包邮件数",key:"number",minWidth:100,render:function(e,n){return e("Input",{props:{type:"number",value:t.appointList[n.index].number},on:{"on-change":function(e){t.appointList[n.index].number=e.target.value}}})}},{title:"包邮金额(元)",key:"price",minWidth:100,render:function(e,n){return e("Input",{props:{type:"number",value:t.appointList[n.index].price},on:{"on-change":function(e){t.appointList[n.index].price=e.target.value}}})}},{title:"操作",slot:"action",minWidth:100}],columns3:[{title:"选择地区",slot:"placeName",minWidth:250},{title:"操作",slot:"action",minWidth:100}],templateList:[{first:1,first_price:0,continue:1,continue_price:0,city_ids:[[0]]}],appointList:[],noDeliveryList:[],formData:{type:1,sort:0,name:"",appoint_check:0,no_delivery_check:0},id:0}},computed:function(t){for(var e=1;e