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

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2552a3c2"],{"5a97":function(t,e,r){"use strict";r("6b1b")},"6b1b":function(t,e,r){},"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 O})),r.d(e,"T",(function(){return j})),r.d(e,"Q",(function(){return w})),r.d(e,"R",(function(){return _})),r.d(e,"I",(function(){return x})),r.d(e,"B",(function(){return I})),r.d(e,"F",(function(){return k})),r.d(e,"E",(function(){return P})),r.d(e,"w",(function(){return C})),r.d(e,"G",(function(){return E})),r.d(e,"y",(function(){return L})),r.d(e,"D",(function(){return S})),r.d(e,"x",(function(){return T})),r.d(e,"v",(function(){return F})),r.d(e,"h",(function(){return M})),r.d(e,"d",(function(){return G})),r.d(e,"e",(function(){return q})),r.d(e,"xb",(function(){return $})),r.d(e,"yb",(function(){return D})),r.d(e,"zb",(function(){return N})),r.d(e,"Z",(function(){return z})),r.d(e,"lb",(function(){return A})),r.d(e,"J",(function(){return B})),r.d(e,"nb",(function(){return U})),r.d(e,"mb",(function(){return H})),r.d(e,"ob",(function(){return J})),r.d(e,"pb",(function(){return K})),r.d(e,"qb",(function(){return R})),r.d(e,"rb",(function(){return V})),r.d(e,"Ab",(function(){return W})),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 Ot})),r.d(e,"l",(function(){return jt})),r.d(e,"a",(function(){return wt})),r.d(e,"k",(function(){return _t})),r.d(e,"j",(function(){return xt})),r.d(e,"sb",(function(){return It})),r.d(e,"tb",(function(){return kt})),r.d(e,"ub",(function(){return Pt})),r.d(e,"m",(function(){return Ct})),r.d(e,"V",(function(){return Et})),r.d(e,"W",(function(){return Lt}));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 O(t){return Object(n.a)({url:"setting/role",method:"GET",params:t})}function j(t){return Object(n.a)({url:"setting/role/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function w(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 I(t){return Object(n.a)({url:"app/wechat/kefu",method:"get",params:t})}function k(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 E(t){return Object(n.a)({url:"app/wechat/kefu/set_status/".concat(t.id,"/").concat(t.account_status),method:"PUT"})}function L(t){return Object(n.a)({url:"app/wechat/kefu/".concat(t,"/edit"),method:"GET"})}function S(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 M(t){return Object(n.a)({url:"setting/city/list/".concat(t),method:"get"})}function G(t){return Object(n.a)({url:"setting/city/add/".concat(t),method:"get"})}function q(t){return Object(n.a)({url:"setting/city/".concat(t,"/edit"),method:"get"})}function $(t){return Object(n.a)({url:"setting/shipping_templates/list",method:"get",params:t})}function D(t){return Object(n.a)({url:"setting/shipping_templates/city_list",method:"get"})}function N(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 A(){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 U(t,e){return Object(n.a)({url:"merchant/store/set_show/".concat(t,"/").concat(e),method:"put"})}function H(t){return Object(n.a)({url:"merchant/store/get_info/".concat(t),method:"get"})}function J(t){return Object(n.a)({url:"merchant/store_staff",method:"get",params:t})}function K(){return Object(n.a)({url:"merchant/store_staff/create",method:"get"})}function R(t){return Object(n.a)({url:"merchant/store_staff/".concat(t,"/edit"),method:"get"})}function V(t,e){return Object(n.a)({url:"merchant/store_staff/set_show/".concat(t,"/").concat(e),method:"put"})}function W(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 Ot(t){return Object(n.a)({url:"/setting/config/storage/status/".concat(t),method:"put"})}function jt(t){return Object(n.a)({url:"/setting/config/storage/domain/".concat(t),method:"get"})}function wt(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 It(t,e){return Object(n.a)({url:"/system/form/save/".concat(t),method:"post",data:e})}function kt(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 Et(t){return Object(n.a)({url:"setting/config/storage/save_type/".concat(t),method:"get"})}function Lt(t){return Object(n.a)({url:"/file/scan/upload",method:"post",headers:{"content-type":"multipart/form-data;"},data:t})}},a402c:function(t,e,r){"use strict";r.r(e);var n=r("90e7"),o=r("2f62"),a=r("2e8e");function i(t){return(i="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 c(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */c=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:{},u=a.iterator||"@@iterator",s=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 O(){}function j(){}var w={};d(w,u,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(F([])));x&&x!==r&&n.call(x,u)&&(w=x);var I=j.prototype=v.prototype=Object.create(w);function k(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,c,u){var s=m(t[o],t,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==i(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(d).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(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=E(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 E(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,E(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 L(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function F(e){if(e||""===e){var r=e[u];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(i(e)+" is not iterable")}return O.prototype=j,o(I,"constructor",{value:j,configurable:!0}),o(j,"constructor",{value:O,configurable:!0}),O.displayName=d(j,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===O||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,j):(t.__proto__=j,d(t,l,"GeneratorFunction")),t.prototype=Object.create(I),t},e.awrap=function(t){return{__await:t}},k(P.prototype),d(P.prototype,s,(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()}))},k(I),d(I,l,"Generator"),d(I,u,(function(){return this})),d(I,"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(S),!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),S(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;S(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 u(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 s(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){u(a,n,o,i,c,"next",t)}function c(t){u(a,n,o,i,c,"throw",t)}i(void 0)}))}}function l(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 d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){f(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function f(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var m={name:"systemStore",components:{uploadPictures:r("b0e7").a},data:function(){var t=this;return{spinShow:!1,modalMap:!1,addresData:a.a,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:10,lg:16,md:18,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(){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}))}))})),this.getKey(),this.getFrom()},computed:d(d({},Object(o.e)("admin/layout",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:100},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:{selectAdderss:function(t){this.formItem.latlng=t.latlng.lat+","+t.latlng.lng,this.modalMap=!1},getKey:function(){var t=this;Object(n.H)().then(function(){var e=s(c().mark((function e(r){var n;return c().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");case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},getFrom:function(){var t=this;this.spinShow=!0,Object(n.kb)().then(function(){var e=s(c().mark((function e(r){var n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.data.info||null,t.formItem=n||t.formItem,t.formItem.address=n.address2,t.spinShow=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.spinShow=!1,t.$Message.error(e.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.modalMap=!0},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;Object(n.jb)(e.formItem).then(function(){var t=s(c().mark((function t(r){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$Message.success(r.msg);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))}))}}},h=(r("5a97"),r("2877")),p=Object(h.a)(m,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"article-manager"},[e("div",{staticClass:"i-layout-page-header"},[e("PageHeader",{staticClass:"product_tabs",attrs:{title:t.$route.meta.title,"hidden-breadcrumb":""}})],1),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:{type:"number",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":"valid_time"}},[e("DatePicker",{attrs:{editable:!1,value:t.formItem.valid_time,format:"yyyy/MM/dd",type:"daterange","split-panels":"",placeholder:"请选择核销时效"},on:{"on-change":t.onchangeDate},model:{value:t.formItem.valid_time,callback:function(e){t.$set(t.formItem,"valid_time",e)},expression:"formItem.valid_time"}})],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("提交")])],1)],1),t.spinShow?e("Spin",{attrs:{size:"large",fix:""}}):t._e()],1)],1),e("Modal",{attrs:{width:"960px",scrollable:"","footer-hide":"",closable:"",title:"上传商品图","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,null,"21c3887c",null);e.default=p.exports}}]);