CRMEB/crmeb/public/admin/js/chunk-7b4a449e.5a53ea7c.js
2022-02-16 17:11:48 +08:00

1 line
20 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7b4a449e"],{"0ecc":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"i-layout-page-header header_top"},[n("div",{staticClass:"i-layout-page-header fl_header"},[n("router-link",{attrs:{to:{path:"/admin/setting/sms/sms_config/index"}}},[n("Button",{attrs:{icon:"ios-arrow-back",size:"small",type:"text"}},[t._v("返回")])],1),n("Divider",{attrs:{type:"vertical"}}),n("span",{staticClass:"ivu-page-header-title mr20",staticStyle:{padding:"0"}},[t._v(t._s(t.$route.meta.title))])],1)]),n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[n("Form",{ref:"levelFrom",attrs:{model:t.levelFrom,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},["/admin/setting/sms/sms_template_apply/index"===t.$route.path?n("Row",{attrs:{type:"flex",gutter:24}},[n("Col",{attrs:{span:"24"}},[n("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:t.add}},[t._v("申请模板")])],1)],1):n("Row",{attrs:{type:"flex",gutter:24}},[n("Col",t._b({},"Col",t.grid,!1),[n("FormItem",{attrs:{label:"是否拥有:"}},[n("Select",{attrs:{placeholder:"请选择",clearable:""},on:{"on-change":t.userSearchs},model:{value:t.levelFrom.is_have,callback:function(e){t.$set(t.levelFrom,"is_have",e)},expression:"levelFrom.is_have"}},[n("Option",{attrs:{value:"1"}},[t._v("有")]),n("Option",{attrs:{value:"0"}},[t._v("没有")])],1)],1)],1)],1)],1),n("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.columns1,data:t.levelLists,loading:t.loading,"no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"status",fn:function(e){var r=e.row;e.index;return[n("span",{directives:[{name:"show",rawName:"v-show",value:1===r.status,expression:"row.status === 1"}]},[t._v("可用")]),n("span",{directives:[{name:"show",rawName:"v-show",value:0===r.status,expression:"row.status === 0"}]},[t._v("不可用")])]}},{key:"is_have",fn:function(e){var r=e.row;e.index;return"/admin/setting/sms/sms_template_apply/commons"===t.$route.path?[n("span",{directives:[{name:"show",rawName:"v-show",value:1===r.status,expression:"row.status === 1"}]},[t._v("有")]),n("span",{directives:[{name:"show",rawName:"v-show",value:0===r.status,expression:"row.status === 0"}]},[t._v("没有")])]:void 0}}],null,!0)}),n("div",{staticClass:"acea-row row-right page"},[n("Page",{attrs:{total:t.total,current:t.levelFrom.page,"show-elevator":"","show-total":"","page-size":t.levelFrom.limit},on:{"on-change":t.pageChange}})],1)],1),n("edit-from",{ref:"edits",attrs:{FromData:t.FromData},on:{submitFail:t.submitFail}})],1)},o=[],a=(n("8e6e"),n("ac6a"),n("456d"),n("96cf"),n("3b8d")),c=n("bd86"),u=n("2f62"),i=n("90e7"),s=n("31b4");function d(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 l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){Object(c["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var f={name:"smsTemplateApply",components:{editFrom:s["a"]},data:function(){return{grid:{xl:7,lg:7,md:12,sm:24,xs:24},loading:!1,columns1:[],levelFrom:{type:"",status:"",title:"",page:1,limit:20},levelFrom2:{is_have:"",page:1,limit:20},total:0,FromData:null,delfromData:{},levelLists:[]}},watch:{$route:function(t,e){this.getList()}},created:function(){this.onIsLogin()},mounted:function(){var t=this;Object(i["U"])().then((function(e){1!=e.data.sms.open&&t.$router.push("/admin/setting/sms/sms_config/index?url="+t.$route.path)}))},computed:l(l({},Object(u["e"])("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:75},labelPosition:function(){return this.isMobile?"top":"right"}}),methods:{onIsLogin:function(){var t=this;this.spinShow=!0,Object(i["u"])().then(function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=n.data,r.status?t.getList():(t.$Message.warning("请先登录"),t.$router.push("/admin/setting/sms/sms_config/index?url="+t.$route.path));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},getList:function(){var t=this;this.loading=!0,this.levelFrom.status=this.levelFrom.status||"",this.levelFrom.is_have=this.levelFrom.is_have||"";var e={data:"/admin/setting/sms/sms_template_apply/index"===this.$route.path?this.levelFrom:this.levelFrom2,url:"/admin/setting/sms/sms_template_apply/index"===this.$route.path?"serve/sms/temps":"notify/sms/public_temp"},n=[{title:"ID",key:"id",sortable:!0,width:80},{title:"模板ID",key:"templateid",minWidth:110},{title:"模板名称",key:"title",minWidth:150},{title:"模板内容",key:"content",minWidth:550},{title:"模板类型",key:"type",minWidth:100},{title:"模板状态",slot:"status",minWidth:100}];"/admin/setting/sms/sms_template_apply/commons"===this.$route.path?this.columns1=Object.assign([],n).slice(0,6).concat([{title:"是否拥有",slot:"is_have",minWidth:110}]):this.columns1=n,Object(i["zb"])(e).then(function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=n.data,t.levelLists=r.data,t.total=r.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},pageChange:function(t){this.levelFrom.page=t,this.getList()},add:function(){var t=this;Object(i["yb"])().then(function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.FromData=n.data,t.$refs.edits.modals=!0;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},userSearchs:function(){this.levelFrom.page=1,this.getList()},submitFail:function(){this.getList()}}},m=f,p=(n("d0bb"),n("2877")),h=Object(p["a"])(m,r,o,!1,null,"38daf2ef",null);e["default"]=h.exports},"31b4":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.FromData?n("div",[n("Modal",{attrs:{scrollable:"","footer-hide":"",closable:"",title:t.FromData.title,"z-index":1,width:"700"},on:{"on-cancel":t.cancel},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[["/marketing/coupon/save.html"===t.FromData.action?n("div",{staticClass:"radio acea-row row-middle"},[n("div",{staticClass:"name ivu-form-item-content"},[t._v("优惠券类型")]),n("Radio-group",{on:{"on-change":t.couponsType},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[n("Radio",{attrs:{label:0}},[t._v("通用券")]),n("Radio",{attrs:{label:1}},[t._v("品类券")]),n("Radio",{attrs:{label:2}},[t._v("商品券")])],1)],1):t._e()],n("form-create",{ref:"fc",staticClass:"formBox",attrs:{option:t.config,rule:Array.from(t.FromData.rules),handleIcon:"false"},on:{"on-submit":t.onSubmit}})],2)],1):t._e()},o=[],a=(n("8e6e"),n("ac6a"),n("456d"),n("bd86")),c=n("9860"),u=n.n(c),i=n("6b6c"),s=n("2f62");function d(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 l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){Object(a["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var f={name:"edit",components:{formCreate:u.a.$form()},computed:l({},Object(s["e"])("userLevel",["taskId","levelId"])),props:{FromData:{type:Object,default:null}},data:function(){return{modals:!1,type:0,config:{global:{upload:{props:{onSuccess:function(t,e){200===t.status?e.url=t.data.src:this.Message.error(t.msg)}}}}}}},methods:{couponsType:function(){this.$parent.addType(this.type)},onSubmit:function(t){var e=this,n={};n=t,Object(i["a"])({url:this.FromData.action,method:this.FromData.method,data:n}).then((function(t){e.$parent.getList(),e.$Message.success(t.msg),e.modals=!1,setTimeout((function(){e.$emit("submitFail")}),1e3)})).catch((function(t){e.$Message.error(t.msg)}))},cancel:function(){this.type=0}}},m=f,p=(n("a116"),n("2877")),h=Object(p["a"])(m,r,o,!1,null,"6b606342",null);e["a"]=h.exports},"34e3":function(t,e,n){},"41d6":function(t,e,n){},"90e7":function(t,e,n){"use strict";n.d(e,"t",(function(){return o})),n.d(e,"j",(function(){return a})),n.d(e,"zb",(function(){return c})),n.d(e,"yb",(function(){return u})),n.d(e,"i",(function(){return i})),n.d(e,"V",(function(){return s})),n.d(e,"Db",(function(){return d})),n.d(e,"c",(function(){return l})),n.d(e,"d",(function(){return f})),n.d(e,"O",(function(){return m})),n.d(e,"U",(function(){return p})),n.d(e,"ab",(function(){return h})),n.d(e,"B",(function(){return b})),n.d(e,"Mb",(function(){return g})),n.d(e,"gb",(function(){return O})),n.d(e,"fb",(function(){return v})),n.d(e,"y",(function(){return j})),n.d(e,"z",(function(){return y})),n.d(e,"l",(function(){return _})),n.d(e,"W",(function(){return w})),n.d(e,"m",(function(){return x})),n.d(e,"Z",(function(){return F})),n.d(e,"Y",(function(){return k})),n.d(e,"X",(function(){return D})),n.d(e,"bb",(function(){return P})),n.d(e,"db",(function(){return $})),n.d(e,"L",(function(){return T})),n.d(e,"eb",(function(){return C})),n.d(e,"qb",(function(){return E})),n.d(e,"G",(function(){return L})),n.d(e,"pb",(function(){return S})),n.d(e,"p",(function(){return M})),n.d(e,"n",(function(){return R})),n.d(e,"o",(function(){return G})),n.d(e,"q",(function(){return I})),n.d(e,"r",(function(){return q})),n.d(e,"hb",(function(){return W})),n.d(e,"Lb",(function(){return U})),n.d(e,"ib",(function(){return z})),n.d(e,"Gb",(function(){return B})),n.d(e,"jb",(function(){return N})),n.d(e,"R",(function(){return A})),n.d(e,"Ib",(function(){return J})),n.d(e,"S",(function(){return H})),n.d(e,"P",(function(){return K})),n.d(e,"Q",(function(){return Q})),n.d(e,"I",(function(){return V})),n.d(e,"A",(function(){return X})),n.d(e,"E",(function(){return Y})),n.d(e,"D",(function(){return Z})),n.d(e,"v",(function(){return tt})),n.d(e,"F",(function(){return et})),n.d(e,"Kb",(function(){return nt})),n.d(e,"s",(function(){return rt})),n.d(e,"Hb",(function(){return ot})),n.d(e,"Jb",(function(){return at})),n.d(e,"x",(function(){return ct})),n.d(e,"C",(function(){return ut})),n.d(e,"w",(function(){return it})),n.d(e,"u",(function(){return st})),n.d(e,"H",(function(){return dt})),n.d(e,"h",(function(){return lt})),n.d(e,"e",(function(){return ft})),n.d(e,"f",(function(){return mt})),n.d(e,"Ab",(function(){return pt})),n.d(e,"Bb",(function(){return ht})),n.d(e,"Cb",(function(){return bt})),n.d(e,"cb",(function(){return gt})),n.d(e,"rb",(function(){return Ot})),n.d(e,"J",(function(){return vt})),n.d(e,"tb",(function(){return jt})),n.d(e,"sb",(function(){return yt})),n.d(e,"ub",(function(){return _t})),n.d(e,"vb",(function(){return wt})),n.d(e,"wb",(function(){return xt})),n.d(e,"xb",(function(){return Ft})),n.d(e,"Eb",(function(){return kt})),n.d(e,"Fb",(function(){return Dt})),n.d(e,"K",(function(){return Pt})),n.d(e,"g",(function(){return $t})),n.d(e,"kb",(function(){return Tt})),n.d(e,"nb",(function(){return Ct})),n.d(e,"a",(function(){return Et})),n.d(e,"b",(function(){return Lt})),n.d(e,"lb",(function(){return St})),n.d(e,"ob",(function(){return Mt})),n.d(e,"mb",(function(){return Rt})),n.d(e,"k",(function(){return Gt})),n.d(e,"M",(function(){return It})),n.d(e,"N",(function(){return qt})),n.d(e,"T",(function(){return Wt}));var r=n("6b6c");function o(t){return Object(r["a"])({url:"setting/config/header_basics",method:"get",params:t})}function a(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 u(){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(t){return Object(r["a"])({url:"serve/modify",method:"post",data:t})}function d(t){return Object(r["a"])({url:"serve/update_phone",method:"post",data:t})}function l(t){return Object(r["a"])({url:"serve/captcha",method:"post",data:t})}function f(t){return Object(r["a"])({url:"serve/checkCode",method:"post",data:t})}function m(t){return Object(r["a"])({url:"serve/register",method:"post",data:t})}function p(){return Object(r["a"])({url:"serve/info",method:"get"})}function h(t){return Object(r["a"])({url:"serve/sms/sign",method:"PUT",data:t})}function b(t){return Object(r["a"])({url:"app/wechat/kefu/login/".concat(t),method:"get"})}function g(t){return Object(r["a"])({url:"app/wechat/speechcraft",method:"get",params:t})}function O(t){return Object(r["a"])({url:"app/wechat/speechcraft/".concat(t,"/edit"),method:"get"})}function v(){return Object(r["a"])({url:"app/wechat/speechcraft/create",method:"get"})}function j(t){return Object(r["a"])({url:"app/feedback",method:"get",params:t})}function y(t){return Object(r["a"])({url:"app/feedback/".concat(t,"/edit"),method:"get"})}function _(){return Object(r["a"])({url:"serve/export_all",method:"get"})}function w(){return Object(r["a"])({url:"serve/open",method:"get"})}function x(t){return Object(r["a"])({url:"serve/export_temp",method:"get",params:t})}function F(t){return Object(r["a"])({url:"serve/record",method:"get",params:t})}function k(t){return Object(r["a"])({url:"serve/open",method:"get",params:t})}function D(t){return Object(r["a"])({url:"serve/opn_express",method:"post",data:t})}function P(t){return Object(r["a"])({url:"serve/sms/open",method:"get",params:t})}function $(t){return Object(r["a"])({url:"serve/meal_list",method:"get",params:t})}function T(t){return Object(r["a"])({url:"serve/pay_meal",method:"post",data:t})}function C(t){return Object(r["a"])({url:"notify/sms/record",method:"get",params:t})}function E(){return Object(r["a"])({url:"merchant/store",method:"GET"})}function L(){return Object(r["a"])({url:"merchant/store/address",method:"GET"})}function S(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 R(){return Object(r["a"])({url:"/freight/express/create",method:"get"})}function G(t){return Object(r["a"])({url:"freight/express/".concat(t,"/edit"),method:"get"})}function I(t){return Object(r["a"])({url:"freight/express/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function q(){return Object(r["a"])({url:"freight/express/sync_express",method:"get"})}function W(){return Object(r["a"])({url:"app/wechat/speechcraftcate",method:"get"})}function U(){return Object(r["a"])({url:"app/wechat_qrcode/cate/list",method:"get"})}function z(){return Object(r["a"])({url:"app/wechat/speechcraftcate/create",method:"get"})}function B(t){return Object(r["a"])({url:"app/wechat_qrcode/cate/create/".concat(t),method:"get"})}function N(t){return Object(r["a"])({url:"app/wechat/speechcraftcate/".concat(t,"/edit"),method:"get"})}function A(t){return Object(r["a"])({url:"setting/role",method:"GET",params:t})}function J(t){return Object(r["a"])({url:"app/wechat_qrcode/list",method:"GET",params:t})}function H(t){return Object(r["a"])({url:"setting/role/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function K(t){return Object(r["a"])({url:"setting/role/".concat(t.id),method:"post",data:t})}function Q(t){return Object(r["a"])({url:"setting/role/".concat(t,"/edit"),method:"get"})}function V(){return Object(r["a"])({url:"setting/role/create",method:"get"})}function X(t){return Object(r["a"])({url:"app/wechat/kefu",method:"get",params:t})}function Y(t){return Object(r["a"])({url:"app/wechat/kefu/create",method:"get",params:t})}function Z(){return Object(r["a"])({url:"app/wechat/kefu/add",method:"get"})}function tt(t){return Object(r["a"])({url:"app/wechat/kefu",method:"post",data:t})}function et(t){return Object(r["a"])({url:"app/wechat/kefu/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function nt(t){return Object(r["a"])({url:"app/wechat_qrcode/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function rt(t){return Object(r["a"])({url:"app/wechat_qrcode/user_list/".concat(t.id),method:"get",params:t})}function ot(t){return Object(r["a"])({url:"app/wechat_qrcode/info/".concat(t),method:"get"})}function at(t,e){return Object(r["a"])({url:"app/wechat_qrcode/save/".concat(t),method:"post",data:e})}function ct(t){return Object(r["a"])({url:"app/wechat/kefu/".concat(t,"/edit"),method:"GET"})}function ut(t,e){return Object(r["a"])({url:"app/wechat/kefu/record/".concat(e),method:"GET",params:t})}function it(t){return Object(r["a"])({url:"app/wechat/kefu/chat_list",method:"GET",params:t})}function st(){return Object(r["a"])({url:"notify/sms/is_login",method:"GET"})}function dt(){return Object(r["a"])({url:"notify/sms/logout",method:"GET"})}function lt(t){return Object(r["a"])({url:"setting/city/list/".concat(t),method:"get"})}function ft(t){return Object(r["a"])({url:"setting/city/add/".concat(t),method:"get"})}function mt(t){return Object(r["a"])({url:"setting/city/".concat(t,"/edit"),method:"get"})}function pt(t){return Object(r["a"])({url:"setting/shipping_templates/list",method:"get",params:t})}function ht(t){return Object(r["a"])({url:"setting/shipping_templates/city_list",method:"get"})}function bt(t,e){return Object(r["a"])({url:"setting/shipping_templates/save/".concat(t),method:"post",data:e})}function gt(t){return Object(r["a"])({url:"setting/shipping_templates/".concat(t,"/edit"),method:"get"})}function Ot(){return Object(r["a"])({url:"merchant/store/get_header",method:"get"})}function vt(t){return Object(r["a"])({url:"merchant/store",method:"get",params:t})}function jt(t,e){return Object(r["a"])({url:"merchant/store/set_show/".concat(t,"/").concat(e),method:"put"})}function yt(t){return Object(r["a"])({url:"merchant/store/get_info/".concat(t),method:"get"})}function _t(t){return Object(r["a"])({url:"merchant/store_staff",method:"get",params:t})}function wt(){return Object(r["a"])({url:"merchant/store_staff/create",method:"get"})}function xt(t){return Object(r["a"])({url:"merchant/store_staff/".concat(t,"/edit"),method:"get"})}function Ft(t,e){return Object(r["a"])({url:"merchant/store_staff/set_show/".concat(t,"/").concat(e),method:"put"})}function kt(t){return Object(r["a"])({url:"merchant/verify_order",method:"get",params:t})}function Dt(t){return Object(r["a"])({url:"merchant/verify/spread_info/".concat(t),method:"get"})}function Pt(){return Object(r["a"])({url:"merchant/store_list",method:"get"})}function $t(){return Object(r["a"])({url:"setting/city/clean_cache",method:"get"})}function Tt(){return Object(r["a"])({url:"system/config/storage/config",method:"get"})}function Ct(t){return Object(r["a"])({url:"system/config/storage/config",method:"post",data:t})}function Et(t){return Object(r["a"])({url:"system/config/storage/form/".concat(t),method:"get"})}function Lt(t){return Object(r["a"])({url:"system/config/storage/create/".concat(t),method:"get"})}function St(t){return Object(r["a"])({url:"system/config/storage",method:"get",params:t})}function Mt(t){return Object(r["a"])({url:"system/config/storage/synch/".concat(t),method:"put"})}function Rt(t){return Object(r["a"])({url:"system/config/storage/status/".concat(t),method:"put"})}function Gt(t){return Object(r["a"])({url:"system/config/storage/domain/".concat(t),method:"get"})}function It(){return Object(r["a"])({url:"setting/config_list/31",method:"get"})}function qt(t){return Object(r["a"])({url:"setting/config/save_basics",method:"post",data:t})}function Wt(t){return Object(r["a"])({url:"system/config/storage/save_type/".concat(t),method:"get"})}},a116:function(t,e,n){"use strict";var r=n("34e3"),o=n.n(r);o.a},d0bb:function(t,e,n){"use strict";var r=n("41d6"),o=n.n(r);o.a}}]);