chunk-6d69ef2c.9d049609.js 11 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6d69ef2c"],{2256:function(t,e,a){},"419c":function(t,e,a){"use strict";a("a28a")},"5c23":function(t,e,a){"use strict";a("2256")},a28a:function(t,e,a){},e7c4:function(t,e,a){"use strict";a.r(e);var n=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("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: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.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:"center",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:"center",width:"200px",prop:"musicGroupName",label:"乐团名称"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("div",[a("Tooltip",{attrs:{content:t.row.musicGroupName}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",width:"180px",prop:"musicGroupId",label:"乐团编号"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("copy-text",[t._v(t._s(e.row.musicGroupId))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",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:"center",prop:"payUserType",label:"订单类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("\n "+t._s(t._f("payOrderType")(e.row.payUserType))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"addCourseTotalTime",label:"加课总时长(分钟)"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseOriginalPrice",label:"原现价(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.courseOriginalPrice+e.row.originalMemberPaymentAmount))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseCurrentPrice",label:"申请价格(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.courseCurrentPrice+e.row.memberPaymentAmount))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"memo",width:"200px",label:"备注"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("overflow-text",{attrs:{width:"200px",text:t.row.memo}})]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"auditMemo",width:"200px",label:"审核备注"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("overflow-text",{attrs:{width:"200px",text:t.row.auditMemo}})]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"operatorName",label:"申请人"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"auditStatus",label:"状态",width:"100px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("\n "+t._s(t._f("auditType")(e.row.auditStatus))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"createTime",label:"申请时间",width:"140px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("\n "+t._s(t._f("dateForMinFormat")(e.row.createTime))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作",width:"100px",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.$helpers.permission("AUDITING"===e.row.auditStatus?"musicGroupPaymentCalender/auditListDetail/update":"musicGroupPaymentCalender/auditListDetail/look")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.lookDetail(e.row)}}},[t._v("\n "+t._s("AUDITING"===e.row.auditStatus?"审核":"查看")+"\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(" "),a("el-dialog",{attrs:{title:"申请详情",width:"900px",visible:t.typeStatus,"destroy-on-close":""},on:{"update:visible":function(e){t.typeStatus=e}}},[a("review",{attrs:{detail:t.detail},on:{close:t.close}})],1),t._v(" "),a("el-dialog",{attrs:{title:"批量审核",width:"700px",visible:t.typesStatus,"destroy-on-close":""},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)],1)},r=[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("386d"),a("5530")),i=a("333d"),o=a("cd32"),l=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)},c=[],u=(a("96cf"),a("1da1")),p=a("ec8a"),m=a("b38b"),d={props:["selList"],data:function(){return{remark:""}},methods:{submit:function(){var t=Object(u["a"])(regeneratorRuntime.mark((function t(e){var a=this;return regeneratorRuntime.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(m["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(m["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(p["a"])(t)}}},f=d,h=(a("5c23"),a("2877")),b=Object(h["a"])(f,l,c,!1,null,"5b9f92c9",null),y=b.exports,v=(a("1cc7"),a("a5b0")),g=a("92e3"),_={search:null,paymentType:null,status:"AUDITING",organId:null},k={components:{pagination:i["a"],Tooltip:v["a"],review:o["a"],audit:y},name:"helpCategory",data:function(){return{typesStatus:!1,selList:[],paymentTypeList:g["e"],organList:[],statusList:g["f"],searchForm:Object(s["a"])({},_),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(t,e){return"AUDITING"==t.auditStatus},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(s["a"])({},_),this.search()},handleSelectionChange:function(t){this.selList=t},getList:function(){var t=this,e=Object(s["a"])({page:this.pageInfo.page,rows:this.pageInfo.limit},this.searchForm);Object(m["c"])(e).then((function(e){var a=e.data;200==e.code&&(t.tableList=a.rows,t.pageInfo.total=a.total)}))},lookDetail:function(t){this.detail={id:t.musicGroupPaymentCalenderId,batchNo:t.batchNo,musicGroupId:t.musicGroupId,status:t.auditStatus},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)}}},w=k,x=(a("419c"),Object(h["a"])(w,n,r,!1,null,"6e9b7f24",null));e["default"]=x.exports}}]);