1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f6f28bee"],{2256:function(t,e,a){},"24ae":function(t,e,a){"use strict";a("a2c1")},"346a":function(t,e,a){"use strict";a("67c9")},"5c23":function(t,e,a){"use strict";a("2256")},"636a":function(t,e,a){"use strict";a("a889")},"67c9":function(t,e,a){},a2c1:function(t,e,a){},a889:function(t,e,a){},b38b:function(t,e,a){"use strict";a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return l})),a.d(e,"b",(function(){return c}));var r=a("b775"),n=a("4328"),s=a.n(n),i="/api-web";function o(t){return Object(r["a"])({url:i+"/musicGroupPaymentCalender/queryPage",method:"get",params:t})}function l(t){return Object(r["a"])({url:i+"/musicGroupPaymentCalender/auditPass",method:"post",data:s.a.stringify(t)})}function c(t){return Object(r["a"])({url:i+"/musicGroupPaymentCalender/auditRefuse",method:"post",data:s.a.stringify(t)})}},c041:function(t,e,a){"use strict";a.d(e,"d",(function(){return n})),a.d(e,"a",(function(){return s})),a.d(e,"f",(function(){return i})),a.d(e,"b",(function(){return o})),a.d(e,"c",(function(){return l})),a.d(e,"e",(function(){return c}));var r=a("829b"),n=function(t){return Object(r["a"])({url:"/api-web/musicGroup/queryMusicMemberList",params:t,method:"get"})},s=function(t){return Object(r["a"])({url:"/api-web/cloudCoachPaymentProgram/add",method:"post",data:t})},i=function(t){return Object(r["a"])({url:"/api-web/cloudCoachPaymentProgram/update",method:"post",data:t})},o=function(t){return Object(r["a"])({url:"/api-web/cloudCoachPaymentProgram/queryPage",method:"get",params:t})},l=function(t){return Object(r["a"])({url:"/api-web/studentCloudCoachPaymentDetails/queryPage",method:"get",params:t})},c=function(t){return Object(r["a"])({url:"/api-web/studentManage/updateStudentMember",method:"post",data:t,requestType:"form"})}},cd32:function(t,e,a){"use strict";var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.detail?a("div",[t.detail?a("reviewDetail",{attrs:{detail:t.detail}}):t._e(),t._v(" "),"AUDITING"==t.detail.status?a("el-alert",{staticClass:"alert",staticStyle:{margin:"20px 0"},attrs:{title:"审核意见",closable:!1,type:"info"}}):t._e(),t._v(" "),"AUDITING"==t.detail.status?a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入审核意见"},model:{value:t.remark,callback:function(e){t.remark=e},expression:"remark"}}):t._e(),t._v(" "),"AUDITING"==t.detail.status?a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t.permission(t.getFullPermission("musicGroupPaymentCalender/auditPass"))?a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submit(1)}}},[t._v("审核通过")]):t._e(),t._v(" "),t.permission(t.getFullPermission("musicGroupPaymentCalender/auditRefuse"))?a("el-button",{attrs:{type:"danger"},on:{click:function(e){return t.submit(0)}}},[t._v("驳回")]):t._e(),t._v(" "),a("el-button",{on:{click:function(e){return t.$emit("close")}}},[t._v("关 闭")])],1):a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:t.$listeners.close}},[t._v("关闭")])],1)],1):t._e()},n=[],s=a("c80c"),i=(a("96cf"),a("3b8d")),o=a("ec8a"),l=a("3762"),c=a("b38b"),u={props:["detail"],components:{reviewDetail:l["a"]},data:function(){return{remark:""}},methods:{submit:function(){var t=Object(i["a"])(Object(s["a"])().mark((function t(e){var a=this;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.remark){t.next=2;break}return t.abrupt("return",this.$message.error("请输入审核意见"));case 2:if(!e){t.next=14;break}return t.prev=3,t.next=6,this.$confirm("是否确认审核通过","提示",{type:"warning"});case 6:return t.next=8,Object(c["a"])({batchNo:this.detail.batchNo,auditMemo:this.remark}).then((function(t){200==t.code&&(a.$message.success("审核通过"),a.$emit("close"))}));case 8:t.next=12;break;case 10:t.prev=10,t.t0=t["catch"](3);case 12:t.next=23;break;case 14:return t.prev=14,t.next=17,this.$confirm("是否确认驳回","提示",{type:"warning"});case 17:return t.next=19,Object(c["b"])({batchNo:this.detail.batchNo,auditMemo:this.remark}).then((function(t){200==t.code&&(a.$message.success("驳回成功"),a.$emit("close"))}));case 19:t.next=23;break;case 21:t.prev=21,t.t1=t["catch"](14);case 23:case"end":return t.stop()}}),t,this,[[3,10],[14,21]])})));function e(e){return t.apply(this,arguments)}return e}(),permission:function(t){return Object(o["a"])(t)}}},p=u,m=(a("346a"),a("2877")),d=Object(m["a"])(p,r,n,!1,null,"59fb2832",null);e["a"]=d.exports},e7c4:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-container"},[t._m(0),t._v(" "),a("div",{staticClass:"m-core"},[a("tab-router",{attrs:{type:"card"},model:{value:t.activeIndex,callback:function(e){t.activeIndex="string"===typeof e?e.trim():e},expression:"activeIndex"}},[t.permission("/auditList/music")?a("el-tab-pane",{attrs:{label:"乐团缴费",name:"1"}},["1"===t.activeIndex?a("musicGroup"):t._e()],1):t._e(),t._v(" "),t.permission("cloudCoachPaymentProgram/queryPage/home")?a("el-tab-pane",{attrs:{label:"云教练缴费",name:"2"}},["2"===t.activeIndex?a("member"):t._e()],1):t._e()],1)],1)])},n=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("h2",[a("div",{staticClass:"squrt"}),t._v("\n 费用审核\n ")])}],s=a("ec8a"),i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",[a("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,model:t.searchForm},on:{"update:model":function(e){t.searchForm=e}}},[a("el-form-item",[a("el-input",{attrs:{clearable:"",placeholder:"乐团名称/编号"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:function(e){e.target.blur(),t.$refs.searchForm.save(),t.search()}(e)}},model:{value:t.searchForm.search,callback:function(e){t.$set(t.searchForm,"search","string"===typeof e?e.trim():e)},expression:"searchForm.search"}})],1),t._v(" "),a("el-form-item",[a("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},model:{value:t.searchForm.organId,callback:function(e){t.$set(t.searchForm,"organId","string"===typeof e?e.trim():e)},expression:"searchForm.organId"}},t._l(t.selects.branchs,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),a("el-form-item",[a("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择审核人"},model:{value:t.searchForm.audit,callback:function(e){t.$set(t.searchForm,"audit","string"===typeof e?e.trim():e)},expression:"searchForm.audit"}},t._l(t.userList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.auditName,value:t.audit}})})),1)],1),t._v(" "),a("el-form-item",[a("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"申请类型"},model:{value:t.searchForm.paymentType,callback:function(e){t.$set(t.searchForm,"paymentType","string"===typeof e?e.trim():e)},expression:"searchForm.paymentType"}},t._l(t.paymentTypeList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",[a("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"审核状态"},model:{value:t.searchForm.status,callback:function(e){t.$set(t.searchForm,"status","string"===typeof e?e.trim():e)},expression:"searchForm.status"}},t._l(t.statusList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:t.search}},[t._v("搜索")]),t._v(" "),a("el-button",{attrs:{type:"danger"},on:{click:t.reset}},[t._v("重置")]),t._v(" "),a("auth",{staticStyle:{"margin-left":"10px"},attrs:{auths:"musicGroupPaymentCalender/batchAuditing"}},[a("el-button",{attrs:{disabled:!t.selList.length>0,type:"primary"},on:{click:function(e){t.typesStatus=!0}}},[t._v("批量审核")])],1)],1)],1),t._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:t.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{fixed:"left",type:"selection",width:"55",selectable:t.selectable}}),t._v(" "),a("el-table-column",{attrs:{align:"left",prop:"organName",label:"分部名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("copy-text",[t._v(t._s(e.row.organName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"left",width:"200px",prop:"musicGroupName",label:"乐团"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("Tooltip",{attrs:{content:e.row.musicGroupName}}),t._v("\n ("),a("copy-text",[t._v(t._s(e.row.musicGroupId))]),t._v(")\n ")],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"left",prop:"paymentType",label:"收费模式"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("\n "+t._s(t._f("auditPaymentType")(e.row.paymentType))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"left",prop:"paymentType",label:"类型",width:"150px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("p",[t._v("申请类型: "+t._s(t._f("auditPaymentType")(e.row.paymentType)))]),t._v(" "),a("p",[t._v("订单类型: "+t._s(t._f("payOrderType")(e.row.payUserType)))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"left",prop:"originalTotalAmount",label:"价格(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("p",[t._v("总原价:"+t._s(e.row.originalTotalAmount))]),t._v(" "),a("p",[t._v("申请价:"+t._s(e.row.currentTotalAmount))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"left",prop:"memo",width:"100px",label:"备注"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("overflow-text",{attrs:{width:"80px",text:t.row.memo}})]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"left",prop:"auditMemo",width:"100px",label:"审核意见"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("overflow-text",{attrs:{width:"80px",text:t.row.auditMemo}})]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"left",prop:"operatorName",label:"申请人",width:"150px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("p",[t._v(t._s(e.row.operatorName?e.row.operatorName:"--"))]),t._v(" "),a("p",[t._v(t._s(t._f("dateForMinFormat")(e.row.createTime)))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"left",prop:"operatorName",label:"审核人",width:"150px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("p",[t._v(t._s(e.row.auditName?e.row.auditName:"--"))]),t._v(" "),a("p",[t._v("\n "+t._s(t._f("dateForMinFormat")(e.row.auditTime?e.row.auditTime:"--"))+"\n ")])])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"left",prop:"status",label:"状态",width:"100px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("\n "+t._s(t._f("auditType")(e.row.status))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"left",label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return["AUDITING"==e.row.status&&t.$helpers.permission("musicGroupPaymentCalender/auditListDetail/update")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.lookDetail(e.row)}}},[t._v("\n 审核\n ")]):t._e(),t._v(" "),"AUDITING"!=e.row.status&&t.$helpers.permission("musicGroupPaymentCalender/getDetail/look")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.lookDetail(e.row)}}},[t._v("\n 查看\n ")]):t._e()]}}])})],1),t._v(" "),a("pagination",{attrs:{total:t.pageInfo.total,sync:"",page:t.pageInfo.page,limit:t.pageInfo.limit,"page-sizes":t.pageInfo.page_size},on:{"update:total":function(e){return t.$set(t.pageInfo,"total",e)},"update:page":function(e){return t.$set(t.pageInfo,"page",e)},"update:limit":function(e){return t.$set(t.pageInfo,"limit",e)},pagination:t.getList}})],1)],1),t._v(" "),t.typeStatus?a("el-dialog",{attrs:{title:"审核详情",width:"900px",visible:t.typeStatus},on:{"update:visible":function(e){t.typeStatus=e}}},[a("review",{attrs:{detail:t.detail},on:{close:t.close}})],1):t._e(),t._v(" "),t.typesStatus?a("el-dialog",{attrs:{title:"批量审核",width:"700px",visible:t.typesStatus},on:{"update:visible":function(e){t.typesStatus=e}}},[a("audit",{attrs:{selList:t.selList},on:{close:function(e){t.typesStatus=!1},submited:t.submited}})],1):t._e()],1)},o=[],l=a("c80c"),c=(a("96cf"),a("3b8d")),u=(a("386d"),a("db72")),p=a("333d"),m=a("cd32"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-alert",{staticClass:"alert",staticStyle:{margin:"20px 0"},attrs:{title:"审核意见",closable:!1,type:"info"}}),t._v(" "),a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入审核意见"},model:{value:t.remark,callback:function(e){t.remark=e},expression:"remark"}}),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t.permission("musicGroupPaymentCalender/auditPass/batchAuditing")?a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submit(1)}}},[t._v("审核通过")]):t._e(),t._v(" "),t.permission("musicGroupPaymentCalender/auditRefuse/batchAuditing")?a("el-button",{attrs:{type:"danger"},on:{click:function(e){return t.submit(0)}}},[t._v("驳回")]):t._e(),t._v(" "),a("el-button",{on:{click:function(e){return t.$emit("close")}}},[t._v("关 闭")])],1)],1)},f=[],b=a("b38b"),v={props:["selList"],data:function(){return{remark:""}},methods:{submit:function(){var t=Object(c["a"])(Object(l["a"])().mark((function t(e){var a=this;return Object(l["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.remark){t.next=2;break}return t.abrupt("return",this.$message.error("请输入审核意见"));case 2:if(!e){t.next=14;break}return t.prev=3,t.next=6,this.$confirm("是否确认批量审核通过","提示",{type:"warning"});case 6:return t.next=8,Object(b["a"])({batchNo:this.selList.map((function(t){return t.batchNo})).join(","),auditMemo:this.remark}).then((function(t){200==t.code&&(a.$message.success("批量审核通过"),a.$emit("close"),a.$emit("submited"))}));case 8:t.next=12;break;case 10:t.prev=10,t.t0=t["catch"](3);case 12:t.next=23;break;case 14:return t.prev=14,t.next=17,this.$confirm("是否确认批量驳回","提示",{type:"warning"});case 17:return t.next=19,Object(b["b"])({batchNo:this.selList.map((function(t){return t.batchNo})).join(","),auditMemo:this.remark}).then((function(t){200==t.code&&(a.$message.success("批量驳回成功"),a.$emit("close"),a.$emit("submited"))}));case 19:t.next=23;break;case 21:t.prev=21,t.t1=t["catch"](14);case 23:case"end":return t.stop()}}),t,this,[[3,10],[14,21]])})));function e(e){return t.apply(this,arguments)}return e}(),permission:function(t){return Object(s["a"])(t)}}},h=v,_=(a("5c23"),a("2877")),g=Object(_["a"])(h,d,f,!1,null,"5b9f92c9",null),y=g.exports,w=(a("1cc7"),a("a5b0")),k=a("92e3"),x=a("829b"),O=function(t){return Object(x["a"])({url:"/api-web/cloudCoachPaymentProgram/audit",data:t,method:"post"})},j=function(t){return Object(x["a"])({url:"/api-web/musicGroupPaymentCalender/queryUser",params:t,data:t,method:"get"})},T={search:null,paymentType:null,status:"AUDITING",organId:null,audit:null},F={components:{pagination:p["a"],Tooltip:w["a"],review:m["a"],audit:y},name:"helpCategory",data:function(){return{typesStatus:!1,selList:[],paymentTypeList:k["e"],organList:[],statusList:k["f"],searchForm:Object(u["a"])({},T),tableList:[],userList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},detail:null,typeStatus:!1}},mounted:function(){this.$store.dispatch("setBranchs"),this.getList(),this.getCalenderList()},methods:{selectable:function(t,e){return"AUDITING"==t.status},search:function(){this.pageInfo.page=1,this.$refs.searchForm.save(this.searchForm),this.$refs.searchForm.save(this.pageInfo,"page"),this.getList()},reset:function(){this.searchForm=Object(u["a"])({},T),this.search()},handleSelectionChange:function(t){this.selList=t},getList:function(){var t=this,e=Object(u["a"])({page:this.pageInfo.page,rows:this.pageInfo.limit},this.searchForm);Object(b["c"])(e).then((function(e){var a=e.data;200==e.code&&(t.tableList=a.rows,t.pageInfo.total=a.total)}))},getCalenderList:function(){var t=Object(c["a"])(Object(l["a"])().mark((function t(){var e;return Object(l["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,j({type:"MUSIC"});case 3:e=t.sent,this.userList=e.data,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),console.log(t.t0);case 10:case"end":return t.stop()}}),t,this,[[0,7]])})));function e(){return t.apply(this,arguments)}return e}(),lookDetail:function(t){this.detail={id:t.id,musicGroupId:t.musicGroupId,status:t.status,batchNo:t.batchNo},this.typeStatus=!0},submited:function(){this.pageInfo.page=1,this.getList()},close:function(){this.typeStatus=!1,this.getList()}},watch:{typeStatus:function(t){t||(this.detail=null)}}},$=F,I=(a("636a"),Object(_["a"])($,i,o,!1,null,"08fa8922",null)),C=I.exports,N=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",[a("el-form",{attrs:{inline:!0,model:t.searchForm}},[a("el-form-item",{attrs:{prop:"period"}},[a("el-select",{staticStyle:{width:"100% !important"},attrs:{placeholder:"云教练单位",clearable:""},model:{value:t.searchForm.period,callback:function(e){t.$set(t.searchForm,"period","string"===typeof e?e.trim():e)},expression:"searchForm.period"}},[a("el-option",{attrs:{label:"月度",value:"MONTH"}}),t._v(" "),a("el-option",{attrs:{label:"季度",value:"QUARTERLY"}}),t._v(" "),a("el-option",{attrs:{label:"半年",value:"YEAR_HALF"}}),t._v(" "),a("el-option",{attrs:{label:"年度",value:"YEAR"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{prop:"organId"}},[a("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},model:{value:t.searchForm.organId,callback:function(e){t.$set(t.searchForm,"organId","string"===typeof e?e.trim():e)},expression:"searchForm.organId"}},t._l(t.selects.branchs,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),a("el-form-item",[a("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择审核人"},model:{value:t.searchForm.audit,callback:function(e){t.$set(t.searchForm,"audit","string"===typeof e?e.trim():e)},expression:"searchForm.audit"}},t._l(t.userList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.auditName,value:t.audit}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{prop:"visitTime"}},[a("el-date-picker",{staticStyle:{width:"410px"},attrs:{type:"daterange","picker-options":{firstDayOfWeek:1},"default-time":["00:00:00","23:59:59"],"range-separator":"至","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期"},model:{value:t.searchForm.visitTime,callback:function(e){t.$set(t.searchForm,"visitTime","string"===typeof e?e.trim():e)},expression:"searchForm.visitTime"}})],1),t._v(" "),a("el-form-item",[a("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"审核状态"},model:{value:t.searchForm.status,callback:function(e){t.$set(t.searchForm,"status","string"===typeof e?e.trim():e)},expression:"searchForm.status"}},[a("el-option",{attrs:{label:"审核中",value:"AUDITING"}}),t._v(" "),a("el-option",{attrs:{label:"拒绝",value:"REJECT"}}),t._v(" "),a("el-option",{attrs:{label:"开启缴费",value:"OPEN"}})],1)],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:t.search}},[t._v("搜索")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.onReSet}},[t._v("重置")])],1)],1),t._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.tableList}},[a("el-table-column",{attrs:{align:"left",prop:"id",label:"续费编号"}}),t._v(" "),a("el-table-column",{attrs:{align:"left",prop:"organName",label:"分部名称"}}),t._v(" "),a("el-table-column",{attrs:{align:"left",prop:"name",label:"云教练"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("p",[t._v("\n 续费周期: "+t._s(e.row.memberNum?e.row.memberNum:"--")+t._s(t._f("memberEnumType")(e.row.period))+"\n ")]),t._v(" "),a("p",[t._v("缴费金额: "+t._s(t._f("moneyFormat")(e.row.actualAmount,!0)))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"left",prop:"type",label:"人数"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("p",[t._v("已缴费: "+t._s(e.row.paymentUserNum)+"人")]),t._v(" "),a("p",[t._v("总人数: "+t._s(e.row.userNum)+"人")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"left",label:"创建人",prop:"operatorName",width:"200px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("p",[t._v(t._s(e.row.operatorName?e.row.operatorName:"--"))]),t._v(" "),a("p",[t._v(t._s(e.row.createTime?e.row.createTime:"--"))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"left",prop:"createTime",label:"审核人",width:"140px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("p",[t._v(t._s(e.row.auditName?e.row.auditName:"--"))]),t._v(" "),a("p",[t._v("\n "+t._s(t._f("dateForMinFormat")(e.row.auditTime?e.row.auditTime:"--"))+"\n ")])])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"left",prop:"remark",label:"备注"}}),t._v(" "),a("el-table-column",{attrs:{align:"left",prop:"memo",label:"审核意见"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("overflow-text",{attrs:{width:"80px",text:t.row.memo}})]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"left",prop:"operatorName",label:"申请人"}}),t._v(" "),a("el-table-column",{attrs:{align:"left",prop:"status",label:"状态",width:"100px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("\n "+t._s(t._f("auditType")(e.row.status))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"left",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return["AUDITING"==e.row.status&&t.$helpers.permission("cloudCoachPaymentProgram/audit")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.onDetail(e.row)}}},[t._v("审核")]):t._e(),t._v(" "),"AUDITING"!=e.row.status&&t.$helpers.permission("studentCloudCoachPaymentDetails/queryPage")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.onDetail(e.row)}}},[t._v("详情")]):t._e()]}}])})],1),t._v(" "),a("pagination",{attrs:{sync:"",total:t.rules.total,page:t.rules.page,limit:t.rules.limit,"page-sizes":t.rules.page_size},on:{"update:total":function(e){return t.$set(t.rules,"total",e)},"update:page":function(e){return t.$set(t.rules,"page",e)},"update:limit":function(e){return t.$set(t.rules,"limit",e)},pagination:t.getList}})],1)],1),t._v(" "),t.recordVisible?a("el-dialog",{attrs:{title:"审核详情",visible:t.recordVisible,width:"800px","append-to-body":""},on:{"update:visible":function(e){t.recordVisible=e}}},[a("member-model",{attrs:{detail:t.selectDetail},on:{getList:t.getList,close:function(e){t.recordVisible=!1}}})],1):t._e()],1)},L=[],S=a("a8db"),P=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("descriptions",{staticStyle:{"margin-bottom":"20px"},attrs:{column:2}},[a("descriptions-item",{attrs:{label:"云教练单位"}},[t._v(t._s(t._f("memberEnumType")(t.detail.period)))]),t._v(" "),a("descriptions-item",{attrs:{label:"周期数"}},[t._v(t._s(t.detail.memberNum))]),t._v(" "),a("descriptions-item",{attrs:{label:"缴费金额(元)"}},[t._v(t._s(t._f("moneyFormat")(t.detail.actualAmount,!0)))]),t._v(" "),a("descriptions-item",{attrs:{label:"已缴费人数/总人数"}},[t._v(t._s(t.detail.paymentUserNum)+"/"+t._s(t.detail.userNum))]),t._v(" "),a("descriptions-item",{attrs:{label:"创建人"}},[t._v(t._s(t.detail.operatorName))]),t._v(" "),a("descriptions-item",{attrs:{label:"创建时间"}},[t._v(t._s(t.detail.createTime))]),t._v(" "),a("descriptions-item",{attrs:{span:2,label:"学员姓名"}},[t._v(t._s(t.detail.userNames))]),t._v(" "),a("descriptions-item",{attrs:{span:2,label:"备注"}},[t._v(t._s(t.detail.remark))])],1),t._v(" "),"AUDITING"===t.detail.status?[a("el-alert",{staticClass:"alert",staticStyle:{margin:"20px 0"},attrs:{title:"审核意见",closable:!1,type:"info"}}),t._v(" "),a("el-form",{ref:"form",attrs:{model:t.form}},[a("el-form-item",{attrs:{prop:"memo",rules:[{required:!0,message:"请输入审核意见",trigger:"blur"}]}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入审核意见"},model:{value:t.form.memo,callback:function(e){t.$set(t.form,"memo",e)},expression:"form.memo"}})],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t.permission("musicGroupPaymentCalender/auditPass/batchAuditing")?a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submit(1)}}},[t._v("审核通过")]):t._e(),t._v(" "),t.permission("musicGroupPaymentCalender/auditRefuse/batchAuditing")?a("el-button",{attrs:{type:"danger"},on:{click:function(e){return t.submit(0)}}},[t._v("驳回")]):t._e(),t._v(" "),a("el-button",{on:{click:function(e){return t.$emit("close")}}},[t._v("关 闭")])],1)]:t._e()],2)},D=[],G={props:["detail"],data:function(){return{form:{memo:""}}},mounted:function(){console.log(this.detail,"detail")},methods:{submit:function(){var t=Object(c["a"])(Object(l["a"])().mark((function t(e){var a=this;return Object(l["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.$refs.form.validate(function(){var t=Object(c["a"])(Object(l["a"])().mark((function t(r){var n,s;return Object(l["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!r){t.next=15;break}return t.prev=1,n=a.detail,s=e?"通过":"驳回",t.next=6,a.$confirm("是否确认审核".concat(s),"提示",{type:"warning"});case 6:return t.next=8,O({id:n.id,memo:a.form.memo,status:e?"OPEN":"REJECT"});case 8:a.$message.success("".concat(s,"成功")),a.$emit("close"),a.$emit("getList"),t.next=15;break;case 13:t.prev=13,t.t0=t["catch"](1);case 15:case"end":return t.stop()}}),t,null,[[1,13]])})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),permission:function(t){return Object(s["a"])(t)}}},E=G,A=(a("24ae"),Object(_["a"])(E,P,D,!1,null,"71fa88b8",null)),M=A.exports,U=a("c041"),R=a("ed08"),Y=["visitTime"],V={components:{pagination:p["a"],memberModel:M},data:function(){return{recordVisible:!1,searchForm:{visitTime:[],period:null,organId:null,status:"AUDITING",audit:null},tableList:[],userList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},selectDetail:null,statusList:k["f"]}},mounted:function(){var t=Object(c["a"])(Object(l["a"])().mark((function t(){return Object(l["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$store.dispatch("setBranchs");case 2:this.getList(),this.getCalenderList();case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),methods:{getList:function(){var t=Object(c["a"])(Object(l["a"])().mark((function t(){var e,a,r,n;return Object(l["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e=this.searchForm,a=e.visitTime,r=Object(S["a"])(e,Y),t.next=4,Object(U["b"])(Object(u["a"])(Object(u["a"])(Object(u["a"])({},r),Object(R["b"])(a,["startTime","endTime"])),{},{page:this.rules.page,rows:this.rules.limit}));case 4:n=t.sent,this.rules.total=n.data.total,this.tableList=n.data.rows,t.next=11;break;case 9:t.prev=9,t.t0=t["catch"](0);case 11:case"end":return t.stop()}}),t,this,[[0,9]])})));function e(){return t.apply(this,arguments)}return e}(),search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={visitTime:[],period:null},this.search()},onDetail:function(t){this.selectDetail=t,this.recordVisible=!0},getCalenderList:function(){var t=Object(c["a"])(Object(l["a"])().mark((function t(){var e;return Object(l["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,j({type:"CLOUD"});case 3:e=t.sent,this.userList=e.data,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),console.log(t.t0);case 10:case"end":return t.stop()}}),t,this,[[0,7]])})));function e(){return t.apply(this,arguments)}return e}()}},q=V,z=Object(_["a"])(q,N,L,!1,null,null,null),J=z.exports,W={name:"Main",components:{musicGroup:C,member:J},data:function(){return{activeIndex:null}},mounted:function(){},methods:{permission:s["a"]}},B=W,H=Object(_["a"])(B,r,n,!1,null,null,null);e["default"]=H.exports},ed08:function(t,e,a){"use strict";a.d(e,"c",(function(){return i})),a.d(e,"b",(function(){return o})),a.d(e,"a",(function(){return l}));var r=a("bd86"),n=(a("c5f6"),a("28a5"),a("a481"),a("6b54"),a("7618"),a("5a0c")),s=a.n(n);var i=function(t){var e=[];for(var a in t)if(t.hasOwnProperty(a)){var r=t[a],n=a.toLocaleUpperCase();e.push({label:r,value:"TRUE"===n||"FALSE"===n?"TRUE"===n:a})}return e},o=function(t){var e,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return t&&t.length?(e={},Object(r["a"])(e,a[0]||"start",s()(t[0]).isValid()?s()(t[0]).format(n):""),Object(r["a"])(e,a[1]||"end",s()(t[1]).isValid()?s()(t[1]).format(n):""),e):{}},l=function(t){var e,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 t&&t.length?"YYYY-MM-DD"===i?(e={},Object(r["a"])(e,n[0]||"start",s()(t[0]).isValid()?s()(t[0]).format(i)+" 00:00:00":""),Object(r["a"])(e,n[1]||"end",s()(t[1]).isValid()?s()(t[1]).format(i)+" 23:59:59":""),e):(a={},Object(r["a"])(a,n[0]||"start",s()(t[0]).isValid()?s()(t[0]).format(i):""),Object(r["a"])(a,n[1]||"end",s()(t[1]).isValid()?s()(t[1]).format(i):""),a):{}}}}]);
|