chunk-c0e9a2e8.775c781f.js 17 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-c0e9a2e8"],{2151:function(t,e,n){"use strict";var r=n("3a96");n.n(r).a},"3a96":function(t,e,n){},"524f":function(t,e,n){"use strict";var r={components:{app:function(){return n.e("chunk-2bac526f").then(n.bind(null,"739f"))},routine:function(){return n.e("chunk-29a9f618").then(n.bind(null,"23b3"))},wechat:function(){return n.e("chunk-da115572").then(n.bind(null,"1402"))},work:function(){return n.e("chunk-319d0a2a").then(n.bind(null,"629a"))}}},u=n("2a95"),o=n("e069"),c=n("b6bd"),a=n("2f62");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 s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var f={name:"fromSubmit",mixins:[r],components:{useComponent:function(){return n.e("chunk-1acf8a58").then(n.bind(null,"05f7"))}},provide:function(){return{type:this.type,guideButton:this.guideButton}},props:{rules:{type:Array,default:function(){return[]}},validate:{type:Object,default:function(){return{}}},butName:{type:String,default:"提交"},field:{type:String,default:function(){return""+Math.random()}},url:{type:String,default:""},method:{type:String,default:"POST"},buttonHide:{type:Boolean,default:!0},on:{type:Object,default:function(){return{}}}},data:function(){return{submitValue:{},disabled:!1,loading:!1,errorsValidate:[],guideTitle:this.$parent.title,type:this.$parent.typeMole||this.$parent.type,guideShow:!1}},computed:{guideButton:function(){return["app","wechat","work"].includes(this.type)}},watch:{rules:{handler:function(){this.submitValue=this.getRuleValue(this.rules)},deep:!0}},mounted:function(){var t=this;this.submitValue=this.getRuleValue(this.rules),this.setCopyrightShow({value:!1}),this.bus.$on("settingGuideShow",(function(){t.guideShow=!0})),this.$once("hook:beforeDestroy",(function(){t.setCopyrightShow({value:!0}),t.bus.$off("settingGuideShow")}))},destroyed:function(){this.setCopyrightShow({value:!0})},methods:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(n,!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},Object(a.d)("admin/layout",["setCopyrightShow","isMobile","menuCollapse"]),{changeValue:function(t){this.submitValue[t.field]=t.value,this.rules=this.setRuleValue(this.rules,t.field,t.value)},setRuleValue:function(t,e,n){var r=this;return t.map((function(t){void 0!==t.field&&t.field===e&&(t.value=n),"object"===i(t.options)&&t.options.map((function(t){void 0!==t.componentsModel&&(t.componentsModel=r.setRuleValue(t.componentsModel,e,n))})),"object"===i(t.control)&&t.control.map((function(t){void 0!==t.componentsModel&&(t.componentsModel=r.setRuleValue(t.componentsModel,e,n))})),"object"===i(t.componentsModel)&&(t.componentsModel=r.setRuleValue(t.componentsModel,e,n))})),t},getRuleValue:function(t){var e=this,n={};return t.map((function(t){if(void 0!==t.field&&(n[t.field]=t.value),"object"===i(t.options)&&t.options.map((function(t){if(void 0!==t.componentsModel){var r=e.getRuleValue(t.componentsModel);Object.assign(n,r)}})),"object"===i(t.control)&&t.control.map((function(t){if(void 0!==t.componentsModel){var r=e.getRuleValue(t.componentsModel);Object.assign(n,r)}})),"object"===i(t.componentsModel)){var r=e.getRuleValue(t.componentsModel);Object.assign(n,r)}})),n},submit:function(){var t=this;new u.a(this.validate).validate(this.submitValue,(function(e){if(void 0===e||null===e)if(t.errorsValidate=[],t.disabled=!0,t.loading=!0,t.on.save)try{t.on.save(t.submitValue,(function(){return t.disabled=!1}),(function(){return t.loading=!1}))}catch(t){o.Message.error(err||"提交失败")}else c.a[t.method.toLowerCase()](t.url,t.submitValue).then((function(e){o.Message.success(e.msg||"提交成功"),t.on.submit&&t.on.submit(e)})).catch((function(t){o.Message.error(t.msg||"提交失败")})).finally((function(){t.disabled=!1,t.loading=!1}));else t.errorsValidate=e,o.Message.error(e[0].message)}))}})},l=(n("2151"),n("2877")),m=Object(l.a)(f,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-submit"},[n("Form",{ref:"formSubmit"+t.field,attrs:{model:t.submitValue,"label-width":124}},[n("use-component",{attrs:{errorsValidate:t.errorsValidate,validate:t.validate,rules:t.rules},on:{changeValue:t.changeValue}}),t._t("content"),n("div",{staticStyle:{height:"2px"}}),t.buttonHide?n("Card",{staticClass:"fixed-card",style:{left:t.menuCollapse?t.isMobile?"0":"80px":"200px"},attrs:{bordered:!1,"dis-hover":""}},[n("FormItem",[n("Button",{staticClass:"btn-add",attrs:{type:"primary",disabled:t.disabled,loading:t.loading},on:{click:t.submit}},[t._v(t._s(t.butName))])],1)],1):t._e(),t._t("button")],2),t.guideButton?n("Drawer",{attrs:{title:t.guideTitle+"引导",width:"800"},model:{value:t.guideShow,callback:function(e){t.guideShow=e},expression:"guideShow"}},[n(t.type,{tag:"component"})],1):t._e()],1)}),[],!1,null,"393fd6ec",null);e.a=m.exports},"90e7":function(t,e,n){"use strict";n.d(e,"x",(function(){return u})),n.d(e,"k",(function(){return o})),n.d(e,"Jb",(function(){return c})),n.d(e,"Ib",(function(){return a})),n.d(e,"j",(function(){return i})),n.d(e,"db",(function(){return s})),n.d(e,"kb",(function(){return d})),n.d(e,"gb",(function(){return f})),n.d(e,"hb",(function(){return l})),n.d(e,"d",(function(){return m})),n.d(e,"eb",(function(){return h})),n.d(e,"Nb",(function(){return p})),n.d(e,"ib",(function(){return b})),n.d(e,"p",(function(){return g})),n.d(e,"o",(function(){return O})),n.d(e,"c",(function(){return j})),n.d(e,"U",(function(){return y})),n.d(e,"mb",(function(){return v})),n.d(e,"T",(function(){return w})),n.d(e,"nb",(function(){return _})),n.d(e,"xb",(function(){return k})),n.d(e,"K",(function(){return S})),n.d(e,"wb",(function(){return V})),n.d(e,"s",(function(){return M})),n.d(e,"q",(function(){return x})),n.d(e,"r",(function(){return P})),n.d(e,"t",(function(){return T})),n.d(e,"u",(function(){return C})),n.d(e,"X",(function(){return E})),n.d(e,"Y",(function(){return G})),n.d(e,"V",(function(){return R})),n.d(e,"W",(function(){return B})),n.d(e,"M",(function(){return D})),n.d(e,"E",(function(){return $})),n.d(e,"I",(function(){return F})),n.d(e,"H",(function(){return U})),n.d(e,"z",(function(){return H})),n.d(e,"J",(function(){return J})),n.d(e,"B",(function(){return N})),n.d(e,"G",(function(){return A})),n.d(e,"A",(function(){return I})),n.d(e,"y",(function(){return L})),n.d(e,"L",(function(){return q})),n.d(e,"i",(function(){return z})),n.d(e,"e",(function(){return K})),n.d(e,"f",(function(){return Q})),n.d(e,"Kb",(function(){return W})),n.d(e,"Lb",(function(){return X})),n.d(e,"Mb",(function(){return Y})),n.d(e,"lb",(function(){return Z})),n.d(e,"yb",(function(){return tt})),n.d(e,"N",(function(){return et})),n.d(e,"Ab",(function(){return nt})),n.d(e,"zb",(function(){return rt})),n.d(e,"Bb",(function(){return ut})),n.d(e,"Cb",(function(){return ot})),n.d(e,"Db",(function(){return ct})),n.d(e,"Eb",(function(){return at})),n.d(e,"Ob",(function(){return it})),n.d(e,"Pb",(function(){return st})),n.d(e,"O",(function(){return dt})),n.d(e,"g",(function(){return ft})),n.d(e,"Qb",(function(){return lt})),n.d(e,"ob",(function(){return mt})),n.d(e,"pb",(function(){return ht})),n.d(e,"F",(function(){return pt})),n.d(e,"C",(function(){return bt})),n.d(e,"jb",(function(){return gt})),n.d(e,"qb",(function(){return Ot})),n.d(e,"rb",(function(){return jt})),n.d(e,"sb",(function(){return yt})),n.d(e,"D",(function(){return vt})),n.d(e,"fb",(function(){return wt})),n.d(e,"cb",(function(){return _t})),n.d(e,"P",(function(){return kt})),n.d(e,"S",(function(){return St})),n.d(e,"Q",(function(){return Vt})),n.d(e,"R",(function(){return Mt})),n.d(e,"h",(function(){return xt})),n.d(e,"w",(function(){return Pt})),n.d(e,"v",(function(){return Tt})),n.d(e,"Z",(function(){return Ct})),n.d(e,"tb",(function(){return Et})),n.d(e,"vb",(function(){return Gt})),n.d(e,"b",(function(){return Rt})),n.d(e,"ub",(function(){return Bt})),n.d(e,"n",(function(){return Dt})),n.d(e,"a",(function(){return $t})),n.d(e,"m",(function(){return Ft})),n.d(e,"l",(function(){return Ut})),n.d(e,"Fb",(function(){return Ht})),n.d(e,"Gb",(function(){return Jt})),n.d(e,"Hb",(function(){return Nt})),n.d(e,"ab",(function(){return At})),n.d(e,"bb",(function(){return It}));var r=n("b6bd");function u(t){return Object(r.a)({url:"setting/config/header_basics",method:"get",params:t})}function o(t,e){return Object(r.a)({url:e,method:"get",params:t})}function c(t){return Object(r.a)({url:t.url,method:"get",params:t.data})}function a(){return Object(r.a)({url:"notify/sms/temp/create",method:"get"})}function i(t){return Object(r.a)({url:"serve/login",method:"post",data:t})}function s(){return Object(r.a)({url:"serve/info",method:"get"})}function d(t){return Object(r.a)({url:"serve/sms/open",method:"get",params:t})}function f(t){return Object(r.a)({url:"serve/opn_express",method:"post",data:t})}function l(t){return Object(r.a)({url:"serve/open",method:"get",params:t})}function m(t){return Object(r.a)({url:"serve/checkCode",method:"post",data:t})}function h(t){return Object(r.a)({url:"serve/modify",method:"post",data:t})}function p(t){return Object(r.a)({url:"serve/update_phone",method:"post",data:t})}function b(t){return Object(r.a)({url:"serve/record",method:"get",params:t})}function g(t){return Object(r.a)({url:"serve/export_temp",method:"get",params:t})}function O(){return Object(r.a)({url:"serve/export_all",method:"get"})}function j(t){return Object(r.a)({url:"serve/captcha",method:"post",data:t})}function y(t){return Object(r.a)({url:"serve/register",method:"post",data:t})}function v(t){return Object(r.a)({url:"serve/meal_list",method:"get",params:t})}function w(t){return Object(r.a)({url:"serve/pay_meal",method:"post",data:t})}function _(t){return Object(r.a)({url:"notify/sms/record",method:"get",params:t})}function k(){return Object(r.a)({url:"merchant/store",method:"GET"})}function S(){return Object(r.a)({url:"merchant/store/address",method:"GET"})}function V(t){return Object(r.a)({url:"merchant/store/".concat(t.id),method:"POST",data:t})}function M(t){return Object(r.a)({url:"freight/express",method:"get",params:t})}function x(){return Object(r.a)({url:"/freight/express/create",method:"get"})}function P(t){return Object(r.a)({url:"freight/express/".concat(t,"/edit"),method:"get"})}function T(t){return Object(r.a)({url:"freight/express/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function C(){return Object(r.a)({url:"freight/express/sync_express",method:"get"})}function E(t){return Object(r.a)({url:"setting/role",method:"GET",params:t})}function G(t){return Object(r.a)({url:"setting/role/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function R(t){return Object(r.a)({url:"setting/role/".concat(t.id),method:"post",data:t})}function B(t){return Object(r.a)({url:"setting/role/".concat(t,"/edit"),method:"get"})}function D(){return Object(r.a)({url:"setting/role/create",method:"get"})}function $(t){return Object(r.a)({url:"app/wechat/kefu",method:"get",params:t})}function F(t){return Object(r.a)({url:"app/wechat/kefu/create",method:"get",params:t})}function U(){return Object(r.a)({url:"app/wechat/kefu/add",method:"get"})}function H(t){return Object(r.a)({url:"app/wechat/kefu",method:"post",data:t})}function J(t){return Object(r.a)({url:"app/wechat/kefu/set_status/".concat(t.id,"/").concat(t.account_status),method:"PUT"})}function N(t){return Object(r.a)({url:"app/wechat/kefu/".concat(t,"/edit"),method:"GET"})}function A(t,e){return Object(r.a)({url:"app/wechat/kefu/record/".concat(e),method:"GET",params:t})}function I(t){return Object(r.a)({url:"app/wechat/kefu/chat_list",method:"GET",params:t})}function L(){return Object(r.a)({url:"notify/sms/is_login",method:"GET"})}function q(){return Object(r.a)({url:"notify/sms/logout",method:"GET"})}function z(t){return Object(r.a)({url:"setting/city/list/".concat(t),method:"get"})}function K(t){return Object(r.a)({url:"setting/city/add/".concat(t),method:"get"})}function Q(t){return Object(r.a)({url:"setting/city/".concat(t,"/edit"),method:"get"})}function W(t){return Object(r.a)({url:"setting/shipping_templates/list",method:"get",params:t})}function X(t){return Object(r.a)({url:"setting/shipping_templates/city_list",method:"get"})}function Y(t,e){return Object(r.a)({url:"setting/shipping_templates/save/".concat(t),method:"post",data:e})}function Z(t){return Object(r.a)({url:"setting/shipping_templates/".concat(t,"/edit"),method:"get"})}function tt(){return Object(r.a)({url:"merchant/store/get_header",method:"get"})}function et(t){return Object(r.a)({url:"merchant/store",method:"get",params:t})}function nt(t,e){return Object(r.a)({url:"merchant/store/set_show/".concat(t,"/").concat(e),method:"put"})}function rt(t){return Object(r.a)({url:"merchant/store/get_info/".concat(t),method:"get"})}function ut(t){return Object(r.a)({url:"merchant/store_staff",method:"get",params:t})}function ot(){return Object(r.a)({url:"merchant/store_staff/create",method:"get"})}function ct(t){return Object(r.a)({url:"merchant/store_staff/".concat(t,"/edit"),method:"get"})}function at(t,e){return Object(r.a)({url:"merchant/store_staff/set_show/".concat(t,"/").concat(e),method:"put"})}function it(t){return Object(r.a)({url:"merchant/verify_order",method:"get",params:t})}function st(t){return Object(r.a)({url:"merchant/verify/spread_info/".concat(t),method:"get"})}function dt(){return Object(r.a)({url:"merchant/store_list",method:"get"})}function ft(){return Object(r.a)({url:"setting/city/clean_cache",method:"get"})}function lt(t){return Object(r.a)({url:"app/wechat/speechcraft",method:"get",params:t})}function mt(t){return Object(r.a)({url:"app/wechat/speechcraft/create",method:"get",params:t})}function ht(t){return Object(r.a)({url:"app/wechat/speechcraft/".concat(t,"/edit"),method:"get"})}function pt(t){return Object(r.a)({url:"app/wechat/kefu/login/".concat(t),method:"get"})}function bt(t){return Object(r.a)({url:"app/feedback",method:"get",params:t})}function gt(t){return Object(r.a)({url:"serve/sms/sign",method:"PUT",data:t})}function Ot(){return Object(r.a)({url:"app/wechat/speechcraftcate",method:"get"})}function jt(){return Object(r.a)({url:"app/wechat/speechcraftcate/create",method:"get"})}function yt(t){return Object(r.a)({url:"app/wechat/speechcraftcate/".concat(t,"/edit"),method:"get"})}function vt(t){return Object(r.a)({url:"app/feedback/".concat(t,"/edit"),method:"get"})}function wt(){return Object(r.a)({url:"serve/open",method:"get"})}function _t(){return Object(r.a)({url:"serve/dump_open",method:"get"})}function kt(t){return Object(r.a)({url:"setting/system_out/index",method:"get",params:t})}function St(t,e){return Object(r.a)({url:"setting/system_out/set_status/".concat(t,"/").concat(e),method:"put"})}function Vt(t){return Object(r.a)({url:"setting/system_out/save",method:"post",params:t})}function Mt(t,e){return Object(r.a)({url:"setting/system_out/update/".concat(t),method:"post",params:e})}function xt(t){return Object(r.a)({url:"city",method:"get",params:t})}function Pt(t){return Object(r.a)({url:"setting/config/edit_new_build/"+t,method:"get"})}function Tt(){return Object(r.a)({url:"/setting/config/image",method:"get"})}function Ct(t){return Object(r.a)({url:"setting/config/save_basics",method:"post",data:t})}function Et(t){return Object(r.a)({url:"/setting/config/storage",method:"get",params:t})}function Gt(t){return Object(r.a)({url:"/setting/config/storage/synch/".concat(t),method:"put"})}function Rt(t){return Object(r.a)({url:"/setting/config/storage/create/".concat(t),method:"get"})}function Bt(t){return Object(r.a)({url:"/setting/config/storage/status/".concat(t),method:"put"})}function Dt(t){return Object(r.a)({url:"/setting/config/storage/domain/".concat(t),method:"get"})}function $t(t){return Object(r.a)({url:"/setting/config/storage/form/".concat(t),method:"get"})}function Ft(t){return Object(r.a)({url:"/order/delivery_order/list",method:"get",params:t})}function Ut(t){return Object(r.a)({url:"/order/delivery_order/cancelForm/".concat(t),method:"get"})}function Ht(t,e){return Object(r.a)({url:"/system/form/save/".concat(t),method:"post",data:e})}function Jt(t,e){return Object(r.a)({url:"/system/form/info/".concat(t),method:"get",params:e})}function Nt(t){return Object(r.a)({url:"/system/form/index",method:"get",params:t})}function At(t){return Object(r.a)({url:"setting/config/storage/save_type/".concat(t),method:"get"})}function It(t){return Object(r.a)({url:"/file/scan/upload",method:"post",headers:{"content-type":"multipart/form-data;"},data:t})}}}]);