chunk-32eca16f.1ba18269.js 27 KB

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