chunk-d3bbf908.096b6594.js 60 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d3bbf908"],{"0ca4":function(e,t,a){},"36da":function(e,t,a){"use strict";a("4135")},3899:function(e,t,a){},4135:function(e,t,a){},5627:function(e,t,a){},"6cfe":function(e,t,a){"use strict";a.d(t,"f",(function(){return i})),a.d(t,"c",(function(){return s})),a.d(t,"b",(function(){return n})),a.d(t,"h",(function(){return o})),a.d(t,"g",(function(){return u})),a.d(t,"k",(function(){return m})),a.d(t,"a",(function(){return c})),a.d(t,"i",(function(){return p})),a.d(t,"j",(function(){return d})),a.d(t,"d",(function(){return v})),a.d(t,"e",(function(){return y}));var l=a("829b"),r=(a("4328"),"/api-web");function i(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object(l["a"])({url:r+"/memberRankSetting/findByOrganIds?organFeeFlag="+t,method:"post",data:e})}function s(e){return Object(l["a"])({url:r+"/memberRankOrganizationFeeMapper/getMemberRankSetting",method:"post",data:e})}function n(e){return Object(l["a"])({url:r+"/memberRankSetting/add",method:"post",data:e})}function o(e){return Object(l["a"])({url:r+"/memberRankSetting/queryPage",method:"post",data:e})}function u(e){return Object(l["a"])({url:r+"/memberRankSetting/get",method:"get",params:e})}function m(e){return Object(l["a"])({url:r+"/memberRankSetting/update",method:"post",data:e})}function c(e){return Object(l["a"])({url:r+"/memberRankOrganizationFeeMapper/addV2",method:"post",data:e})}function p(e){return Object(l["a"])({url:r+"/memberRankOrganizationFeeMapper/queryPage",method:"get",params:e})}function d(e){return Object(l["a"])({url:r+"/memberRankOrganizationFeeMapper/update",method:"post",data:e,requestType:"json"})}function v(e){return Object(l["a"])({url:r+"/memberRankSetting/categoryTree",method:"get",params:e})}function y(e){return Object(l["a"])({url:r+"/memberRankSetting/del/"+e.id,method:"post"})}},"78dd":function(e,t,a){"use strict";a("3899")},"8af7":function(e,t,a){"use strict";a("5627")},"92e3":function(e,t,a){"use strict";a.d(t,"v",(function(){return o})),a.d(t,"I",(function(){return u})),a.d(t,"t",(function(){return m})),a.d(t,"c",(function(){return c})),a.d(t,"E",(function(){return p})),a.d(t,"bb",(function(){return d})),a.d(t,"Z",(function(){return v})),a.d(t,"d",(function(){return y})),a.d(t,"M",(function(){return b})),a.d(t,"x",(function(){return f})),a.d(t,"db",(function(){return h})),a.d(t,"u",(function(){return g})),a.d(t,"o",(function(){return T})),a.d(t,"cb",(function(){return F})),a.d(t,"Q",(function(){return C})),a.d(t,"fb",(function(){return S})),a.d(t,"gb",(function(){return _})),a.d(t,"P",(function(){return E})),a.d(t,"U",(function(){return N})),a.d(t,"C",(function(){return I})),a.d(t,"l",(function(){return O})),a.d(t,"Y",(function(){return R})),a.d(t,"eb",(function(){return x})),a.d(t,"J",(function(){return M})),a.d(t,"m",(function(){return $})),a.d(t,"w",(function(){return A})),a.d(t,"N",(function(){return w})),a.d(t,"f",(function(){return P})),a.d(t,"e",(function(){return D})),a.d(t,"L",(function(){return L})),a.d(t,"K",(function(){return k})),a.d(t,"T",(function(){return V})),a.d(t,"H",(function(){return G})),a.d(t,"a",(function(){return U})),a.d(t,"y",(function(){return j})),a.d(t,"p",(function(){return q})),a.d(t,"n",(function(){return H})),a.d(t,"q",(function(){return B})),a.d(t,"g",(function(){return J})),a.d(t,"G",(function(){return Y})),a.d(t,"r",(function(){return X})),a.d(t,"D",(function(){return z})),a.d(t,"B",(function(){return K})),a.d(t,"A",(function(){return W})),a.d(t,"h",(function(){return Q})),a.d(t,"k",(function(){return Z})),a.d(t,"i",(function(){return ee})),a.d(t,"j",(function(){return te})),a.d(t,"S",(function(){return ae})),a.d(t,"O",(function(){return le})),a.d(t,"F",(function(){return re})),a.d(t,"z",(function(){return ie})),a.d(t,"R",(function(){return se})),a.d(t,"V",(function(){return ne})),a.d(t,"X",(function(){return oe})),a.d(t,"s",(function(){return ue})),a.d(t,"ab",(function(){return me})),a.d(t,"W",(function(){return ce})),a.d(t,"b",(function(){return de}));var l=a("b85c"),r=a("3835"),i=a("267e"),s=sessionStorage.getItem("tenantConfig");s=s?JSON.parse(s):{};var n=s.tenantId,o=null,u=null;1==n?(u=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],o=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"},{label:"直播课",value:"LIVE"}]):(u=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],o=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"},{label:"直播课",value:"LIVE"}]);var m=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"},{label:"直播课",value:"LIVE"}],c=[{label:"正常签到",value:1},{label:"异常签到",value:0}],p=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"劳务",value:"LABOUR"}],d=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],v=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],y=[].concat(v,[{value:"QUIT_SCHOOL",label:"休学"},{value:"DROP_OUT",label:"退学"},{value:"LATE",label:"迟到"}]),b=[{value:"APPLY",label:"报名"},{value:"RENEW",label:"续费"},{value:"MEMBER",label:"学练宝购买"},{value:"SMALL_CLASS_TO_BUY",label:"VIP购买"},{value:"SPORADIC",label:"零星收费"},{value:"LUCK",label:"福袋活动"},{value:"DEGREE_REGISTRATION",label:"考级报名"},{value:"DOUBLE_ELEVEN2020",label:"2020双十一活动"},{value:"DOUBLE_ELEVEN2021",label:"2021双十一活动"},{value:"DEGREE",label:"儿童节活动"},{value:"PRACTICE_GROUP_BUY",label:"网管课"},{value:"PRACTICE_GROUP_RENEW",label:"网管课续费"},{value:"REPAIR",label:"乐器维修"},{value:"OUTORDER",label:"外部收入"},{value:"GOODS_SELL",label:"商品销售"},{value:"MALL_BUY",label:"商城销售"},{value:"SUBJECT_CHANGE",label:"声部更换"},{value:"MAINTENANCE",label:"乐器保养"},{value:"ADD_STUDENT",label:"乐团报名"},{value:"REPLACEMENT",label:"乐器置换"},{value:"SCHOOL",label:"学校订单"},{value:"PERSONAL",label:"个人订单"},{value:"OTHER",label:"其他"},{value:"ACTIVITY",label:"活动购买"},{value:"LIVE_BUY",label:"直播购物"},{value:"LIVE_GROUP_BUY",label:"直播课购买"},{value:"SCHOOL_GOODS_PURCHASE",label:"商品采购"},{value:"DIRECTOR_TRAINING_CAMP",label:"乐队指导培训"}],f=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],h=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"}],g=[{value:"NOT_START",label:"未开始"},{value:"UNDERWAY",label:"进行中"},{value:"OVER",label:"已结束"}],T=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],F=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],C=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"},{value:"CARE_PACKAGE",label:"关心包"},{value:"COME_ON_PACKAGE",label:"加油包"}],S=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及练习回访",label:"课后及练习回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],_=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及练习回访",label:"课后及练习回访"},{value:"练习及乐团表现",label:"练习及乐团表现"},{label:"考勤申诉",value:"考勤申诉"},{value:"异常请假回访",label:"异常请假回访"}]},{value:"小课回访",label:"小课回访",children:[{value:"续费类回访",label:"续费类回访"},{value:"服务回访",label:"服务回访"},{value:"其他",label:"其他"}]},{value:"学练宝",label:"学练宝",children:[{value:"体验回访",label:"体验回访"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"},{value:"会员续费",label:"会员续费"}]}],E=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"},{value:"YEEPAY",label:"易宝"}],N=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],I=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"},{value:"OTHER",label:"其它"}],O=[{value:"1",label:"一年级"},{value:"2",label:"二年级"},{value:"3",label:"三年级"},{value:"4",label:"四年级"},{value:"5",label:"五年级"},{value:"6",label:"六年级"},{value:"7",label:"初一"},{value:"8",label:"初二"},{value:"9",label:"初三"},{value:"10",label:"高一"},{value:"11",label:"高二"},{value:"12",label:"高三"}],R=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],x=[{label:"不限制",value:"1"},{label:"线上不可调为线下",value:"0"},{label:"线下不可调为线上",value:"2"},{label:"线上线下不可互调",value:"3"}],M=pe(i["musicGroupType"]),$=pe(i["classTime"]),A=[{label:"课程收费",value:0},{label:"会员收费",value:2},{label:"免费",value:3}],w=pe(i["payOrderType"]),P=pe(i["auditType"]),D=pe(i["auditPaymentType"]),L=pe(i["orderServerType"]),k=pe(i["orderAuditType"]),V=pe(i["rewardModeType"]),G=pe(i["musicClassType"]),U=pe(i["ProbationPeriodStatus"]),j=pe(i["downListType"]),q=pe(i["conclusion"]),H=pe(i["clientType"]),B=pe(i["couponType"]),J=pe(i["backType"]),Y=pe(i["memberEnum"]),X=pe(i["coupontypeDetail"]),z=pe(i["issue"]),K=pe(i["feedbackType"]),W=pe(i["feedbackTypeDesc"]),Q=pe(i["campState"]),Z=pe(i["catgGoupType"]),ee=pe(i["catRole"]),te=pe(i["catType"]),ae=pe(i["quiteReason"]),le=pe(i["payUserType"]),re=pe(i["levelStatus"]),ie=pe(i["evaluateStatus"]),se=pe(i["problemType"]),ne=pe(i["schoolUserType"]),oe=pe(i["shareLiveType"]),ue=pe(i["courseEmnu"]),me=pe(i["suggestionType"]),ce=pe(i["scoreType"]);function pe(e){var t=[];for(var a in e)t.push({label:e[a],value:a});return t}var de=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],a=Object(r["a"])(t,2),i=a[0],s=a[1],n={};if(e&&e.length){var o,u=Object(l["a"])(e);try{for(u.s();!(o=u.n()).done;){var m=o.value;n[m[i]]=m[s]}}catch(c){u.e(c)}finally{u.f()}}return n}},e532:function(e,t,a){"use strict";a("f8fa")},e999:function(e,t,a){"use strict";a("0ca4")},f212:function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[a("h2",[a("el-page-header",{attrs:{content:e.title},on:{back:e.onCancel}})],1),e._v(" "),a("div",{staticClass:"m-core"},[a("el-steps",{staticClass:"steps",attrs:{active:e.active,"finish-status":"success","align-center":""}},[a("el-step",{attrs:{title:"基础信息"}}),e._v(" "),a("el-step",{attrs:{title:"缴费信息"}}),e._v(" "),a("el-step",{attrs:{title:"课酬信息"}})],1),e._v(" "),a("div",{staticClass:"wrap"},[1==e.active?a("baseInfo",{ref:"baseForm",attrs:{baseForm:e.baseForm,isDisabled:e.isDisabled,status:e.statuss},on:{resetPayInfo:e.resetPayInfo,resetBaseChannel:e.resetBaseChannel}}):e._e(),e._v(" "),2==e.active?a("payInfo",{ref:"payInfo",attrs:{payForm:e.payForm,remberList:e.remberList,organ:e.baseForm.organ,activeType:e.baseForm.activityType,activityChannel:e.baseForm.activityChannel,isDisabled:e.isDisabled||"DRAFT"!=e.statuss},on:{changeCourseType:e.changeCourseType,changeGiveCourseType:e.changeGiveCourseType,chageSalary:e.chageSalary,resetFixedCourseNumFlag:e.resetFixedCourseNumFlag}}):e._e(),e._v(" "),3==e.active?a("salaryInfo",{ref:"salaryInfo",attrs:{salaryForm:e.salaryForm,activeType:e.baseForm.activityType,payForm:e.payForm,isDisabled:e.isDisabled||"DRAFT"!=e.statuss,status:e.statuss}}):e._e()],1),e._v(" "),e.active>1?a("el-button",{staticStyle:{"margin-top":"12px"},attrs:{type:"primary"},on:{click:e.prve}},[e._v("上一步")]):e._e(),e._v(" "),e.active<3?a("el-button",{staticStyle:{"margin-top":"12px"},attrs:{type:"primary"},on:{click:e.next}},[e._v("下一步")]):e._e(),e._v(" "),e.isDisabled||"DRAFT"!=e.statuss?e._e():a("el-button",{staticStyle:{"margin-top":"12px"},attrs:{type:"danger"},on:{click:e.save}},[e._v("保存草稿")]),e._v(" "),3!=e.active||e.isDisabled||"DRAFT"!=e.statuss?e._e():a("el-button",{staticStyle:{"margin-top":"12px"},attrs:{type:"danger"},on:{click:e.submit}},[e._v("创建活动")]),e._v(" "),3!=e.active||e.isDisabled||"DRAFT"==e.statuss?e._e():a("el-button",{staticStyle:{"margin-top":"12px"},attrs:{type:"danger"},on:{click:e.submit}},[e._v("提交修改")])],1)])},r=[],i=(a("7f7f"),a("6762"),a("2fdb"),a("2909")),s=a("b85c"),n=a("c7eb"),o=(a("c5f6"),a("28a5"),a("96cf"),a("1da1")),u=a("5530"),m=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-alert",{staticClass:"baseMsg",attrs:{title:"基础信息",type:"info",closable:!1}}),e._v(" "),a("el-form",{ref:"vipform",staticClass:"vipform",attrs:{"label-position":e.labelPosition,model:e.baseForm,"label-width":"140px",rules:e.vipformRules}},[a("el-form-item",{attrs:{label:"活动名称",prop:"name"}},[a("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入活动名称",disabled:e.isDisabled||"DRAFT"!=e.status},model:{value:e.baseForm.name,callback:function(t){e.$set(e.baseForm,"name","string"===typeof t?t.trim():t)},expression:"baseForm.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"适用分部",prop:"organ"}},[a("select-all",{staticStyle:{width:"400px"},attrs:{multiple:"",filterable:"",clearable:"",disabled:e.isDisabled},on:{change:e.onOrganChange},model:{value:e.baseForm.organ,callback:function(t){e.$set(e.baseForm,"organ","string"===typeof t?t.trim():t)},expression:"baseForm.organ"}},e._l(e.selects.branchs,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"活动描述",prop:"description"}},[a("el-input",{staticStyle:{width:"400px"},attrs:{type:"textarea",rows:5,placeholder:"请输入活动说明",disabled:e.isDisabled||"DRAFT"!=e.status},model:{value:e.baseForm.description,callback:function(t){e.$set(e.baseForm,"description","string"===typeof t?t.trim():t)},expression:"baseForm.description"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"活动渠道",prop:"activityChannel"}},[a("el-select",{staticStyle:{width:"400px !important"},attrs:{placeholder:"请选择活动渠道",clearable:"",disabled:e.isDisabled||"DRAFT"!=e.status},on:{change:e.changeActivityChannel},model:{value:e.baseForm.activityChannel,callback:function(t){e.$set(e.baseForm,"activityChannel","string"===typeof t?t.trim():t)},expression:"baseForm.activityChannel"}},[a("el-option",{attrs:{label:"乐团小课",value:1}}),e._v(" "),a("el-option",{attrs:{label:"常规小课",value:2}}),e._v(" "),a("el-option",{attrs:{label:"学生购买",value:3}})],1)],1),e._v(" "),1!==e.baseForm.activityChannel?a("el-form-item",{attrs:{label:"活动类型",prop:"activityType"}},[a("el-select",{staticStyle:{width:"400px !important"},attrs:{placeholder:"请选择活动类型",clearable:"",disabled:e.isDisabled||"DRAFT"!=e.status},on:{change:e.changeActivityType},model:{value:e.baseForm.activityType,callback:function(t){e.$set(e.baseForm,"activityType","string"===typeof t?t.trim():t)},expression:"baseForm.activityType"}},[a("el-option",{attrs:{label:"课程活动",value:0}}),e._v(" "),a("el-option",{attrs:{label:"会员活动",value:1}})],1)],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"活动生效时间",prop:"activeTime"}},[a("el-date-picker",{attrs:{disabled:e.isDisabled,type:"datetimerange","default-time":["00:00:00","23:59:59"],"range-separator":"至","value-format":"yyyy-MM-dd HH:mm:ss","start-placeholder":"开始日期","picker-options":{firstDayOfWeek:1},"end-placeholder":"结束日期"},model:{value:e.baseForm.activeTime,callback:function(t){e.$set(e.baseForm,"activeTime","string"===typeof t?t.trim():t)},expression:"baseForm.activeTime"}}),e._v(" "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 可通过该方案购买课程的时间范围,到达开始时间才可购买,到达结束时间后不可购买,不填则不限制且立即生效\n ")]),e._v(" "),a("i",{staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1),e._v(" "),1!==e.baseForm.activityChannel?a("div",[a("el-form-item",{attrs:{label:"适用学员",prop:"applyToStudentType"}},[a("el-row",[a("el-col",{staticStyle:{width:"400px"}},[a("select-all",{staticStyle:{width:"400px"},attrs:{multiple:"",filterable:"",clearable:"",placeholder:"请选择适用学员",disabled:e.isDisabled},on:{change:e.applyToStudentTypeChange},model:{value:e.baseForm.applyToStudentType,callback:function(t){e.$set(e.baseForm,"applyToStudentType","string"===typeof t?t.trim():t)},expression:"baseForm.applyToStudentType"}},[a("el-option",{attrs:{label:"新学员",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"老学员",value:"0"}}),e._v(" "),a("el-option",{attrs:{label:"会员",value:"2"}}),e._v(" "),a("el-option",{attrs:{label:"非会员",value:"3"}})],1)],1),e._v(" "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 可通过该方案购买课程的学员群体,不填则不限制\n ")]),e._v(" "),a("i",{staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c","margin-left":"3px"}})])],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"可购买次数",prop:"studentMaxUsedTimes"}},[a("el-input",{staticStyle:{width:"400px"},attrs:{type:"number",disabled:e.isDisabled},model:{value:e.baseForm.studentMaxUsedTimes,callback:function(t){e.$set(e.baseForm,"studentMaxUsedTimes","string"===typeof t?t.trim():t)},expression:"baseForm.studentMaxUsedTimes"}},[a("template",{slot:"append"},[e._v("次")])],2),e._v(" "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 学员可以购买该活动方案的次数限制,不填则不限制\n ")]),e._v(" "),a("i",{staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)],1):e._e()],1)],1)},c=[],p=(a("ac6a"),a("7cdf"),a("7e78")),d=(a("1cc7"),a("e3eb")),v=a.n(d),y={props:["baseForm","isDisabled","status"],name:"vipNewActive",data:function(){return{pageType:"",labelPosition:"right",vipformRules:{name:[{required:!0,message:"请输入活动名称",trigger:"blur"},{min:1,max:25,message:"长度在 1 到 25 个字符",trigger:"blur"}],desc:[{required:!0,message:"请输入文字描述",trigger:"blur"},{min:1,max:200,message:"长度在 1 到 200 个字符",trigger:"blur"}],activityType:[{required:!0,message:"请选择活动类型",trigger:"change"}],activityChannel:[{required:!0,message:"请选择活动渠道",trigger:"change"}],courseTime:[{required:!1,message:"请选择课程时间",trigger:"change"}],studentMaxUsedTimes:[{required:!1,message:"请输入购买次数",trigger:"blur"},{pattern:/^\+?[1-9]\d*$/,message:"请输入大于0的正整数"}],organ:[{required:!0,message:"请选择适用分部",trigger:"change"}],stauts:[{required:!0,message:"请选择活动形式",trigger:"change"}],applyToStudentType:[{required:!1,message:"请选择是否新生专享"}],isPayToBalance:[{required:!0,message:"请选择是否支付到余额",trigger:"change"}],allowOnlineToOffline:[{required:!0,message:"请选择课程调整方式",trigger:"change"}]},courseStatusList:[],activeType:"",online:!0,unonline:!0,onlineSalary:"TEACHER_DEFAULT",unonlineSalary:"TEACHER_DEFAULT",onlineprice:"",unonlineprice:"",salaryReadonlyFlag:!1,paymentReadonlyFlag:!1,attribute1:"",attribute2:"",courseNumForm:{minCourseNum:"",maxCourseNum:"",studentMaxUsedTimes:""},giveClassPaySalaryFlag:!0,organList:[],onlineClassJoinGradientRewards:!1,offlineClassJoinGradientRewards:!1,courseNumrules:{minCourseNum:[{required:!0,message:"请输入最小课时数",trigger:"blur"},{validator:this.validateCom,trigger:"blur"},{validator:this.validateMin,trigger:"blur"}],maxCourseNum:[{required:!0,message:"请输入最大课时数",trigger:"blur"},{validator:this.validateCom,trigger:"blur"},{validator:this.validateMax,trigger:"blur"}]}}},mounted:function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(){return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$store.dispatch("setVipGroupCategory");case 2:return e.next=4,this.$store.dispatch("setBranchs");case 4:this.pageType=this.$route.query.type,this.$route.query.id||this.$refs.vipform.resetFields();case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{resetForm:function(){this.$refs.form.resetFields()},handleMinChange:function(){this.$refs.form.validateField("maxCourseNum")},handleMaxChange:function(){this.$refs.form.validateField("minCourseNum")},validateCom:function(e,t,a){var l=Number(t);return Number.isInteger(l)?l<MIN_NUMBER?a(new Error("输入值必须大于0")):l>MAX_NUMBER?a(new Error("输入值必须小于999")):a():a(new Error("输入值必须为正整数"))},validateMin:function(e,t,a){var l=Number(t),r=Number(this.courseNumForm.maxCourseNum);return!r||l<=r?a():a(new Error("输入值不得大于最大课时数"))},validateMax:function(e,t,a){var l=Number(t),r=Number(this.courseNumForm.minCourseNum);return!r||l>=r?a():a(new Error("输入值不得小于最小课时数"))},changeStauts:function(e){console.log(e)},changeActivityType:function(e){this.$emit("resetPayInfo")},changeActivityChannel:function(e){this.$emit("resetPayInfo"),this.$emit("resetBaseChannel",e)},submitFrom:function(){var e=this;this.$refs.form.validate((function(t){t&&e.$refs["vipform"].validate((function(t){if(t){var a=null,l=null,r=null,i=null;e.vipform.courseTime&&e.vipform.courseTime.length>0&&(a=e.vipform.courseTime[0],l=e.vipform.courseTime[1]),e.vipform.activeTime&&e.vipform.activeTime.length>0&&(r=e.vipform.activeTime[0],i=e.vipform.activeTime[1]);var s=e.vipform.organ.join(","),n=e.activeType;if(!n)return void e.$message.error("请选择活动类型");if(!e.online&&!e.unonline)return void e.$message.error("请选择活动适用范围");if("DISCOUNT"==n){if(!e.attribute1||e.attribute1<0)return void e.$message.error("折扣必须大于等于0")}else if("GIVE_CLASS"==n){if(!e.attribute1)return void e.$message.error("请输入多少节开始赠");if(!e.attribute2)return void e.$message.error("请输入赠送课时数")}var o,u,m=e.vipform.stauts.join(",");if(e.online){if("RATIO_DISCOUNT"==e.onlineSalary){if(e.onlineprice<0||e.onlineprice>100)return void e.$message.error("折扣比必须大于0且小于100")}else"TEACHER_DEFAULT"==e.onlineSalary&&(e.onlineprice=0);o={salarySettlementType:e.onlineSalary,settlementValue:e.onlineprice}}else o=null;if(e.unonline){if("RATIO_DISCOUNT"==e.unonlineSalary){if(e.unonlineprice<0||e.unonlineprice>100)return void e.$message.error("折扣比必须大于0且小于100")}else"TEACHER_DEFAULT"==e.unonlineSalary&&(e.unonlineprice=0);u={salarySettlementType:e.unonlineSalary,settlementValue:e.unonlineprice}}else u=null;var c=1*e.salaryReadonlyFlag,d=1*e.paymentReadonlyFlag,y={onlineSalarySettlement:o,offlineSalarySettlement:u};"BASE_ACTIVITY"==n?(e.courseNumForm.studentMaxUsedTimes=-1,e.courseNumForm.minCourseNum=-1,e.courseNumForm.maxCourseNum=-1):"GIVE_CLASS"==n&&(e.courseNumForm.minCourseNum=-1,e.courseNumForm.maxCourseNum=-1),Object(p["d"])(v()({coursesStartTime:a,coursesEndTime:l,startTime:r,endTime:i,name:e.vipform.name,description:e.vipform.desc,applyToStudentType:e.vipform.applyToStudentType,allowOnlineToOffline:e.vipform.allowOnlineToOffline,organId:s,type:n,vipGroupCategoryIdList:m,vipGroupSalarySettlement:y,salaryReadonlyFlag:c,paymentReadonlyFlag:d,giveClassPaySalaryFlag:1,attribute1:e.attribute1,attribute2:e.attribute2,minCourseNum:e.courseNumForm.minCourseNum,maxCourseNum:e.courseNumForm.maxCourseNum,studentMaxUsedTimes:e.courseNumForm.studentMaxUsedTimes?e.courseNumForm.studentMaxUsedTimes:-1,offlineClassJoinGradientRewards:1*e.offlineClassJoinGradientRewards,onlineClassJoinGradientRewards:1*e.onlineClassJoinGradientRewards})).then((function(t){200==t.code&&(e.$message.success("恭喜你,活动创建成功"),e.$store.dispatch("delVisitedViews",e.$route),e.$router.push({path:"/vipActiveManager/vipActiveList"}))}))}else e.$nextTick((function(){var e=document.getElementsByClassName("is-error");e[0].scrollIntoView({block:"center",behavior:"smooth"})}))}))}))},onOrganChange:function(){this.$refs.vipform.validateField("organ"),this.$forceUpdate()},applyToStudentTypeChange:function(){this.$refs.vipform.validateField("applyToStudentType"),this.$forceUpdate()},onCheckAllBranch:function(){var e=this.vipform;e.organ=[],this.selects.branchs.forEach((function(t){e.organ.push(t.id)})),this.$refs.vipform.validateField("organ"),this.$forceUpdate()},onReSet:function(){this.vipform={name:"",desc:"",activeTime:[],courseTime:[]},this.activeType="",this.online=!0,this.unonline=!0,this.salaryReadonlyFlag=!1,this.onlineSalary="TEACHER_DEFAULT",this.unonlineSalary="TEACHER_DEFAULT",this.onlineprice="",this.unonlineprice="",this.onlineClassJoinGradientRewards=!1,this.offlineClassJoinGradientRewards=!1,this.attribute1="",this.attribute2="",this.courseNumForm.maxCourseNum="",this.courseNumForm.minCourseNum=""}},computed:{balanceDis:function(){return!!this.baseForm.activityType&&(this.baseForm.isPayToBalance=0,!0)}}},b=y,f=(a("e999"),a("e532"),a("2877")),h=Object(f["a"])(b,m,c,!1,null,"67273912",null),g=h.exports,T=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-alert",{staticClass:"baseMsg",attrs:{title:"缴费信息",type:"info",closable:!1}}),e._v(" "),a("el-form",{ref:"form",attrs:{model:e.payForm,"label-width":"130px","label-position":"right",inline:!0}},[e.activeType?a("div",[a("el-row",[a("el-form-item",{attrs:{label:"学练宝版本",prop:"memberRankId",rules:[{required:!0,message:"请选择学练宝版本",trigger:"change"}]}},[a("el-cascader",{staticStyle:{width:"400px !important"},attrs:{options:e.remberList,props:{value:"id",label:"name"},"show-all-levels":!1,"collapse-tags":"",clearable:"",disabled:e.isDisabled,placeholder:"请选择学练宝版本"},model:{value:e.payForm.memberRankId,callback:function(t){e.$set(e.payForm,"memberRankId","string"===typeof t?t.trim():t)},expression:"payForm.memberRankId"}})],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{label:"周期",prop:"periodEnum",rules:[{required:!0,message:"请选择周期",trigger:"change"}]}},[a("el-select",{staticStyle:{width:"400px !important"},attrs:{placeholder:"请选择周期",clearable:"",disabled:e.isDisabled},model:{value:e.payForm.periodEnum,callback:function(t){e.$set(e.payForm,"periodEnum","string"===typeof t?t.trim():t)},expression:"payForm.periodEnum"}},e._l(e.memberEnumList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1)],1):a("div",[a("el-row",[a("el-form-item",{attrs:{label:"课程类型",prop:"courseType",rules:[{required:!0,message:"请选择课程类型",trigger:"change"}]}},[a("el-select",{staticStyle:{width:"400px !important"},attrs:{placeholder:"请选择课程类型",clearable:"",disabled:e.isDisabled},on:{change:e.changeCourseType},model:{value:e.payForm.courseType,callback:function(t){e.$set(e.payForm,"courseType","string"===typeof t?t.trim():t)},expression:"payForm.courseType"}},[a("el-option",{attrs:{label:"VIP课",value:"VIP"}}),e._v(" "),a("el-option",{attrs:{label:"网管课",value:"PRACTICE"}})],1)],1)],1),e._v(" "),a("el-row",["VIP"==e.payForm.courseType?a("el-form-item",{attrs:{rules:[{required:!0,message:"请选择课程形式",trigger:"change"}],label:"课程形式",prop:"vipGroupCategoryIdList"}},[a("el-select",{staticStyle:{width:"400px !important"},attrs:{clearable:"",disabled:e.isDisabled},on:{"visible-change":function(t){return e.$forceUpdate()},change:e.changeCateFee},model:{value:e.payForm.vipGroupCategoryIdList,callback:function(t){e.$set(e.payForm,"vipGroupCategoryIdList","string"===typeof t?t.trim():t)},expression:"payForm.vipGroupCategoryIdList"}},e._l(e.selects.vipGroupCategory,(function(e){return a("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1):e._e()],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{label:"单课时长",prop:"singleCourseTime",rules:[{required:!0,message:"请输入单课时长",trigger:"blur"}]}},[a("el-input",{staticStyle:{width:"400px"},attrs:{type:"number",placeholder:"单课时长",disabled:e.isDisabled},model:{value:e.payForm.singleCourseTime,callback:function(t){e.$set(e.payForm,"singleCourseTime",e._n(t))},expression:"payForm.singleCourseTime"}},[a("template",{slot:"append"},[e._v("分钟")])],2)],1)],1),e._v(" "),1!=e.activityChannel?a("el-row",[a("el-form-item",{attrs:{label:"课时范围",prop:"fixedCourseNumFlag",rules:[{required:!0,message:"请选择课时范围",trigger:"change"}]}},[a("el-select",{staticStyle:{width:"400px !important"},attrs:{placeholder:"请选择课时范围",clearable:"",disabled:e.isDisabled},on:{change:e.checkFixedCourseNumFlag},model:{value:e.payForm.fixedCourseNumFlag,callback:function(t){e.$set(e.payForm,"fixedCourseNumFlag","string"===typeof t?t.trim():t)},expression:"payForm.fixedCourseNumFlag"}},[a("el-option",{attrs:{label:"固定课时",value:!0}}),e._v(" "),a("el-option",{attrs:{label:"区间课时",value:!1}})],1)],1)],1):e._e(),e._v(" "),!1===e.payForm.fixedCourseNumFlag&&1!=e.activityChannel?a("el-row",[a("el-form-item",{attrs:{prop:"minCourseNum",label:"最小课时数",rules:[{required:!0,message:"请输入最小课时数",trigger:"blur"},{validator:this.validateCom,trigger:"blur"},{validator:this.validateMin,trigger:"blur"}]}},[a("el-input",{staticStyle:{width:"400px"},attrs:{type:"number",placeholder:"最小课时数",disabled:e.isDisabled},on:{change:e.handleMinChange},model:{value:e.payForm.minCourseNum,callback:function(t){e.$set(e.payForm,"minCourseNum",e._n(t))},expression:"payForm.minCourseNum"}},[a("template",{slot:"append"},[e._v("课时")])],2)],1)],1):e._e(),e._v(" "),!1===e.payForm.fixedCourseNumFlag&&1!=e.activityChannel?a("el-row",[a("el-form-item",{attrs:{prop:"maxCourseNum",label:"最大课时数",rules:[{required:!0,message:"请输入最大课时数",trigger:"blur"},{validator:this.validateCom,trigger:"blur"},{validator:this.validateMax,trigger:"blur"}]}},[a("el-input",{staticStyle:{width:"400px"},attrs:{type:"number",placeholder:"最大课时数",disabled:e.isDisabled},on:{change:e.handleMaxChange},model:{value:e.payForm.maxCourseNum,callback:function(t){e.$set(e.payForm,"maxCourseNum",e._n(t))},expression:"payForm.maxCourseNum"}},[a("template",{slot:"append"},[e._v("课时")])],2)],1)],1):e._e(),e._v(" "),1==e.activityChannel||e.payForm.fixedCourseNumFlag?a("el-row",[a("el-form-item",{attrs:{prop:"minCourseNum",label:"课时数",rules:[{required:!0,message:"请输入课时数",trigger:"blur"}]}},[a("el-input",{staticStyle:{width:"400px"},attrs:{type:"number",placeholder:"课时数",disabled:e.isDisabled},on:{change:e.handleMinChange},model:{value:e.payForm.minCourseNum,callback:function(t){e.$set(e.payForm,"minCourseNum",e._n(t))},expression:"payForm.minCourseNum"}},[a("template",{slot:"append"},[e._v("课时")])],2)],1)],1):e._e()],1),e._v(" "),1==e.activityChannel||e.payForm.fixedCourseNumFlag?e._e():a("el-row",[a("el-form-item",{attrs:{prop:"discount",label:"折扣值",rules:[{required:!0,message:"请输入折扣值",trigger:"blur"}]}},[a("el-input",{staticStyle:{width:"400px"},attrs:{type:"number",placeholder:"折扣值",disabled:e.isDisabled},model:{value:e.payForm.discount,callback:function(t){e.$set(e.payForm,"discount",e._n(t))},expression:"payForm.discount"}},[a("template",{slot:"append"},[e._v("%")])],2)],1)],1),e._v(" "),e.payForm.fixedCourseNumFlag||e.activeType||0==e.activeType?a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"活动售价",prop:"marketPrice",rules:[{required:!0,message:"请选输入活动售价",trigger:"blur"},{pattern:/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,message:"请输入正确的金额"}]}},[a("el-input",{staticStyle:{width:"400px"},attrs:{type:"number",disabled:e.isDisabled},model:{value:e.payForm.marketPrice,callback:function(t){e.$set(e.payForm,"marketPrice","string"===typeof t?t.trim():t)},expression:"payForm.marketPrice"}},[a("template",{slot:"append"},[e._v("元")])],2),e._v(" "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 该字段仅用于关联的营销活动中本方案的销售价格,后台、老师端为学员创建课程不受此价格影响\n ")]),e._v(" "),a("i",{staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)],1),e._v(" "),a("el-col",[a("el-form-item",{attrs:{label:"活动原价",prop:"originalPrice",rules:[{required:!0,message:"请选输入活动原价",trigger:"blur"},{pattern:/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,message:"请输入正确的金额"}]}},[a("el-input",{staticStyle:{width:"400px"},attrs:{type:"number",disabled:e.isDisabled},model:{value:e.payForm.originalPrice,callback:function(t){e.$set(e.payForm,"originalPrice","string"===typeof t?t.trim():t)},expression:"payForm.originalPrice"}},[a("template",{slot:"append"},[e._v("元")])],2)],1)],1)],1):e._e(),e._v(" "),1!=e.activityChannel?a("el-row",[a("el-form-item",{attrs:{prop:"fullMinusCourseTimes",label:"满赠达标数量"}},[a("el-input",{staticStyle:{width:"400px"},attrs:{type:"number",placeholder:"满赠达标数量",disabled:e.isDisabled},on:{input:e.changeFullMinus},model:{value:e.payForm.fullMinusCourseTimes,callback:function(t){e.$set(e.payForm,"fullMinusCourseTimes",e._n(t))},expression:"payForm.fullMinusCourseTimes"}})],1)],1):e._e(),e._v(" "),1!=e.activityChannel?a("el-row",[a("el-col",[e.payForm.fullMinusCourseTimes?a("el-form-item",{attrs:{label:"赠送类型",prop:"giveCourseType",rules:[{required:!0,message:"请选择赠送类型",trigger:"change"}]}},[a("el-select",{staticStyle:{width:"400px !important"},attrs:{placeholder:"请选择赠送类型",clearable:"",disabled:e.isDisabled},on:{change:e.changeGiveCourseType},model:{value:e.payForm.giveCourseType,callback:function(t){e.$set(e.payForm,"giveCourseType","string"===typeof t?t.trim():t)},expression:"payForm.giveCourseType"}},[a("el-option",{attrs:{label:"VIP课",value:"VIP"}}),e._v(" "),a("el-option",{attrs:{label:"网管课",value:"PRACTICE"}}),e._v(" "),a("el-option",{attrs:{label:"会员",value:"MEMBER"}})],1)],1):e._e()],1),e._v(" "),a("el-col",["VIP"==e.payForm.giveCourseType&&e.payForm.fullMinusCourseTimes?a("el-form-item",{attrs:{label:"赠课形式",prop:"giveCategoryId",rules:[{required:!0,message:"请选择赠课形式",trigger:"change"}]}},[a("el-select",{staticStyle:{width:"400px !important"},attrs:{clearable:"",disabled:e.isDisabled},on:{"visible-change":function(t){return e.$forceUpdate()},change:e.chageSalary},model:{value:e.payForm.giveCategoryId,callback:function(t){e.$set(e.payForm,"giveCategoryId","string"===typeof t?t.trim():t)},expression:"payForm.giveCategoryId"}},e._l(e.selects.vipGroupCategory,(function(e){return a("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1):e._e()],1)],1):e._e(),e._v(" "),"MEMBER"!=e.payForm.giveCourseType&&e.payForm.fullMinusCourseTimes?a("el-form-item",{attrs:{label:"赠课时长",prop:"giveSingleCourseTime",rules:[{required:!0,message:"请选择赠课时长",trigger:"blur"}]}},[a("el-input",{staticStyle:{width:"400px"},attrs:{type:"number",placeholder:"赠课时长",disabled:e.isDisabled},model:{value:e.payForm.giveSingleCourseTime,callback:function(t){e.$set(e.payForm,"giveSingleCourseTime",e._n(t))},expression:"payForm.giveSingleCourseTime"}},[a("template",{slot:"append"},[e._v("分钟")])],2)],1):e._e(),e._v(" "),"MEMBER"!=e.payForm.giveCourseType&&e.payForm.fullMinusCourseTimes?a("el-row",[a("el-form-item",{attrs:{prop:"giveCourseNum",label:"赠送课时数",rules:[{required:!0,message:"请输入赠送课时数",trigger:"blur"}]}},[a("el-input",{staticStyle:{width:"400px"},attrs:{type:"number",placeholder:"赠送课时数",disabled:e.isDisabled},on:{input:e.changeGiveCourseNum},model:{value:e.payForm.giveCourseNum,callback:function(t){e.$set(e.payForm,"giveCourseNum",e._n(t))},expression:"payForm.giveCourseNum"}},[a("template",{slot:"append"},[e._v("课时")])],2)],1)],1):e._e(),e._v(" "),"MEMBER"==e.payForm.giveCourseType&&e.payForm.fullMinusCourseTimes?a("el-row",[a("el-form-item",{attrs:{label:"赠送会员名称",prop:"giveMemberRankId",rules:[{required:!0,message:"请选择赠送会员名称",trigger:"change"}]}},[a("el-cascader",{staticStyle:{width:"400px !important"},attrs:{disabled:e.isDisabled,options:e.remberList,props:{value:"id",label:"name"},"show-all-levels":!1,"collapse-tags":"",clearable:"",placeholder:"请选择学练宝版本"},model:{value:e.payForm.giveMemberRankId,callback:function(t){e.$set(e.payForm,"giveMemberRankId","string"===typeof t?t.trim():t)},expression:"payForm.giveMemberRankId"}})],1)],1):e._e(),e._v(" "),"MEMBER"==e.payForm.giveCourseType&&e.payForm.fullMinusCourseTimes?a("el-row",[a("el-form-item",{attrs:{prop:"giveMemberTime",label:"赠送会员时长",rules:[{required:!0,message:"请输入赠送会员时长",trigger:"blur"}]}},[a("el-input",{staticStyle:{width:"400px"},attrs:{type:"number",placeholder:"请输入赠送会员时长",disabled:e.isDisabled},model:{value:e.payForm.giveMemberTime,callback:function(t){e.$set(e.payForm,"giveMemberTime",e._n(t))},expression:"payForm.giveMemberTime"}},[a("template",{slot:"append"},[e._v("天")])],2)],1)],1):e._e()],1)],1)},F=[],C=a("92e3"),S=1,_=999,E={props:["organ","payForm","remberList","activeType","isDisabled","activityChannel"],data:function(){return{coureTimerList:[],vipResetTypeList:C["eb"],memberEnumList:C["G"],studentRuleNum:null,unOnlinePay:!1,unOnlineFee:!1}},mounted:function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(){var t,a;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(p["y"])();case 2:return t=e.sent,a=JSON.parse(t.data.config),this.studentRuleNum=a.cloud_room_rule.cloud_room_up_limit-1,e.next=7,this.$store.dispatch("setVipGroupCategory");case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{handleMinChange:function(){this.$refs.form.validateField("maxCourseNum")},handleMaxChange:function(){this.$refs.form.validateField("minCourseNum")},validateCom:function(e,t,a){var l=Number(t);return Number.isInteger(l)?l<S?a(new Error("输入值必须大于0")):l>_?a(new Error("输入值必须小于999")):a():a(new Error("输入值必须为正整数"))},validateMin:function(e,t,a){var l=Number(t),r=Number(this.payForm.maxCourseNum);return!r||l<=r?a():a(new Error("输入值不得大于最大课时数"))},validateMax:function(e,t,a){var l=Number(t),r=Number(this.payForm.minCourseNum);return!r||l>=r?a():a(new Error("输入值不得小于最小课时数"))},changeCourseType:function(e){this.$emit("chageSalary"),this.$emit("changeCourseType",e)},changeGiveCourseType:function(e){this.$emit("chageSalary"),this.$emit("changeGiveCourseType",e)},chageSalary:function(e){var t=this;this.selects.vipGroupCategory.forEach((function(a){a.id==e&&(t.studentNum=a.studentNum)})),this.studentNum>this.studentRuleNum?(this.$set(this.payForm,"giveTeachMode","1"),this.$set(this.payForm,"giveAllowOnlineToOffline","3"),this.unOnlinePay=!0):(this.unOnlinePay=!1,this.$set(this.payForm,"giveTeachMode",null),this.$set(this.payForm,"giveAllowOnlineToOffline",null)),this.$emit("chageSalary")},changeFullMinus:function(e){(!e||e<=0)&&(this.$emit("chageSalary"),this.$emit("changeGiveCourseType"))},changeGiveCourseNum:function(e){(!e||e<=0)&&this.$emit("chageSalary")},checkFixedCourseNumFlag:function(e){e||this.$emit("resetFixedCourseNumFlag")},changeCateFee:function(e){var t=this;this.selects.vipGroupCategory.forEach((function(a){a.id==e&&(t.studentNum=a.studentNum)})),this.studentNum>this.studentRuleNum?(this.$set(this.payForm,"teachMode","1"),this.$set(this.payForm,"allowOnlineToOffline","3"),this.unOnlinePay=!0):(this.unOnlinePay=!1,this.$set(this.payForm,"teachMode",null),this.$set(this.payForm,"allowOnlineToOffline",null))}}},N=E,I=(a("78dd"),Object(f["a"])(N,T,F,!1,null,"1ccef9b0",null)),O=I.exports,R=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-alert",{staticClass:"baseMsg",attrs:{title:"课酬信息",type:"info",closable:!1}}),e._v(" "),e.activeType&&"MEMBER"==e.payForm.giveCourseType||e.activeType&&!e.payForm.giveCourseType?a("div",[a("empty",{attrs:{desc:"该活动方案未设置课程,无需设置课酬信息"}})],1):a("el-form",{ref:"salaryForm",attrs:{model:e.salaryForm,"label-width":"150px","label-position":"right",inline:!0}},["VIP"==e.payForm.courseType?a("el-row",[a("el-form-item",{attrs:{label:"付费VIP课课酬",prop:"offlineSalarySettlement.salarySettlementType",rules:[{required:!0,message:"请选择付费VIP课课酬"}]}},[a("el-select",{staticStyle:{width:"240px !important"},attrs:{placeholder:"请选择付费VIP课课酬",clearable:"",disabled:e.isDisabled},model:{value:e.salaryForm.offlineSalarySettlement.salarySettlementType,callback:function(t){e.$set(e.salaryForm.offlineSalarySettlement,"salarySettlementType","string"===typeof t?t.trim():t)},expression:"\n salaryForm.offlineSalarySettlement.salarySettlementType\n "}},[a("el-option",{attrs:{label:"标准课酬",value:"TEACHER_DEFAULT"}}),e._v(" "),a("el-option",{attrs:{label:"自定义课酬",value:"FIXED_SALARY"}})],1)],1),e._v(" "),"FIXED_SALARY"==e.salaryForm.offlineSalarySettlement.salarySettlementType?a("el-form-item",{attrs:{label:"自定义课时课酬",rules:[{required:!0,message:"请输入自定义课时课酬"}],prop:"offlineSalarySettlement.settlementValue"}},[a("el-input",{staticStyle:{width:"240px"},attrs:{type:"number",placeholder:"自定义课时课酬",disabled:e.isDisabled},model:{value:e.salaryForm.offlineSalarySettlement.settlementValue,callback:function(t){e.$set(e.salaryForm.offlineSalarySettlement,"settlementValue",e._n(t))},expression:"salaryForm.offlineSalarySettlement.settlementValue"}},[a("template",{slot:"append"},[e._v("元/课时")])],2)],1):e._e()],1):e._e(),e._v(" "),a("el-row",["PRACTICE"==e.payForm.courseType?a("el-form-item",{attrs:{label:"付费网管课课酬",prop:"practiceSalarySettlement.salarySettlementType",rules:[{required:!0,message:"请选择付费网管课课酬"}]}},[a("el-select",{staticStyle:{width:"240px !important"},attrs:{placeholder:"请选择付费网管课课酬",clearable:"",disabled:e.isDisabled},model:{value:e.salaryForm.practiceSalarySettlement.salarySettlementType,callback:function(t){e.$set(e.salaryForm.practiceSalarySettlement,"salarySettlementType","string"===typeof t?t.trim():t)},expression:"\n salaryForm.practiceSalarySettlement.salarySettlementType\n "}},[a("el-option",{attrs:{label:"标准课酬",value:"TEACHER_DEFAULT"}}),e._v(" "),a("el-option",{attrs:{label:"自定义课酬",value:"FIXED_SALARY"}})],1)],1):e._e(),e._v(" "),"FIXED_SALARY"==e.salaryForm.practiceSalarySettlement.salarySettlementType&&"PRACTICE"==e.payForm.courseType?a("el-form-item",{attrs:{rules:[{required:!0,message:"请输入自定义课时课酬"}],label:"自定义课时课酬",prop:"practiceSalarySettlement.settlementValue"}},[a("el-input",{staticStyle:{width:"240px"},attrs:{type:"number",placeholder:"自定义课时课酬",disabled:e.isDisabled},model:{value:e.salaryForm.practiceSalarySettlement.settlementValue,callback:function(t){e.$set(e.salaryForm.practiceSalarySettlement,"settlementValue",e._n(t))},expression:"salaryForm.practiceSalarySettlement.settlementValue"}},[a("template",{slot:"append"},[e._v("元/课时")])],2)],1):e._e()],1),e._v(" "),"VIP"==e.payForm.giveCourseType?a("el-row",[a("el-form-item",{attrs:{label:"赠送VIP课课酬",prop:"giveVipOfflineSalarySettlement.salarySettlementType",rules:[{required:!0,message:"请选择赠送VIP课课酬"}]}},[a("el-select",{staticStyle:{width:"240px !important"},attrs:{placeholder:"请选择赠送VIP课课酬",clearable:"",disabled:e.isDisabled},model:{value:e.salaryForm.giveVipOfflineSalarySettlement.salarySettlementType,callback:function(t){e.$set(e.salaryForm.giveVipOfflineSalarySettlement,"salarySettlementType","string"===typeof t?t.trim():t)},expression:"\n salaryForm.giveVipOfflineSalarySettlement.salarySettlementType\n "}},[a("el-option",{attrs:{label:"标准课酬",value:"TEACHER_DEFAULT"}}),e._v(" "),a("el-option",{attrs:{label:"自定义课酬",value:"FIXED_SALARY"}})],1)],1),e._v(" "),"FIXED_SALARY"==e.salaryForm.giveVipOfflineSalarySettlement.salarySettlementType?a("el-form-item",{attrs:{label:"自定义课时课酬",rules:[{required:!0,message:"请输入自定义课时课酬"}],prop:"giveVipOfflineSalarySettlement.settlementValue"}},[a("el-input",{staticStyle:{width:"240px"},attrs:{type:"number",placeholder:"自定义课时课酬",disabled:e.isDisabled},model:{value:e.salaryForm.giveVipOfflineSalarySettlement.settlementValue,callback:function(t){e.$set(e.salaryForm.giveVipOfflineSalarySettlement,"settlementValue",e._n(t))},expression:"\n salaryForm.giveVipOfflineSalarySettlement.settlementValue\n "}},[a("template",{slot:"append"},[e._v("元/课时")])],2)],1):e._e()],1):e._e(),e._v(" "),"PRACTICE"==e.payForm.giveCourseType&&e.payForm.giveCourseNum>0?a("el-row",[a("el-form-item",{attrs:{label:"赠送网管课课酬",prop:"givePracticeSalarySettlement.salarySettlementType",rules:[{required:!0,message:"请选择赠送网管课课酬"}]}},[a("el-select",{staticStyle:{width:"240px !important"},attrs:{placeholder:"请选择赠送网管课课酬",clearable:"",disabled:e.isDisabled},model:{value:e.salaryForm.givePracticeSalarySettlement.salarySettlementType,callback:function(t){e.$set(e.salaryForm.givePracticeSalarySettlement,"salarySettlementType","string"===typeof t?t.trim():t)},expression:"\n salaryForm.givePracticeSalarySettlement.salarySettlementType\n "}},[a("el-option",{attrs:{label:"标准课酬",value:"TEACHER_DEFAULT"}}),e._v(" "),a("el-option",{attrs:{label:"自定义课酬",value:"FIXED_SALARY"}})],1)],1),e._v(" "),"FIXED_SALARY"==e.salaryForm.givePracticeSalarySettlement.salarySettlementType&&"PRACTICE"==e.payForm.giveCourseType&&e.payForm.giveCourseNum>0?a("el-form-item",{attrs:{label:"自定义课时课酬",prop:"givePracticeSalarySettlement.settlementValue"}},[a("el-input",{staticStyle:{width:"240px"},attrs:{type:"number",placeholder:"自定义课时课酬",disabled:e.isDisabled},model:{value:e.salaryForm.givePracticeSalarySettlement.settlementValue,callback:function(t){e.$set(e.salaryForm.givePracticeSalarySettlement,"settlementValue",e._n(t))},expression:"\n salaryForm.givePracticeSalarySettlement.settlementValue\n "}},[a("template",{slot:"append"},[e._v("元/课时")])],2)],1):e._e()],1):e._e()],1)],1)},x=[],M={props:["salaryForm","payForm","activeType","isDisabled"],data:function(){return{}},mounted:function(){},methods:{},computed:{courseTeachModeOnline:function(){var e,t,a;return(-1==(null===(e=this.payForm)||void 0===e?void 0:e.teachMode)||0==(null===(t=this.payForm)||void 0===t?void 0:t.teachMode))&&"VIP"==(null===(a=this.payForm)||void 0===a?void 0:a.courseType)},courseTeachModeOffline:function(){var e,t,a,l;return(-1==(null===(e=this.payForm)||void 0===e?void 0:e.teachMode)||1==(null===(t=this.payForm)||void 0===t?void 0:t.teachMode)||0==(null===(a=this.payForm)||void 0===a?void 0:a.teachMode))&&"VIP"==(null===(l=this.payForm)||void 0===l?void 0:l.courseType)},giveCourseTeachModeOnline:function(){var e,t,a,l,r;return(-1==(null===(e=this.payForm)||void 0===e?void 0:e.giveTeachMode)||0==(null===(t=this.payForm)||void 0===t?void 0:t.giveTeachMode))&&(null===(a=this.payForm)||void 0===a?void 0:a.fullMinusCourseTimes)>0&&"VIP"==(null===(l=this.payForm)||void 0===l?void 0:l.giveCourseType)&&(null===(r=this.payForm)||void 0===r?void 0:r.giveCourseNum)>0},giveCourseTeachModeOffline:function(){var e,t,a,l,r,i;return(-1==(null===(e=this.payForm)||void 0===e?void 0:e.giveTeachMode)||1==(null===(t=this.payForm)||void 0===t?void 0:t.giveTeachMode)||0==(null===(a=this.payForm)||void 0===a?void 0:a.giveTeachMode))&&(null===(l=this.payForm)||void 0===l?void 0:l.fullMinusCourseTimes)>0&&"VIP"==(null===(r=this.payForm)||void 0===r?void 0:r.giveCourseType)&&(null===(i=this.payForm)||void 0===i?void 0:i.giveCourseNum)>0}}},$=M,A=(a("36da"),Object(f["a"])($,R,x,!1,null,"8f81f3b2",null)),w=A.exports,P=a("7676"),D=a.n(P),L=a("6cfe"),k={courseType:"",vipGroupCategoryIdList:"",applyToStudentType:[],teachMode:null,allowOnlineToOffline:"",singleCourseTime:null,fixedCourseNumFlag:!1,minCourseNum:null,maxCourseNum:null,memberRankId:null,periodEnum:null,discount:100,fullMinusCourseTimes:null,giveCourseType:null,giveTeachMode:null,giveCategoryId:null,giveSingleCourseTime:null,giveCourseNum:null,giveMemberRankId:null,giveMemberTime:null,giveAllowOnlineToOffline:null},V={vipOnlineSalarySettlement:{salarySettlementType:null,settlementValue:null},offlineSalarySettlement:{salarySettlementType:null,settlementValue:null},giveVipOnlineSalarySettlement:{salarySettlementType:null,settlementValue:null},giveVipOfflineSalarySettlement:{salarySettlementType:null,settlementValue:null},practiceSalarySettlement:{salarySettlementType:null,settlementValue:null},givePracticeSalarySettlement:{salarySettlementType:null,settlementValue:null}},G={components:{baseInfo:g,payInfo:O,salaryInfo:w},data:function(){return{status:"DRAFT",active:1,remberList:[],baseForm:{name:"",description:"",activeTime:[],courseTime:[],organ:[],activityType:"",applyToStudentType:[],studentMaxUsedTimes:"",isPayToBalance:"",marketPrice:"",activityChannel:null,originalPrice:null},title:"新建课程活动方案",payForm:Object(u["a"])({},k),salaryForm:Object(u["a"])({},V)}},mounted:function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(){var t,a;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.$route.query.id){e.next=13;break}return this.baseForm.id=this.$route.query.id,e.next=4,Object(p["G"])({id:this.$route.query.id});case 4:if(t=e.sent,a=t.data.organId.split(",").map((function(e){return Number(e)})),!(a&&a.length>0)){e.next=9;break}return e.next=9,this.getMemberList(a);case 9:this.formatDetail(t.data),this.$router,e.next=15;break;case 13:this.payInfo=Object(u["a"])({},k),this.salaryForm=JSON.parse(JSON.stringify(Object(u["a"])({},V)));case 15:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{onCancel:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/vipActiveManager/vipActiveList",query:{rules:this.rules,searchForm:this.searchForm}})},next:function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(){var t;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=!0,1!=this.active){e.next=7;break}return this.$refs.baseForm.$refs.vipform.validate((function(e){t=e})),e.next=5,this.getMemberList(this.baseForm.organ);case 5:e.next=8;break;case 7:2==this.active&&this.$refs.payInfo.$refs.form.validate((function(e){t=e}));case 8:if(t){e.next=10;break}return e.abrupt("return");case 10:this.active<3&&this.active++;case 11:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),prve:function(){this.active>=2&&this.active--},resetPayInfo:function(){this.payForm=Object(u["a"])({},k)},resetBaseChannel:function(e){this.$set(this.baseForm,"courseTime",[]),this.$set(this.baseForm,"activityType",null),this.$set(this.baseForm,"applyToStudentType",[]),this.$set(this.baseForm,"studentMaxUsedTimes",null),this.$set(this.baseForm,"isPayToBalance",null),this.$set(this.baseForm,"marketPrice",null),this.$set(this.baseForm,"originalPrice",null),1==e&&(this.$set(this.baseForm,"activityType",0),this.$set(this.payForm,"allowOnlineToOffline",1),this.$set(this.payForm,"teachMode",-1))},changeCourseType:function(e){"PRACTICE"==e?(this.$set(this.payForm,"vipGroupCategoryIdList",""),this.$set(this.payForm,"teachMode",""),this.$set(this.payForm,"singleCourseTime",25),this.$set(this.payForm,"allowOnlineToOffline","")):(this.$set(this.payForm,"singleCourseTime",45),this.$set(this.payForm,"allowOnlineToOffline",""),this.$set(this.payForm,"vipGroupCategoryIdList",""),this.$set(this.payForm,"teachMode",""))},changeGiveCourseType:function(e){"PRACTICE"==e?this.$set(this.payForm,"giveSingleCourseTime",25):"VIP"==e?this.$set(this.payForm,"giveSingleCourseTime",45):this.$set(this.payForm,"giveSingleCourseTime",null),this.$set(this.payForm,"giveCourseNum",null),this.$set(this.payForm,"giveCategoryId",null),this.$set(this.payForm,"giveMemberRankId",null),this.$set(this.payForm,"givePeriod",null),this.$set(this.payForm,"giveTeachMode",""),this.$set(this.payForm,"giveAllowOnlineToOffline","")},chageSalary:function(){this.salaryForm=null,this.salaryForm=JSON.parse(JSON.stringify(Object(u["a"])({},V))),this.$forceUpdate()},resetFixedCourseNumFlag:function(){this.$set(this.payForm,"maxCourseNum",null),this.$set(this.payForm,"minCourseNum",null)},submit:function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(){var t,a,l,r=this;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:null!==(t=this.$refs)&&void 0!==t&&null!==(a=t.salaryInfo)&&void 0!==a&&null!==(l=a.$refs)&&void 0!==l&&l.salaryForm?this.$refs.salaryInfo.$refs.salaryForm.validate((function(e){e&&(r.baseForm.status="PROGRESS",r.submitDataFormat("PROGRESS"))})):(this.baseForm.status="PROGRESS",this.submitDataFormat("PROGRESS"));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),save:function(){this.baseForm.status="DRAFT",this.submitDataFormat("DRAFT")},submitDataFormat:function(e){var t=this,a=null,l=null,r=null,i=null;this.baseForm.courseTime&&this.baseForm.courseTime.length>0&&(a=this.baseForm.courseTime[0],l=this.baseForm.courseTime[1]),this.baseForm.activeTime&&this.baseForm.activeTime.length>0&&(r=this.baseForm.activeTime[0],i=this.baseForm.activeTime[1]);var s=this.baseForm.organ.join(",");for(var n in this.baseForm.studentMaxUsedTimes?this.baseForm.studentMaxUsedTimes:this.baseForm.studentMaxUsedTimes=-1,this.salaryForm)"TEACHER_DEFAULT"==this.salaryForm[n].salarySettlementType&&(this.salaryForm[n].settlementValue=null);var o=this.baseForm.applyToStudentType.join(","),m=this.salaryForm;(1==this.baseForm.activityChannel||this.payForm.fixedCourseNumFlag)&&(this.payForm.maxCourseNum=this.payForm.minCourseNum),1!=this.baseForm.activityChannel&&this.payForm.fixedCourseNumFlag&&(this.payForm.discount=100);var c=null,d=this.payForm.memberRankId;d&&d.length>0&&(c=d[d.length-1]);var y=null,b=this.payForm.giveMemberRankId;b&&b.length>0&&(y=b[b.length-1]);var f=Object(u["a"])(Object(u["a"])(Object(u["a"])({},this.baseForm),this.payForm),{},{memberRankId:c,giveMemberRankId:y,organId:s,coursesStartTime:a,coursesEndTime:l,startTime:r,endTime:i,applyToStudentType:o,vipGroupSalarySettlement:m});this.baseForm.id?Object(p["S"])(v()(f)).then((function(a){200==a.code&&("DRAFT"==e?(t.$message.success("恭喜你,保存草稿成功"),t.baseForm.id=a.data.id,t.$router.push({query:D()(t.$route.query,{id:a.data.id})}),t.formatDetail(a.data)):(localStorage.removeItem("newVip"),localStorage.removeItem("newPractice"),t.$message.success("活动修改成功"),t.$store.dispatch("delVisitedViews",t.$route),t.$router.push({path:"/vipActiveManager/vipActiveList"})))})):Object(p["d"])(v()(f)).then((function(a){200==a.code&&("DRAFT"==e?(t.$message.success("恭喜你,保存草稿成功"),t.baseForm.id=a.data.id,t.$nextTick((function(){t.formatDetail(a.data)})),t.$router.push({query:D()(t.$route.query,{id:a.data.id})})):(t.$message.success("活动创建成功"),t.$store.dispatch("delVisitedViews",t.$route),t.$router.push({path:"/vipActiveManager/vipActiveList"})))}))},formatParentId:function(e,t){var a,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Object(s["a"])(t);try{for(r.s();!(a=r.n()).done;){var n=a.value;if(n.children){var o=this.formatParentId(e,n.children,[].concat(Object(i["a"])(l),[n.id]));if(o.includes(e))return o}if(n.id===e)return[].concat(Object(i["a"])(l),[e])}}catch(u){r.e(u)}finally{r.f()}return l},getMemberList:function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(t){var a;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(L["f"])(t);case 3:a=e.sent,this.remberList=a.data||[],e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(t){return e.apply(this,arguments)}return t}(),formatDetail:function(e){for(var t in this.status=e.status,e)"teachMode"!=t&&"giveTeachMode"!=t&&-1==e[t]&&(e[t]=null);var a=[],l=[];this.title=e.name,e.startTime&&(a=[e.startTime,e.endTime]),e.coursesStartTime&&(l=[e.coursesStartTime,e.coursesEndTime]);var r=e.applyToStudentType?e.applyToStudentType.split(","):[];if(this.$set(this,"baseForm",{name:e.name,description:e.description,activeTime:a,courseTime:l,organ:e.organId.split(",").map((function(e){return Number(e)})),activityType:e.activityType,applyToStudentType:r,studentMaxUsedTimes:e.studentMaxUsedTimes,isPayToBalance:Number(e.payToBalance),id:this.$route.query.id,activityChannel:e.activityChannel}),this.payForm={courseType:e.courseType,vipGroupCategoryIdList:e.vipGroupCategoryIdList?e.vipGroupCategoryIdList.split(",").map((function(e){return Number(e)}))[0]:null,teachMode:e.teachMode+"",allowOnlineToOffline:e.allowOnlineToOffline+"",singleCourseTime:e.singleCourseTime,fixedCourseNumFlag:e.fixedCourseNumFlag,minCourseNum:e.minCourseNum,maxCourseNum:e.maxCourseNum,memberRankId:this.formatParentId(e.memberRankId,this.remberList),periodEnum:e.periodEnum,discount:e.discount,fullMinusCourseTimes:e.fullMinusCourseTimes,giveCourseType:e.giveCourseType,giveTeachMode:e.giveTeachMode+"",giveCategoryId:1*e.giveCategoryId?1*e.giveCategoryId:null,giveSingleCourseTime:e.giveSingleCourseTime,giveCourseNum:e.giveCourseNum,giveMemberRankId:this.formatParentId(e.giveMemberRankId,this.remberList),givePeriod:e.givePeriodEnum,giveMemberTime:e.giveMemberTime?e.giveMemberTime:null,giveAllowOnlineToOffline:e.giveAllowOnlineToOffline+"",marketPrice:e.marketPrice,originalPrice:e.originalPrice},e.salarySettlementJson&&"null"!=e.salarySettlementJson){this.salaryForm=JSON.parse(JSON.stringify(Object(u["a"])({},V)));var i=JSON.parse(e.salarySettlementJson);for(var s in i)this.salaryForm[s]=i[s]}else this.salaryForm=JSON.parse(JSON.stringify(Object(u["a"])({},V)));this.$forceUpdate()}},computed:{isDisabled:function(){return"look"==this.$route.query.type},statuss:function(){return this.status}}},U=G,j=(a("8af7"),Object(f["a"])(U,l,r,!1,null,"6200174f",null));t["default"]=j.exports},f8fa:function(e,t,a){}}]);