徐总多门店
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
34 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-775186bb"],{"669a":function(t,e,r){"use strict";r.r(e);var n=r("2f62"),o=r("90e7"),a=r("2e8e"),i=r("b0e7"),c=r("d708");function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function d(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new T(n||[]);return o(i,"_invoke",{value:C(t,r,c)}),i}function m(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",p="suspendedYield",g="executing",b="completed",y={};function v(){}function w(){}function O(){}var j={};d(j,i,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(F([])));x&&x!==r&&n.call(x,i)&&(j=x);var k=O.prototype=v.prototype=Object.create(j);function I(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function r(o,a,i,c){var s=m(t[o],t,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==u(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(d).then((function(t){l.value=t,i(l)}),(function(t){return r("throw",t,i,c)}))}c(s.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function C(e,r,n){var o=h;return function(a,i){if(o===g)throw Error("Generator is already running");if(o===b){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=b,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=g;var s=m(e,r,n);if("normal"===s.type){if(o=n.done?b:p,s.arg===y)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=b,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=m(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function F(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(u(e)+" is not iterable")}return w.prototype=O,o(k,"constructor",{value:O,configurable:!0}),o(O,"constructor",{value:w,configurable:!0}),w.displayName=d(O,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,d(t,l,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},I(P.prototype),d(P.prototype,c,(function(){return this})),e.AsyncIterator=P,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new P(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},I(k),d(k,l,"Generator"),d(k,i,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=F,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:F(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function l(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function d(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){l(a,n,o,i,c,"next",t)}function c(t){l(a,n,o,i,c,"throw",t)}i(void 0)}))}}function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach((function(e){h(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function h(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var p={name:"systemStore",components:{uploadPictures:i.a},props:{},data:function(){var t=this;return{roterPre:c.a.roterPre,isTemplate:!1,spinShow:!1,modalMap:!1,addresData:[],formItem:{name:"",introduction:"",phone:"",address:[],address2:[],detailed_address:"",valid_time:[],day_time:[],latlng:"",id:0},ruleValidate:{name:[{required:!0,message:"请输入提货点名称",trigger:"blur"}],mail:[{required:!0,message:"Mailbox cannot be empty",trigger:"blur"},{type:"email",message:"Incorrect email format",trigger:"blur"}],address:[{required:!0,message:"请选择提货点地址",type:"array",trigger:"change"}],valid_time:[{required:!0,type:"array",message:"请选择核销时效",trigger:"change",fields:{0:{type:"date",required:!0,message:"请选择年度范围"},1:{type:"date",required:!0,message:"请选择年度范围"}}}],day_time:[{required:!0,type:"array",message:"请选择提货点营业时间",trigger:"change"}],phone:[{required:!0,validator:function(t,e,r){if(!e)return r(new Error("请填写手机号"));/^1[3456789]\d{9}$/.test(e)?r():r(new Error("手机号格式不正确!"))},trigger:"blur"}],detailed_address:[{required:!0,message:"请输入详细地址",trigger:"blur"}],image:[{required:!0,validator:function(e,r,n){t.formItem.image?n():n(new Error("请上传提货点logo"))},trigger:"change"}],latlng:[{required:!0,message:"请选择经纬度",trigger:"blur"}]},keyUrl:"",grid:{xl:20,lg:20,md:20,sm:24,xs:24},gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8},modalPic:!1,isChoice:"单选"}},created:function(){var t=this;a.a.map((function(t){t.value=t.label,t.children&&t.children.length&&t.children.map((function(t){t.value=t.label,t.children&&t.children.length&&t.children.map((function(t){t.value=t.label}))}))})),setTimeout((function(){t.addresData=a.a}),10)},computed:m(m({},Object(n.e)("admin/layout",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:120},labelPosition:function(){return this.isMobile?"top":"right"}}),mounted:function(){window.addEventListener("message",(function(t){var e=t.data;e&&"locationPicker"===e.module&&window.parent.selectAdderss(e)}),!1),window.selectAdderss=this.selectAdderss},methods:{cancel:function(){this.$refs.formItem.resetFields(),this.clearFrom()},clearFrom:function(){this.formItem.introduction="",this.formItem.day_time=[]},selectAdderss:function(t){this.formItem.latlng=t.latlng.lat+","+t.latlng.lng,this.modalMap=!1},getKey:function(){var t=this;Object(o.H)().then(function(){var e=d(s().mark((function e(r){var n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.modalMap=!0,n=r.data.key,t.keyUrl="https://apis.map.qq.com/tools/locpicker?type=1&key=".concat(n,"&referer=myapp");case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Modal.confirm({title:"提示",content:"<p>"+e.msg+"</p>",onOk:function(){t.$router.push({path:t.roterPre+"/setting/system_config"})},onCancel:function(){}})}))},getInfo:function(t){var e=this;e.formItem.id=t,e.spinShow=!0,Object(o.mb)(t).then((function(t){var r=t.data.info||null;e.formItem=r||e.formItem,e.formItem.address=r.address2,e.spinShow=!1})).catch((function(t){e.spinShow=!1,e.$Message.error(t.msg)}))},modalPicTap:function(){this.modalPic=!0},getPic:function(t){this.formItem.image=t.att_dir,this.modalPic=!1},handleChange:function(t,e){this.formItem.address=e.map((function(t){return t.label}))},onchangeDate:function(t){this.formItem.valid_time=t},onchangeTime:function(t){this.formItem.day_time=t},onSearch:function(){this.getKey()},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(r){if(!r)return!1;Object(o.jb)(e.formItem).then(function(){var r=d(s().mark((function r(n){return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e.$Message.success(n.msg),e.isTemplate=!1,e.$parent.getList(),e.$refs[t].resetFields(),e.clearFrom();case 5:case"end":return r.stop()}}),r)})));return function(t){return r.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))}))}}},g=(r("e41c"),r("2877"));function b(t){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?y(Object(r),!0).forEach((function(e){w(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function w(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=b(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==b(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var O={name:"setting_store",components:{systemStore:Object(g.a)(p,(function(){var t=this,e=t._self._c;return e("div",[e("Modal",{attrs:{scrollable:"","footer-hide":"",closable:"",title:"添加提货点","z-index":1,width:"700"},on:{"on-cancel":t.cancel},model:{value:t.isTemplate,callback:function(e){t.isTemplate=e},expression:"isTemplate"}},[e("div",{staticClass:"article-manager"},[e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("Form",{ref:"formItem",attrs:{model:t.formItem,"label-width":t.labelWidth,"label-position":t.labelPosition,rules:t.ruleValidate},nativeOn:{submit:function(t){t.preventDefault()}}},[e("Row",{attrs:{type:"flex",gutter:24}},[e("Col",{attrs:{span:"24"}},[e("Col",t._b({},"Col",t.grid,!1),[e("FormItem",{attrs:{label:"提货点名称:",prop:"name","label-for":"name"}},[e("Input",{attrs:{placeholder:"请输入提货点名称"},model:{value:t.formItem.name,callback:function(e){t.$set(t.formItem,"name",e)},expression:"formItem.name"}})],1)],1)],1),e("Col",{attrs:{span:"24"}},[e("Col",t._b({},"Col",t.grid,!1),[e("FormItem",{attrs:{label:"提货点简介:","label-for":"introduction"}},[e("Input",{attrs:{placeholder:"请输入提货点简介"},model:{value:t.formItem.introduction,callback:function(e){t.$set(t.formItem,"introduction",e)},expression:"formItem.introduction"}})],1)],1)],1),e("Col",{attrs:{span:"24"}},[e("Col",t._b({},"Col",t.grid,!1),[e("FormItem",{attrs:{label:"提货点手机号:","label-for":"phone",prop:"phone"}},[e("Input",{attrs:{placeholder:"请输入提货点手机号"},model:{value:t.formItem.phone,callback:function(e){t.$set(t.formItem,"phone",e)},expression:"formItem.phone"}})],1)],1)],1),e("Col",{attrs:{span:"24"}},[e("Col",t._b({},"Col",t.grid,!1),[e("FormItem",{attrs:{label:"提货点地址:","label-for":"address",prop:"address"}},[e("Cascader",{attrs:{data:t.addresData,value:t.formItem.address},on:{"on-change":t.handleChange},model:{value:t.formItem.address,callback:function(e){t.$set(t.formItem,"address",e)},expression:"formItem.address"}})],1)],1)],1),e("Col",{attrs:{span:"24"}},[e("Col",t._b({},"Col",t.grid,!1),[e("FormItem",{attrs:{label:"详细地址:","label-for":"detailed_address",prop:"detailed_address"}},[e("Input",{attrs:{placeholder:"请输入详细地址"},model:{value:t.formItem.detailed_address,callback:function(e){t.$set(t.formItem,"detailed_address",e)},expression:"formItem.detailed_address"}})],1)],1)],1),e("Col",{attrs:{span:"24"}},[e("Col",t._b({},"Col",t.grid,!1),[e("FormItem",{attrs:{label:"提货点营业:","label-for":"day_time"}},[e("TimePicker",{attrs:{type:"timerange",format:"HH:mm:ss",value:t.formItem.day_time,placement:"bottom-end",placeholder:"请选择营业时间"},on:{"on-change":t.onchangeTime},model:{value:t.formItem.day_time,callback:function(e){t.$set(t.formItem,"day_time",e)},expression:"formItem.day_time"}})],1)],1)],1),e("Col",{attrs:{span:"24"}},[e("Col",t._b({},"Col",t.grid,!1),[e("FormItem",{attrs:{label:"提货点logo:",prop:"image"}},[e("div",{staticClass:"picBox",on:{click:function(e){return t.modalPicTap("单选")}}},[t.formItem.image?e("div",{staticClass:"pictrue"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.formItem.image,expression:"formItem.image"}]})]):e("div",{staticClass:"upLoad acea-row row-center-wrapper"},[e("Icon",{staticClass:"iconfont",attrs:{type:"ios-camera-outline",size:"26"}})],1)])])],1)],1),e("Col",{attrs:{span:"24"}},[e("Col",t._b({},"Col",t.grid,!1),[e("FormItem",{attrs:{label:"经纬度:","label-for":"status2",prop:"latlng"}},[e("Tooltip",[e("Input",{staticStyle:{width:"100%"},attrs:{search:"","enter-button":"查找位置",placeholder:"请查找位置"},on:{"on-search":t.onSearch},model:{value:t.formItem.latlng,callback:function(e){t.$set(t.formItem,"latlng",e)},expression:"formItem.latlng"}}),e("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 请点击查找位置选择位置\n ")])],1)],1)],1)],1)],1),e("Row",{attrs:{type:"flex"}},[e("Col",t._b({},"Col",t.grid,!1),[e("Button",{staticClass:"ml20",attrs:{type:"primary"},on:{click:function(e){return t.handleSubmit("formItem")}}},[t._v(t._s(t.formItem.id?"修改":"提交"))])],1)],1),t.spinShow?e("Spin",{attrs:{size:"large",fix:""}}):t._e()],1)],1),e("Modal",{attrs:{width:"960px",scrollable:"","footer-hide":"",closable:"",title:"上传提货点logo","mask-closable":!1,"z-index":1},model:{value:t.modalPic,callback:function(e){t.modalPic=e},expression:"modalPic"}},[t.modalPic?e("uploadPictures",{attrs:{isChoice:t.isChoice,gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getPic}}):t._e()],1),e("Modal",{staticClass:"mapBox",attrs:{scrollable:"","footer-hide":"",closable:"",title:"查找位置","mask-closable":!1,"z-index":1},model:{value:t.modalMap,callback:function(e){t.modalMap=e},expression:"modalMap"}},[e("iframe",{attrs:{id:"mapPage",width:"100%",height:"100%",frameborder:"0",src:t.keyUrl}})])],1)])],1)}),[],!1,null,"176ce68e",null).exports},computed:v(v(v({},Object(n.e)("admin/layout",["isMobile"])),Object(n.e)("admin/userLevel",["categoryId"])),{},{labelWidth:function(){return this.isMobile?void 0:85},labelPosition:function(){return this.isMobile?"top":"left"}}),data:function(){return{grid:{xl:10,lg:10,md:12,sm:24,xs:24},headeNum:{show:{name:"",num:0},hide:{name:"",num:0},recycle:{name:"",num:0}},artFrom:{page:1,limit:15,type:"0",keywords:""},loading:!1,columns:[{title:"ID",key:"id",width:80,sortable:!0},{title:"提货点图片",slot:"image",minWidth:100},{title:"提货点名称",key:"name",minWidth:100},{title:"提货点电话",key:"phone",minWidth:100},{title:"地址",key:"detailed_address",minWidth:100},{title:"营业时间",key:"day_time",minWidth:100},{title:"是否显示",slot:"is_show",minWidth:100},{title:"操作",slot:"action",fixed:"right",minWidth:120}],storeLists:[],total:0}},mounted:function(){this.storeHeade(),this.getList()},methods:{storeHeade:function(){var t=this,e=this;Object(o.lb)().then((function(t){e.headeNum=t.data.count})).catch((function(e){t.$Message.error(e.msg)}))},getList:function(){var t=this,e=this;e.loading=!0,Object(o.J)(e.artFrom).then((function(t){e.loading=!1,e.storeLists=t.data.list,e.total=t.data.count})).catch((function(e){t.$Message.error(e.msg)}))},userSearchs:function(){this.artFrom.page=1,this.getList()},onClickTab:function(){this.artFrom.page=1,this.artFrom.keywords="",this.getList()},pageChange:function(t){this.artFrom.page=t,this.getList()},del:function(t,e,r){var n=this,o={title:e,num:r,url:"merchant/store/del/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(o).then((function(t){n.$Message.success(t.msg),n.storeLists.splice(r,1),n.storeHeade()})).catch((function(t){n.$Message.error(t.msg)}))},add:function(){this.$refs.template.isTemplate=!0,this.$refs.template.formItem.id=0},onchangeIsShow:function(t,e){var r=this;Object(o.nb)(t,e).then((function(t){r.$Message.success(t.msg),r.getList(),r.storeHeade()}))},edit:function(t){this.$refs.template.isTemplate=!0,this.$refs.template.getInfo(t)}}},j=(r("8953"),Object(g.a)(O,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"i-layout-page-header"},[e("PageHeader",{staticClass:"product_tabs",attrs:{title:"提货点","hidden-breadcrumb":""}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("Tabs",{on:{"on-click":t.onClickTab},model:{value:t.artFrom.type,callback:function(e){t.$set(t.artFrom,"type",e)},expression:"artFrom.type"}},[e("TabPane",{attrs:{label:t.headeNum.show.name+"("+t.headeNum.show.num+")",name:"0"}}),e("TabPane",{attrs:{label:t.headeNum.hide.name+"("+t.headeNum.hide.num+")",name:"1"}}),e("TabPane",{attrs:{label:t.headeNum.recycle.name+"("+t.headeNum.recycle.num+")",name:"2"}})],1)],1)])],1),e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("Form",{ref:"artFrom",attrs:{model:t.artFrom,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[e("Row",{attrs:{type:"flex",gutter:24}},[e("Col",t._b({staticClass:"mr"},"Col",t.grid,!1),[e("FormItem",{attrs:{label:"提货点搜索:","label-for":"store_name"}},[e("Input",{attrs:{search:"","enter-button":"",placeholder:"请输入提货点名称,电话"},on:{"on-search":t.userSearchs},model:{value:t.artFrom.keywords,callback:function(e){t.$set(t.artFrom,"keywords",e)},expression:"artFrom.keywords"}})],1)],1)],1)],1),e("Row",{directives:[{name:"auth",rawName:"v-auth",value:["setting-merchant-system_store-save"],expression:"['setting-merchant-system_store-save']"}],attrs:{type:"flex"}},[e("Col",t._b({},"Col",t.grid,!1),[e("Button",{directives:[{name:"auth",rawName:"v-auth",value:["setting-merchant-system_store-save"],expression:"['setting-merchant-system_store-save']"}],attrs:{type:"primary",icon:"md-add"},on:{click:t.add}},[t._v("添加提货点")])],1)],1),e("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.columns,data:t.storeLists,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"image",fn:function(t){var r=t.row;return t.index,[e("viewer",[e("div",{staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:r.image,expression:"row.image"}]})])])]}},{key:"is_show",fn:function(r){var n=r.row;return r.index,[e("i-switch",{attrs:{value:n.is_show,"true-value":1,"false-value":0,size:"large"},on:{"on-change":function(e){return t.onchangeIsShow(n.id,n.is_show)}},model:{value:n.is_show,callback:function(e){t.$set(n,"is_show",e)},expression:"row.is_show"}},[t._v(">\n "),e("span",{attrs:{slot:"open"},slot:"open"},[t._v("显示")]),e("span",{attrs:{slot:"close"},slot:"close"},[t._v("隐藏")])])]}},{key:"action",fn:function(r){var n=r.row,o=r.index;return[e("a",{on:{click:function(e){return t.edit(n.id)}}},[t._v("编辑")]),e("Divider",{attrs:{type:"vertical"}}),0==n.is_del?e("a",{on:{click:function(e){return t.del(n,"删除提货点",o)}}},[t._v("删除")]):e("a",{on:{click:function(e){return t.del(n,"恢复提货点",o)}}},[t._v("恢复")])]}}])}),e("div",{staticClass:"acea-row row-right page"},[e("Page",{attrs:{total:t.total,current:t.artFrom.page,"show-elevator":"","show-total":"","page-size":t.artFrom.limit},on:{"on-change":t.pageChange}})],1)],1),e("system-store",{ref:"template"})],1)}),[],!1,null,"b0d03f1e",null));e.default=j.exports},"7c3f":function(t,e,r){},8953:function(t,e,r){"use strict";r("7c3f")},"90e7":function(t,e,r){"use strict";r.d(e,"u",(function(){return o})),r.d(e,"i",(function(){return a})),r.d(e,"wb",(function(){return i})),r.d(e,"vb",(function(){return c})),r.d(e,"X",(function(){return u})),r.d(e,"c",(function(){return s})),r.d(e,"ab",(function(){return l})),r.d(e,"P",(function(){return d})),r.d(e,"kb",(function(){return f})),r.d(e,"H",(function(){return m})),r.d(e,"jb",(function(){return h})),r.d(e,"p",(function(){return p})),r.d(e,"n",(function(){return g})),r.d(e,"o",(function(){return b})),r.d(e,"q",(function(){return y})),r.d(e,"r",(function(){return v})),r.d(e,"S",(function(){return w})),r.d(e,"T",(function(){return O})),r.d(e,"Q",(function(){return j})),r.d(e,"R",(function(){return _})),r.d(e,"I",(function(){return x})),r.d(e,"B",(function(){return k})),r.d(e,"F",(function(){return I})),r.d(e,"E",(function(){return P})),r.d(e,"w",(function(){return C})),r.d(e,"G",(function(){return S})),r.d(e,"y",(function(){return E})),r.d(e,"D",(function(){return L})),r.d(e,"x",(function(){return T})),r.d(e,"v",(function(){return F})),r.d(e,"h",(function(){return $})),r.d(e,"d",(function(){return M})),r.d(e,"e",(function(){return N})),r.d(e,"xb",(function(){return D})),r.d(e,"yb",(function(){return G})),r.d(e,"zb",(function(){return q})),r.d(e,"Z",(function(){return z})),r.d(e,"lb",(function(){return W})),r.d(e,"J",(function(){return B})),r.d(e,"nb",(function(){return H})),r.d(e,"mb",(function(){return A})),r.d(e,"ob",(function(){return U})),r.d(e,"pb",(function(){return R})),r.d(e,"qb",(function(){return J})),r.d(e,"rb",(function(){return K})),r.d(e,"Ab",(function(){return V})),r.d(e,"Bb",(function(){return Y})),r.d(e,"K",(function(){return Q})),r.d(e,"f",(function(){return X})),r.d(e,"Cb",(function(){return Z})),r.d(e,"bb",(function(){return tt})),r.d(e,"cb",(function(){return et})),r.d(e,"C",(function(){return rt})),r.d(e,"z",(function(){return nt})),r.d(e,"Y",(function(){return ot})),r.d(e,"db",(function(){return at})),r.d(e,"eb",(function(){return it})),r.d(e,"fb",(function(){return ct})),r.d(e,"A",(function(){return ut})),r.d(e,"L",(function(){return st})),r.d(e,"O",(function(){return lt})),r.d(e,"M",(function(){return dt})),r.d(e,"N",(function(){return ft})),r.d(e,"g",(function(){return mt})),r.d(e,"t",(function(){return ht})),r.d(e,"s",(function(){return pt})),r.d(e,"U",(function(){return gt})),r.d(e,"gb",(function(){return bt})),r.d(e,"ib",(function(){return yt})),r.d(e,"b",(function(){return vt})),r.d(e,"hb",(function(){return wt})),r.d(e,"l",(function(){return Ot})),r.d(e,"a",(function(){return jt})),r.d(e,"k",(function(){return _t})),r.d(e,"j",(function(){return xt})),r.d(e,"sb",(function(){return kt})),r.d(e,"tb",(function(){return It})),r.d(e,"ub",(function(){return Pt})),r.d(e,"m",(function(){return Ct})),r.d(e,"V",(function(){return St})),r.d(e,"W",(function(){return Et}));var n=r("b6bd");function o(t){return Object(n.a)({url:"setting/config/header_basics",method:"get",params:t})}function a(t,e){return Object(n.a)({url:e,method:"get",params:t})}function i(t){return Object(n.a)({url:t.url,method:"get",params:t.data})}function c(){return Object(n.a)({url:"notify/sms/temp/create",method:"get"})}function u(){return Object(n.a)({url:"serve/info",method:"get"})}function s(t){return Object(n.a)({url:"serve/captcha",method:"post",data:t})}function l(t){return Object(n.a)({url:"serve/meal_list",method:"get",params:t})}function d(t){return Object(n.a)({url:"serve/pay_meal",method:"post",data:t})}function f(){return Object(n.a)({url:"merchant/store",method:"GET"})}function m(){return Object(n.a)({url:"merchant/store/address",method:"GET"})}function h(t){return Object(n.a)({url:"merchant/store/".concat(t.id),method:"POST",data:t})}function p(t){return Object(n.a)({url:"freight/express",method:"get",params:t})}function g(){return Object(n.a)({url:"/freight/express/create",method:"get"})}function b(t){return Object(n.a)({url:"freight/express/".concat(t,"/edit"),method:"get"})}function y(t){return Object(n.a)({url:"freight/express/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function v(){return Object(n.a)({url:"freight/express/sync_express",method:"get"})}function w(t){return Object(n.a)({url:"setting/role",method:"GET",params:t})}function O(t){return Object(n.a)({url:"setting/role/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function j(t){return Object(n.a)({url:"setting/role/".concat(t.id),method:"post",data:t})}function _(t){return Object(n.a)({url:"setting/role/".concat(t,"/edit"),method:"get"})}function x(){return Object(n.a)({url:"setting/role/create",method:"get"})}function k(t){return Object(n.a)({url:"app/wechat/kefu",method:"get",params:t})}function I(t){return Object(n.a)({url:"app/wechat/kefu/create",method:"get",params:t})}function P(){return Object(n.a)({url:"app/wechat/kefu/add",method:"get"})}function C(t){return Object(n.a)({url:"app/wechat/kefu",method:"post",data:t})}function S(t){return Object(n.a)({url:"app/wechat/kefu/set_status/".concat(t.id,"/").concat(t.account_status),method:"PUT"})}function E(t){return Object(n.a)({url:"app/wechat/kefu/".concat(t,"/edit"),method:"GET"})}function L(t,e){return Object(n.a)({url:"app/wechat/kefu/record/".concat(e),method:"GET",params:t})}function T(t){return Object(n.a)({url:"app/wechat/kefu/chat_list",method:"GET",params:t})}function F(){return Object(n.a)({url:"notify/sms/is_login",method:"GET"})}function $(t){return Object(n.a)({url:"setting/city/list/".concat(t),method:"get"})}function M(t){return Object(n.a)({url:"setting/city/add/".concat(t),method:"get"})}function N(t){return Object(n.a)({url:"setting/city/".concat(t,"/edit"),method:"get"})}function D(t){return Object(n.a)({url:"setting/shipping_templates/list",method:"get",params:t})}function G(t){return Object(n.a)({url:"setting/shipping_templates/city_list",method:"get"})}function q(t,e){return Object(n.a)({url:"setting/shipping_templates/save/".concat(t),method:"post",data:e})}function z(t){return Object(n.a)({url:"setting/shipping_templates/".concat(t,"/edit"),method:"get"})}function W(){return Object(n.a)({url:"merchant/store/get_header",method:"get"})}function B(t){return Object(n.a)({url:"merchant/store",method:"get",params:t})}function H(t,e){return Object(n.a)({url:"merchant/store/set_show/".concat(t,"/").concat(e),method:"put"})}function A(t){return Object(n.a)({url:"merchant/store/get_info/".concat(t),method:"get"})}function U(t){return Object(n.a)({url:"merchant/store_staff",method:"get",params:t})}function R(){return Object(n.a)({url:"merchant/store_staff/create",method:"get"})}function J(t){return Object(n.a)({url:"merchant/store_staff/".concat(t,"/edit"),method:"get"})}function K(t,e){return Object(n.a)({url:"merchant/store_staff/set_show/".concat(t,"/").concat(e),method:"put"})}function V(t){return Object(n.a)({url:"merchant/verify_order",method:"get",params:t})}function Y(t){return Object(n.a)({url:"merchant/verify/spread_info/".concat(t),method:"get"})}function Q(){return Object(n.a)({url:"merchant/store_list",method:"get"})}function X(){return Object(n.a)({url:"setting/city/clean_cache",method:"get"})}function Z(t){return Object(n.a)({url:"app/wechat/speechcraft",method:"get",params:t})}function tt(t){return Object(n.a)({url:"app/wechat/speechcraft/create",method:"get",params:t})}function et(t){return Object(n.a)({url:"app/wechat/speechcraft/".concat(t,"/edit"),method:"get"})}function rt(t){return Object(n.a)({url:"app/wechat/kefu/login/".concat(t),method:"get"})}function nt(t){return Object(n.a)({url:"app/feedback",method:"get",params:t})}function ot(t){return Object(n.a)({url:"serve/sms/sign",method:"PUT",data:t})}function at(){return Object(n.a)({url:"app/wechat/speechcraftcate",method:"get"})}function it(){return Object(n.a)({url:"app/wechat/speechcraftcate/create",method:"get"})}function ct(t){return Object(n.a)({url:"app/wechat/speechcraftcate/".concat(t,"/edit"),method:"get"})}function ut(t){return Object(n.a)({url:"app/feedback/".concat(t,"/edit"),method:"get"})}function st(t){return Object(n.a)({url:"setting/system_out/index",method:"get",params:t})}function lt(t,e){return Object(n.a)({url:"setting/system_out/set_status/".concat(t,"/").concat(e),method:"put"})}function dt(t){return Object(n.a)({url:"setting/system_out/save",method:"post",params:t})}function ft(t,e){return Object(n.a)({url:"setting/system_out/update/".concat(t),method:"post",params:e})}function mt(t){return Object(n.a)({url:"city",method:"get",params:t})}function ht(t){return Object(n.a)({url:"setting/config/edit_new_build/"+t,method:"get"})}function pt(){return Object(n.a)({url:"/setting/config/image",method:"get"})}function gt(t){return Object(n.a)({url:"setting/config/save_basics",method:"post",data:t})}function bt(t){return Object(n.a)({url:"/setting/config/storage",method:"get",params:t})}function yt(t){return Object(n.a)({url:"/setting/config/storage/synch/".concat(t),method:"put"})}function vt(t){return Object(n.a)({url:"/setting/config/storage/create/".concat(t),method:"get"})}function wt(t){return Object(n.a)({url:"/setting/config/storage/status/".concat(t),method:"put"})}function Ot(t){return Object(n.a)({url:"/setting/config/storage/domain/".concat(t),method:"get"})}function jt(t){return Object(n.a)({url:"/setting/config/storage/form/".concat(t),method:"get"})}function _t(t){return Object(n.a)({url:"/order/delivery_order/list",method:"get",params:t})}function xt(t){return Object(n.a)({url:"/order/delivery_order/cancelForm/".concat(t),method:"get"})}function kt(t,e){return Object(n.a)({url:"/system/form/save/".concat(t),method:"post",data:e})}function It(t,e){return Object(n.a)({url:"/system/form/info/".concat(t),method:"get",params:e})}function Pt(t){return Object(n.a)({url:"/system/form/index",method:"get",params:t})}function Ct(t,e){return Object(n.a)({url:"system/form/update_name/"+t,method:"post",data:e})}function St(t){return Object(n.a)({url:"setting/config/storage/save_type/".concat(t),method:"get"})}function Et(t){return Object(n.a)({url:"/file/scan/upload",method:"post",headers:{"content-type":"multipart/form-data;"},data:t})}},ca7e:function(t,e,r){},e41c:function(t,e,r){"use strict";r("ca7e")}}]);