CRMEB_PRO_M/public/view_admin/js/chunk-3ff15e78.eb7036f3.js

1 line
20 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3ff15e78"],{"715a":function(t,e,r){},"90e7":function(t,e,r){"use strict";r.d(e,"u",(function(){return a})),r.d(e,"i",(function(){return o})),r.d(e,"wb",(function(){return c})),r.d(e,"vb",(function(){return u})),r.d(e,"X",(function(){return i})),r.d(e,"c",(function(){return s})),r.d(e,"ab",(function(){return d})),r.d(e,"P",(function(){return l})),r.d(e,"kb",(function(){return m})),r.d(e,"H",(function(){return f})),r.d(e,"jb",(function(){return p})),r.d(e,"p",(function(){return h})),r.d(e,"n",(function(){return g})),r.d(e,"o",(function(){return b})),r.d(e,"q",(function(){return O})),r.d(e,"r",(function(){return j})),r.d(e,"S",(function(){return v})),r.d(e,"T",(function(){return y})),r.d(e,"Q",(function(){return _})),r.d(e,"R",(function(){return w})),r.d(e,"I",(function(){return I})),r.d(e,"B",(function(){return C})),r.d(e,"F",(function(){return k})),r.d(e,"E",(function(){return x})),r.d(e,"w",(function(){return P})),r.d(e,"G",(function(){return M})),r.d(e,"y",(function(){return T})),r.d(e,"D",(function(){return S})),r.d(e,"x",(function(){return $})),r.d(e,"v",(function(){return q})),r.d(e,"h",(function(){return E})),r.d(e,"d",(function(){return F})),r.d(e,"e",(function(){return D})),r.d(e,"xb",(function(){return z})),r.d(e,"yb",(function(){return B})),r.d(e,"zb",(function(){return G})),r.d(e,"Z",(function(){return U})),r.d(e,"lb",(function(){return A})),r.d(e,"J",(function(){return H})),r.d(e,"nb",(function(){return J})),r.d(e,"mb",(function(){return K})),r.d(e,"ob",(function(){return L})),r.d(e,"pb",(function(){return R})),r.d(e,"qb",(function(){return V})),r.d(e,"rb",(function(){return W})),r.d(e,"Ab",(function(){return N})),r.d(e,"Bb",(function(){return Q})),r.d(e,"K",(function(){return X})),r.d(e,"f",(function(){return Y})),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 at})),r.d(e,"db",(function(){return ot})),r.d(e,"eb",(function(){return ct})),r.d(e,"fb",(function(){return ut})),r.d(e,"A",(function(){return it})),r.d(e,"L",(function(){return st})),r.d(e,"O",(function(){return dt})),r.d(e,"M",(function(){return lt})),r.d(e,"N",(function(){return mt})),r.d(e,"g",(function(){return ft})),r.d(e,"t",(function(){return pt})),r.d(e,"s",(function(){return ht})),r.d(e,"U",(function(){return gt})),r.d(e,"gb",(function(){return bt})),r.d(e,"ib",(function(){return Ot})),r.d(e,"b",(function(){return jt})),r.d(e,"hb",(function(){return vt})),r.d(e,"l",(function(){return yt})),r.d(e,"a",(function(){return _t})),r.d(e,"k",(function(){return wt})),r.d(e,"j",(function(){return It})),r.d(e,"sb",(function(){return Ct})),r.d(e,"tb",(function(){return kt})),r.d(e,"ub",(function(){return xt})),r.d(e,"m",(function(){return Pt})),r.d(e,"V",(function(){return Mt})),r.d(e,"W",(function(){return Tt}));var n=r("b6bd");function a(t){return Object(n.a)({url:"setting/config/header_basics",method:"get",params:t})}function o(t,e){return Object(n.a)({url:e,method:"get",params:t})}function c(t){return Object(n.a)({url:t.url,method:"get",params:t.data})}function u(){return Object(n.a)({url:"notify/sms/temp/create",method:"get"})}function i(){return Object(n.a)({url:"serve/info",method:"get"})}function s(t){return Object(n.a)({url:"serve/captcha",method:"post",data:t})}function d(t){return Object(n.a)({url:"serve/meal_list",method:"get",params:t})}function l(t){return Object(n.a)({url:"serve/pay_meal",method:"post",data:t})}function m(){return Object(n.a)({url:"merchant/store",method:"GET"})}function f(){return Object(n.a)({url:"merchant/store/address",method:"GET"})}function p(t){return Object(n.a)({url:"merchant/store/".concat(t.id),method:"POST",data:t})}function h(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 O(t){return Object(n.a)({url:"freight/express/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function j(){return Object(n.a)({url:"freight/express/sync_express",method:"get"})}function v(t){return Object(n.a)({url:"setting/role",method:"GET",params:t})}function y(t){return Object(n.a)({url:"setting/role/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function _(t){return Object(n.a)({url:"setting/role/".concat(t.id),method:"post",data:t})}function w(t){return Object(n.a)({url:"setting/role/".concat(t,"/edit"),method:"get"})}function I(){return Object(n.a)({url:"setting/role/create",method:"get"})}function C(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 x(){return Object(n.a)({url:"app/wechat/kefu/add",method:"get"})}function P(t){return Object(n.a)({url:"app/wechat/kefu",method:"post",data:t})}function M(t){return Object(n.a)({url:"app/wechat/kefu/set_status/".concat(t.id,"/").concat(t.account_status),method:"PUT"})}function T(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){return Object(n.a)({url:"app/wechat/kefu/chat_list",method:"GET",params:t})}function q(){return Object(n.a)({url:"notify/sms/is_login",method:"GET"})}function E(t){return Object(n.a)({url:"setting/city/list/".concat(t),method:"get"})}function F(t){return Object(n.a)({url:"setting/city/add/".concat(t),method:"get"})}function D(t){return Object(n.a)({url:"setting/city/".concat(t,"/edit"),method:"get"})}function z(t){return Object(n.a)({url:"setting/shipping_templates/list",method:"get",params:t})}function B(t){return Object(n.a)({url:"setting/shipping_templates/city_list",method:"get"})}function G(t,e){return Object(n.a)({url:"setting/shipping_templates/save/".concat(t),method:"post",data:e})}function U(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 H(t){return Object(n.a)({url:"merchant/store",method:"get",params:t})}function J(t,e){return Object(n.a)({url:"merchant/store/set_show/".concat(t,"/").concat(e),method:"put"})}function K(t){return Object(n.a)({url:"merchant/store/get_info/".concat(t),method:"get"})}function L(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 V(t){return Object(n.a)({url:"merchant/store_staff/".concat(t,"/edit"),method:"get"})}function W(t,e){return Object(n.a)({url:"merchant/store_staff/set_show/".concat(t,"/").concat(e),method:"put"})}function N(t){return Object(n.a)({url:"merchant/verify_order",method:"get",params:t})}function Q(t){return Object(n.a)({url:"merchant/verify/spread_info/".concat(t),method:"get"})}function X(){return Object(n.a)({url:"merchant/store_list",method:"get"})}function Y(){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 at(t){return Object(n.a)({url:"serve/sms/sign",method:"PUT",data:t})}function ot(){return Object(n.a)({url:"app/wechat/speechcraftcate",method:"get"})}function ct(){return Object(n.a)({url:"app/wechat/speechcraftcate/create",method:"get"})}function ut(t){return Object(n.a)({url:"app/wechat/speechcraftcate/".concat(t,"/edit"),method:"get"})}function it(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 dt(t,e){return Object(n.a)({url:"setting/system_out/set_status/".concat(t,"/").concat(e),method:"put"})}function lt(t){return Object(n.a)({url:"setting/system_out/save",method:"post",params:t})}function mt(t,e){return Object(n.a)({url:"setting/system_out/update/".concat(t),method:"post",params:e})}function ft(t){return Object(n.a)({url:"city",method:"get",params:t})}function pt(t){return Object(n.a)({url:"setting/config/edit_new_build/"+t,method:"get"})}function ht(){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 Ot(t){return Object(n.a)({url:"/setting/config/storage/synch/".concat(t),method:"put"})}function jt(t){return Object(n.a)({url:"/setting/config/storage/create/".concat(t),method:"get"})}function vt(t){return Object(n.a)({url:"/setting/config/storage/status/".concat(t),method:"put"})}function yt(t){return Object(n.a)({url:"/setting/config/storage/domain/".concat(t),method:"get"})}function _t(t){return Object(n.a)({url:"/setting/config/storage/form/".concat(t),method:"get"})}function wt(t){return Object(n.a)({url:"/order/delivery_order/list",method:"get",params:t})}function It(t){return Object(n.a)({url:"/order/delivery_order/cancelForm/".concat(t),method:"get"})}function Ct(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 xt(t){return Object(n.a)({url:"/system/form/index",method:"get",params:t})}function Pt(t,e){return Object(n.a)({url:"system/form/update_name/"+t,method:"post",data:e})}function Mt(t){return Object(n.a)({url:"setting/config/storage/save_type/".concat(t),method:"get"})}function Tt(t){return Object(n.a)({url:"/file/scan/upload",method:"post",headers:{"content-type":"multipart/form-data;"},data:t})}},a402:function(t,e,r){"use strict";r.r(e);var n=r("a34a"),a=r.n(n),o=r("90e7"),c=r("2f62"),u=r("2e8e");function i(t,e,r,n,a,o,c){try{var u=t[o](c),i=u.value}catch(t){return void r(t)}u.done?e(i):Promise.resolve(i).then(n,a)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,a){var o=t.apply(e,r);function c(t){i(o,n,a,c,u,"next",t)}function u(t){i(o,n,a,c,u,"throw",t)}c(void 0)}))}}function d(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 l(t,e,r){return 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:u.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(){u.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:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(r,!0).forEach((function(e){l(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},Object(c.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(o.H)().then(function(){var e=s(a.a.mark((function e(r){var n;return a.a.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(o.kb)().then(function(){var e=s(a.a.mark((function e(r){var n;return a.a.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(o.jb)(e.formItem).then(function(){var t=s(a.a.mark((function t(r){return a.a.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)}))}))}}},f=(r("b5f7"),r("2877")),p=Object(f.a)(m,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"article-manager"},[r("div",{staticClass:"i-layout-page-header"},[r("PageHeader",{staticClass:"product_tabs",attrs:{title:t.$route.meta.title,"hidden-breadcrumb":""}})],1),r("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[r("Form",{ref:"formItem",attrs:{model:t.formItem,"label-width":t.labelWidth,"label-position":t.labelPosition,rules:t.ruleValidate},nativeOn:{submit:function(t){t.preventDefault()}}},[r("Row",{attrs:{type:"flex",gutter:24}},[r("Col",{attrs:{span:"24"}},[r("Col",t._b({},"Col",t.grid,!1),[r("FormItem",{attrs:{label:"门店名称:",prop:"name","label-for":"name"}},[r("Input",{attrs:{placeholder:"请输入门店名称"},model:{value:t.formItem.name,callback:function(e){t.$set(t.formItem,"name",e)},expression:"formItem.name"}})],1)],1)],1),r("Col",{attrs:{span:"24"}},[r("Col",t._b({},"Col",t.grid,!1),[r("FormItem",{attrs:{label:"门店简介:","label-for":"introduction"}},[r("Input",{attrs:{placeholder:"请输入门店简介"},model:{value:t.formItem.introduction,callback:function(e){t.$set(t.formItem,"introduction",e)},expression:"formItem.introduction"}})],1)],1)],1),r("Col",{attrs:{span:"24"}},[r("Col",t._b({},"Col",t.grid,!1),[r("FormItem",{attrs:{label:"门店手机号:","label-for":"phone",prop:"phone"}},[r("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),r("Col",{attrs:{span:"24"}},[r("Col",t._b({},"Col",t.grid,!1),[r("FormItem",{attrs:{label:"门店地址:","label-for":"address",prop:"address"}},[r("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),r("Col",{attrs:{span:"24"}},[r("Col",t._b({},"Col",t.grid,!1),[r("FormItem",{attrs:{label:"详细地址:","label-for":"detailed_address",prop:"detailed_address"}},[r("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),r("Col",{attrs:{span:"24"}},[r("Col",t._b({},"Col",t.grid,!1),[r("FormItem",{attrs:{label:"核销时效:","label-for":"valid_time"}},[r("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),r("Col",{attrs:{span:"24"}},[r("Col",t._b({},"Col",t.grid,!1),[r("FormItem",{attrs:{label:"门店营业:","label-for":"day_time"}},[r("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),r("Col",{attrs:{span:"24"}},[r("Col",t._b({},"Col",t.grid,!1),[r("FormItem",{attrs:{label:"门店logo",prop:"image"}},[r("div",{staticClass:"picBox",on:{click:function(e){return t.modalPicTap("单选")}}},[t.formItem.image?r("div",{staticClass:"pictrue"},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.formItem.image,expression:"formItem.image"}]})]):r("div",{staticClass:"upLoad acea-row row-center-wrapper"},[r("Icon",{staticClass:"iconfont",attrs:{type:"ios-camera-outline",size:"26"}})],1)])])],1)],1),r("Col",{attrs:{span:"24"}},[r("Col",t._b({},"Col",t.grid,!1),[r("FormItem",{attrs:{label:"经纬度:","label-for":"status2",prop:"latlng"}},[r("Tooltip",[r("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"}}),r("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 请点击查找位置选择位置\n ")])],1)],1)],1)],1)],1),r("Row",{attrs:{type:"flex"}},[r("Col",t._b({},"Col",t.grid,!1),[r("Button",{staticClass:"ml20",attrs:{type:"primary"},on:{click:function(e){return t.handleSubmit("formItem")}}},[t._v("提交")])],1)],1),t.spinShow?r("Spin",{attrs:{size:"large",fix:""}}):t._e()],1)],1),r("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?r("uploadPictures",{attrs:{isChoice:t.isChoice,gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getPic}}):t._e()],1),r("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"}},[r("iframe",{attrs:{id:"mapPage",width:"100%",height:"100%",frameborder:"0",src:t.keyUrl}})])],1)}),[],!1,null,"21c3887c",null);e.default=p.exports},b5f7:function(t,e,r){"use strict";var n=r("715a");r.n(n).a}}]);