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 line
18 KiB
1 line
18 KiB
1 year ago
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-0b9415db"],{"42b1":function(t,e,i){"use strict";i("6afa")},"4e82":function(t,e,i){"use strict";var a=i("23e7"),n=i("e330"),r=i("59ed"),s=i("7b0b"),o=i("07fa"),l=i("083a"),c=i("577e"),d=i("d039"),p=i("addb"),u=i("a640"),m=i("04d1"),f=i("d998"),h=i("2d00"),y=i("512ce"),v=[],_=n(v.sort),b=n(v.push),k=(i=d((function(){v.sort(void 0)})),n=d((function(){v.sort(null)})),u=u("sort"),!d((function(){if(h)return h<70;if(!(m&&3<m)){if(f)return!0;if(y)return y<603;for(var t,e,i,a="",n=65;n<76;n++){switch(t=String.fromCharCode(n),n){case 66:case 69:case 70:case 72:e=3;break;case 68:case 71:e=4;break;default:e=2}for(i=0;i<47;i++)v.push({k:t+i,v:e})}for(v.sort((function(t,e){return e.v-t.v})),i=0;i<v.length;i++)t=v[i].k.charAt(0),a.charAt(a.length-1)!==t&&(a+=t);return"DGBEFHACIJK"!==a}})));a({target:"Array",proto:!0,forced:i||!n||!u||!k},{sort:function(t){void 0!==t&&r(t);var e=s(this);if(k)return void 0===t?_(e):_(e,t);for(var i,a,n=[],d=o(e),u=0;u<d;u++)u in e&&b(n,e[u]);for(p(n,(a=t,function(t,e){return void 0===e?-1:void 0===t?1:void 0!==a?+a(t,e)||0:c(t)>c(e)?1:-1})),i=o(n),u=0;u<i;)e[u]=n[u++];for(;u<d;)l(e,u++);return e}})},5334:function(t,e,i){"use strict";i("b0c0"),i("4e82"),i("a15b"),i("d81d"),i("14d9"),i("99af"),i("498a"),i("a434"),i("a9e3"),i("d3b7"),i("159b");var a=i("90e7"),n={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:{},methods:{enter:function(t){this.activeCity=t},leave:function(){this.activeCity=null},getCityList:function(){var t=this;this.loading=!0,Object(a.Pb)().then((function(e){t.loading=!1,t.selectArr=[],e.data.forEach((function(e,i,a){e.isShow=!0,e.children.forEach((function(e,i){e.isShow=!0,0<t.selectArr.length&&t.selectArr.forEach((function(t,i){t.children.forEach((function(t,i){e.city_id==t.city_id&&(e.isShow=!1)}))}))}))})),e.data.forEach((function(t,e,i){var a=0,n=0;t.children.forEach((function(t,e){t.isShow?n++:a++})),a==t.children.length&&(t.isShow=!1),t.childNum=n})),t.cityList=e.data}))},allCheckbox:function(){var t=this,e=this.iSselect;t.cityList.forEach((function(i,a){t.$set(t.cityList[a],"checked",e),e?t.$set(t.cityList[a],"count",t.cityList[a].children.length):t.$set(t.cityList[a],"count",0),t.cityList[a].children.forEach((function(i,n){t.$set(t.cityList[a].children[n],"checked",e)}))}))},empty:function(){var t=this;t.cityList.forEach((function(e,i){t.$set(t.cityList[i],"checked",!1),t.cityList[i].children.forEach((function(e,a){t.$set(t.cityList[i].children[a],"checked",!1)})),t.$set(t.cityList[i],"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(i,a){e.$set(e.cityList[t].children[a],"checked",!0)}))):(e.$set(e.cityList[t],"count",0),e.$set(e.cityList[t],"checked",!1),e.cityList[t].children.forEach((function(i,a){e.$set(e.cityList[t].children[a],"checked",!1)})),e.iSselect=!1)},primary:function(t,e){var i=!1,a=0;this.cityList[t].children.forEach((function(t,e){t.checked&&(i=!0,a++)})),this.$set(this.cityList[t],"count",a),this.$set(this.cityList[t],"checked",i)},confirm:function(){var t=this,e=[];if(t.cityList.forEach((function(i,a){var n={};i.checked&&(n={name:i.name,city_id:i.city_id,children:[]}),t.cityList[a].children.forEach((function(t,e){t.checked&&n.children.push({city_id:t.city_id})})),void 0!==n.city_id&&e.push(n)})),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(){}},r=(i("de99"),i("2877"));n={name:"freightTemplate",components:{city:Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("div",[e("el-dialog",{staticClass:"modal",attrs:{visible:t.addressModal,title:"选择可配送区域",width:"50%"},on:{"update:visible":function(e){t.addressModal=e}}},[e("el-row",{attrs:{gutter:24
|