chunk-6ca64d9e.1dcf249e.js 12 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6ca64d9e"],{"3a07":function(e,t,a){"use strict";a.d(t,"c",(function(){return o})),a.d(t,"b",(function(){return i})),a.d(t,"d",(function(){return s})),a.d(t,"a",(function(){return c}));var r=a("829b"),n=(a("4328"),"/api-web");function o(e){return Object(r["a"])({url:n+"/musicGroupCalenderRefundPeriod/queryCoopRefund",method:"post",data:e})}function i(e){return Object(r["a"])({url:n+"/musicGroupCalenderRefundPeriod/queryCoopCalender",method:"post",data:e})}function s(e){return Object(r["a"])({url:n+"/cooperationShareProfit/queryPage",method:"post",data:e})}function c(e){return Object(r["a"])({url:n+"/cooperationShareProfit/addCredentials",method:"post",data:e})}},"5bed":function(e,t,a){},adb21:function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var r=a("bc3a"),n=a.n(r),o=(a("4328"),a("5f87")),i=a("3908"),s=a("e3eb"),c=a.n(s),l=function(e,t,a,r){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(a||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){i["a"].startLoading(),n()(c()(l)).then((function(a){var n=new Blob([a.data],{type:"application/vnd.ms-excel;charset=utf-8"}),o=new Response(n).text();o.then((function(a){if(-1!=a.indexOf("code")){var o=JSON.parse(a);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),r&&r()}else{var i=URL.createObjectURL(n),s=document.createElement("a"),c=t.fileName||"导出文件.xls";s.href=i,s.setAttribute("download",c),document.body.appendChild(s),s.click(),r&&r()}})),i["a"].endLoading()})).catch((function(t){console.log(t),e.$message.error("下载失败,请联系管理员"),i["a"].endLoading()}))})).catch((function(){}))}},c92d:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[a("el-page-header",{attrs:{content:e.name},on:{back:e.goBack}}),e._v(" "),a("div",{staticClass:"m-core",staticStyle:{"margin-top":"20px"}},[a("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[a("el-form-item",{attrs:{prop:"search"}},[a("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.saveForm.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(" "),a("el-form-item",{attrs:{prop:"refundStatus"}},[a("el-select",{attrs:{clearable:"",placeholder:"付款状态"},model:{value:e.searchForm.refundStatus,callback:function(t){e.$set(e.searchForm,"refundStatus","string"===typeof t?t.trim():t)},expression:"searchForm.refundStatus"}},[a("el-option",{attrs:{label:"回款中",value:"ING"}}),e._v(" "),a("el-option",{attrs:{label:"已回款",value:"END"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"payTime"}},[a("el-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"缴费开始日期","end-placeholder":"缴费结束日期","value-format":"yyyy-MM-dd","picker-options":{firstDayOfWeek:1}},model:{value:e.searchForm.payTime,callback:function(t){e.$set(e.searchForm,"payTime","string"===typeof t?t.trim():t)},expression:"searchForm.payTime"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"primary"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"danger"}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"musicGroupName",label:"乐团名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"batchNo",label:"缴费批次"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"缴费类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("userPaymentTypeFormat")(t.row.paymentType))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"计价标准"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.calenderFeeType?a("div",[e._v("\n "+e._s("TEACHER"==t.row.calenderFeeType?"按老师":"按学员")+"\n ")]):a("div",[e._v("--")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"应收总额"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.receivable))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"实收总额"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.income))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"待收金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.prepaidFee))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"educationUserName",label:"下一回款日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("dayjsFormat")(t.row.nextRefundDate))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"educationUserName",label:"回款状态",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s("ING"==t.row.refundStatus?"回款中":"已回款")+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("auth",{attrs:{auths:"musicGroupPaymentCalender/getDetail/barnch"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.lookList(t.row)}}},[e._v("详情")])],1),e._v(" "),a("el-button",{attrs:{type:"text",disabled:!t.row.contractUrl},on:{click:function(a){return e.downLoad(t.row)}}},[e._v("下载合同")])],1)]}}])})],1),e._v(" "),a("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),e._v(" "),e.reviewVisible?a("el-dialog",{attrs:{title:"查看",visible:e.reviewVisible,width:"900px"},on:{"update:visible":function(t){e.reviewVisible=t}}},[a("reviewDetail",{attrs:{detail:e.viewDetail,musicGroupId:e.$route.query.id,"destroy-on-close":""},on:{close:function(t){e.reviewVisible=!1},submited:e.getList}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.reviewVisible=!1}}},[e._v("关闭")])],1)],1):e._e()],1)],1)},n=[],o=(a("386d"),a("db72")),i=a("a8db"),s=a("c80c"),c=(a("96cf"),a("3b8d")),l=(a("7f7f"),a("bc3a"),a("5f87"),a("333d")),u=a("ed08"),d=(a("3908"),a("92e3")),p=a("adb21"),f=a("3a07"),m=(a("99b4"),a("3762")),b=a("4328"),h=a.n(b),v=["payTime"],g=["backTime","payTime","organId"],y={components:{pagination:l["a"],reviewDetail:m["a"]},data:function(){return{searchForm:{cooperationId:this.$route.query.id,refundStatus:""},name:this.$route.query.name,backTypeList:d["g"],tableList:[],cooperationList:[],activeRow:null,rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},form:{id:null},reviewVisible:!1,viewDetail:null}},created:function(){},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 e.next=2,this.$store.dispatch("setBranchs");case 2:this.init();case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{init:function(){this.getList()},getList:function(){var e=Object(c["a"])(Object(s["a"])().mark((function e(){var t,a,r,n,c;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.searchForm,a=t.payTime,r=Object(i["a"])(t,v),n=Object(o["a"])(Object(o["a"])(Object(o["a"])({},r),Object(u["b"])(a,["refundStartDate","refundEndDate"])),{},{page:this.rules.page,rows:this.rules.limit}),e.prev=2,e.next=5,Object(f["b"])(n);case 5:c=e.sent,this.tableList=c.data.rows,this.rules.total=c.data.total,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(){return e.apply(this,arguments)}return t}(),search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.$refs["searchForm"].resetFields(),this.searchForm.cooperationId=this.$route.query.id,this.search()},goBack:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push("/branchPayManager")},lookList:function(e){this.viewDetail=e,this.viewDetail.id=e.calenderId,this.reviewVisible=!0},downLoad:function(){var e=Object(c["a"])(Object(s["a"])().mark((function e(t){return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否下载批次号为".concat(t.batchNo,"合同"),"提示",{type:"warning"});case 3:window.open(t.contractUrl),e.next=9;break;case 6:e.prev=6,e.t0=e["catch"](0),console.log(e.t0);case 9:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(t){return e.apply(this,arguments)}return t}(),resetBackForm:function(e){this.activeRow=e,this.form=Object(o["a"])({},e),this.resetVisible=!0},resetRorm:function(){var e=this;this.$refs.form.validate(function(){var t=Object(c["a"])(Object(s["a"])().mark((function t(a){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=14;break}return t.prev=1,e.form.transNo||(e.form.payTime=null),t.next=5,resetUserCashAccountLog(e.form);case 5:t.sent,e.$message.success("修改成功"),e.resetVisible=!1,e.getList(),t.next=14;break;case 11:t.prev=11,t.t0=t["catch"](1),console.log(t.t0);case 14:case"end":return t.stop()}}),t,null,[[1,11]])})));return function(e){return t.apply(this,arguments)}}())},exportBack:function(){var e=this.searchForm,t=e.backTime,a=e.payTime,r=e.organId,n=Object(i["a"])(e,g),s=Object(o["a"])(Object(o["a"])(Object(o["a"])({},n),{},{page:this.rules.page,rows:this.rules.limit,organId:r.join(",")},Object(u["b"])(t,["createStartTime","createEndTime"])),Object(u["b"])(a,["payStartTime","payEndTime"]));Object(p["a"])(this,{url:"/api-web/export/userCashAccountLog",fileName:"退费列表.xls",method:"post",params:h.a.stringify(s)},"您确定导出退费列表?")},changeOrgan:function(e){this.searchForm.cooperationId=null}},watch:{}},w=y,_=(a("e61b"),a("2877")),O=Object(_["a"])(w,r,n,!1,null,"74c39f9a",null);t["default"]=O.exports},e61b:function(e,t,a){"use strict";a("5bed")},ed08:function(e,t,a){"use strict";a.d(t,"c",(function(){return i})),a.d(t,"b",(function(){return s})),a.d(t,"a",(function(){return c}));var r=a("bd86"),n=(a("c5f6"),a("28a5"),a("a481"),a("6b54"),a("7618"),a("5a0c")),o=a.n(n);var i=function(e){var t=[];for(var a in e)if(e.hasOwnProperty(a)){var r=e[a],n=a.toLocaleUpperCase();t.push({label:r,value:"TRUE"===n||"FALSE"===n?"TRUE"===n:a})}return t},s=function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e&&e.length?(t={},Object(r["a"])(t,a[0]||"start",o()(e[0]).isValid()?o()(e[0]).format(n):""),Object(r["a"])(t,a[1]||"end",o()(e[1]).isValid()?o()(e[1]).format(n):""),t):{}},c=function(e){var t,a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e&&e.length?"YYYY-MM-DD"===i?(t={},Object(r["a"])(t,n[0]||"start",o()(e[0]).isValid()?o()(e[0]).format(i)+" 00:00:00":""),Object(r["a"])(t,n[1]||"end",o()(e[1]).isValid()?o()(e[1]).format(i)+" 23:59:59":""),t):(a={},Object(r["a"])(a,n[0]||"start",o()(e[0]).isValid()?o()(e[0]).format(i):""),Object(r["a"])(a,n[1]||"end",o()(e[1]).isValid()?o()(e[1]).format(i):""),a):{}}}}]);