mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-14 12:32:50 +00:00
1 line
26 KiB
JavaScript
1 line
26 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1aed93fc"],{"246b":function(t,e,r){},"669a":function(t,e,r){"use strict";r.r(e);var n=r("f3f3"),a=(r("a434"),r("2f62")),o=r("90e7"),i=r("0122"),l=r("c964"),s=(r("d9e2"),r("ac1f"),r("00b4"),r("d81d"),r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("3ca3"),r("ddb0"),r("b636"),r("944a"),r("0c47"),r("23dc"),r("3410"),r("159b"),r("b0c0"),r("131a"),r("fb6a"),r("b0e7")),c=r("b562");function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */u=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(e){c=function(t,e,r){return t[e]=r}}function d(t,e,r,a){var o,i,l,s;e=e&&e.prototype instanceof p?e:p,e=Object.create(e.prototype),a=new k(a||[]);return n(e,"_invoke",{value:(o=t,i=r,l=a,s="suspendedStart",function(t,e){if("executing"===s)throw new Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return O()}for(l.method=t,l.arg=e;;){var r=l.delegate;if(r&&(r=function t(e,r){var n=r.method,a=e.iterator[n];return void 0===a?(r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f):(n=m(a,e.iterator,r.arg),"throw"===n.type?(r.method="throw",r.arg=n.arg,r.delegate=null,f):(a=n.arg,a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,f)))}(r,l),r)){if(r===f)continue;return r}if("next"===l.method)l.sent=l._sent=l.arg;else if("throw"===l.method){if("suspendedStart"===s)throw s="completed",l.arg;l.dispatchException(l.arg)}else"return"===l.method&&l.abrupt("return",l.arg);if(s="executing",r=m(o,i,l),"normal"===r.type){if(s=l.done?"completed":"suspendedYield",r.arg===f)continue;return{value:r.arg,done:l.done}}"throw"===r.type&&(s="completed",l.method="throw",l.arg=r.arg)}})}),e}function m(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=d;var f={};function p(){}function h(){}function g(){}a={};var b=(c(a,o,(function(){return this})),Object.getPrototypeOf),v=(b=b&&b(b(I([]))),b&&b!==e&&r.call(b,o)&&(a=b),g.prototype=p.prototype=Object.create(a));function y(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){var a;n(this,"_invoke",{value:function(n,o){function l(){return new e((function(a,l){!function n(a,o,l,s){var c;a=m(t[a],t,o);if("throw"!==a.type)return(o=(c=a.arg).value)&&"object"==Object(i.a)(o)&&r.call(o,"__await")?e.resolve(o.__await).then((function(t){n("next",t,l,s)}),(function(t){n("throw",t,l,s)})):e.resolve(o).then((function(t){c.value=t,l(c)}),(function(t){return n("throw",t,l,s)}));s(a.arg)}(n,o,a,l)}))}return a=a?a.then(l,l):l()}})}function _(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 x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function I(t){if(t){var e,n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(n=function n(){for(;++e<t.length;)if(r.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=void 0,n.done=!0,n}).next=n}return{next:O}}function O(){return{value:void 0,done:!0}}return n(v,"constructor",{value:h.prototype=g,configurable:!0}),n(g,"constructor",{value:h,configurable:!0}),h.displayName=c(g,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,c(t,s,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},y(w.prototype),c(w.prototype,l,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new w(d(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},y(v),c(v,s,"Generator"),c(v,o,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,r=Object(t),n=[];for(e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=I,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var a=this.tryEntries.length-1;0<=a;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var l=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(l&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}var i=(o=o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc?null:o)?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):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),f},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,n,a=this.tryEntries[e];if(a.tryLoc===t)return"throw"===(r=a.completion).type&&(n=r.arg,x(a)),n}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}s={name:"systemStore",components:{uploadPictures:s.a},props:{},data:function(){var t=this;return{isTemplate:!1,spinShow:!1,modalMap:!1,addresData:[],modalTitle:"",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"}],oblong_image:[{required:!0,validator:function(e,r,n){t.formItem.oblong_image?n():n(new Error("请上传提货点大图"))},trigger:"change"}],latlng:[{required:!0,message:"请选择经纬度",trigger:"blur"}]},keyUrl:"",grid:{xl:20,lg:24,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(){this.getCityList()},computed:{},mounted:function(){window.addEventListener("message",(function(t){t=t.data,t&&"locationPicker"===t.module&&window.parent.selectAdderss(t)}),!1),window.selectAdderss=this.selectAdderss},methods:{getCityList:function(){var t=this;Object(c.b)().then((function(e){e.data.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}))}))})),t.addresData=e.data}))},cancel:function(){this.$refs.formItem.resetFields(),this.clearFrom()},clearFrom:function(){this.formItem.introduction="",this.formItem.day_time=["",""],this.formItem.oblong_image="",this.formItem.id=0},selectAdderss:function(t){this.formItem.latlng=t.latlng.lat+","+t.latlng.lng,this.modalMap=!1},getKey:function(){},getInfo:function(t){var e=this;e.formItem.id=t,e.spinShow=!0,Object(o.Gb)(t).then((function(t){t=t.data.info||null,e.formItem=t||e.formItem,e.formItem.address=t.address2,e.formItem.day_time=t.day_time.split("-"),e.spinShow=!1})).catch((function(t){e.spinShow=!1,e.$message.error(t.msg)}))},modalPicTap:function(t,e){this.modalTitle="oblong"==e?"提货点大图":"提货点LOGO",this.modalPic=!0,this.picTit=e},getPic:function(t){switch(this.picTit){case"logo":this.formItem.image=t.att_dir;break;case"oblong":this.formItem.oblong_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(){var t=this;this.keyUrl?this.modalMap=!0:Object(o.I)().then(function(){var e=Object(l.a)(u().mark((function e(r){var n;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.data.key,t.keyUrl="https://apis.map.qq.com/tools/locpicker?type=1&key=".concat(n,"&referer=myapp"),t.modalMap=!0;case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.msg)}))},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(r){if(!r)return!1;Object(o.Db)(e.formItem).then(function(){var r=Object(l.a)(u().mark((function r(n){return u().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)}))}))}}};var d=(r("ed8b"),r("2877"));s={name:"setting_store",components:{systemStore:Object(d.a)(s,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("div",[e("el-dialog",{attrs:{visible:t.isTemplate,title:t.formItem.id?"编辑提货点":"添加提货点",width:"720px"},on:{"update:visible":function(e){t.isTemplate=e},closed:t.cancel}},[e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinShow,expression:"spinShow"}],staticClass:"article-manager"},[e("el-form",{ref:"formItem",attrs:{model:t.formItem,"label-width":"110px","label-position":"right",rules:t.ruleValidate},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-row",{attrs:{gutter:24}},[e("el-col",{attrs:{span:24}},[e("el-col",t._b({},"el-col",t.grid,!1),[e("el-form-item",{attrs:{label:"提货点名称:",prop:"name","label-for":"name"}},[e("el-input",{attrs:{placeholder:"请输入提货点名称"},model:{value:t.formItem.name,callback:function(e){t.$set(t.formItem,"name",e)},expression:"formItem.name"}})],1)],1)],1),e("el-col",{attrs:{span:24}},[e("el-col",t._b({},"el-col",t.grid,!1),[e("el-form-item",{attrs:{label:"提货点简介:","label-for":"introduction"}},[e("el-input",{attrs:{placeholder:"请输入提货点简介"},model:{value:t.formItem.introduction,callback:function(e){t.$set(t.formItem,"introduction",e)},expression:"formItem.introduction"}})],1)],1)],1),e("el-col",{attrs:{span:24}},[e("el-col",t._b({},"el-col",t.grid,!1),[e("el-form-item",{attrs:{label:"提货点手机号:","label-for":"phone",prop:"phone"}},[e("el-input",{attrs:{placeholder:"请输入提货点手机号"},model:{value:t.formItem.phone,callback:function(e){t.$set(t.formItem,"phone",e)},expression:"formItem.phone"}})],1)],1)],1),e("el-col",{attrs:{span:24}},[e("el-col",t._b({},"el-col",t.grid,!1),[e("el-form-item",{attrs:{label:"提货点地址:","label-for":"address",prop:"address"}},[e("el-cascader",{staticStyle:{width:"100%"},attrs:{options:t.addresData,value:t.formItem.address},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("el-col",{attrs:{span:24}},[e("el-col",t._b({},"el-col",t.grid,!1),[e("el-form-item",{attrs:{label:"详细地址:","label-for":"detailed_address",prop:"detailed_address"}},[e("el-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("el-col",{attrs:{span:24}},[e("el-col",t._b({},"el-col",t.grid,!1),[e("el-form-item",{attrs:{label:"提货点营业:","label-for":"day_time",prop:"day_time"}},[e("el-time-picker",{staticStyle:{width:"100%"},attrs:{"is-range":"",format:"HH:mm:ss","value-format":"HH:mm:ss","range-separator":"-","start-placeholder":"开始时间","end-placeholder":"结束时间",placeholder:"选择时间范围"},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("el-col",{attrs:{span:24}},[e("el-col",t._b({},"el-col",t.grid,!1),[e("el-form-item",{attrs:{label:"提货点logo:",prop:"image"}},[e("div",{staticClass:"picBox",on:{click:function(e){return t.modalPicTap("单选","logo")}}},[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("i",{staticClass:"el-icon-picture-outline",staticStyle:{"font-size":"24px"}})])])])],1)],1),e("el-col",{attrs:{span:24}},[e("el-col",t._b({},"el-col",t.grid,!1),[e("el-form-item",{attrs:{label:"提货点大图:",prop:"oblong_image"}},[e("div",{staticClass:"picBox",on:{click:function(e){return t.modalPicTap("单选","oblong")}}},[t.formItem.oblong_image?e("div",{staticClass:"pictrue"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.formItem.oblong_image,expression:"formItem.oblong_image"}]})]):e("div",{staticClass:"upLoad acea-row row-center-wrapper"},[e("i",{staticClass:"el-icon-picture-outline",staticStyle:{"font-size":"24px"}})])])])],1)],1),e("el-col",{attrs:{span:24}},[e("el-col",t._b({},"el-col",t.grid,!1),[e("el-form-item",{attrs:{label:"经纬度:","label-for":"status2",prop:"latlng"}},[e("el-tooltip",[e("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请查找位置"},model:{value:t.formItem.latlng,callback:function(e){t.$set(t.formItem,"latlng",e)},expression:"formItem.latlng"}},[e("el-button",{attrs:{slot:"append",type:"primary"},on:{click:t.onSearch},slot:"append"},[t._v("查找位置")])],1),e("div",{attrs:{slot:"content"},slot:"content"},[t._v("请点击查找位置选择位置")])],1)],1)],1)],1)],1)],1),e("el-dialog",{attrs:{visible:t.modalPic,width:"1024px",title:t.modalTitle,"close-on-click-modal":!1,"z-index":888},on:{"update:visible":function(e){t.modalPic=e}}},[t.modalPic?e("uploadPictures",{attrs:{isChoice:t.isChoice,gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getPic}}):t._e()],1),e("el-dialog",{staticClass:"mapBox",attrs:{visible:t.modalMap,title:"请选择地址","close-on-click-modal":!1,"z-index":1,width:"720px"},on:{"update:visible":function(e){t.modalMap=e}}},[e("iframe",{attrs:{id:"mapPage",width:"100%",height:"600px",frameborder:"0",src:t.keyUrl}})])],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"primary",long:""},on:{click:function(e){return t.handleSubmit("formItem")}}},[t._v(t._s(t.formItem.id?"修改":"提交"))])],1)])],1)}),[],!1,null,"5ddfd79a",null).exports},computed:Object(n.a)(Object(n.a)(Object(n.a)({},Object(a.d)("media",["isMobile"])),Object(a.d)("userLevel",["categoryId"])),{},{labelWidth:function(){return this.isMobile?void 0:"90px"},labelPosition:function(){return this.isMobile?"top":"right"}}),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,storeLists:[],total:0}},mounted:function(){this.storeHeade(),this.getList()},methods:{storeHeade:function(){var t=this,e=this;Object(o.Fb)().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.U)(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()},del:function(t,e,r){var n=this;e={title:e,num:r,url:"merchant/store/del/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(e).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},onchangeIsShow:function(t,e){var r=this;Object(o.Hb)(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)}}},r("aadc"),n=Object(d.a)(s,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("el-card",{staticClass:"ivu-mb-16",attrs:{bordered:!1,shadow:"never","body-style":{padding:0}}},[r("div",{staticClass:"padding-add"},[r("el-form",{ref:"artFrom",attrs:{model:t.artFrom,"label-width":t.labelWidth,"label-position":t.labelPosition,inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[r("el-form-item",{attrs:{label:"提货点搜索:"}},[r("el-input",{staticClass:"form_content_width",attrs:{clearable:"",placeholder:"请输入提货点名称,电话"},model:{value:t.artFrom.keywords,callback:function(e){t.$set(t.artFrom,"keywords",e)},expression:"artFrom.keywords"}})],1),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:t.userSearchs}},[t._v("查询")])],1)],1)],1)]),r("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never","body-style":{padding:"0 20px 20px"}}},[t.headeNum.show.name?r("div",[r("el-tabs",{on:{"tab-click":t.onClickTab},model:{value:t.artFrom.type,callback:function(e){t.$set(t.artFrom,"type",e)},expression:"artFrom.type"}},[r("el-tab-pane",{attrs:{label:t.headeNum.show.name+"("+t.headeNum.show.num+")",name:"0"}}),r("el-tab-pane",{attrs:{label:t.headeNum.hide.name+"("+t.headeNum.hide.num+")",name:"1"}}),r("el-tab-pane",{attrs:{label:t.headeNum.recycle.name+"("+t.headeNum.recycle.num+")",name:"2"}})],1)],1):t._e(),r("el-row",{directives:[{name:"auth",rawName:"v-auth",value:["setting-merchant-system_store-save"],expression:"['setting-merchant-system_store-save']"}]},[r("el-col",t._b({},"el-col",t.grid,!1),[r("el-button",{directives:[{name:"auth",rawName:"v-auth",value:["setting-merchant-system_store-save"],expression:"['setting-merchant-system_store-save']"}],attrs:{type:"primary"},on:{click:t.add}},[t._v("添加提货点")])],1)],1),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",staticClass:"mt14",attrs:{data:t.storeLists,"highlight-current-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"}},[r("el-table-column",{attrs:{label:"ID",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.id))])]}}])}),r("el-table-column",{attrs:{label:"提货点图片","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(t){return[r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.row.image,expression:"scope.row.image"}]})])]}}])}),r("el-table-column",{attrs:{label:"提货点名称","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.name))])]}}])}),r("el-table-column",{attrs:{label:"提货点电话","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.phone))])]}}])}),r("el-table-column",{attrs:{label:"地址","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.detailed_address))])]}}])}),r("el-table-column",{attrs:{label:"营业时间","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.day_time))])]}}])}),r("el-table-column",{attrs:{label:"是否显示","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-switch",{staticClass:"defineSwitch",attrs:{"active-value":1,"inactive-value":0,value:e.row.is_show,size:"large","active-text":"显示","inactive-text":"隐藏"},on:{change:function(r){return t.onchangeIsShow(e.row.id,e.row.is_show)}},model:{value:e.row.is_show,callback:function(r){t.$set(e.row,"is_show",r)},expression:"scope.row.is_show"}})]}}])}),r("el-table-column",{attrs:{label:"操作",fixed:"right",width:"170"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("a",{on:{click:function(r){return t.edit(e.row.id)}}},[t._v("编辑")]),r("el-divider",{attrs:{direction:"vertical"}}),0==e.row.is_del?r("a",{on:{click:function(r){return t.del(e.row,"删除提货点",e.$index)}}},[t._v("删除")]):r("a",{on:{click:function(r){return t.del(e.row,"恢复提货点",t.index)}}},[t._v("恢复")])]}}])})],1),r("div",{staticClass:"acea-row row-right page"},[t.total?r("pagination",{attrs:{total:t.total,page:t.artFrom.page,limit:t.artFrom.limit},on:{"update:page":function(e){return t.$set(t.artFrom,"page",e)},"update:limit":function(e){return t.$set(t.artFrom,"limit",e)},pagination:t.getList}}):t._e()],1)],1),r("system-store",{ref:"template"})],1)}),[],!1,null,"e6d5f78c",null);e.default=n.exports},"66ae":function(t,e,r){},aadc:function(t,e,r){"use strict";var n=r("66ae");r.n(n).a},b562:function(t,e,r){"use strict";r.d(e,"l",(function(){return a})),r.d(e,"u",(function(){return o})),r.d(e,"q",(function(){return i})),r.d(e,"a",(function(){return l})),r.d(e,"i",(function(){return s})),r.d(e,"j",(function(){return c})),r.d(e,"k",(function(){return u})),r.d(e,"f",(function(){return d})),r.d(e,"g",(function(){return m})),r.d(e,"h",(function(){return f})),r.d(e,"r",(function(){return p})),r.d(e,"t",(function(){return h})),r.d(e,"s",(function(){return g})),r.d(e,"x",(function(){return b})),r.d(e,"v",(function(){return v})),r.d(e,"w",(function(){return y})),r.d(e,"p",(function(){return w})),r.d(e,"n",(function(){return _})),r.d(e,"o",(function(){return x})),r.d(e,"m",(function(){return k})),r.d(e,"c",(function(){return I})),r.d(e,"b",(function(){return O})),r.d(e,"e",(function(){return j})),r.d(e,"d",(function(){return L})),r("99af");var n=r("6b6c");function a(){return Object(n.a)({url:"app/routine/syncSubscribe",method:"GET"})}function o(){return Object(n.a)({url:"app/wechat/syncSubscribe",method:"GET"})}function i(t){return Object(n.a)({url:"app/wechat/menu",method:"get"})}function l(t){return Object(n.a)({url:"app/wechat/menu",method:"post",data:t})}function s(t){return Object(n.a)({url:t.url,method:"post",data:t.key})}function c(t){return Object(n.a)({url:"app/routine/download",method:"post",data:t})}function u(){return Object(n.a)({url:"app/routine/info",method:"get"})}function d(t){return Object(n.a)({url:"app/wechat/keyword",method:"get",params:t})}function m(t){return Object(n.a)({url:"app/wechat/keyword/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function f(t,e){return Object(n.a)({url:t,method:"get",params:e.key})}function p(t){return Object(n.a)({url:"/app/wechat/news",method:"POST",data:t})}function h(t){return Object(n.a)({url:"app/wechat/news",method:"GET",params:t})}function g(t){return Object(n.a)({url:"app/wechat/news/".concat(t),method:"GET"})}function b(){return Object(n.a)({url:"app/wechat/tag",method:"GET"})}function v(){return Object(n.a)({url:"app/wechat/tag/create",method:"GET"})}function y(t){return Object(n.a)({url:"app/wechat/tag/".concat(t,"/edit"),method:"GET"})}function w(){return Object(n.a)({url:"app/wechat/group",method:"GET"})}function _(){return Object(n.a)({url:"app/wechat/group/create",method:"GET"})}function x(t){return Object(n.a)({url:"app/wechat/group/".concat(t,"/edit"),method:"GET"})}function k(t){return Object(n.a)({url:"app/wechat/action",method:"GET",params:t})}function I(t){return Object(n.a)({url:"app/wechat/code_reply/".concat(t),method:"GET"})}function O(){return Object(n.a)({url:"setting/city/full_list",method:"GET"})}function j(t){return Object(n.a)({url:"app/kefu/auto_reply/list",method:"get",params:t})}function L(t){return Object(n.a)({url:"app/kefu/auto_reply/form/"+t,method:"get"})}},ed8b:function(t,e,r){"use strict";var n=r("246b");r.n(n).a}}]); |