chunk-21ae335b.ec25741e.js 35 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-21ae335b"],{"09f4":function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),Math.easeInOutQuad=function(e,t,r,n){return e/=n/2,e<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function a(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(e,t,r){var i=o(),s=e-i,c=20,l=0;t="undefined"===typeof t?500:t;var u=function e(){l+=c;var o=Math.easeInOutQuad(l,i,s,t);a(o),l<t?n(e):r&&"function"===typeof r&&r()};u()}},"1a79":function(e,t,r){},"1d1b":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"m-container"},[e._m(0),e._v(" "),r("div",{staticClass:"m-core"},[r("div",{staticClass:"btnList"},[e.permission("replacementInstrumentCooperation/add")?r("div",{staticClass:"newBand",staticStyle:{"max-width":"150px","margin-right":"10px"},on:{click:function(t){return e.makeUrl("create")}}},[e._v("\n 生成链接\n ")]):e._e(),e._v(" "),e.permission("replacementInstrumentActivity/export")?r("div",{staticClass:"newBand",staticStyle:{"max-width":"150px"},on:{click:e.onExport}},[e._v("\n 导出\n ")]):e._e()]),e._v(" "),r("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[r("el-form-item",{attrs:{prop:"search"}},[r("el-input",{attrs:{clearable:"",placeholder:"学校名称或编号"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.searchForm.save(),e.search()}(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"organId"}},[r("el-select",{attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},model:{value:e.searchForm.organId,callback:function(t){e.$set(e.searchForm,"organId","string"===typeof t?t.trim():t)},expression:"searchForm.organId"}},e._l(e.selects.branchs,(function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"openPay"}},[r("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"是否开启缴费"},model:{value:e.searchForm.openPay,callback:function(t){e.$set(e.searchForm,"openPay","string"===typeof t?t.trim():t)},expression:"searchForm.openPay"}},[r("el-option",{attrs:{label:"是",value:"YES"}}),e._v(" "),r("el-option",{attrs:{label:"否",value:"NO"}})],1)],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{"native-type":"submit",type:"primary"}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{"native-type":"reset",type:"danger"}},[e._v("重置")])],1)],1),e._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[r("el-table-column",{attrs:{align:"center",prop:"id",label:"编号"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"title",label:"活动主题"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"cooperationOrganName",label:"合作单位"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(t.row.cooperationOrganName)+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"问卷名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.topicTitle?r("span",[e._v(e._s(t.row.topicTitle))]):r("el-tag",{staticStyle:{margin:"8px 20px","font-size":"14px"},attrs:{type:"danger"}},[e._v("无问卷")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"activeNum",label:"调查人数"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"replaceNum",label:"置换人数"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"replaceScale",label:"置换率"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.replaceScale)+"%")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"replaceScale",label:"缴费率"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.payScale)+"%")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"openPay",label:"是否开启缴费"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.openPay?"是":"否"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",width:"250px",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e.permission("replacementInstrumentActivity/queryPage")?r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.lookDetail(t.row)}}},[e._v("问卷详情")]):e._e(),e._v(" "),e.permission("/reaplceMusicPlayer/answer")?r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.lookDetail(t.row,"answer")}}},[e._v("问答详情")]):e._e(),e._v(" "),e.permission("replacementInstrumentCooperation/update")?r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.makeUrl("update",t.row)}}},[e._v("修改主题")]):e._e(),e._v(" "),!t.row.openPay&&e.permission("replacementInstrumentCooperation/openPay")?r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.openPay(t.row)}}},[e._v("开启缴费")]):e._e(),e._v(" "),r("el-dropdown",[r("span",{staticClass:"el-dropdown-link",staticStyle:{color:"var(--color-primary)"}},[e._v("\n 更多操作"),r("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),r("el-dropdown-menu",{staticStyle:{"margin-left":"10px"},attrs:{slot:"dropdown"},slot:"dropdown"},[r("el-dropdown-item",[r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.onCreateQRCode(t.row,"调查链接")}}},[e._v("调查链接")])],1),e._v(" "),r("el-dropdown-item",[r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.onCreateQRCode(t.row,"统计链接")}}},[e._v("统计链接")])],1),e._v(" "),r("el-dropdown-item",[r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.onCreateQRCode(t.row,"缴费链接")}}},[e._v("缴费链接")])],1)],1)],1)],1)]}}])})],1),e._v(" "),r("pagination",{attrs:{sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1)],1),e._v(" "),e.makeUrlVisible?r("el-dialog",{attrs:{title:"create"==e.makeType?"生成链接":"修改主题",visible:e.makeUrlVisible,width:"500px"},on:{"update:visible":function(t){e.makeUrlVisible=t}}},[r("addUrl",{ref:"addUrl",attrs:{makeType:e.makeType,makeDetail:e.makeDetail},on:{close:e.close,getList:e.getList}}),e._v(" "),r("div",{attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.makeUrlVisible=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.addurl}},[e._v("保存")])],1)],1):e._e(),e._v(" "),e.detailVisible?r("el-dialog",{attrs:{title:"详情",visible:e.detailVisible,width:"1200px"},on:{"update:visible":function(t){e.detailVisible=t},close:e.getClose}},[r("detail",{ref:"detail",attrs:{detail:e.activeRow},on:{close:e.close}}),e._v(" "),r("div",{attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"primary"},on:{click:e.getClose}},[e._v("确定")])],1)],1):e._e(),e._v(" "),r("qr-code",{attrs:{title:e.qrcodeName,codeUrl:e.codeUrl},model:{value:e.qrcodeStatus,callback:function(t){e.qrcodeStatus=t},expression:"qrcodeStatus"}})],1)},a=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("h2",[r("div",{staticClass:"squrt"}),e._v("\n 乐器置换\n ")])}],o=r("a8db"),i=(r("386d"),r("db72")),s=r("c80c"),c=(r("96cf"),r("3b8d")),l=r("ec8a"),u=r("61f7"),p=r("333d"),d=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-form",{ref:"form",attrs:{model:e.form,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"分部",prop:"organId",rules:[{required:!0,message:"请选择分部"}]}},[r("el-select",{attrs:{filterable:"",clearable:"",disabled:"update"==e.makeType,placeholder:"请选择分部"},on:{change:e.changeSection},model:{value:e.form.organId,callback:function(t){e.$set(e.form,"organId","string"===typeof t?t.trim():t)},expression:"form.organId"}},e._l(e.selects.branchs,(function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"合作单位",prop:"school",rules:[{required:!0,message:"请选择合作单位"}]}},[r("el-select",{attrs:{disabled:!e.form.organId||"update"==e.makeType,filterable:"",clearable:""},model:{value:e.form.school,callback:function(t){e.$set(e.form,"school","string"===typeof t?t.trim():t)},expression:"form.school"}},e._l(e.cooperationList,(function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"活动主题",prop:"title",rules:[{required:!0,message:"请输入活动主题",max:20}]}},[r("el-input",{attrs:{maxlength:"20",clearable:"",placeholder:"请输入活动主题"},model:{value:e.form.title,callback:function(t){e.$set(e.form,"title","string"===typeof t?t.trim():t)},expression:"form.title"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"选择问卷"}},[r("el-select",{attrs:{filterable:"",disabled:"update"==e.makeType,clearable:""},model:{value:e.form.topicId,callback:function(t){e.$set(e.form,"topicId","string"===typeof t?t.trim():t)},expression:"form.topicId"}},e._l(e.topicList,(function(e){return r("el-option",{key:e.id,attrs:{label:e.title,value:e.id}})})),1)],1),e._v(" "),r("el-alert",{attrs:{title:"若不选择问卷,则直接跳转乐器选购页面",closable:!1,type:"error"}})],1)],1)},f=[],m=r("99b4"),b=r("70b4"),h=r("a92a"),v={props:["makeType","makeDetail"],data:function(){return{form:{organId:"",school:"",title:"",topicId:null},cooperationList:[],topicList:[]}},mounted:function(){var e=Object(c["a"])(Object(s["a"])().mark((function e(){var t,r;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(h["c"])({page:1,rows:999,status:1});case 3:t=e.sent,this.topicList=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:if("update"!=this.makeType){e.next=15;break}if(r=this.makeDetail,!r.organId){e.next=14;break}return e.next=14,this.changeSection(r.organId);case 14:this.form={organId:r.organId,school:r.cooperationOrganId,title:r.title,topicId:r.topicId};case 15:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),methods:{changeSection:function(){var e=Object(c["a"])(Object(s["a"])().mark((function e(t){var r=this;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.form.school="",e.next=3,Object(m["E"])({organId:t}).then((function(e){200==e.code&&(r.cooperationList=e.data)}));case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),submit:function(){var e=this;this.$refs.form.validate(function(){var t=Object(c["a"])(Object(s["a"])().mark((function t(r){var n;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!r){t.next=21;break}if(t.prev=1,n=e.form,"create"!=e.makeType){t.next=9;break}return t.next=6,Object(b["a"])({cooperationOrganId:n.school,organId:n.organId,topicId:n.topicId,title:n.title});case 6:t.sent,t.next=13;break;case 9:if("update"!=e.makeType){t.next=13;break}return t.next=12,Object(b["i"])({id:e.makeDetail.id,title:n.title});case 12:t.sent;case 13:e.$message.success("保存成功"),e.$emit("getList"),e.$emit("close"),t.next=21;break;case 18:t.prev=18,t.t0=t["catch"](1),console.log(t.t0);case 21:case"end":return t.stop()}}),t,null,[[1,18]])})));return function(e){return t.apply(this,arguments)}}())}}},g=v,y=(r("9845"),r("2877")),_=Object(y["a"])(g,d,f,!1,null,"4808d2f2",null),w=_.exports,x=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},nativeOn:{submit:function(t){return t.preventDefault(),e.search(t)},reset:function(t){return t.preventDefault(),e.onReSet(t)}}},[r("el-form-item",{attrs:{prop:"search"}},[r("el-input",{attrs:{clearable:"",placeholder:"学生姓名或手机号"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"subjectId"}},[r("el-select",{attrs:{filterable:"",clearable:"",placeholder:"请选择声部"},on:{change:e.changeSound},model:{value:e.searchForm.subjectId,callback:function(t){e.$set(e.searchForm,"subjectId","string"===typeof t?t.trim():t)},expression:"searchForm.subjectId"}},e._l(e.soundList,(function(e,t){return r("el-option",{key:t,attrs:{label:e.text,value:e.value}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"specification"}},[r("el-select",{attrs:{filterable:"",clearable:"",placeholder:"请选择品牌型号",disabled:!e.searchForm.subjectId},model:{value:e.searchForm.specification,callback:function(t){e.$set(e.searchForm,"specification","string"===typeof t?t.trim():t)},expression:"searchForm.specification"}},e._l(e.branchList,(function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"hasInstrumentsId"}},[r("el-select",{attrs:{filterable:"",clearable:"",placeholder:"请选择是置换乐器"},model:{value:e.searchForm.hasInstrumentsId,callback:function(t){e.$set(e.searchForm,"hasInstrumentsId","string"===typeof t?t.trim():t)},expression:"searchForm.hasInstrumentsId"}},[r("el-option",{attrs:{label:"是",value:!0}}),e._v(" "),r("el-option",{attrs:{label:"否",value:!1}})],1)],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{"native-type":"submit",type:"primary"}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{"native-type":"reset",type:"danger"}},[e._v("重置")])],1)],1),e._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{staticStyle:{width:"100% !important"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList,"max-height":"500"}},[r("el-table-column",{attrs:{align:"center",prop:"userId",label:"学员编号"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"userName",label:"学员姓名"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"mobileNo",label:"联系电话"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"actualAmount",label:"现金支付"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.actualAmount))+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"balance",label:"余额支付"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.balance))+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"是否置换"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.instrumentsId?"是":"否")+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"subjectName",label:"声部"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentId",label:"品牌型号"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.brand)+e._s(t.row.specification))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"payStatus",label:"是否开启缴费"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(e._f("openFlagStatus")(t.row.openFlag))+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"payStatus",label:"缴费状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(e._f("replacementInsFilter")(t.row.payStatus))+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"其他建议"},scopedSlots:e._u([{key:"default",fn:function(e){return[r("Tooltip",{attrs:{content:e.row.otherSuggestion?e.row.otherSuggestion:""}})]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentId",label:"操作",width:"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[0==t.row.openFlag&&t.row.instrumentsId&&e.permission("replacementInstrumentActivity/updateOpenFlag")?r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.openFlagMusic(t.row)}}},[e._v("开启缴费")]):e._e(),e._v(" "),e.permission("replacementInstrumentActivity/update")&&0==t.row.payStatus?r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.resetMusic(t.row)}}},[e._v("修改")]):e._e()],1)]}}])})],1),e._v(" "),r("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),e.dialogVisible?r("el-dialog",{attrs:{title:"修改信息",visible:e.dialogVisible,width:"600px","append-to-body":""},on:{"update:visible":function(t){e.dialogVisible=t}}},[r("resetInfo",{ref:"resetInfo",attrs:{detail:e.resetRow},on:{close:e.close,getList:e.getList}}),e._v(" "),r("div",{attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.updateInfo}},[e._v("确认修改")])],1)],1):e._e()],1)},k=[],j=(r("28a5"),r("ac6a"),function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-form",{ref:"form",attrs:{model:e.form,"label-width":"80px",inline:!0}},[r("el-form-item",{attrs:{label:"学员姓名"}},[r("div",{staticStyle:{width:"180px"}},[e._v(e._s(e.detail.userName))])]),e._v(" "),r("el-form-item",{attrs:{label:"联系电话"}},[r("div",[e._v(e._s(e.detail.mobileNo))])]),e._v(" "),r("br"),e._v(" "),r("el-form-item",{attrs:{prop:"subjectId",label:"声部",rules:[{required:!0,message:"请选择声部"}]}},[r("el-select",{attrs:{filterable:"",clearable:"",placeholder:"请选择声部"},on:{change:e.changeSound},model:{value:e.form.subjectId,callback:function(t){e.$set(e.form,"subjectId","string"===typeof t?t.trim():t)},expression:"form.subjectId"}},e._l(e.soundList,(function(e,t){return r("el-option",{key:t,attrs:{label:e.text,value:e.value}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"instrumentsId",label:"品牌型号"}},[r("el-select",{attrs:{filterable:"",clearable:"",placeholder:"请选择品牌型号"},model:{value:e.form.instrumentsId,callback:function(t){e.$set(e.form,"instrumentsId","string"===typeof t?t.trim():t)},expression:"form.instrumentsId"}},e._l(e.branchList,(function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1)}),O=[],I=[{text:"长笛",value:2},{text:"单簧管",value:4},{text:"萨克斯",value:5},{text:"小号",value:12},{text:"圆号",value:13},{text:"长号",value:14},{text:"上低音号",value:15},{text:"大号",value:17},{text:"打击乐",value:23}],F={props:["detail"],data:function(){return{form:{id:this.detail.id,subjectId:"",instrumentsId:""},branchList:[],soundList:I}},mounted:function(){var e=Object(c["a"])(Object(s["a"])().mark((function e(){return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return console.log(this.detail),e.next=3,this.$store.dispatch("setSubjects");case 3:this.changeSound(this.detail.subjectId),this.form.subjectId=this.detail.subjectId,this.form.instrumentsId=this.detail.instrumentsId;case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{changeSound:function(){var e=Object(c["a"])(Object(s["a"])().mark((function e(t){var r;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.form.instrumentsId="",!t){e.next=12;break}return e.prev=2,e.next=5,Object(b["c"])({subjectId:t,organId:this.detail.organId,page:1,rows:999});case 5:r=e.sent,this.branchList=r.data.rows.map((function(e){return{name:e.brand+e.specification,id:e.id}})),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](2),console.log(e.t0);case 12:case"end":return e.stop()}}),e,this,[[2,9]])})));function t(t){return e.apply(this,arguments)}return t}(),submited:function(){var e=this;this.$refs.form.validate(function(){var t=Object(c["a"])(Object(s["a"])().mark((function t(r){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!r){t.next=13;break}return t.prev=1,t.next=4,Object(b["g"])(Object(i["a"])({},e.form));case 4:t.sent,e.$message.success("修改成功"),e.$emit("close"),e.$emit("getList"),t.next=13;break;case 10:t.prev=10,t.t0=t["catch"](1),console.log(t.t0);case 13:case"end":return t.stop()}}),t,null,[[1,10]])})));return function(e){return t.apply(this,arguments)}}())}}},S=F,C=Object(y["a"])(S,j,O,!1,null,null,null),$=C.exports,T=(r("837c"),r("a5b0")),q=[{text:"长笛",value:2},{text:"单簧管",value:4},{text:"萨克斯",value:5},{text:"小号",value:12},{text:"圆号",value:13},{text:"长号",value:14},{text:"上低音号",value:15},{text:"大号",value:17},{text:"打击乐",value:23}],A={components:{pagination:p["a"],resetInfo:$,Tooltip:T["a"]},props:["detail"],data:function(){return{searchForm:{cooperationId:"",specification:"",search:"",subjectId:"",hasYesFirstAnswer:"",hasInstrumentsId:""},tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},dialogVisible:!1,branchList:[],resetRow:null,soundList:q}},mounted:function(){this.init()},methods:{init:function(){var e=Object(c["a"])(Object(s["a"])().mark((function e(){return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.searchForm.cooperationId=this.detail.id,e.next=3,this.$store.dispatch("setSubjects");case 3:this.getList();case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getList:function(){var e=Object(c["a"])(Object(s["a"])().mark((function e(){var t,r;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(b["b"])(Object(i["a"])(Object(i["a"])({},this.searchForm),{},{page:this.rules.page,rows:this.rules.limit}));case 3:t=e.sent,r=t.data.rows||[],r.forEach((function(e){var t=e.questionResult.split("");e.question1=1==t[0]?"是":"否"})),this.tableList=r,this.rules.total=t.data.total,e.next=12;break;case 10:e.prev=10,e.t0=e["catch"](0);case 12:case"end":return e.stop()}}),e,this,[[0,10]])})));function t(){return e.apply(this,arguments)}return t}(),search:function(){this.rules.page=1,this.getList()},openFlagMusic:function(e){var t=this;this.$confirm("您是否开启缴费?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(c["a"])(Object(s["a"])().mark((function r(){return Object(s["a"])().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,Object(b["h"])({Id:e.id,openFlag:1});case 3:t.$message.success("开启成功"),t.getList(),r.next=9;break;case 7:r.prev=7,r.t0=r["catch"](0);case 9:case"end":return r.stop()}}),r,null,[[0,7]])}))))},onReSet:function(){this.$refs.searchForm.resetFields(),this.searchForm.cooperationId=this.detail.id,this.search()},resetMusic:function(e){e.organId=this.detail.organId,this.resetRow=e,this.dialogVisible=!0},close:function(){this.dialogVisible=!1},changeSound:function(){var e=Object(c["a"])(Object(s["a"])().mark((function e(t){var r;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.searchForm.brand="",!t){e.next=13;break}return e.prev=2,e.next=5,Object(b["c"])({subjectId:t,organId:this.detail.organId,page:1,rows:999});case 5:r=e.sent,this.branchList=r.data.rows.map((function(e){return{name:e.brand+e.specification,id:e.specification}})),console.log(r),e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](2),console.log(e.t0);case 13:case"end":return e.stop()}}),e,this,[[2,10]])})));function t(t){return e.apply(this,arguments)}return t}(),updateInfo:function(){this.$refs.resetInfo.submited()},permission:function(e,t){return Object(l["a"])(e,t)}},filters:{openFlagStatus:function(e){var t=["否","是"];return t[e]}}},L=A,E=(r("38c4"),Object(y["a"])(L,x,k,!1,null,"53a01668",null)),U=E.exports,R=r("adb21"),D=r("e3eb"),B=r.n(D),V=r("4328"),N=r.n(V),P=r("641c"),z=r("e762"),M=r("1cc7"),Q=["search"],Z={components:{pagination:p["a"],addUrl:w,detail:U,QrCode:P["a"]},data:function(){return{searchForm:{search:null,organId:"",openPay:""},tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},makeUrlVisible:!1,makeType:"create",detailVisible:!1,makeDetail:null,codeUrl:"",qrcodes:!0,qrcodeStatus:!1,qrcodeName:"调查链接",activeRow:null}},created:function(){},mounted:function(){this.init()},methods:{getAgreement:function(){var e=Object(c["a"])(Object(s["a"])().mark((function e(){var t;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(M["R"])();case 3:t=e.sent,t.data||this.$bus.$emit("showguide",["agreement"]),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(){return e.apply(this,arguments)}return t}(),permission:function(e,t){return Object(l["a"])(e,t)},init:function(){this.$store.dispatch("setBranchs"),this.getList(),this.getAgreement()},getList:function(){var e=Object(c["a"])(Object(s["a"])().mark((function e(){var t;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(b["d"])(Object(i["a"])(Object(i["a"])({},this.searchForm),{},{page:this.rules.page,rows:this.rules.limit}));case 3:t=e.sent,this.rules.total=t.data.total,this.tableList=t.data.rows,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}(),search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.$refs.searchForm.resetFields(),this.search()},makeUrl:function(e,t){this.makeUrlVisible=!0,this.makeType=e,"update"==e&&(this.makeDetail=t)},addurl:function(){this.$refs.addUrl.submit()},close:function(){this.makeUrlVisible=!1,this.detailVisible=!1},getClose:function(){this.detailVisible=!1,this.getList()},onExport:function(){var e=Object(c["a"])(Object(s["a"])().mark((function e(){var t,r,n,a;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.searchForm,r=t.search,n=Object(o["a"])(t,Q),a=Object(i["a"])(Object(i["a"])({},n),{},{page:this.rules.page,rows:this.rules.limit,cooperationOrganIdOrName:r}),e.next=4,Object(R["a"])(this,{url:"/api-web/replacementInstrumentActivity/export",fileName:"乐器置换列表.xls",method:"post",params:N.a.stringify(B()(a))},"您确定导出乐器置换列表");case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),lookDetail:function(e,t){"answer"==t?this.$router.push({path:"/business/answer",query:{id:e.id,topicId:e.topicId}}):(this.activeRow=e,this.detailVisible=!0)},onCreateQRCode:function(e,t){this.qrcodeName=t,this.qrcodeStatus=!0;this.$route.query.id;if(this.qrcodes){var r;if(this.qrcodes=!1,"调查链接"==t){var n=Object(u["d"])()+"/#/questionnaire?"+encodeURIComponent(Object(z["b"])("id=".concat(e.id)));r=n}else"统计链接"==t?r=Object(u["f"])()+"/#/questionStatistics?o=".concat(e.organId,"&c=").concat(e.cooperationOrganId,"&id=").concat(e.id):"缴费链接"==t&&(r=Object(u["d"])()+"/#/questionGoodsSale?"+encodeURIComponent(Object(z["b"])("rid=".concat(e.id))));this.codeUrl=r,this.qrcodes=!0}},openPay:function(e){var t=this;this.$confirm("确定开启缴费?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(c["a"])(Object(s["a"])().mark((function r(){return Object(s["a"])().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,Object(b["e"])({id:e.id});case 3:r.sent,t.$message.success("开启缴费成功"),t.getList(),r.next=10;break;case 8:r.prev=8,r.t0=r["catch"](0);case 10:case"end":return r.stop()}}),r,null,[[0,8]])})))).catch((function(){}))}}},J=Z,W=(r("38fa"),Object(y["a"])(J,n,a,!1,null,"696539d2",null));t["default"]=W.exports},"38c4":function(e,t,r){"use strict";r("f734")},"38fa":function(e,t,r){"use strict";r("b989")},"70b4":function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"i",(function(){return i})),r.d(t,"d",(function(){return s})),r.d(t,"e",(function(){return c})),r.d(t,"c",(function(){return l})),r.d(t,"b",(function(){return u})),r.d(t,"g",(function(){return p})),r.d(t,"f",(function(){return d})),r.d(t,"h",(function(){return f}));r("b775");var n=r("829b"),a=(r("4328"),"/api-web");function o(e){return Object(n["a"])({url:a+"/replacementInstrumentCooperation/add",method:"post",params:{},requestType:"form",data:e})}function i(e){return Object(n["a"])({url:a+"/replacementInstrumentCooperation/update",method:"post",params:{},requestType:"form",data:e})}function s(e){return Object(n["a"])({url:a+"/replacementInstrumentCooperation/queryPage",method:"get",params:e,requestType:"form"})}function c(e){return Object(n["a"])({url:a+"/replacementInstrumentCooperation/openPay",method:"post",params:{},data:e,requestType:"form"})}function l(e){return Object(n["a"])({url:a+"/replacementInstrument/queryPage",method:"get",params:e,requestType:"form"})}function u(e){return Object(n["a"])({url:a+"/replacementInstrumentActivity/queryPage",method:"get",params:e,requestType:"form"})}function p(e){return Object(n["a"])({url:a+"/replacementInstrumentActivity/update",method:"post",data:e,requestType:"form"})}function d(e){return Object(n["a"])({url:a+"/questionnaireUserResult/queryPage",method:"get",params:e})}function f(e){return Object(n["a"])({url:a+"/replacementInstrumentActivity/updateOpenFlag",method:"post",data:e,requestType:"form"})}},9845:function(e,t,r){"use strict";r("1a79")},"9d64":function(e,t,r){e.exports=r.p+"static/img/logo.ae7b11a3.png"},a92a:function(e,t,r){"use strict";r.d(t,"c",(function(){return a})),r.d(t,"b",(function(){return o})),r.d(t,"a",(function(){return i})),r.d(t,"d",(function(){return s})),r.d(t,"e",(function(){return c})),r.d(t,"f",(function(){return l}));var n=r("829b"),a=function(e){return Object(n["a"])({url:"/api-web/questionnaireTopic/queryPage",params:e,method:"get"})},o=function(e){return Object(n["a"])({url:"/api-web/questionnaireTopic/getDetail",params:e,method:"get"})},i=function(e){return Object(n["a"])({url:"/api-web/questionnaireTopic/add",data:e,method:"post"})},s=function(e){return Object(n["a"])({url:"/api-web/questionnaireTopic/update",data:e,method:"post"})},c=function(e){return Object(n["a"])({url:"/api-web/questionnaireTopic/updateStatus",data:e,method:"post",requestType:"form"})},l=function(e){return Object(n["a"])({url:"/api-web/questionnaireUserResult/queryResultPage",data:e,params:e,method:"get"})}},adb21:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r("bc3a"),a=r.n(n),o=(r("4328"),r("5f87")),i=r("3908"),s=r("e3eb"),c=r.n(s),l=function(e,t,r,n){var s=t.url,l={method:t.method?t.method:"get",headers:{Authorization:Object(o["b"])(),tenantId:Object(o["a"])()},url:s,responseType:"blob"};"post"==l.method?l.data=t.params:l.params=t.params,e.$confirm(r||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){i["a"].startLoading(),a()(c()(l)).then((function(r){var a=new Blob([r.data],{type:"application/vnd.ms-excel;charset=utf-8"}),o=new Response(a).text();o.then((function(r){if(-1!=r.indexOf("code")){var o=JSON.parse(r);if(403==o.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);200==o.code?e.$message.success(o.msg):e.$message.error(o.msg),n&&n()}else{var i=URL.createObjectURL(a),s=document.createElement("a"),c=t.fileName||"导出文件.xls";s.href=i,s.setAttribute("download",c),document.body.appendChild(s),s.click(),n&&n()}})),i["a"].endLoading()})).catch((function(t){console.log(t),e.$message.error("下载失败,请联系管理员"),i["a"].endLoading()}))})).catch((function(){}))}},b989:function(e,t,r){},e762:function(e,t,r){"use strict";r.d(t,"b",(function(){return k})),r.d(t,"a",(function(){return q}));const n="function"===typeof atob,a="function"===typeof btoa,o="function"===typeof Buffer,i="function"===typeof TextDecoder?new TextDecoder:void 0,s="function"===typeof TextEncoder?new TextEncoder:void 0,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l=Array.prototype.slice.call(c),u=(e=>{let t={};return e.forEach((e,r)=>t[e]=r),t})(l),p=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,d=String.fromCharCode.bind(String),f="function"===typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):(e,t=(e=>e))=>new Uint8Array(Array.prototype.slice.call(e,0).map(t)),m=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),b=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),h=e=>{let t,r,n,a,o="";const i=e.length%3;for(let s=0;s<e.length;){if((r=e.charCodeAt(s++))>255||(n=e.charCodeAt(s++))>255||(a=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|a,o+=l[t>>18&63]+l[t>>12&63]+l[t>>6&63]+l[63&t]}return i?o.slice(0,i-3)+"===".substring(i):o},v=a?e=>btoa(e):o?e=>Buffer.from(e,"binary").toString("base64"):h,g=o?e=>Buffer.from(e).toString("base64"):e=>{const t=4096;let r=[];for(let n=0,a=e.length;n<a;n+=t)r.push(d.apply(null,e.subarray(n,n+t)));return v(r.join(""))},y=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?d(192|t>>>6)+d(128|63&t):d(224|t>>>12&15)+d(128|t>>>6&63)+d(128|63&t)}t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return d(240|t>>>18&7)+d(128|t>>>12&63)+d(128|t>>>6&63)+d(128|63&t)},_=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,w=e=>e.replace(_,y),x=o?e=>Buffer.from(e,"utf8").toString("base64"):s?e=>g(s.encode(e)):e=>v(w(e)),k=(e,t=!1)=>t?m(x(e)):x(e),j=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,O=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),r=t-65536;return d(55296+(r>>>10))+d(56320+(1023&r));case 3:return d((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return d((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},I=e=>e.replace(j,O),F=e=>{if(e=e.replace(/\s+/g,""),!p.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r,n,a="";for(let o=0;o<e.length;)t=u[e.charAt(o++)]<<18|u[e.charAt(o++)]<<12|(r=u[e.charAt(o++)])<<6|(n=u[e.charAt(o++)]),a+=64===r?d(t>>16&255):64===n?d(t>>16&255,t>>8&255):d(t>>16&255,t>>8&255,255&t);return a},S=n?e=>atob(b(e)):o?e=>Buffer.from(e,"base64").toString("binary"):F,C=o?e=>f(Buffer.from(e,"base64")):e=>f(S(e),e=>e.charCodeAt(0)),$=o?e=>Buffer.from(e,"base64").toString("utf8"):i?e=>i.decode(C(e)):e=>I(S(e)),T=e=>b(e.replace(/[-_]/g,e=>"-"==e?"+":"/")),q=e=>$(T(e))},f734:function(e,t,r){}}]);