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.
 
 
 
 
 
crmeb_php/public/system/js/chunk-0fd307e9.09c134e1.js

1 lines
16 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0fd307e9"],{"19c4":function(t,e,n){"use strict";n("93ec")},"2f67":function(t,e,n){},"90e7":function(t,e,n){"use strict";n.d(e,"x",(function(){return i})),n.d(e,"H",(function(){return a})),n.d(e,"K",(function(){return o})),n.d(e,"I",(function(){return s})),n.d(e,"J",(function(){return c})),n.d(e,"e",(function(){return u})),n.d(e,"c",(function(){return l})),n.d(e,"i",(function(){return m})),n.d(e,"d",(function(){return f})),n.d(e,"h",(function(){return d})),n.d(e,"g",(function(){return p})),n.d(e,"f",(function(){return h})),n.d(e,"u",(function(){return g})),n.d(e,"L",(function(){return v})),n.d(e,"S",(function(){return b})),n.d(e,"w",(function(){return w})),n.d(e,"n",(function(){return _})),n.d(e,"D",(function(){return y})),n.d(e,"T",(function(){return I})),n.d(e,"P",(function(){return $})),n.d(e,"O",(function(){return F})),n.d(e,"N",(function(){return k})),n.d(e,"p",(function(){return x})),n.d(e,"q",(function(){return O})),n.d(e,"l",(function(){return j})),n.d(e,"Q",(function(){return C})),n.d(e,"m",(function(){return D})),n.d(e,"M",(function(){return S})),n.d(e,"s",(function(){return L})),n.d(e,"Z",(function(){return z})),n.d(e,"b",(function(){return N})),n.d(e,"j",(function(){return W})),n.d(e,"k",(function(){return E})),n.d(e,"Y",(function(){return M})),n.d(e,"o",(function(){return U})),n.d(e,"G",(function(){return T})),n.d(e,"F",(function(){return A})),n.d(e,"y",(function(){return q})),n.d(e,"A",(function(){return B})),n.d(e,"a",(function(){return J})),n.d(e,"B",(function(){return P})),n.d(e,"z",(function(){return R})),n.d(e,"C",(function(){return Q})),n.d(e,"U",(function(){return G})),n.d(e,"V",(function(){return H})),n.d(e,"t",(function(){return K})),n.d(e,"R",(function(){return V})),n.d(e,"v",(function(){return Y})),n.d(e,"r",(function(){return Z})),n.d(e,"E",(function(){return X}));var r=n("0c6d");function i(t){return r["a"].get("system/role/lst",t)}function a(){return r["a"].get("system/role/create/form")}function o(t){return r["a"].get("system/role/update/form/".concat(t))}function s(t){return r["a"].delete("system/role/delete/".concat(t))}function c(t,e){return r["a"].post("system/role/status/".concat(t),{status:e})}function u(t){return r["a"].get("system/admin/lst",t)}function l(){return r["a"].get("/system/admin/create/form")}function m(t){return r["a"].get("system/admin/update/form/".concat(t))}function f(t){return r["a"].delete("system/admin/delete/".concat(t))}function d(t,e){return r["a"].post("system/admin/status/".concat(t),{status:e})}function p(t){return r["a"].get("system/admin/password/form/".concat(t))}function h(t){return r["a"].get("system/admin/log",t)}function g(){return r["a"].get("serve/user/is_login")}function v(){return r["a"].get("serve/user/info")}function b(t){return r["a"].get("serve/mealList/".concat(t))}function w(){return r["a"].get("sms/logout")}function _(t){return r["a"].post("serve/login",t)}function y(t){return r["a"].get("serve/paymeal",t)}function I(t){return r["a"].get("sms/record",t)}function $(t){return r["a"].get("serve/record",t)}function F(t){return r["a"].get("serve/us_lst",t)}function k(t){return r["a"].post("serve/open",t)}function x(){return r["a"].get("serve/expr/lst")}function O(t){return r["a"].get("serve/expr/temps",t)}function j(t){return r["a"].get("serve/captcha/".concat(t))}function C(t){return r["a"].post("serve/change_sign",t)}function D(t){return r["a"].post("serve/captcha",t)}function S(t){return r["a"].post("serve/change_password",t)}function L(){return r["a"].get("serve/config")}function z(t){return r["a"].post("serve/config",t)}function N(){return r["a"].get("serve/meal/create/form")}function W(t){return r["a"].get("serve/meal/lst",t)}function E(t,e){return r["a"].post("serve/meal/status/".concat(t),e)}function M(t){return r["a"].get("serve/meal/update/".concat(t,"/form"))}function U(t){return r["a"].delete("serve/meal/detele/".concat(t))}function T(t){return r["a"].get("serve/paylst",t)}function A(t){return r["a"].get("serve/mer/paylst",t)}function q(t){return r["a"].get("serve/mer/lst",t)}function B(t){return r["a"].get("notice/config/lst",t)}function J(){return r["a"].get("notice/config/create/form")}function P(t){return r["a"].get("notice/config/update/".concat(t,"/form"))}function R(t){return r["a"].get("notice/config/change/".concat(t,"/form"))}function Q(t,e){return r["a"].post("notice/config/status/".concat(t),e)}function G(){return r["a"].get("wechat/template/min/sync")}function H(){return r["a"].get("wechat/template/sync")}function K(){return r["a"].get("change/color")}function V(t){return r["a"].post("change/color",t)}function Y(){return r["a"].get("agreement/keylst")}function Z(t){return r["a"].get("agreement/".concat(t))}function X(t,e){return r["a"].post("agreement/".concat(t),e)}},"93ec":function(t,e,n){},c62e:function(t,e,n){"use strict";n("2f67")},c95f2: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"}),t._v(" "),n("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[n("el-form",{ref:"levelFrom",attrs:{model:t.levelFrom,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},["/admin/sms/template"===t.$route.path?n("el-row",{attrs:{type:"flex",gutter:24}},[n("el-button",{staticClass:"ml20",attrs:{type:"primary"},on:{click:t.add}},[t._v("申请模板")]),t._v(" "),n("el-button",{staticClass:"ml20",on:{click:t.editSign}},[t._v("修改签名")])],1):n("el-row",{attrs:{type:"flex",gutter:24}},[n("el-col",t._b({},"el-col",t.grid,!1),[n("el-form-item",{attrs:{label:"是否拥有:"}},[n("el-select",{attrs:{placeholder:"请选择",clearable:""},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("el-option",{attrs:{value:"1"}},[t._v("有")]),t._v(" "),n("el-option",{attrs:{value:"0"}},[t._v("没有")])],1)],1)],1)],1)],1),t._v(" "),n("el-table",{ref:"table",staticClass:"mt25",attrs:{data:t.levelLists,loading:t.loading}},[n("el-table-column",{attrs:{prop:"id",label:"ID","min-width":"200"}}),t._v(" "),n("el-table-column",{attrs:{prop:"templateid",label:"模板ID","min-width":"90"}}),t._v(" "),n("el-table-column",{attrs:{prop:"title",label:"模板名称","min-width":"90"}}),t._v(" "),n("el-table-column",{attrs:{prop:"content",label:"模板内容","min-width":"70"}}),t._v(" "),n("el-table-column",{attrs:{prop:"type",label:"模板类型","min-width":"90"}}),t._v(" "),n("el-table-column",{attrs:{prop:"status",label:"模板状态","min-width":"70"}}),t._v(" "),n("el-table-column",{attrs:{slot:"is_have","min-width":"70"},slot:"is_have"},["/admin/setting/sms/sms_template_apply/commons"===t.$route.path?[n("span",{directives:[{name:"show",rawName:"v-show",value:1===t.row.status,expression:"row.status === 1"}]},[t._v("有")]),t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:0===t.row.status,expression:"row.status === 0"}]},[t._v("没有")])]:t._e()],2)],1),t._v(" "),n("div",{staticClass:"acea-row row-right page"},[n("el-pagination",{attrs:{total:t.total,current:t.levelFrom.page,"show-elevator":"","show-total":"","page-size":t.levelFrom.limit},on:{change:t.pageChange}})],1)],1),t._v(" "),n("edit-from",{ref:"edits",attrs:{FromData:t.FromData},on:{submitFail:t.submitFail}}),t._v(" "),t.modals?n("el-dialog",{staticClass:"order_box",attrs:{visible:t.modals,title:"短信账户签名修改","before-close":t.cancel("formInline")},on:{"update:visible":function(e){t.modals=e}}},[n("el-form",{ref:"formInline",attrs:{model:t.formInline,rules:t.ruleInline,"label-width":63},nativeOn:{submit:function(t){t.preventDefault()}}},[n("el-form-item",[n("el-input",{staticStyle:{width:"87%"},attrs:{disabled:"",prefix:"ios-person-outline",size:"large"},model:{value:t.accountInfo.account,callback:function(e){t.$set(t.accountInfo,"account",e)},expression:"accountInfo.account"}})],1),t._v(" "),n("el-form-item",{attrs:{prop:"phone"}},[n("el-input",{staticStyle:{width:"87%"},attrs:{prefix:"ios-call-outline",placeholder:"请输入您的手机号",size:"large",disabled:t.formInline.phone},model:{value:t.formInline.phone,callback:function(e){t.$set(t.formInline,"phone",e)},expression:"formInline.phone"}})],1),t._v(" "),n("el-form-item",[n("el-input",{staticStyle:{width:"87%"},attrs:{disabled:t.sign,prefix:"ios-document-outline",placeholder:"请输入短信签名,例如:CRMEB",size:"large"},model:{value:t.sign,callback:function(e){t.sign=e},expression:"sign"}})],1),t._v(" "),n("el-form-item",{attrs:{prop:"sign"}},[n("el-input",{staticStyle:{width:"87%"},attrs:{prefix:"ios-document-outline",placeholder:"请输入新的短信签名,例如:CRMEB",size:"large"},model:{value:t.formInline.sign,callback:function(e){t.$set(t.formInline,"sign",e)},expression:"formInline.sign"}})],1),t._v(" "),n("el-form-item",{attrs:{prop:"code"}},[n("div",{staticClass:"code acea-row row-middle",staticStyle:{width:"87%"}},[n("el-input",{staticStyle:{width:"74%"},attrs:{type:"text",prefix:"ios-keypad-outline",placeholder:"验证码",size:"large"},model:{value:t.formInline.code,callback:function(e){t.$set(t.formInline,"code",e)},expression:"formInline.code"}}),t._v(" "),n("el-button",{attrs:{disabled:!this.canClick,size:"large"},on:{click:t.cutDown}},[t._v(t._s(t.cutNUm))])],1)]),t._v(" "),n("el-form-item",[n("el-button",{staticClass:"btn",staticStyle:{width:"87%"},attrs:{type:"primary",long:"",size:"large"},on:{click:function(e){return t.editSubmit("formInline")}}},[t._v("确认修改")])],1)],1)],1):t._e()],1)},i=[],a=(n("7f7f"),n("c80c")),o=(n("96cf"),n("3b8d")),s=n("db72"),c=n("2f62"),u=n("90e7"),l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.FromData?n("div",[t.modals?n("el-dialog",{attrs:{visible:t.modals,title:t.FromData.title,"z-index":1,width:"700","before-close":t.cancel},on:{"update:visible":function(e){t.modals=e}}},[["/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("优惠券类型")]),t._v(" "),n("el-radio-group",{on:{change:t.couponsType},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[n("el-radio",{attrs:{label:0}},[t._v("通用券")]),t._v(" "),n("el-radio",{attrs:{label:1}},[t._v("品类券")]),t._v(" "),n("el-radio",{attrs:{label:2}},[t._v("商品券")])],1)],1):t._e()],t._v(" "),n("form-create",{ref:"fc",staticClass:"formBox",attrs:{option:t.config,rule:Array.from(t.FromData.rules),handleIcon:"false"},on:{submit:t.onSubmit}})],2):t._e()],1):t._e()},m=[],f=n("30ba"),d=n.n(f),p=n("0c6d"),h={name:"edit",components:{formCreate:d.a.$form()},computed:Object(s["a"])({},Object(c["d"])("admin/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.message)}}}}}}},methods:{couponsType:function(){this.$parent.addType(this.type)},onSubmit:function(t){var e=this,n={};n=t,Object(p["a"])({url:this.FromData.action,method:this.FromData.method,data:n}).then((function(t){e.$parent.getList(),e.$message.success(t.message),e.modals=!1,setTimeout((function(){e.$emit("submitFail")}),1e3)})).catch((function(t){e.$message.error(t.message)}))},cancel:function(){this.type=0}}},g=h,v=(n("c62e"),n("2877")),b=Object(v["a"])(g,l,m,!1,null,"361b699a",null),w=b.exports,_={name:"smsTemplateApply",components:{editFrom:w},data:function(){var t=function(t,e,n){if(!e)return n(new Error("请填写手机号"));/^1[3456789]\d{9}$/.test(e)?n():n(new Error("手机号格式不正确!"))};return{modals:!1,cutNUm:"获取验证码",canClick:!0,spinShow:!0,grid:{xl:7,lg:7,md:12,sm:24,xs:24},sign:"",formInline:{sign:"",phone:"",code:""},ruleInline:{sign:[{required:!0,message:"请输入短信签名",trigger:"blur"}],phone:[{required:!0,validator:t,trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},loading:!1,columns1:[],levelFrom:{type:"",status:"",title:"",page:1,limit:20},levelFrom2:{is_have:"",page:1,limit:20},total:0,FromData:null,delfromData:{},levelLists:[],accountInfo:{}}},watch:{$route:function(t,e){this.getList()}},created:function(){this.onIsLogin()},mounted:function(){var t=this;Object(u["L"])().then((function(e){t.accountInfo=e.data,console.log(e.data),t.formInline.phone=e.data.phone,1!=e.data.sms.open&&t.$router.push("/admin/setting/sms/sms_config/index?url="+t.$route.path)}))},computed:Object(s["a"])(Object(s["a"])({},Object(c["d"])("admin/layout",["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(u["u"])().then(function(){var e=Object(o["a"])(Object(a["a"])().mark((function e(n){var r;return Object(a["a"])().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.message)}))},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/sms/template"===this.$route.path?this.levelFrom:this.levelFrom2,url:"/admin/sms/template"===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(u["tempListApi"])(e).then(function(){var e=Object(o["a"])(Object(a["a"])().mark((function e(n){var r;return Object(a["a"])().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.message)}))},pageChange:function(t){this.levelFrom.page=t,this.getList()},add:function(){var t=this;Object(u["tempCreateApi"])().then(function(){var e=Object(o["a"])(Object(a["a"])().mark((function e(n){return Object(a["a"])().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.message)}))},userSearchs:function(){this.levelFrom.page=1,this.getList()},submitFail:function(){this.getList()},editSign:function(){0!==this.accountInfo.sms.sign_status?(this.sign=this.accountInfo.sms.sign,this.modals=!0):this.$message.warning("签名待审核,暂无法修改")},cancel:function(t){this.modals=!1,this.$refs[t].resetFields(),this.formInline.phone=this.accountInfo.phone},editSubmit:function(t){var e=this;this.$refs[t].validate((function(n){n&&Object(u["Q"])(e.formInline).then((function(n){e.modals=!1,e.$message.success(n.message),e.$refs[t].resetFields()})).catch((function(t){e.$message.error(t.message)}))}))},cutDown:function(){var t=this;if(this.formInline.phone){if(!this.canClick)return;this.canClick=!1,this.cutNUm=60;var e={phone:this.formInline.phone};Object(u["l"])(e).then(function(){var e=Object(o["a"])(Object(a["a"])().mark((function e(n){return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.$message.success(n.message);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.message)}));var n=setInterval((function(){t.cutNUm--,0===t.cutNUm&&(t.cutNUm="获取验证码",t.canClick=!0,clearInterval(n))}),1e3)}else this.$message.warning("请填写手机号!")}}},y=_,I=(n("19c4"),Object(v["a"])(y,r,i,!1,null,"7bf8e151",null));e["default"]=I.exports}}]);