(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["agenEdit"],{1276:function(l,e,a){"use strict";var u=a("d784"),v=a("44e7"),b=a("825a"),t=a("1d80"),i=a("4840"),r=a("8aa5"),n=a("50c4"),s=a("14c3"),o=a("9263"),c=a("9f7f"),d=c.UNSUPPORTED_Y,h=[].push,p=Math.min,g=4294967295;u("split",2,(function(l,e,a){var u;return u="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(l,a){var u=String(t(this)),b=void 0===a?g:a>>>0;if(0===b)return[];if(void 0===l)return[u];if(!v(l))return e.call(u,l,b);var i,r,n,s=[],c=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(l.sticky?"y":""),d=0,p=new RegExp(l.source,c+"g");while(i=o.call(p,u)){if(r=p.lastIndex,r>d&&(s.push(u.slice(d,i.index)),i.length>1&&i.index=b))break;p.lastIndex===i.index&&p.lastIndex++}return d===u.length?!n&&p.test("")||s.push(""):s.push(u.slice(d)),s.length>b?s.slice(0,b):s}:"0".split(void 0,0).length?function(l,a){return void 0===l&&0===a?[]:e.call(this,l,a)}:e,[function(e,a){var v=t(this),b=void 0==e?void 0:e[l];return void 0!==b?b.call(e,v,a):u.call(String(v),e,a)},function(l,v){var t=a(u,l,this,v,u!==e);if(t.done)return t.value;var o=b(l),c=String(this),h=i(o,RegExp),m=o.unicode,f=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(d?"g":"y"),y=new h(d?"^(?:"+o.source+")":o,f),C=void 0===v?g:v>>>0;if(0===C)return[];if(0===c.length)return null===s(y,c)?[c]:[];var S=0,w=0,D=[];while(w1?arguments[1]:void 0)}})},"55d1":function(l,e,a){"use strict";a.r(e);var u=function(){var l=this,e=l.$createElement,a=l._self._c||e;return a("div",{staticClass:"boxEdit",attrs:{loading:l.tableLoading}},[a("div",{staticClass:"content"},[a("div",{staticClass:"header"},[a("div",{staticClass:"aggregate",staticStyle:{background:"#FF8200"},on:{click:function(e){l.isActiveClass=!1}}},[a("div",{staticClass:"jbxx",staticStyle:{color:"#fff"}},[l._v("1.编辑基本信息")]),a("div",{staticClass:"sj1"})]),a("div",{staticClass:"aggregate",class:[l.isActiveClass?"activeClass":"aggregate"],on:{click:l.aggregateClick}},[a("div",{staticClass:"sj2"}),a("div",{staticClass:"tjdl"},[l._v("2.添加代理商品")])])]),a("div",{directives:[{name:"show",rawName:"v-show",value:!l.isActiveClass,expression:"!isActiveClass"}],staticClass:"section"},[a("a-form-model",{ref:"ruleForm",attrs:{model:l.form,rules:l.rules,"label-col":{span:4},"wrapper-col":{span:10}}},[a("a-form-model-item",{ref:"agentAccount",attrs:{label:"代理账号",prop:"agentAccount"}},[a("a-input",{staticStyle:{width:"248px"},attrs:{placeholder:"请输入手机号码",disabled:l.isDisable},model:{value:l.form.agentAccount,callback:function(e){l.$set(l.form,"agentAccount",e)},expression:"form.agentAccount"}})],1),a("a-form-model-item",{ref:"agentName",attrs:{label:"代理姓名",prop:"agentName"}},[a("a-input",{staticStyle:{width:"248px"},attrs:{placeholder:"请输入代理姓名",disabled:l.isDisable},model:{value:l.form.agentName,callback:function(e){l.$set(l.form,"agentName",e)},expression:"form.agentName"}})],1),0==this.$route.params.id?a("a-form-model-item",{ref:"passWord",attrs:{label:"密码",prop:"passWord"}},[a("a-input-password",{staticStyle:{width:"248px"},attrs:{placeholder:"请输入密码"},model:{value:l.form.passWord,callback:function(e){l.$set(l.form,"passWord",e)},expression:"form.passWord"}})],1):l._e(),0==this.$route.params.id?a("a-form-model-item",{ref:"affirmPassWord",attrs:{label:"确认密码",prop:"affirmPassWord"}},[a("a-input-password",{staticStyle:{width:"248px"},attrs:{placeholder:"请输入确认密码"},model:{value:l.form.affirmPassWord,callback:function(e){l.$set(l.form,"affirmPassWord",e)},expression:"form.affirmPassWord"}})],1):l._e(),0==l.agentLevel?a("a-form-model-item",{ref:"agentGrade",attrs:{label:"代理等级",prop:"agentGrade"}},[a("a-select",{staticStyle:{width:"216px"},attrs:{placeholder:"请选择代理等级",disabled:l.isDisable},on:{change:l.agentGradeChange},model:{value:l.form.agentGrade,callback:function(e){l.$set(l.form,"agentGrade",e)},expression:"form.agentGrade"}},l._l(l.agentGradeList,(function(e){return a("a-select-option",{key:e.level+","+e.levelNo},[l._v(l._s(e.name))])})),1)],1):l._e(),0!=l.agentLevel&&1!=l.agentLevel||2!=this.level||0!=this.$route.params.id?l._e():a("a-form-model-item",{ref:"belonging",attrs:{label:"所属市级代理",prop:"belonging"}},[a("a-select",{staticStyle:{width:"216px"},attrs:{placeholder:"请选择所属市级代理",disabled:l.isDisable},model:{value:l.form.belonging,callback:function(e){l.$set(l.form,"belonging",e)},expression:"form.belonging"}},l._l(l.municipaLevel,(function(e){return a("a-select-option",{key:e.agentNo},[l._v(l._s(e.agentName))])})),1)],1),0==l.agentLevel&&1==l.level?a("a-form-model-item",{ref:"appletId",attrs:{label:"代理小程序ID",prop:"appletId"}},[a("a-input",{staticStyle:{width:"248px"},attrs:{placeholder:"请输入代理小程序ID",disabled:l.isDisable},model:{value:l.form.appletId,callback:function(e){l.$set(l.form,"appletId",e)},expression:"form.appletId"}})],1):l._e(),0!=l.agentLevel&&1!=l.agentLevel||0!=this.$route.params.id?l._e():a("a-form-model-item",{ref:"city",attrs:{label:"选择区域",prop:"city"}},[a("div",{staticStyle:{display:"flex","flex-direction":"column"}},[1==l.agentLevel?a("span",{staticStyle:{color:"red"}},[l._v("请选择自己代理的区域")]):l._e(),0==l.agentLevel&&2==l.level?a("span",{staticStyle:{color:"red"}},[l._v("请选择市级代理对应城市的区域")]):l._e(),1!=l.level?a("a-cascader",{staticStyle:{width:"216px"},attrs:{options:l.options,placeholder:"请选择区域"},on:{change:l.cityChange},model:{value:l.form.city,callback:function(e){l.$set(l.form,"city",e)},expression:"form.city"}}):a("a-cascader",{staticStyle:{width:"216px"},attrs:{options:l.cityOptions,placeholder:"请选择区域"},on:{change:l.cityChange},model:{value:l.form.city,callback:function(e){l.$set(l.form,"city",e)},expression:"form.city"}})],1)]),0==l.agentLevel?a("a-form-model-item",{ref:"bond",attrs:{label:"保证金",prop:"bond"}},[a("a-input-number",{staticStyle:{width:"216px"},attrs:{min:0,placeholder:"请输入保证金"},model:{value:l.form.bond,callback:function(e){l.$set(l.form,"bond",e)},expression:"form.bond"}})],1):l._e(),2!=l.agentLevel?a("a-form-model-item",{ref:"shareProportion",attrs:{label:"分成比例",prop:"shareProportion"}},[a("a-input-number",{staticStyle:{width:"216px"},attrs:{min:0,placeholder:"请输入分成比例"},model:{value:l.form.shareProportion,callback:function(e){l.$set(l.form,"shareProportion",e)},expression:"form.shareProportion"}})],1):l._e(),0==l.agentLevel&&1==this.level?a("a-form-model-item",{ref:"regionalDivision",attrs:{label:"地域归属分成比例",prop:"regionalDivision"}},[a("a-input-number",{staticStyle:{width:"216px"},attrs:{min:0,placeholder:"请输入地域归属分成比例"},model:{value:l.form.regionalDivision,callback:function(e){l.$set(l.form,"regionalDivision",e)},expression:"form.regionalDivision"}})],1):l._e(),a("a-form-model-item",{ref:"termOfValidity",attrs:{label:"有效期",prop:"termOfValidity"}},[a("a-range-picker",{staticStyle:{width:"248px"},attrs:{value:l.form.termOfValidity,format:"YYYY-MM-DD"},on:{change:l.termChange}})],1)],1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:l.isActiveClass,expression:"isActiveClass"}],staticClass:"csection"},[l._m(0),a("div",{staticClass:"searchStyle"},[a("div",{staticClass:"tab"},l._l(l.tabList,(function(e,u){return a("div",{key:u,staticClass:"tabName",class:{tabStyle:l.tabChange==u},on:{click:function(e){return l.tabClick(u)}}},[l._v(l._s(e.name))])})),0),0==l.tabChange?a("div",{staticClass:"seach"},[a("a-input-search",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入课程名称","enter-button":""},on:{search:l.searchValue},model:{value:l.culumval,callback:function(e){l.culumval=e},expression:"culumval"}},[a("a-icon",{attrs:{slot:"prefix",type:"search"},slot:"prefix"})],1)],1):l._e()]),a("div",{staticClass:"tabel"},[a("div",{directives:[{name:"show",rawName:"v-show",value:0==l.tabChange,expression:"tabChange == 0"}]},[0==l.agentLevel?a("a-table",{ref:"courseTable",attrs:{dataSource:l.curriculumDataSource,columns:l.curriculumColumns,pagination:!1,bordered:"",loading:l.tableLoading,"row-key":function(l){return l.courseNo},"row-selection":{selectedRowKeys:l.curriculumRowKeys,onChange:l.onCurriculumChange,onSelect:l.onSelectChange,onSelectAll:l.onSelectAllChange}},scopedSlots:l._u([{key:"putawayFlag",fn:function(e,u){return a("span",{},[0==e?a("a-badge",{attrs:{color:"#999999"}}):1==e?a("a-badge",{attrs:{color:"#FF8200"}}):2==e?a("a-badge",{attrs:{color:"#67C23A"}}):3==e?a("a-badge",{attrs:{color:"#108ee9"}}):l._e(),a("span",[l._v(l._s(0==u.putawayFlag?"已下架":1==u.putawayFlag?"定时上架":2==u.putawayFlag?"已上架":3==u.putawayFlag?"暂时上架":"--"))])],1)}},{key:"cost",fn:function(e,u){return a("span",{},[0==l.$route.params.id?a("a-input",{staticStyle:{width:"120px"},attrs:{placeholder:"请输入成本"},model:{value:u.cost,callback:function(e){l.$set(u,"cost",e)},expression:"record.cost"}}):a("a-input",{staticStyle:{width:"120px"},attrs:{disabled:!u.isTrue,placeholder:"请输入成本"},on:{change:function(e){return l.SelectChange(u)}},model:{value:u.cost,callback:function(e){l.$set(u,"cost",e)},expression:"record.cost"}})],1)}}],null,!1,1589812361)}):1==l.agentLevel||2==l.agentLevel?a("a-table",{ref:"courseTable",attrs:{dataSource:l.curriculumDataSource,columns:l.curriculumColumns0,pagination:!1,bordered:"",loading:l.tableLoading,"row-key":function(l){return l.courseNo},"row-selection":{selectedRowKeys:l.curriculumRowKeys,onChange:l.onCurriculumChange,onSelect:l.onSelectChange,onSelectAll:l.onSelectAllChange}}}):l._e()],1),a("div",{directives:[{name:"show",rawName:"v-show",value:1==l.tabChange,expression:"tabChange == 1"}]},[0==l.agentLevel?a("a-table",{attrs:{dataSource:l.vipDataSource,columns:l.vipColumns,pagination:!1,bordered:"",loading:l.tableLoading,"row-key":function(l){return l.memberNo},"row-selection":{selectedRowKeys:l.vipRowKeys,onChange:l.onVipChange,onSelect:l.onSelectVipChange,onSelectAll:l.onSelectVipAllChange}},scopedSlots:l._u([{key:"forbiddenStatus",fn:function(e,u){return a("span",{},[1==e?a("a-badge",{attrs:{color:"#67C23A"}}):2==e?a("a-badge",{attrs:{color:"#999999"}}):l._e(),a("span",[l._v(l._s(1==u.forbiddenStatus?"使用中":2==u.forbiddenStatus?"已停止":"--"))])],1)}},{key:"cost",fn:function(e,u){return a("span",{},[0==l.$route.params.id?a("a-input",{staticStyle:{width:"120px"},attrs:{placeholder:"请输入成本"},model:{value:u.cost,callback:function(e){l.$set(u,"cost",e)},expression:"record.cost"}}):a("a-input",{staticStyle:{width:"120px"},attrs:{disabled:!u.isTrue,placeholder:"请输入成本"},on:{change:function(e){return l.SelectVipChange(u)}},model:{value:u.cost,callback:function(e){l.$set(u,"cost",e)},expression:"record.cost"}})],1)}}],null,!1,943291651)}):1==l.agentLevel||2==l.agentLevel?a("a-table",{attrs:{dataSource:l.vipDataSource,columns:l.vipColumns0,pagination:!1,bordered:"",loading:l.tableLoading,"row-key":function(l){return l.memberNo},"row-selection":{selectedRowKeys:l.vipRowKeys,onChange:l.onVipChange,onSelect:l.onSelectVipChange,onSelectAll:l.onSelectVipAllChange}}}):l._e()],1),a("div",{directives:[{name:"show",rawName:"v-show",value:2==l.tabChange,expression:"tabChange == 2"}]},[0==l.agentLevel?a("a-table",{ref:"courseTable",attrs:{dataSource:l.sellingCourseData,columns:l.sellingCourseColumns,pagination:!1,bordered:"",loading:l.tableLoading,"row-key":function(l){return l.productId},"row-selection":{selectedRowKeys:l.sellingCourseRowKeys,onChange:l.onSellingCurriculumChange,onSelect:l.onSellingSelectChange,onSelectAll:l.onSellingSelectAllChange}},scopedSlots:l._u([{key:"enableFlag",fn:function(e,u){return a("span",{},[0==e?a("a-badge",{attrs:{color:"#999999"}}):1==e?a("a-badge",{attrs:{color:"#67C23A"}}):l._e(),a("span",[l._v(l._s(0==u.enableFlag?"否":1==u.enableFlag?"是":"--"))])],1)}},{key:"productType",fn:function(e,u){return a("span",{},[a("span",[l._v(l._s(2==u.productType?"会员":1==u.productType?"课程":"--"))])])}},{key:"cost",fn:function(e,u){return a("span",{},[0==l.$route.params.id?a("a-input",{staticStyle:{width:"120px"},attrs:{placeholder:"请输入成本"},model:{value:u.cost,callback:function(e){l.$set(u,"cost",e)},expression:"record.cost"}}):a("a-input",{staticStyle:{width:"120px"},attrs:{disabled:!u.isTrue,placeholder:"请输入成本"},on:{change:function(e){return l.sellingSelectChange(u)}},model:{value:u.cost,callback:function(e){l.$set(u,"cost",e)},expression:"record.cost"}})],1)}}],null,!1,962148041)}):1==l.agentLevel||2==l.agentLevel?a("a-table",{ref:"courseTable",attrs:{dataSource:l.sellingCourseData,columns:l.sellingCourseColumns0,pagination:!1,bordered:"",loading:l.tableLoading,"row-key":function(l){return l.productId},"row-selection":{selectedRowKeys:l.sellingCourseRowKeys,onChange:l.onSellingCurriculumChange,onSelect:l.onSellingSelectChange,onSelectAll:l.onSellingSelectAllChange}}}):l._e()],1),a("div",{directives:[{name:"show",rawName:"v-show",value:3==l.tabChange,expression:"tabChange == 3"}]},[0==l.agentLevel?a("a-table",{ref:"courseTable",attrs:{dataSource:l.sellingVipData,columns:l.sellingVipColumns,pagination:!1,bordered:"",loading:l.tableLoading,"row-key":function(l){return l.productId},"row-selection":{selectedRowKeys:l.sellingVipRowKeys,onChange:l.onSellingVipCurriculumChange,onSelect:l.onSellingVipSelectChange,onSelectAll:l.onSellingVipSelectAllChange}},scopedSlots:l._u([{key:"enableFlag",fn:function(e,u){return a("span",{},[0==e?a("a-badge",{attrs:{color:"#999999"}}):1==e?a("a-badge",{attrs:{color:"#67C23A"}}):l._e(),a("span",[l._v(l._s(0==u.enableFlag?"否":1==u.enableFlag?"是":"--"))])],1)}},{key:"productType",fn:function(e,u){return a("span",{},[a("span",[l._v(l._s(2==u.productType?"会员":1==u.productType?"课程":"--"))])])}},{key:"cost",fn:function(e,u){return a("span",{},[0==l.$route.params.id?a("a-input",{staticStyle:{width:"120px"},attrs:{placeholder:"请输入成本"},model:{value:u.cost,callback:function(e){l.$set(u,"cost",e)},expression:"record.cost"}}):a("a-input",{staticStyle:{width:"120px"},attrs:{disabled:!u.isTrue,placeholder:"请输入成本"},on:{change:function(e){return l.sellingSelectVipChange(u)}},model:{value:u.cost,callback:function(e){l.$set(u,"cost",e)},expression:"record.cost"}})],1)}}],null,!1,3446920582)}):1==l.agentLevel||2==l.agentLevel?a("a-table",{ref:"courseTable",attrs:{dataSource:l.sellingVipData,columns:l.sellingVipColumns0,pagination:!1,bordered:"",loading:l.tableLoading,"row-key":function(l){return l.productId},"row-selection":{selectedRowKeys:l.sellingVipRowKeys,onChange:l.onSellingVipCurriculumChange,onSelect:l.onSellingVipSelectChange,onSelectAll:l.onSellingVipSelectAllChange}}}):l._e()],1)])])]),a("div",{staticClass:"btn"},[a("footer-tool-bar",{attrs:{collapsed:l.sideCollapsed}},[a("a-button",{staticClass:"margin_right10",on:{click:function(){return l.$router.go(-1)}}},[l._v("取消")]),0==l.$route.params.id?a("a-button",{attrs:{type:"primary"},on:{click:l.onSubmit}},[l._v("确定")]):a("a-button",{attrs:{type:"primary"},on:{click:function(e){l.onSubmit(),l.editArrInitVip(l.editVipListArr,"memberNo"),l.editArrInit(l.editListArr,"courseNo"),l.sellingEditArrInit(l.sellingEditListArr,"productId"),l.sellingEditArrInitVip(l.sellingEditVipListArr,"productId")}}},[l._v("确定")])],1)],1),a("router-view")],1)},v=[function(){var l=this,e=l.$createElement,a=l._self._c||e;return a("div",{staticClass:"name"},[a("span",[l._v("*")]),l._v(" 代理商品:")])}],b=(a("13d5"),a("a434"),a("99af"),a("b0c0"),a("159b"),a("fb6a"),a("ac1f"),a("1276"),a("c1df")),t=a.n(b),i=a("4115"),r=a("b824"),n=a("5a70"),s=a("f64c"),o=a("ed3b"),c=a("432b"),d=a("7925"),h={mixins:[c["a"]],components:{FooterToolBar:n["a"]},created:function(){var l=this;this.agentLevel=JSON.parse(localStorage.getItem("user")).agentLevel;var e=this.$route.params.id;this.vipListFn(),this.curriculumListFn(),this.sellingCourseFn(),this.sellingVipFn(),this.agentGrade(),0!=e?(this.detailsInit(),this.isDisable=!0):setTimeout((function(){l.forInit()}),1e3),this.options=i.address,this.cityOptions=r.address},data:function(){return{culumval:"",agentLevel:"",isDisable:!1,tableLoading:!0,isActiveClass:!1,tabChange:0,dateFormat:"YYYY-MM-DD",options:[],cityOptions:[],form:{agentAccount:"",agentName:"",code:"",agentGrade:void 0,belonging:void 0,region:void 0,bond:"",appletId:"",city:void 0,vipNum:"",shareProportion:"",regionalDivision:"",termOfValidity:[],passWord:"",affirmPassWord:""},rules:{agentAccount:[{required:!0,message:"请输入代理账号",trigger:"blur"}],agentName:[{required:!0,message:"请输入代理姓名",trigger:"blur"}],agentGrade:[{required:!0,message:"请选择代理等级",trigger:"change"}],belonging:[{required:!0,message:"请选择市级代理",trigger:"change"}],region:[{required:!0,message:"请选择区域",trigger:"change"}],bond:[{required:!0,message:"请输入保证金",trigger:"blur"}],appletId:[{required:!0,message:"请输入小程序ID",trigger:"blur"}],city:[{required:!0,message:"请选择市",trigger:"change"}],vipNum:[{required:!0,message:"请输入预购会员卡数量",trigger:"blur"}],shareProportion:[{required:!0,message:"请输入分成比例",trigger:"blur"}],regionalDivision:[{required:!0,message:"请输入地域归属分成比例",trigger:"blur"}],termOfValidity:[{required:!0,message:"请输入有效期",trigger:"blur"}],passWord:[{required:!0,validator:this.validatePwd,trigger:"blur"}],affirmPassWord:[{required:!0,validator:this.validateConfirmPwd,trigger:"blur"}]},tabList:[{id:1,name:"课程"},{id:2,name:"会员"},{id:3,name:"直销课程"},{id:4,name:"直销会员"}],curriculumRowKeys:[],curriculumColumns:[{title:"课程名称",dataIndex:"courseName",key:"courseName"},{title:"状态",dataIndex:"putawayFlag",key:"putawayFlag",scopedSlots:{customRender:"putawayFlag"}},{title:"课程类型",dataIndex:"courseType",key:"courseType"},{title:"定价",dataIndex:"price",key:"price"},{title:"成本",dataIndex:"cost",key:"cost",scopedSlots:{customRender:"cost"}}],curriculumColumns0:[{title:"课程名称",dataIndex:"courseName",key:"courseName"},{title:"定价",dataIndex:"price",key:"price"}],curriculumDataSource:[],vipRowKeys:[],vipColumns:[{title:"会员名称",dataIndex:"memberName",key:"memberName"},{title:"价格",dataIndex:"price",key:"price"},{title:"状态",dataIndex:"forbiddenStatus",key:"forbiddenStatus",scopedSlots:{customRender:"forbiddenStatus"}},{title:"有效期",dataIndex:"days",key:"days"},{title:"成本",dataIndex:"cost",key:"cost",scopedSlots:{customRender:"cost"}}],vipColumns0:[{title:"会员名称",dataIndex:"memberName",key:"memberName"},{title:"价格",dataIndex:"price",key:"price"},{title:"有效期",dataIndex:"days",key:"days"}],vipDataSource:[],sellingCourseRowKeys:[],sellingCourseColumns:[{title:"商品名称",dataIndex:"productName",key:"productName"},{title:"是否可用",dataIndex:"enableFlag",key:"enableFlag",scopedSlots:{customRender:"enableFlag"}},{title:"课程类型",dataIndex:"productType",key:"productType",scopedSlots:{customRender:"productType"}},{title:"定价",dataIndex:"price",key:"price"},{title:"成本",dataIndex:"cost",key:"cost",scopedSlots:{customRender:"cost"}}],sellingCourseColumns0:[{title:"商品名称",dataIndex:"productName",key:"productName"},{title:"定价",dataIndex:"price",key:"price"}],sellingCourseData:[],sellingVipRowKeys:[],sellingVipColumns:[{title:"商品名称",dataIndex:"productName",key:"productName"},{title:"价格",dataIndex:"price",key:"price"},{title:"状态",dataIndex:"enableFlag",key:"enableFlag",scopedSlots:{customRender:"enableFlag"}},{title:"商品类型",dataIndex:"productType",key:"productType",scopedSlots:{customRender:"productType"}},{title:"成本",dataIndex:"cost",key:"cost",scopedSlots:{customRender:"cost"}}],sellingVipColumns0:[{title:"商品名称",dataIndex:"productName",key:"productName"},{title:"价格",dataIndex:"price",key:"price"}],sellingVipData:[],agentGradeList:[],municipaLevel:[],level:"",levelNo:"",starTime:"",endTime:"",province:"",city:"",area:"",arrays:[],sellingArrays:[],editListArr:[],editVipListArr:[],sellingEditListArr:[],sellingEditVipListArr:[],arrt:[],arrtVip:[],jsonCurriculumRowKeys:"",jsonvipRowKeys:"",jsonsellingCurriculumRowKeysArrJson:"",jsonsellingvipRowKeysArrJson:"",result:[],vipResult:[],sellingresult:[],sellingvipResult:[]}},methods:{moment:t.a,validatePwd:function(l,e,a){var u=/^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])[0-9a-zA-Z]{8,16}$/;""===e?a("输入的密码不能为空"):u.test(e)?a():a("请输入8-16位字母+数字组合,必须含有大小写字母")},validateConfirmPwd:function(l,e,a){""==e?a("输入的确认密码不能为空"):e!=this.form.passWord?a("和上面密码不一致, 请重新输入"):a()},searchValue:function(){var l=this;this.curriculumDataSource=[];var e=this.$route.params.id;0==e?this.curriculumListFn():(this.curriculumListFn(),setTimeout((function(){l.detailsInit()}),500))},aggregateClick:function(){this.isActiveClass=!0},SelectVipChange:function(l){this.editVipListArr.push(l)},SelectChange:function(l){this.editListArr.push(l)},sellingSelectChange:function(l){this.sellingEditListArr.push(l)},sellingSelectVipChange:function(l){this.sellingEditVipListArr.push(l)},curriculumData:function(){for(var l=0;lh)throw TypeError(p);for(s=r(f,u),o=0;oy-u+a;o--)delete f[o-1]}else if(a>u)for(o=y-u;o>C;o--)g=o+u-1,m=o+a-1,g in f?f[m]=f[g]:delete f[m];for(o=0;o0,expression:"tabledData.length > 0"}],attrs:{count:l.count,pageNo:l.pageNo},on:{showSizeChangeFn:l.showSizeChangeFn}})],1)],1)]),a("router-view")],1)},v=[],b=a("b893"),t=a("81c8"),i=a("731b"),r=a("6ffe"),n={components:{MyPagination:r["a"]},created:function(){this.agentLevel=JSON.parse(localStorage.getItem("user")).agentLevel,this.proceedInit(),this.headerInit(),Object(b["a"])("/agent/admin/proceeds/applydrawcash")&&(this.isShowWithdrawal=!0)},watch:{$route:function(l){"/profitManage/incomeDetails"===l.path&&(this.proceedInit(),this.headerInit())}},data:function(){return{agentLevel:"",isShowWithdrawal:!1,formState:{status:void 0,type:void 0,time:[]},pageNo:1,pageSize:"",count:0,tableLoading:!0,tabChange:0,tabList:[{id:1,name:"全部"},{id:2,name:"在途"},{id:3,name:"已到账"},{id:4,name:"提现记录"}],columns:[{title:"金额",dataIndex:"amount",width:"33.3%",key:"amount"},{title:"描述",dataIndex:"remark",width:"33.3%",key:"remark"},{title:"时间",dataIndex:"payTime",width:"33.3%",key:"payTime"}],columnsRecord:[{title:"金额",dataIndex:"amount",width:"33.3%",key:"amount"},{title:"状态",dataIndex:"status",width:"33.3%",key:"status",scopedSlots:{customRender:"status"}},{title:"时间",dataIndex:"applyTime",width:"33.3%",key:"applyTime"}],tabledData:[],starTime:"",endTime:"",proceedsType:0,dataNun:{canDrawCash:"",drawCash:"",onTheWayProceeds:"",totalProceeds:""}}},methods:{searchClick:function(){var l=this;this.pageNo=1,this.tabledData=[],this.isDisableSearch=!0,setTimeout((function(){l.isDisableSearch=!1}),3e3),3==this.tabChange?this.withdrawalRecord():this.proceedInit()},termChange:function(l){0==l.length?(this.starTime="",this.endTime=""):(this.starTime=Object(b["b"])(new Date(l[0]._d),"yyyy-MM-dd 00:00:00"),this.endTime=Object(b["b"])(new Date(l[1]._d),"yyyy-MM-dd 00:00:00"))},showSizeChangeFn:function(l,e){this.tableLoading=!0,this.pageNos=l,this.pageSizes=e,0==this.tabChange?(this.proceedsType=0,this.proceedInit()):1==this.tabChange?(this.proceedsType=1,this.proceedInit()):2==this.tabChange?(this.proceedsType=2,this.proceedInit()):3==this.tabChange&&this.withdrawalRecord()},tabClick:function(l){this.tabChange=l,this.tabledData=[],this.count=0,this.pageNo=1,this.starTime="",this.endTime="",this.formState.status=void 0,this.formState.type=void 0,this.formState.time=[],0==l?(this.proceedsType=0,this.proceedInit()):1==l?(this.proceedsType=1,this.proceedInit()):2==l?(this.proceedsType=2,this.proceedInit()):3==l&&this.withdrawalRecord()},withdrawalClick:function(){this.$router.push("/profitManage/incomeDetails/applyWithdrawal")},withdrawalRecord:function(){var l=this,e=this.$route.params.id;Object(t["e"])({page:this.pageNo,agentNo:0==this.agentLevel?e:"",startTime:this.starTime,endTime:this.endTime,status:void 0==this.formState.status?0:this.formState.status}).then((function(e){var a=e.code,u=e.data;200===a&&(l.tableLoading=!1,l.tabledData=u.list,l.count=u.count)}))},proceedInit:function(){var l=this,e=this.$route.params.id;Object(i["a"])({page:this.pageNo,agentNo:0==this.agentLevel?e:"",startTime:this.starTime,endTime:this.endTime,proceedsType:this.proceedsType,productType:void 0==this.formState.type?0:this.formState.type}).then((function(e){var a=e.code,u=e.data;200===a?(l.tableLoading=!1,l.tabledData=u.list,l.count=u.count):l.tableLoading=!1}))},headerInit:function(){var l=this,e=this.$route.params.id;Object(i["b"])({agentNo:0==this.agentLevel?e:""}).then((function(e){var a=e.code,u=e.data;200===a&&(l.dataNun=u)}))}}},s=n,o=(a("6240"),a("2877")),c=Object(o["a"])(s,u,v,!1,null,"cf13e1e8",null);e["default"]=c.exports},d906:function(l,e,a){},dbb4:function(l,e,a){var u=a("23e7"),v=a("83ab"),b=a("56ef"),t=a("fc6a"),i=a("06cf"),r=a("8418");u({target:"Object",stat:!0,sham:!v},{getOwnPropertyDescriptors:function(l){var e,a,u=t(l),v=i.f,n=b(u),s={},o=0;while(n.length>o)a=v(u,e=n[o++]),void 0!==a&&r(s,e,a);return s}})},df50:function(l,e,a){},e439:function(l,e,a){var u=a("23e7"),v=a("d039"),b=a("fc6a"),t=a("06cf").f,i=a("83ab"),r=v((function(){t(1)})),n=!i||r;u({target:"Object",stat:!0,forced:n,sham:!i},{getOwnPropertyDescriptor:function(l,e){return t(b(l),e)}})},e45b:function(l,e,a){"use strict";a("df50")},e481:function(l,e,a){"use strict";a("9940")}}]); //# sourceMappingURL=agenEdit.e2e95bd3.js.map