(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4d777076"],{"14c3":function(e,t,a){var s=a("c6b6"),r=a("9263");e.exports=function(e,t){var a=e.exec;if("function"===typeof a){var i=a.call(e,t);if("object"!==typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==s(e))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},"3fed":function(e,t,a){},"49ef":function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"p-container"},[a("a-list",{attrs:{"item-layout":"horizontal","data-source":e.tableList},scopedSlots:e._u([{key:"renderItem",fn:function(t){return a("a-list-item",{},[a("div",{staticClass:"info-wrap flexbox middle justify"},[a("div",{staticClass:"item-info flexbox flex1"},[a("img",{staticClass:"p-img",attrs:{src:t.coverUrl?t.coverUrl:t.coverImg,alt:""}}),a("div",{staticClass:"p-info flex1"},[a("div",{staticClass:"p-wrap"},[a("div",{staticClass:"p-info-name more-t"},[e._v(" "+e._s(t.name?t.name:t.businessName||t.memberName)+" ")]),a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.courseType&&0==t.pricingType,expression:"item.courseType == 1 && item.pricingType == 0"}],staticClass:"p-info-price"},[e._v(" 免费 ")]),a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.courseType&&1==t.pricingType,expression:"item.courseType == 1 && item.pricingType == 1"}],staticClass:"p-info-price"},[e._v(" ¥"+e._s(t.price.toFixed(2))+" ")]),a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.courseType&&2==t.pricingType,expression:"item.courseType == 1 && item.pricingType == 2"}],staticClass:"p-info-price"},[e._v(" 不支持单独售卖 ")]),a("div",{directives:[{name:"show",rawName:"v-show",value:1!=t.courseType,expression:"item.courseType != 1"}],staticClass:"p-info-price"},[e._v(" ¥"+e._s(t.price.toFixed(2))+" ")])]),a("div",{staticClass:"p-info-type"},[e._v(" 商品类型 :"+e._s(e.businessTypeMap.get(t.courseType?t.courseType:t.businessType))+" ")])])]),e.showDel?a("div",[a("a",{on:{click:function(a){return e.delHandle(t)}}},[a("a-icon",{staticStyle:{color:"#b2b2b2","margin-right":"10px"},attrs:{type:"close"}})],1)]):e._e()])])}}])})],1)},r=[],i=(a("4ec9"),a("d3b7"),a("3ca3"),a("ddb0"),new Map([[1,"课程"],[2,"会员"],[void 0,"会员"]])),n={name:"ProductCard",props:{tableList:{type:Array,default:[]},showDel:{type:Boolean,default:!1}},data:function(){return{businessTypeMap:i}},methods:{delHandle:function(e){this.$emit("del",e)}}},o=n,c=(a("89c2"),a("2877")),u=Object(c["a"])(o,s,r,!1,null,"773baa91",null);t["a"]=u.exports},"55bd":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",[a("a-form-model",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules,labelAlign:"right","label-col":e.labelCol,"wrapper-col":e.wrapperCol}},[a("a-form-model-item",{attrs:{label:"任务名称",prop:"taskName"}},[e._v(" "+e._s(e.form.taskName)+" ")]),a("a-form-model-item",{attrs:{label:"指定书籍",prop:"booksIds"}},[a("a-button",{attrs:{type:"primary"},on:{click:function(t){e.visible=!0}}},[e._v(e._s(e.form.businessNo?"修改书籍":"添加书籍"))]),e.tableList.length>0?a("div",[a("ProductCard",{attrs:{"table-list":e.tableList}})],1):e._e()],1)],1)],1),a("FooterToolBar",{attrs:{collapsed:e.sideCollapsed}},[a("a-button",{staticClass:"margin_right60",on:{click:function(){return e.$router.go(-1)}}},[e._v("返回")]),a("a-button",{attrs:{type:"primary"},on:{click:e.handleSave}},[e._v("保存")])],1),e.visible?a("RadioModal",{attrs:{modalVisible:e.visible,tabType:1,type:0,selectedRowKeys:e.form.businessNo?[e.form.businessNo]:[]},on:{cancel:function(t){e.visible=!1},ok:e.handleOk}}):e._e()],1)},r=[],i=a("5530"),n=a("1da1"),o=(a("96cf"),a("5a70")),c=a("432b"),u=a("49ef"),l=a("16e0"),d=a("6395"),m={mixins:[c["a"]],components:{FooterToolBar:o["a"],ProductCard:u["a"],RadioModal:d["a"]},data:function(){return{labelCol:{span:2},wrapperCol:{span:10},form:{id:this.$route.params.taskId,taskName:"",businessNo:""},rules:{name:[{required:!0,message:"请输入音频标题",trigger:"blur"},{max:32,message:"最多输入32个字符",trigger:"blur"}]},visible:!1,tableList:[]}},created:function(){this.getDetail()},methods:{getDetail:function(){var e=this;return Object(n["a"])(regeneratorRuntime.mark((function t(){var a,s,r,i,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a={id:+e.form.id},t.next=3,Object(l["X"])(a);case 3:if(s=t.sent,r=s.code,i=s.data,200===r){t.next=8;break}return t.abrupt("return");case 8:Object.assign(e.form,i),n={businessName:i.businessName,businessType:i.businessType,coverUrl:i.coverUrl,price:i.price},e.tableList=[n];case 11:case"end":return t.stop()}}),t)})))()},handleSave:function(){var e=this;this.$refs.ruleForm.validate((function(t){t&&e.onSave()}))},onSave:function(){var e=this;return Object(n["a"])(regeneratorRuntime.mark((function t(){var a,s,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=Object(i["a"])({},e.form),t.next=3,Object(l["W"])(a);case 3:if(s=t.sent,r=s.code,200===r){t.next=7;break}return t.abrupt("return");case 7:e.$message.success("修改成功"),e.$router.push("/marketingCenter/taskCenter");case 9:case"end":return t.stop()}}),t)})))()},handleOk:function(e,t){this.visible=!1,0!==e.length&&(this.form.businessNo=t.courseNo,this.tableList=[t])}}},p=m,f=a("2877"),b=Object(f["a"])(p,s,r,!1,null,null,null);t["default"]=b.exports},5899:function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(e,t,a){var s=a("1d80"),r=a("5899"),i="["+r+"]",n=RegExp("^"+i+i+"*"),o=RegExp(i+i+"*$"),c=function(e){return function(t){var a=String(s(t));return 1&e&&(a=a.replace(n,"")),2&e&&(a=a.replace(o,"")),a}};e.exports={start:c(1),end:c(2),trim:c(3)}},"5a70":function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ant-pro-footer-toolbar",style:{width:e.barWidth,transition:"0.3s all"}},[a("div",{staticClass:"btn-group flexbox middle center"},[e._t("default")],2)])},r=[],i=(a("a9e3"),{name:"FooterToolBar",props:{collapsed:{type:Boolean,default:!1},siderWidth:{type:Number,default:void 0}},computed:{barWidth:function(){return"calc(100% - ".concat(this.collapsed?80:this.siderWidth||200,"px)")}}}),n=i,o=(a("e481"),a("2877")),c=Object(o["a"])(n,s,r,!1,null,"1b9685aa",null),u=c.exports;t["a"]=u},6395:function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-modal",{attrs:{title:"添加商品",width:"64%",visible:e.modalVisible,okText:"确定",cancelText:"取消"},on:{ok:e.ok,cancel:function(){e.$emit("cancel")}}},[a("a-tabs",{on:{change:e.tabChange},model:{value:e.businessType,callback:function(t){e.businessType=t},expression:"businessType"}},[a("a-tab-pane",{key:"1",attrs:{tab:"课程"}},[a("div",{staticClass:"search-box"},[a("a-form-model",{attrs:{layout:"inline",model:e.searchForm},on:{submit:e.handleSubmit},nativeOn:{submit:function(e){e.preventDefault()}}},[a("a-form-model-item",{attrs:{label:"课程状态"}},[a("a-select",{staticStyle:{width:"120px"},on:{change:e.changePutawayFlag},model:{value:e.searchForm.putawayFlag,callback:function(t){e.$set(e.searchForm,"putawayFlag",t)},expression:"searchForm.putawayFlag"}},e._l(e.putawayFlagArr,(function(t){return a("a-select-option",{key:t.key},[e._v(" "+e._s(t.value)+" ")])})),1)],1),a("a-form-model-item",[a("a-input",{attrs:{placeholder:"请输入课程名称"},model:{value:e.searchForm.name,callback:function(t){e.$set(e.searchForm,"name",t)},expression:"searchForm.name"}},[a("a-icon",{staticStyle:{color:"rgba(0, 0, 0, 0.25)"},attrs:{slot:"prefix",type:"search"},slot:"prefix"})],1)],1),a("a-form-model-item",[a("a-button",{staticClass:"margin_right10",attrs:{icon:"search",type:"primary","html-type":"submit"}},[e._v("搜索 ")]),a("a-button",{attrs:{type:"primary"},on:{click:function(t){e.searchForm.name=""}}},[e._v("重置")])],1)],1)],1),a("a-table",{ref:"courseTable",staticClass:"courseTable",attrs:{scroll:{y:300},pagination:!1,loading:e.courseLoading,columns:e.courseColumns,"data-source":e.courseList,"row-selection":{selectedRowKeys:e.courseSelectedRowKeys,onChange:e.onSelectCourseChange,type:"radio"}},scopedSlots:e._u([{key:"nameImgUrl",fn:function(t,s){return a("div",{staticClass:"flexbox middle"},[a("div",[a("img",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"course-img",attrs:{src:s.coverUrl}})]),a("label",[e._v(e._s(s.name))])])}},{key:"putawayFlag",fn:function(t,s){return a("span",{},[0==s.putawayFlag?a("a-badge",{attrs:{status:"default",text:s.putawayFlagText}}):e._e(),1==s.putawayFlag?a("a-badge",{attrs:{status:"processing",text:s.putawayFlagText}}):e._e(),2==s.putawayFlag?a("a-badge",{attrs:{status:"success",text:s.putawayFlagText}}):e._e(),3==s.putawayFlag?a("a-badge",{attrs:{status:"warning",text:s.putawayFlagText}}):e._e()],1)}},{key:"price",fn:function(t,s){return a("span",{},[a("span",{directives:[{name:"show",rawName:"v-show",value:0==s.pricingType,expression:"record.pricingType == 0"}]},[e._v("免费")]),a("span",{directives:[{name:"show",rawName:"v-show",value:1==s.pricingType,expression:"record.pricingType == 1"}]},[e._v(e._s(s.price))]),a("span",{directives:[{name:"show",rawName:"v-show",value:2==s.pricingType,expression:"record.pricingType == 2"}]},[e._v("不支持单独售卖")])])}}])})],1),e.isShowMember?a("a-tab-pane",{key:"2",attrs:{tab:"会员"}},[a("div",{staticClass:"search-box"},[a("a-form-model",{attrs:{layout:"inline",model:e.searchForm},on:{submit:e.handleSubmit}},[a("a-form-model-item",{attrs:{label:"会员状态"}},[a("a-select",{staticStyle:{width:"120px"},on:{change:e.changeStatus},model:{value:e.memberStatus,callback:function(t){e.memberStatus=t},expression:"memberStatus"}},e._l(e.statusArr,(function(t){return a("a-select-option",{key:t.key},[e._v(" "+e._s(t.value)+" ")])})),1)],1),a("a-form-model-item",[a("a-input",{attrs:{placeholder:"请输入会员名称"},model:{value:e.searchForm.name,callback:function(t){e.$set(e.searchForm,"name",t)},expression:"searchForm.name"}},[a("a-icon",{staticStyle:{color:"rgba(0, 0, 0, 0.25)"},attrs:{slot:"prefix",type:"search"},slot:"prefix"})],1)],1),a("a-form-model-item",[a("a-button",{staticClass:"margin_right10",attrs:{icon:"search",type:"primary","html-type":"submit"}},[e._v("搜索 ")]),a("a-button",{attrs:{type:"primary"},on:{click:function(t){e.searchForm.name=""}}},[e._v("重置")])],1)],1)],1),a("a-table",{ref:"memberTable",staticClass:"memberTable",attrs:{scroll:{y:300},pagination:!1,loading:e.memberLoading,columns:e.memberColumns,"data-source":e.memberList,"row-selection":{selectedRowKeys:e.memberSelectedRowKeys,onChange:e.onSelectMemberChange,type:"radio"}},scopedSlots:e._u([{key:"nameImgUrl",fn:function(t,s){return a("div",{staticClass:"flexbox middle"},[a("div",[a("img",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"course-img",attrs:{src:s.coverImg}})]),a("label",[e._v(e._s(s.memberName))])])}},{key:"forbiddenStatus",fn:function(t,s){return a("span",{},[1==s.forbiddenStatus?a("a-badge",{attrs:{status:"success",text:s.forbiddenStatusText}}):e._e(),2==s.forbiddenStatus?a("a-badge",{attrs:{status:"error",text:s.forbiddenStatusText}}):e._e()],1)}}],null,!1,2439422875)})],1):e._e()],1)],1)},r=[],i=a("53ca"),n=(a("a9e3"),a("d3b7"),a("25f0"),a("159b"),a("b0c0"),a("d81d"),a("99af"),a("ac1f"),a("5319"),a("16e0")),o=a("d11d"),c=a("432b"),u={mixins:[c["a"]],props:{modalVisible:{type:Boolean,required:!0},type:{type:Number,default:0},tabType:{type:Number,default:1},isShowMember:{type:Boolean,default:!1},selectedRowKeys:{type:Array,default:[]}},data:function(){return{searchForm:{putawayFlag:2,name:""},putawayFlagArr:[{key:"",value:"全部状态"}],businessType:"1",selectedRows:"",courseCount:1,coursePage:1,coursePageSize:20,courseList:[],courseLoading:!1,courseSelectedRowKeys:[],courseColumns:[{title:"课程名称",dataIndex:"name",key:"name",scopedSlots:{customRender:"nameImgUrl"}},{title:"状态",dataIndex:"putawayFlag",key:"putawayFlag",width:"15%",scopedSlots:{customRender:"putawayFlag"}},{title:"课节数",dataIndex:"lessonsCount",key:"lessonsCount",width:"15%"},{title:"课程类型",dataIndex:"courseTypeText",key:"courseTypeText",width:"15%"},{title:"定价",dataIndex:"price",key:"price",width:"15%",scopedSlots:{customRender:"price"}}],statusArr:[{key:"",value:"全部状态"}],memberStatus:1,memberCount:1,memberPage:1,memberPageSize:20,memberList:[],memberLoading:!1,memberSelectedRowKeys:[],memberColumns:[{title:"会员名称",dataIndex:"name",key:"name",scopedSlots:{customRender:"nameImgUrl"}},{title:"状态",dataIndex:"forbiddenStatus",key:"forbiddenStatus",width:"15%",scopedSlots:{customRender:"forbiddenStatus"}},{title:"会员价格",dataIndex:"price",key:"price",width:"15%"},{title:"有效期",dataIndex:"days",key:"days",width:"15%"}]}},created:function(){var e=this;if(this.modalVisible){this.businessType=Object(i["a"])(this.tabType)==String?this.tabType:this.tabType.toString();var t=JSON.parse(localStorage.getItem("dictionaryObj"));t.putawayFlag.forEach((function(t){return e.putawayFlagArr.push(t)})),t.disableOrEnabled.forEach((function(t){return e.statusArr.push(t)})),this.switchHandle(),this.$nextTick((function(){var t="";2==e.businessType&&e.isShowMember?(t=document.querySelector(".memberTable .ant-table-body"),e.memberSelectedRowKeys=e.selectedRowKeys):(t=document.querySelector(".courseTable .ant-table-body"),e.courseSelectedRowKeys=e.selectedRowKeys);t.addEventListener("scroll",(function(){var a=t.scrollHeight-t.scrollTop-t.clientHeight;if(a<=200&&e.courseCount>e.courseList.length){if(2==e.businessType&&e.isShowMember){++e.memberPage;var s=Math.ceil(e.memberCount/e.memberPageSize);if(s0&&(!c.multiline||c.multiline&&"\n"!==e[c.lastIndex-1])&&(f="(?: "+f+")",h=" "+h,b++),a=new RegExp("^(?:"+f+")",p)),d&&(a=new RegExp("^"+f+"$(?!\\s)",p)),u&&(t=c.lastIndex),r=n.call(m?a:c,h),m?r?(r.input=r.input.slice(b),r[0]=r[0].slice(b),r.index=c.lastIndex,c.lastIndex+=r[0].length):c.lastIndex=0:u&&r&&(c.lastIndex=c.global?r.index+r[0].length:t),d&&r&&r.length>1&&o.call(r[0],a,(function(){for(i=1;i2)if(u=h(u),t=u.charCodeAt(0),43===t||45===t){if(a=u.charCodeAt(2),88===a||120===a)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:s=2,r=49;break;case 79:case 111:s=8,r=55;break;default:return+u}for(i=u.slice(2),n=i.length,o=0;or)return NaN;return parseInt(i,s)}return+u};if(i(g,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var T,S=function(e){var t=arguments.length<1?0:e,a=this;return a instanceof S&&(x?d((function(){v.valueOf.call(a)})):c(a)!=g)?u(new y(w(t)),a,S):w(t)},_=s?p(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),C=0;_.length>C;C++)o(y,T=_[C])&&!o(S,T)&&b(S,T,f(y,T));S.prototype=v,v.constructor=S,n(r,g,S)}},ac1f:function(e,t,a){"use strict";var s=a("23e7"),r=a("9263");s({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},ad6d:function(e,t,a){"use strict";var s=a("825a");e.exports=function(){var e=s(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},d784:function(e,t,a){"use strict";a("ac1f");var s=a("6eeb"),r=a("d039"),i=a("b622"),n=a("9112"),o=i("species"),c=!r((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")})),u=function(){return"$0"==="a".replace(/./,"$0")}(),l=i("replace"),d=function(){return!!/./[l]&&""===/./[l]("a","$0")}(),m=!r((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var a="ab".split(e);return 2!==a.length||"a"!==a[0]||"b"!==a[1]}));e.exports=function(e,t,a,l){var p=i(e),f=!r((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),b=f&&!r((function(){var t=!1,a=/a/;return"split"===e&&(a={},a.constructor={},a.constructor[o]=function(){return a},a.flags="",a[p]=/./[p]),a.exec=function(){return t=!0,null},a[p](""),!t}));if(!f||!b||"replace"===e&&(!c||!u||d)||"split"===e&&!m){var h=/./[p],g=a(p,""[e],(function(e,t,a,s,r){return t.exec===RegExp.prototype.exec?f&&!r?{done:!0,value:h.call(t,a,s)}:{done:!0,value:e.call(a,t,s)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),y=g[0],v=g[1];s(String.prototype,e,y),s(RegExp.prototype,p,2==t?function(e,t){return v.call(e,this,t)}:function(e){return v.call(e,this)})}l&&n(RegExp.prototype[p],"sham",!0)}},e481:function(e,t,a){"use strict";a("9940")},ecb3:function(e,t,a){"use strict";a("7b41")}}]); //# sourceMappingURL=chunk-4d777076.cf3b9a68.js.map