(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ddacec54"],{"101b":function(e,t,n){"use strict";n("9e97")},"10cc":function(e,t,n){},"32a9":function(e,t,n){"use strict";n("c17c")},"47d3":function(e,t,n){"use strict";n("9345")},"73ac":function(e,t,n){"use strict";n("cb54")},"8bf2":function(e,t,n){e.exports=n.p+"system/img/wutu.d797d845.png"},9345:function(e,t,n){},"9e97":function(e,t,n){},c17c:function(e,t,n){},c7de:function(e,t,n){e.exports=n.p+"system/img/ren.c7bc0d99.png"},cb54:function(e,t,n){},da33:function(e,t,n){"use strict";n("10cc")},f28d:function(e,t,n){"use strict";n.r(t);var s=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("iframe",{attrs:{src:"https://api.crmeb.com/",frameborder:"0",height:"100%",width:"100%",id:"iframe"}})])}],a=(n("a481"),n("c80c")),r=(n("96cf"),n("3b8d")),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-row",[n("el-col",{attrs:{span:24}},[n("div",{staticClass:"index_from page-account-container"},[n("div",{staticClass:"page-account-top "},[n("span",{staticClass:"page-account-top-tit"},[e._v("一号通账户登录")])]),e._v(" "),n("el-form",{ref:"formInline",attrs:{model:e.formInline,rules:e.ruleInline},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSubmit("formInline")}},nativeOn:{submit:function(e){e.preventDefault()}}},[n("el-form-item",{staticClass:"maxInpt",attrs:{prop:"sms_account"}},[n("el-input",{attrs:{type:"text",prefix:"ios-contact-outline",placeholder:"请输入手机号"},model:{value:e.formInline.account,callback:function(t){e.$set(e.formInline,"account",t)},expression:"formInline.account"}})],1),e._v(" "),n("el-form-item",{staticClass:"maxInpt",attrs:{prop:"sms_token"}},[n("el-input",{attrs:{type:"password",prefix:"ios-lock-outline",placeholder:"请输入密码"},model:{value:e.formInline.password,callback:function(t){e.$set(e.formInline,"password",t)},expression:"formInline.password"}})],1),e._v(" "),n("el-form-item",{staticClass:"maxInpt"},[n("el-button",{staticClass:"btn",attrs:{type:"primary"},on:{click:function(t){return e.handleSubmit("formInline")}}},[e._v("登录")])],1)],1),e._v(" "),n("div",{staticClass:"page-account-other"},[n("span",{on:{click:e.changePassword}},[e._v("忘记密码 |")]),e._v(" "),n("span",{on:{click:e.changeReg}},[e._v("注册账户")])])],1)])],1)},c=[],l=(n("7f7f"),n("90e7")),u={name:"login",data:function(){var e=function(e,t,n){if(!t)return n(new Error("请填写手机号"));/^1[3456789]\d{9}$/.test(t)?n():n(new Error("手机号格式不正确!"))};return{formInline:{account:"",password:""},ruleInline:{account:[{required:!0,validator:e,trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]}}},created:function(){var e=this;document.onkeydown=function(t){var n=window.event.keyCode;13===n&&e.handleSubmit("formInline")}},methods:{handleSubmit:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;Object(l["o"])(t.formInline).then(function(){var e=Object(r["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("登录成功!"),t.$emit("on-Login");case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.message)}))}))},changePassword:function(){this.$emit("change")},changeReg:function(){this.$emit("changes")}}},m=u,p=(n("32a9"),n("2877")),h=Object(p["a"])(m,o,c,!1,null,"16500284",null),f=h.exports,d=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-row",{attrs:{justify:"center",align:"middle"}},[n("el-col",{staticClass:"mb50",staticStyle:{"margin-top":"70px"},attrs:{span:24}},[n("el-steps",{attrs:{active:e.current,"align-center":"","finish-status":"success"}},[n("el-step",{attrs:{title:"验证账号信息"}}),e._v(" "),n("el-step",{attrs:{title:"修改账户密码"}}),e._v(" "),n("el-step",{attrs:{title:"登录"}})],1)],1),e._v(" "),n("el-col",{staticStyle:{"margin-top":"32px"},attrs:{span:24}},[n("div",{staticClass:"index_from page-account-container"},[n("el-form",{ref:"formInline",attrs:{model:e.formInline,rules:e.ruleInline},nativeOn:{submit:function(e){e.preventDefault()}}},[0===e.current?[n("el-form-item",{staticClass:"maxInpt",attrs:{prop:"phone"}},[n("el-input",{attrs:{type:"text",prefix:"ios-contact-outline",placeholder:"请输入手机号",size:"small"},model:{value:e.formInline.phone,callback:function(t){e.$set(e.formInline,"phone",t)},expression:"formInline.phone"}})],1),e._v(" "),n("el-form-item",{staticClass:"maxInpt",attrs:{prop:"verify_code"}},[n("div",{staticClass:"code"},[n("el-input",{attrs:{type:"text",prefix:"ios-keypad-outline",placeholder:"请输入验证码",size:"small"},model:{value:e.formInline.verify_code,callback:function(t){e.$set(e.formInline,"verify_code",t)},expression:"formInline.verify_code"}}),e._v(" "),n("el-button",{staticStyle:{width:"100px"},attrs:{disabled:!this.canClick,size:"small"},on:{click:e.cutDown}},[e._v(e._s(e.cutNUm))])],1)])]:e._e(),e._v(" "),1===e.current?[n("el-form-item",{staticClass:"maxInpt",attrs:{prop:"password"}},[n("el-input",{attrs:{type:"password",prefix:"ios-lock-outline",placeholder:"请输入新密码",size:"small"},model:{value:e.formInline.password,callback:function(t){e.$set(e.formInline,"password",t)},expression:"formInline.password"}})],1),e._v(" "),n("el-form-item",{staticClass:"maxInpt",attrs:{prop:"checkPass"}},[n("el-input",{attrs:{type:"password",prefix:"ios-lock-outline",placeholder:"请验证新密码",size:"small"},model:{value:e.formInline.checkPass,callback:function(t){e.$set(e.formInline,"checkPass",t)},expression:"formInline.checkPass"}})],1)]:e._e(),e._v(" "),2===e.current?[n("el-form-item",{staticClass:"maxInpt",attrs:{prop:"phone"}},[n("el-input",{attrs:{type:"text",prefix:"ios-contact-outline",placeholder:"请输入手机号",size:"small",disabled:""},model:{value:e.formInline.phone,callback:function(t){e.$set(e.formInline,"phone",t)},expression:"formInline.phone"}})],1),e._v(" "),n("el-form-item",{staticClass:"maxInpt",attrs:{prop:"password"}},[n("el-input",{attrs:{type:"password",size:"small",prefix:"ios-lock-outline",placeholder:"请输入密码"},model:{value:e.formInline.password,callback:function(t){e.$set(e.formInline,"password",t)},expression:"formInline.password"}})],1)]:e._e(),e._v(" "),n("el-form-item",{staticClass:"maxInpt"},[0===e.current?n("el-button",{staticClass:"mb20",attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleSubmit1("formInline",e.current)}}},[e._v("下一步")]):e._e(),e._v(" "),1===e.current?n("el-button",{staticClass:"mb20",attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleSubmit2("formInline",e.current)}}},[e._v("提交")]):e._e(),e._v(" "),2===e.current?n("el-button",{staticClass:"mb20",attrs:{type:"primary"},on:{click:function(t){return e.handleSubmit("formInline",e.current)}}},[e._v("登录")]):e._e(),e._v(" "),n("el-button",{staticClass:"btn",attrs:{size:"small"},on:{click:function(t){return e.returns("formInline")}}},[e._v("返回")])],1)],2)],1)])],1)},g=[],b={name:"forgetPassword",props:{isIndex:{type:Boolean,default:!1}},data:function(){var e=this,t=function(e,t,n){if(!t)return n(new Error("请填写手机号"));/^1[3456789]\d{9}$/.test(t)?n():n(new Error("手机号格式不正确!"))},n=function(t,n,s){""===n?s(new Error("请输入密码")):1===e.current?(""!==e.formInline.checkPass&&e.$refs.formInline.validateField("checkPass"),s()):(n!==e.formInline.checkPass&&s(new Error("请输入正确密码!")),s())},s=function(t,n,s){""===n?s(new Error("请再次输入密码")):n!==e.formInline.password?s(new Error("两次输入密码不一致!")):s()};return{cutNUm:"获取验证码",canClick:!0,current:0,formInline:{account:"",phone:"",phone_show:"",verify_code:"",password:"",checkPass:""},ruleInline:{phone:[{required:!0,validator:t,trigger:"blur"}],phone_show:[{required:!0,validator:t,trigger:"blur"}],verify_code:[{required:!0,message:"请输入验证码",trigger:"blur"}],password:[{validator:n,trigger:"blur"}],checkPass:[{validator:s,trigger:"blur"}]},serveInfo:{}}},methods:{cutDown:function(){var e=this;if(this.formInline.phone){if(!this.canClick)return;this.canClick=!1,this.cutNUm=60,Object(l["m"])(this.formInline.phone).then(function(){var t=Object(r["a"])(Object(a["a"])().mark((function t(n){var s;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$message.success(n.message),s=setInterval((function(){e.cutNUm--,0===e.cutNUm&&(e.cutNUm="获取验证码",e.canClick=!0,clearInterval(s))}),1e3);case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message)}))}else this.$message.warning("请填写手机号!")},handleSubmit1:function(e,t){var n=this;this.$refs[e].validate((function(e){if(!e)return!1;Object(l["n"])(n.formInline).then(function(){var e=Object(r["a"])(Object(a["a"])().mark((function e(t){return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:n.current=1;case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){n.$message.error(e.message)}))}))},handleSubmit2:function(e){var t=this;this.formInline.account=this.formInline.phone,this.$refs[e].validate((function(e){if(!e)return!1;Object(l["Y"])(t.formInline).then(function(){var e=Object(r["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),t.current=2;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.message)}))}))},handleSubmit:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;Object(l["o"])({account:t.formInline.account,password:t.formInline.password}).then(function(){var e=Object(r["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("登录成功!"),t.$emit("on-Login");case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.message)}))}))},returns:function(){0===this.current?this.$emit("goback"):this.current=0}},mounted:function(){var e=this;Object(l["X"])().then((function(t){e.formInline.phone=t.data.phone,e.formInline.phone_show=t.data.phone.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")||""})).catch((function(e){}))}},v=b,_=(n("da33"),Object(p["a"])(v,d,g,!1,null,"1612b805",null)),w=_.exports,k=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-row",{attrs:{type:"flex"}},[n("el-col",{attrs:{span:24}},[n("div",{staticClass:"index_from page-account-container"},[n("div",{staticClass:"page-account-top"},[n("span",{staticClass:"page-account-top-tit"},[e._v("一号通账户注册")])]),e._v(" "),n("el-form",{ref:"formInline",attrs:{model:e.formInline,rules:e.ruleInline},nativeOn:{submit:function(e){e.preventDefault()}}},[n("el-form-item",{staticClass:"maxInpt",attrs:{prop:"phone"}},[n("el-input",{attrs:{type:"number",placeholder:"请输入您的手机号"},model:{value:e.formInline.phone,callback:function(t){e.$set(e.formInline,"phone",t)},expression:"formInline.phone"}})],1),e._v(" "),n("el-form-item",{staticClass:"maxInpt",attrs:{prop:"password"}},[n("el-input",{attrs:{type:"password",placeholder:"请设置一号通平台登录密码"},model:{value:e.formInline.password,callback:function(t){e.$set(e.formInline,"password",t)},expression:"formInline.password"}})],1),e._v(" "),n("el-form-item",{staticClass:"maxInpt",attrs:{prop:"verify_code"}},[n("div",{staticClass:"code"},[n("el-input",{attrs:{type:"text",placeholder:"请输入验证码"},model:{value:e.formInline.verify_code,callback:function(t){e.$set(e.formInline,"verify_code",t)},expression:"formInline.verify_code"}}),e._v(" "),n("el-button",{attrs:{disabled:!e.canClick},on:{click:e.cutDown}},[e._v(e._s(e.cutNUm))])],1)]),e._v(" "),n("el-form-item",{staticClass:"maxInpt"},[n("el-button",{staticClass:"btn",attrs:{type:"primary"},on:{click:function(t){return e.handleSubmit("formInline")}}},[e._v("注册")])],1)],1),e._v(" "),n("div",{staticClass:"page-account-other"},[n("span",{on:{click:e.changelogo}},[e._v("立即登录")])])],1)])],1)},y=[],C=n("b61d"),I={name:"register",data:function(){var e=function(e,t,n){if(!t)return n(new Error("请填写手机号"));/^1[3456789]\d{9}$/.test(t)?n():n(new Error("手机号格式不正确!"))};return{cutNUm:"获取验证码",canClick:!0,formInline:{url:"",password:"",verify_code:"",phone:""},ruleInline:{account:[{required:!0,message:"请输入短信平台账号",trigger:"blur"}],password:[{required:!0,message:"请输入短信平台密码/token",trigger:"blur"}],url:[{required:!0,message:"请输入网址域名",trigger:"blur"}],phone:[{required:!0,validator:e,trigger:"blur"}],sign:[{required:!0,message:"请输入短信签名",trigger:"blur"}],verify_code:[{required:!0,message:"请输入验证码",trigger:"blur"}]}}},methods:{cutDown:function(){var e=this;if(this.formInline.phone){if(!this.canClick)return;this.canClick=!1,this.cutNUm=60,Object(l["m"])(this.formInline.phone).then(function(){var t=Object(r["a"])(Object(a["a"])().mark((function t(n){return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$message.success(n.message);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message)}));var t=setInterval((function(){e.cutNUm--,0===e.cutNUm&&(e.cutNUm="获取验证码",e.canClick=!0,clearInterval(t))}),1e3)}else this.$message.warning("请填写手机号!")},handleSubmit:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;Object(C["h"])(t.formInline).then(function(){var e=Object(r["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),setTimeout((function(){t.changelogo()}),1e3);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.message)}))}))},changelogo:function(){this.$emit("change")}}},x=I,O=(n("101b"),Object(p["a"])(x,k,y,!1,null,"a5ff974c",null)),$=O.exports,S=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"divBox"},[2==e.isChecked&&1===e.dump.open||4==e.isChecked&&1===e.copy.open?n("el-form",{attrs:{size:"small",inline:"","label-width":"100px"}},[n("el-form-item",{attrs:{label:"商户名称:"}},[n("el-select",{staticClass:"selWidth",attrs:{clearable:"",filterable:"",placeholder:"请选择"},on:{change:function(t){return e.getQueryList()}},model:{value:e.mer_id,callback:function(t){e.mer_id=t},expression:"mer_id"}},e._l(e.merSelect,(function(e){return n("el-option",{key:e.mer_id,attrs:{label:e.mer_name,value:e.mer_id}})})),1)],1)],1):e._e(),e._v(" "),n("el-tabs",{on:{"tab-click":e.onChangeType},model:{value:e.isChecked,callback:function(t){e.isChecked=t},expression:"isChecked"}},[n("el-tab-pane",{attrs:{label:"短信",name:"1"}}),e._v(" "),n("el-tab-pane",{attrs:{label:"商品采集",name:"4"}}),e._v(" "),n("el-tab-pane",{attrs:{label:"物流查询",name:"3"}}),e._v(" "),n("el-tab-pane",{attrs:{label:"电子面单打印",name:"2"}})],1),e._v(" "),"1"===e.isChecked?n("div",{staticStyle:{"font-size":"13px",color:"#333"}},[e._v("\n 短信字数>70个字,占用3个字符作为分条字符,按照67个字记为一条短信计算\n ")]):e._e(),e._v(" "),"1"===e.isChecked&&1===e.sms.open?n("div",{staticClass:"note"},[n("div",{staticClass:"acea-row row-between-wrapper"},[n("div",[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.shortMes}},[e._v("短信模板")]),e._v(" "),n("el-button",{attrs:{size:"small"},on:{click:e.editSign}},[e._v("修改签名")])],1)]),e._v(" "),n("el-table",{staticClass:"mt20",attrs:{data:e.tableList,loading:e.loading,size:"small"}},[n("el-table-column",{attrs:{label:"序号","min-width":"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.$index+(e.tableFrom.page-1)*e.tableFrom.limit+1))])]}}],null,!1,2611860760)}),e._v(" "),n("el-table-column",{attrs:{prop:"phone",label:"手机号","min-width":"100"}}),e._v(" "),n("el-table-column",{attrs:{prop:"content",label:"模板内容","min-width":"260"}}),e._v(" "),n("el-table-column",{attrs:{prop:"create_time",label:"发送时间","min-width":"100"}})],1),e._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{background:"","page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"total, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1):"4"===e.isChecked&&1===e.copy.open||"2"===e.isChecked&&1===e.dump.open?n("div",[n("el-table",{staticClass:"mt25",attrs:{data:e.tableList,loading:e.loading,size:"small"}},[n("el-table-column",{attrs:{label:"序号","min-width":"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.$index+(e.tableFrom.page-1)*e.tableFrom.limit+1))])]}}])}),e._v(" "),n("el-table-column",{key:"7",attrs:{prop:"merchant.mer_name",label:"商户名称","min-width":"200"}}),e._v(" "),4==e.isChecked?n("el-table-column",{key:"6",attrs:{prop:"info",label:"复制URL","min-width":"200"}}):e._e(),e._v(" "),2==e.isChecked?n("el-table-column",{key:"1",attrs:{prop:"info.order_sn",label:"订单号","min-width":"200"}}):e._e(),e._v(" "),2==e.isChecked?n("el-table-column",{key:"2",attrs:{prop:"info.from_name",label:"发货人","min-width":"90"}}):e._e(),e._v(" "),2==e.isChecked?n("el-table-column",{attrs:{prop:"info.to_name",label:"收货人","min-width":"90"}}):e._e(),e._v(" "),2==e.isChecked?n("el-table-column",{key:"3",attrs:{prop:"info.delivery_id",label:"快递单号","min-width":"90"}}):e._e(),e._v(" "),2==e.isChecked?n("el-table-column",{key:"4",attrs:{prop:"info.delivery_name",label:"快递公司编码","min-width":"90"}}):e._e(),e._v(" "),n("el-table-column",{key:"8",attrs:{prop:"create_time",label:2==e.isChecked?"打印时间":"添加时间","min-width":"90"}})],1),e._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{background:"","page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"total, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChangeOther,"current-change":e.pageChangeOther}})],1)],1):"3"==e.isChecked&&1==e.query.open?n("div",[n("el-table",{staticClass:"mt25",attrs:{data:e.tableList,loading:e.loading,size:"small"}},[n("el-table-column",{attrs:{label:"序号","min-width":"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.$index+(e.tableFrom.page-1)*e.tableFrom.limit+1))])]}}])}),e._v(" "),3==e.isChecked?n("el-table-column",{attrs:{label:"快递单号","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v(e._s(t.row.content&&t.row.content.num||""))])]}}],null,!1,3814022344)}):e._e(),e._v(" "),n("el-table-column",{attrs:{prop:"content.num",label:"快递公司编码","min-width":"90"}}),e._v(" "),n("el-table-column",{attrs:{prop:"add_time",label:"添加时间","min-width":"90"}})],1),e._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{background:"","page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"total, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChangeQuery,"current-change":e.pageChangeQuery}})],1)],1):n("div",["1"===e.isChecked&&!e.isSms||("2"===e.isChecked||"3"===e.isChecked)&&!e.isDumpOpen||"4"===e.isChecked&&!e.isCopy?n("div",{staticClass:"wuBox"},[e._m(0),e._v(" "),"1"===e.isChecked?n("span",[n("span",{staticClass:"wuSp1"},[e._v("短信服务未开通哦")]),e._v(" "),n("span",{staticClass:"wuSp2"},[e._v("点击立即开通按钮,即可使用短信服务哦~~~")])]):e._e(),e._v(" "),"4"===e.isChecked?n("span",[n("span",{staticClass:"wuSp1"},[e._v("商品采集服务未开通哦")]),e._v(" "),n("span",{staticClass:"wuSp2"},[e._v("点击立即开通按钮,即可使用商品采集服务哦~~~")])]):e._e(),e._v(" "),"3"===e.isChecked?n("span",[n("span",{staticClass:"wuSp1"},[e._v("物流查询未开通哦")]),e._v(" "),n("span",{staticClass:"wuSp2"},[e._v("点击立即开通按钮,即可使用物流查询服务哦~~~")])]):e._e(),e._v(" "),"2"===e.isChecked?n("span",[n("span",{staticClass:"wuSp1"},[e._v("电子面单打印未开通哦")]),e._v(" "),n("span",{staticClass:"wuSp2"},[e._v("点击立即开通按钮,即可使用电子面单打印服务哦~~~")])]):e._e(),e._v(" "),n("el-button",{attrs:{size:"default",type:"primary"},on:{click:e.onOpen}},[e._v("立即开通")])],1):e._e(),e._v(" "),e.isSms&&"1"===e.isChecked?n("div",{staticClass:"smsBox"},[n("div",{staticClass:"index_from page-account-container"},[e._m(1),e._v(" "),n("el-form",{ref:"formInline",attrs:{model:e.formInline,rules:e.ruleInline},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSubmit("formInline")}},nativeOn:{submit:function(e){e.preventDefault()}}},[n("el-form-item",{staticClass:"maxInpt",attrs:{prop:"sign"}},[n("el-input",{attrs:{type:"text",prefix:"ios-contact-outline",placeholder:"请输入短信签名"},model:{value:e.formInline.sign,callback:function(t){e.$set(e.formInline,"sign",t)},expression:"formInline.sign"}})],1),e._v(" "),n("el-form-item",{staticClass:"maxInpt"},[n("el-button",{staticClass:"btn",attrs:{type:"primary"},on:{click:function(t){return e.handleSubmit("formInline")}}},[e._v("立即开通")])],1)],1)],1)]):e._e()]),e._v(" "),e.modals?n("el-dialog",{staticClass:"order_box",attrs:{visible:e.modals,title:"短信账户签名修改","before-close":e.cancel,width:"600px"},on:{"update:visible":function(t){e.modals=t}}},[n("el-form",{ref:"formInline",attrs:{model:e.formInline,rules:e.ruleInline},nativeOn:{submit:function(e){e.preventDefault()}}},[n("el-form-item",[n("el-input",{staticClass:"pageWidth",attrs:{disabled:"",prefix:"ios-person-outline",size:"small"},model:{value:e.accountInfo.account,callback:function(t){e.$set(e.accountInfo,"account",t)},expression:"accountInfo.account"}})],1),e._v(" "),n("el-form-item",[n("el-input",{staticClass:"pageWidth",attrs:{prefix:"ios-document-outline",placeholder:"请输入短信签名,例如:CRMEB",size:"small"},model:{value:e.formInline.sign,callback:function(t){e.$set(e.formInline,"sign",t)},expression:"formInline.sign"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"phone"}},[n("el-input",{staticClass:"pageWidth",attrs:{disabled:"",prefix:"ios-call-outline",placeholder:"请输入您的手机号",size:"small"},model:{value:e.formInline.phone,callback:function(t){e.$set(e.formInline,"phone",t)},expression:"formInline.phone"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"verify_code"}},[n("div",{staticClass:"code acea-row row-middle"},[n("el-input",{staticClass:"pageWidth",attrs:{type:"text",prefix:"ios-keypad-outline",placeholder:"验证码",size:"small"},model:{value:e.formInline.verify_code,callback:function(t){e.$set(e.formInline,"verify_code",t)},expression:"formInline.verify_code"}}),e._v(" "),n("el-button",{attrs:{disabled:!this.canClick,size:"small"},on:{click:e.cutDown}},[e._v(e._s(e.cutNUm))])],1)]),e._v(" "),n("el-form-item",[n("el-button",{staticClass:"btn",staticStyle:{width:"100%"},attrs:{type:"primary",long:"",size:"small"},on:{click:function(t){return e.editSubmit("formInline")}}},[e._v("确认修改")])],1)],1)],1):e._e()],1)},j=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"wuTu"},[s("img",{attrs:{src:n("8bf2")}})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"page-account-top"},[n("span",{staticClass:"page-account-top-tit"},[e._v("开通短信服务")])])}],L=n("c4c8"),F={name:"tableList",props:{copy:{type:Object,default:null},dump:{type:Object,default:null},query:{type:Object,default:null},sms:{type:Object,default:null},accountInfo:{type:Object,default:null}},data:function(){var e=function(e,t,n){if(!t)return n(new Error("请填写手机号"));/^1[3456789]\d{9}$/.test(t)?n():n(new Error("手机号格式不正确!"))};return{cutNUm:"获取验证码",canClick:!0,spinShow:!0,formInline:{sign:"",phone:"",verify_code:""},ruleInline:{sign:[{required:!0,message:"请输入短信签名",trigger:"blur"}],phone:[{required:!0,validator:e,trigger:"blur"}],verify_code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},isChecked:"1",mer_id:"",tableFrom:{page:1,limit:20,type:""},total:0,loading:!1,tableList:[],formInlineDump:{temp_id:"",com:"",to_name:"",to_tel:"",siid:"",to_address:""},merSelect:[],ruleInlineDump:{com:[{required:!0,message:"请选择快递公司",trigger:"change"}],temp_id:[{required:!0,message:"请选择打印模板",trigger:"change"}],to_name:[{required:!0,message:"请输寄件人姓名",trigger:"blur"}],to_tel:[{required:!0,validator:e,trigger:"blur"}],siid:[{required:!0,message:"请输入云打印机编号",trigger:"blur"}],to_address:[{required:!0,message:"请输寄件人地址",trigger:"blur"}]},tempImg:"",exportTempList:[],exportList:[],isSms:this.sms.open,isDump:this.dump.open,isCopy:this.copy.open,modals:!1,isDumpOpen:this.dump.open}},watch:{sms:function(e){1===e.open&&(this.tableFrom.page=1,this.getList())}},created:function(){"1"===this.isChecked&&1===this.sms.open&&this.getList()},mounted:function(){this.getMerSelect()},methods:{getMerSelect:function(){var e=this;Object(L["S"])().then((function(t){e.merSelect=t.data})).catch((function(t){e.$message.error(t.message)}))},shortMes:function(){this.$router.push({path:"/admin/sms/template"})},cutDown:function(){var e=this;if(this.formInline.phone){if(!this.canClick)return;this.canClick=!1,this.cutNUm=60,Object(l["m"])(this.formInline.phone).then(function(){var t=Object(r["a"])(Object(a["a"])().mark((function t(n){return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$message.success(n.message);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message)}));var t=setInterval((function(){e.cutNUm--,0===e.cutNUm&&(e.cutNUm="获取验证码",e.canClick=!0,clearInterval(t))}),1e3)}else this.$message.warning("请填写手机号!")},editSign:function(){if(0===this.accountInfo.sms.sign_status)return this.$message.warning("签名待审核中,暂无法修改");this.formInline.sign=this.accountInfo.sms.sign,this.formInline.phone=this.accountInfo.phone,this.modals=!0},cancel:function(){this.modals=!1,this.$refs["formInline"].resetFields()},editSubmit:function(e){var t=this;this.$refs[e].validate((function(n){n&&Object(l["cb"])(t.formInline).then((function(n){t.modals=!1,t.$message.success(n.message),t.$refs[e].resetFields()})).catch((function(e){t.$message.error(e.message)}))}))},onChangeImg:function(e){var t=this;this.exportTempList.map((function(n){n.temp_id===e&&(t.tempImg=n.pic)}))},exportTempAllList:function(){var e=this;Object(l["r"])().then(function(){var t=Object(r["a"])(Object(a["a"])().mark((function t(n){return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.exportList=n.data.list;case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message)}))},onChangeExport:function(e){this.formInlineDump.temp_id="",this.exportTemp(e)},exportTemp:function(e){var t=this;Object(l["s"])({com:e}).then(function(){var e=Object(r["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.exportTempList=n.data.data;case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.message)}))},onChangeType:function(){this.tableFrom.page=1,"1"===this.isChecked&&1===this.sms.open?(this.tableFrom.type="",this.getList()):"2"!==this.isChecked&&"4"!==this.isChecked||("2"===this.isChecked&&0===this.isDump.open&&(this.isDump=!1),1!==this.dump.open&&1!==this.copy.open||(this.tableFrom.type=4==this.isChecked?"copy":"mer_dump",this.tableFrom.mer_id=this.mer_id,this.getQueryList())),1===this.query.open&&"3"===this.isChecked&&this.getRecordList(),0===this.query.open&&"3"===this.isChecked&&(this.isDumpOpen=!1),0===this.copy.open&&"4"===this.isChecked&&(this.isCopy=!1),0==this.sms.open&&"1"===this.isChecked&&(this.isSms=!1)},getRecordList:function(){var e=this;this.loading=!0,this.tableFrom.type=this.isChecked,delete this.tableFrom.mer_id,Object(l["bb"])(this.tableFrom).then(function(){var t=Object(r["a"])(Object(a["a"])().mark((function t(n){var s;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:s=n.data,e.tableList=s.data,e.total=n.data.count,e.loading=!1;case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading=!1,e.$message.error(t.message)}))},pageChangeOther:function(e){this.tableFrom.page=e,this.getRecordList()},handleSizeChangeOther:function(e){this.tableFrom.limit=e,this.getRecordList()},pageChangeQuery:function(e){this.tableFrom.page=e,this.getRecordList()},handleSizeChangeQuery:function(e){this.tableFrom.limit=e,this.getRecordList()},getQueryList:function(){var e=this;this.loading=!0,this.tableFrom.mer_id=this.mer_id,Object(l["ab"])(this.tableFrom).then(function(){var t=Object(r["a"])(Object(a["a"])().mark((function t(n){var s;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:s=n.data,e.tableList=s.list,e.total=s.count,e.loading=!1;case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading=!1,e.$message.error(t.message)}))},handleSubmit:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;Object(l["Z"])({type:"sms",sign:t.formInline.sign}).then(function(){var e=Object(r["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("开通成功!"),t.tableFrom.page=1,t.getList(),t.$emit("openService","sms");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.message)}))}))},onOpenIndex:function(e){switch(e){case"sms":this.isChecked="1",this.isSms=!0;break;case"copy":this.isChecked="4",this.openOther();break;case"query":this.isChecked="3",this.onDumpOpen();break;default:this.isChecked="2",this.openDump();break}},onOpen:function(){"1"===this.isChecked&&(this.isSms=!0),"2"===this.isChecked&&this.openDump(),"4"===this.isChecked&&this.openOther(),"3"===this.isChecked&&this.onDumpOpen()},onDumpOpen:function(){var e=this,t=this.$createElement;this.$msgbox({title:"提示",message:t("p","确定要开通物流查询吗"),showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消",beforeClose:function(t,n,s){"confirm"===t?Object(l["Z"])({type:"query"}).then((function(t){e.$message.success(t.message),e.$emit("openService","query"),s()})).catch((function(t){e.$message.error(t.message)})):s()}}).then((function(t){e.$message({type:"info",message:"action: "+t})}))},openOther:function(){var e=this,t=this.$createElement;this.$msgbox({title:"提示",message:t("p","确定要开通商品采集吗"),showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消",beforeClose:function(t,n,s){"confirm"===t?setTimeout((function(){Object(l["Z"])({type:"copy"}).then(function(){var t=Object(r["a"])(Object(a["a"])().mark((function t(n){return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.getRecordList(),e.$message.success(n.message),e.$emit("openService","copy"),s();case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message)}))}),300):s()}}).then((function(t){e.$message({type:"info",message:"action: "+t})}))},openDump:function(){var e=this,t=this.$createElement;this.$msgbox({title:"提示",message:t("p","确定要开通电子面单功能吗"),showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消",beforeClose:function(t,n,s){"confirm"===t?Object(l["Z"])({type:"dump"}).then((function(t){e.$message.success(t.message),e.$emit("openService","dump")})).catch((function(t){e.$message.error(t.message)})):s()}}).then((function(t){e.$message({type:"info",message:"action: "+t})}))},getList:function(){var e=this;this.loading=!0,delete this.tableFrom.mer_id,delete this.tableFrom.type,Object(l["fb"])(this.tableFrom).then(function(){var t=Object(r["a"])(Object(a["a"])().mark((function t(n){var s;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:s=n.data,e.tableList=s.list,e.total=n.data.count,e.spinShow=!1,e.loading=!1;case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.spinShow=!1,e.loading=!1,e.$message.error(t.message)}))},pageChange:function(e){this.tableFrom.page=e,this.getList()},handleSizeChange:function(e){this.tableFrom.limit=e,this.getList()},userSearchs:function(){this.tableFrom.page=1,this.getList()},handleSubmitDump:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;t.formInlineDump.type="dump",Object(l["Z"])(t.formInlineDump).then(function(){var e=Object(r["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("开通成功!"),t.getRecordList(),t.$emit("openService","dump");case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.message)}))}))}}},z=F,q=(n("47d3"),Object(p["a"])(z,S,j,!1,null,"be15df4e",null)),D=q.exports,E=n("83d6"),U={name:"smsConfig",components:{loginFrom:f,forgetPassword:w,registerFrom:$,tableList:D},data:function(){return{imgUrl:n("c7de"),spinShow:!1,isShowLogn:!1,isShow:!1,isShowReg:!1,isShowList:!1,smsAccount:"",accountInfo:{},isForgetPhone:!1,isIndex:!1,sms:{open:0},query:{open:0},dump:{open:0},copy:{open:0}}},created:function(){},methods:{onOpen:function(e){this.$refs.tableLists.onOpenIndex(e)},mealPay:function(e){this.$router.push("".concat(E["roterPre"],"/setting/sms/sms_pay/index?type=").concat(e))},openService:function(e){switch(e){case"sms":this.sms.open=1;break;case"copy":this.copy.open=1;break;default:this.dump.open=1,this.query.open=1;break}},getServeInfo:function(){var e=this;this.spinShow=!0,Object(l["X"])().then(function(){var t=Object(r["a"])(Object(a["a"])().mark((function t(n){var s;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:s=n.data,e.sms={num:s.sms.num,open:s.sms.open,surp:s.sms.open},e.query={num:s.query.num,open:s.query.open,surp:s.query.open},e.dump={num:s.dump.num,open:s.dump.open,surp:s.dump.open},e.copy={num:s.copy.num,open:s.copy.open,surp:s.copy.open},e.spinShow=!1,e.smsAccount=s.account,e.accountInfo=s;case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message),e.isShowLogn=!0,e.isShowList=!1,e.spinShow=!1}))},onIsLogin:function(){var e=this;this.spinShow=!0,Object(l["B"])().then(function(){var t=Object(r["a"])(Object(a["a"])().mark((function t(n){var s;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:s=n.data,e.isShowLogn=!s.status,e.isShowList=s.status,e.spinShow=!1,s.status&&e.getServeInfo();case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.spinShow=!1,e.$message.error(t.message)}))},signOut:function(){var e=this;Object(l["D"])().then(function(){var t=Object(r["a"])(Object(a["a"])().mark((function t(n){return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.isShowLogn=!0,e.isShowList=!1;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message)}))},onChangePassswordIndex:function(){this.isIndex=!0,this.passsword()},onChangePasssword:function(){this.isIndex=!1,this.passsword()},passsword:function(){this.isShowLogn=!1,this.isShow=!0,this.isShowList=!1},onChangeReg:function(){this.isShowLogn=!1,this.isShow=!1,this.isShowReg=!0},logoup:function(){this.isShowLogn=!0,this.isShow=!1,this.isShowReg=!1},onLogin:function(){var e=this.$route.query.url;e?this.$router.replace(e):(this.isShowLogn=!1,this.isShow=!1,this.isShowReg=!1,this.isForgetPhone=!1,this.isShowList=!0,this.getServeInfo())},goback:function(){this.isIndex?(this.isShowList=!0,this.isShow=!1):(this.isShowLogn=!0,this.isShow=!1)}}},P=U,N=(n("73ac"),Object(p["a"])(P,s,i,!1,null,"cbf4b526",null));t["default"]=N.exports}}]);