You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
18 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-67782236"],{"0fd0":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("xy-dialog",{ref:"dialog",attrs:{width:50,"is-show":e.isShow,type:"form",title:"催缴通知",form:e.form},on:{"update:isShow":function(t){e.isShow=t},"update:is-show":function(t){e.isShow=t}},scopedSlots:e._u([{key:"content",fn:function(){return[i("div",{staticClass:"xy-table-item",staticStyle:{padding:"0"}},[i("div",{staticClass:"xy-table-item-label",staticStyle:{"font-weight":"bold"}},[i("span",{staticStyle:{color:"red","font-weight":"bold","padding-right":"4px"}}),e._v("发布内容: ")]),i("div",{staticClass:"xy-table-item-content",staticStyle:{"flex-grow":"1","text-align":"center",margin:"0 40px"}},[i("div",{staticStyle:{display:"flex","justify-content":"center"}},[i("el-input",{attrs:{type:"textarea"},model:{value:e.form.content,callback:function(t){e.$set(e.form,"content",t)},expression:"form.content"}})],1),i("div",[i("el-button",{staticStyle:{margin:"15px"},attrs:{type:"primary"},on:{click:e.submit}},[e._v("发送")]),i("el-button",{staticStyle:{margin:"15px"},attrs:{type:"primary",plain:""},on:{click:function(t){e.isShow=!1}}},[e._v("取消")])],1)])])]},proxy:!0},{key:"footerContent",fn:function(){return[i("div")]},proxy:!0}])})],1)},n=[],s=(i("a15b"),i("260e")),r={components:{},data:function(){return{isShow:!1,course_id:"",type:"add",selectids:[],form:{content:""}}},created:function(){},methods:{submit:function(){var e=this;this.base.isNull(this.form.content)?this.$message({type:"warning",message:"请填写发送内容"}):Object(s["d"])({course_id:this.course_id,ids:this.selectids.join(","),content:this.form.content}).then((function(t){e.$message({type:"success",message:"发送成功"}),e.isShow=!1,e.$emit("refresh")}))}},watch:{isShow:function(e){e||(this.selectids=[],this.course_id="",this.$refs["dialog"].reset())}}},o=r,c=(i("613b"),i("2877")),l=Object(c["a"])(o,a,n,!1,null,"8c3100c2",null);t["default"]=l.exports},"260e":function(e,t,i){"use strict";i.d(t,"b",(function(){return s})),i.d(t,"e",(function(){return r})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return c})),i.d(t,"g",(function(){return l})),i.d(t,"f",(function(){return u})),i.d(t,"d",(function(){return d}));i("99af"),i("fb6a"),i("d3b7"),i("159b");var a=i("b775");function n(e){var t="",i=function(i){e.hasOwnProperty(i)&&(Array.isArray(e[i])?e[i].forEach((function(e,a){e.key?t+="".concat(i,"[").concat(a,"][key]=").concat(e.key,"&").concat(i,"[").concat(a,"][op]=").concat(e.op,"&").concat(i,"[").concat(a,"][value]=").concat(e.value,"&"):t+="".concat(i,"[").concat(a,"]=").concat(e,"&")})):t+="".concat(i,"=").concat(e[i],"&"))};for(var a in e)i(a);return t.slice(0,-1)}function s(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object(a["a"])({method:"get",url:"/api/admin/course-signs/index",params:e,paramsSerializer:n,isLoading:t})}function r(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Object(a["a"])({method:"get",url:"/api/admin/course-signs/show",params:e,isLoading:t})}function o(e){return Object(a["a"])({method:"post",url:"/api/admin/course-signs/save",data:e})}function c(e){return Object(a["a"])({method:"get",url:"/api/admin/course-signs/destroy",params:e})}function l(e){return Object(a["a"])({method:"post",url:"/api/admin/course-signs/batch-update-status",data:e})}function u(e){return Object(a["a"])({method:"post",url:"/api/admin/course-signs/batch-update-fee-status",data:e})}function d(e){return Object(a["a"])({method:"post",url:"/api/admin/course-signs/batch-notice",data:e})}},"466d":function(e,t,i){"use strict";var a=i("d784"),n=i("825a"),s=i("50c4"),r=i("1d80"),o=i("8aa5"),c=i("14c3");a("match",1,(function(e,t,i){return[function(t){var i=r(this),a=void 0==t?void 0:t[e];return void 0!==a?a.call(t,i):new RegExp(t)[e](String(i))},function(e){var a=i(t,e,this);if(a.done)return a.value;var r=n(e),l=String(this);if(!r.global)return c(r,l);var u=r.unicode;r.lastIndex=0;var d,p=[],f=0;while(null!==(d=c(r,l))){var h=String(d[0]);p[f]=h,""===h&&(r.lastIndex=o(l,s(r.lastIndex),u)),f++}return 0===f?null:p}]}))},"5af5":function(e,t,i){},"613b":function(e,t,i){"use strict";i("5af5")},"795a":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("xy-dialog",{ref:"dialog",attrs:{width:50,"is-show":e.isShow,type:"form",title:"核对缴费单",form:e.form},on:{"update:isShow":function(t){e.isShow=t},"update:is-show":function(t){e.isShow=t}},scopedSlots:e._u([{key:"fee_status",fn:function(){return[i("div",{staticClass:"xy-table-item",staticStyle:{padding:"0"}},[i("div",{staticClass:"xy-table-item-label",staticStyle:{"font-weight":"bold",width:"0",padding:"0"}},[i("span",{staticStyle:{color:"red","font-weight":"bold","padding-right":"4px"}})]),e.row.fee_files&&e.row.fee_files.length>0?i("div",{staticClass:"xy-table-item-content",staticStyle:{"flex-grow":"1","text-align":"center"}},[e._l(e.row.fee_files,(function(e){return i("div",[i("img",{staticStyle:{width:"70%"},attrs:{src:e.url,alt:""}})])})),i("div",[i("el-button",{staticStyle:{margin:"15px"},attrs:{type:"primary"},on:{click:function(t){return e.updateFee(1)}}},[e._v("核对通过")]),i("el-button",{staticStyle:{margin:"15px"},attrs:{type:"primary",plain:""},on:{click:function(t){return e.updateFee(2)}}},[e._v("核对不通过")])],1)],2):e._e()])]},proxy:!0},{key:"footerContent",fn:function(){return[i("div")]},proxy:!0}])})],1)},n=[],s=i("260e"),r={components:{},data:function(){return{isShow:!1,type:"add",id:"",row:{},type_options:[{id:1,value:"已缴"},{id:2,value:"未缴"}],form:{fee_status:""}}},created:function(){},methods:{updateFee:function(e){var t=this;console.log("status",e),Object(s["c"])({id:this.row.id,fee_status:e}).then((function(e){t.$message({type:"success",message:"核对成功"}),t.isShow=!1,t.$emit("refresh")}))}},watch:{isShow:function(e){e||(this.row={})}}},o=r,c=(i("dfd2"),i("2877")),l=Object(c["a"])(o,a,n,!1,null,"21194a52",null);t["default"]=l.exports},"7c2f":function(e,t,i){"use strict";i.d(t,"a",(function(){return p}));var a,n=i("c7eb"),s=i("1da1"),r=i("53ca"),o=(i("99af"),i("fb6a"),i("d3b7"),i("ac1f"),i("3ca3"),i("466d"),i("159b"),i("ddb0"),i("2b3d"),i("bf19"),i("9861"),i("bc3a")),c=i.n(o),l=i("5f87"),u=i("5c96");function d(e){var t,i="",a=function(a){if(e.hasOwnProperty(a))if(Array.isArray(e[a]))e[a].forEach((function(e,t){e.key?i+="".concat(a,"[").concat(t,"][key]=").concat(e.key,"&").concat(a,"[").concat(t,"][op]=").concat(e.op,"&").concat(a,"[").concat(t,"][value]=").concat(e.value,"&"):i+="".concat(a,"[").concat(t,"]=").concat(e,"&")}));else if("object"===Object(r["a"])(e[a]))for(t in e[a])i+="".concat(a,"[").concat(t,"]=").concat(e[a][t],"&");else i+="".concat(a,"=").concat(e[a],"&")};for(var n in e)a(n);return console.log("result",i,i.slice(0,-1)),i.slice(0,-1)}function p(e){return f.apply(this,arguments)}function f(){return f=Object(s["a"])(Object(n["a"])().mark((function e(t){var i,s,r,o,p,f,h,y,g,v=arguments;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=v.length>1&&void 0!==v[1]?v[1]:"get",s=v.length>2?v[2]:void 0,r=v.length>3?v[3]:void 0,a=u["Loading"].service({lock:!0,background:"rgba(0,0,0,0.4)",text:"文件正在生成中..."}),o={baseURL:"",url:t,method:i,responseType:"blob",timeout:1e4,headers:{Accept:"application/json","Content-Type":"application/json; charset=utf-8",withCredentials:!0,Authorization:"Bearer "+Object(l["a"])()}},"get"===i&&Object.defineProperty(o,"params",{value:s,enumerable:!0,writable:!1}),"post"===i&&Object.defineProperty(o,"data",{value:s,enumerable:!0,writable:!1}),e.prev=7,"get"===o.method&&(o.paramsSerializer=d),console.log("options",o),e.next=12,c.a.request(o);case 12:p=e.sent,a.close(),r||(r=(null===(f=p.headers["content-disposition"])||void 0===f?void 0:f.match(/filename=(.*)/)[1])||""),h=new Blob([p.data],{type:"application/octet-stream"}),"undefined"!==typeof window.navigator.msSaveBlob?window.navigator.msSaveBlob(h,decodeURI(r)):(y=window.URL.createObjectURL(h),g=document.createElement("a"),g.style.display="none",g.href=y,g.setAttribute("download",decodeURI(r)),"undefined"===typeof g.download&&g.setAttribute("target","_blank"),document.body.appendChild(g),g.click(),document.body.removeChild(g),window.URL.revokeObjectURL(y)),e.next=24;break;case 19:e.prev=19,e.t0=e["catch"](7),console.error(e.t0),a.close(),Object(u["Message"])({type:"error",message:e.t0});case 24:case"end":return e.stop()}}),e,null,[[7,19]])}))),f.apply(this,arguments)}},a15b:function(e,t,i){"use strict";var a=i("23e7"),n=i("44ad"),s=i("fc6a"),r=i("a640"),o=[].join,c=n!=Object,l=r("join",",");a({target:"Array",proto:!0,forced:c||!l},{join:function(e){return o.call(s(this),void 0===e?",":e)}})},a241:function(e,t,i){},a500:function(e,t,i){},a941:function(e,t,i){"use strict";i("a241")},be84:function(e,t,i){"use strict";i.r(t),t["default"]={data:function(){return{types_status:[{id:0,value:"禁用",type:"info"},{id:1,value:"启用",type:""}],sortList:[{id:"ASC",value:"评分升序"},{id:"DESC",value:"评分降序"}],false_or_true:[{id:0,value:"否",type:"info"},{id:1,value:"是",type:""}],apply_status_list:[{id:0,value:"待审核",type:""},{id:1,value:"通过",type:"success"},{id:2,value:"审核不通过",type:"warning"},{id:3,value:"备选",type:"danger"},{id:4,value:"已取消",type:"info"},{id:5,value:"主动放弃",type:"danger"},{id:6,value:"黑名单",type:"warning"}],fee_status_list:[{id:0,value:"待缴费",type:""},{id:3,value:"待确认",type:"info"},{id:1,value:"缴费成功",type:"success"},{id:2,value:"缴费失败",type:"warning"}],course_type:[{id:1,value:"常规课程"},{id:2,value:"公司团建"}],course_status:[{id:0,value:"待发布",type:"info"},{id:1,value:"直接发布",type:""}],course_date:[{value:"课程待定",type:"info",id:30},{value:"课程未开始",type:"info",id:20},{value:"课程进行中",type:"",id:10},{value:"课程已结束",type:"success",id:40}],company_education:[{id:1,value:"小学"},{id:2,value:"初中"},{id:3,value:"高中"},{id:4,value:"专科"},{id:5,value:"本科"},{id:6,value:"硕士"},{id:7,value:"博士"}],is_vip_list:[{id:0,value:"公益",type:""},{id:1,value:"付费"}],is_schoolmate_list:[{id:0,value:"否",type:""},{id:1,value:"是"}],company_type_list:[{id:0,value:"上市公司"},{id:1,value:"上市公司子公司"}],book_status:[{id:0,value:"待审核",type:""},{id:1,value:"通过",type:"success"},{id:2,value:"审核不通过",type:"warning"},{id:3,value:"取消",type:"info"},{id:4,value:"失败",type:"info"}],keep_options:[{id:"",value:"全部"},{id:1,value:"出勤",type:"success"},{id:0,value:"缺勤",type:"warning"}]}},computed:{},created:function(){},mounted:function(){},methods:{}}},dfd2:function(e,t,i){"use strict";i("a500")},ee85:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",[i("div",{ref:"lxHeader"},[i("lx-header",{staticStyle:{"margin-bottom":"10px",border:"0px","margin-top":"15px"},attrs:{icon:"md-apps",text:e.$route.meta.title}},[i("div",{staticStyle:{"padding-left":"0"},attrs:{slot:"content"},slot:"content"},[i("div",{staticClass:"searchwrap",staticStyle:{display:"flex","align-items":"center"}},[i("div",[i("el-input",{attrs:{placeholder:"请输入姓名"},model:{value:e.select.name,callback:function(t){e.$set(e.select,"name",t)},expression:"select.name"}})],1),i("div",[i("el-select",{attrs:{placeholder:"请选择状态",clearable:""},model:{value:e.select.fee_status,callback:function(t){e.$set(e.select,"fee_status",t)},expression:"select.fee_status"}},e._l(e.fee_status_list,(function(e){return i("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})})),1)],1),i("div",[i("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){e.select.page=1,e.getList()}}},[e._v("查询")])],1),i("div",[i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.resetSelect}},[e._v("重置")])],1),i("div",[i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.exportExcel}},[e._v("导出")])],1),"pay"==e.url_type?i("div",[i("el-popconfirm",{attrs:{title:"确定要批量核对吗?"},on:{confirm:e.updateAllFee}},[i("el-button",{attrs:{slot:"reference",type:"primary",size:"small"},slot:"reference"},[e._v("批量核对")])],1)],1):e._e(),"pay"==e.url_type?i("div",[i("el-popconfirm",{attrs:{title:"确定要发送催缴通知吗?"},on:{confirm:e.showSendMessage}},[i("el-button",{attrs:{slot:"reference",type:"primary",size:"small"},slot:"reference"},[e._v("催缴通知")])],1)],1):e._e()])])])],1)]),i("div",[i("div",{staticClass:"txl"},[i("div",[e._v("课程名称:"+e._s(e.subjectObj.title))]),i("div",[e._v("开课日期:"+e._s(e.subjectObj.date))]),i("div",[e._v("课程体系:"+e._s(e.subjectObj.leibie))])]),i("xy-table",{attrs:{list:e.list,total:e.total,showIndex:!1,"table-item":e.table_item},on:{pageIndexChange:e.pageIndexChange,pageSizeChange:e.pageSizeChange,"selection-change":e.selectionChange},scopedSlots:e._u([{key:"index",fn:function(){return[i("el-table-column",{attrs:{align:"center",fixed:"left",label:"",width:"50","header-align":"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.getIndex(t.$index))+" ")]}}])})]},proxy:!0},{key:"status",fn:function(){return[i("el-table-column",{attrs:{align:"center",label:"状态",width:"120","header-align":"center"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(e.apply_status_list,(function(a){return i("div",[t.row.status===a.id?i("el-tag",{attrs:{type:a.type}},[e._v(e._s(a.value))]):e._e()],1)}))}}])})]},proxy:!0},{key:"fee_status",fn:function(){return[i("el-table-column",{attrs:{align:"center",label:"缴费状态",width:"120","header-align":"center"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(e.fee_status_list,(function(a){return i("div",[t.row.fee_status===a.id?i("el-tag",{attrs:{type:a.type}},[e._v(e._s(a.value))]):e._e()],1)}))}}])})]},proxy:!0},{key:"img",fn:function(){return[i("el-table-column",{attrs:{align:"center",label:"缴费截图",width:"100","header-align":"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._l(t.row.fee_files,(function(e){return[i("el-image",{staticStyle:{width:"80px",height:"80px"},attrs:{src:e.url,"preview-src-list":[e.url]}})]}))]}}])})]},proxy:!0},{key:"btns",fn:function(){return["pay"==e.url_type?i("el-table-column",{attrs:{align:"center",fixed:"right",label:"操作",width:"80","header-align":"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(i){return e.showCheckPay(t.row)}}},[e._v("核对")])]}}],null,!1,599690688)}):i("div")]},proxy:!0}])})],1),i("checkPay",{ref:"checkPay",on:{refresh:e.getList}}),i("sendMessage",{ref:"sendMessage",on:{refresh:e.getList}})],1)},n=[],s=i("c7eb"),r=i("1da1"),o=(i("a15b"),i("d81d"),i("b0c0"),i("795a")),c=i("0fd0"),l=i("be84"),u=i("260e"),d=i("7c2f"),p={mixins:[l["default"]],components:{checkPay:o["default"],sendMessage:c["default"]},data:function(){return{subjectObj:{},url_type:"pay",select:{fee_status:"",name:"",page:1,page_size:10},selectids:[],showImg:!1,srcList:[],list:[],total:0,table_item:[{prop:"index",label:"",align:"center",width:50,fixed:"left"},{prop:"user.username",label:"姓名",align:"center",width:120,fixed:"left"},{prop:"user.sex",label:"性别",align:"center",width:120},{prop:"user.idcard",label:"身份证号",align:"center",width:180},{prop:"user.mobile",label:"联系方式",align:"center",width:120},{prop:"user.birthday",label:"出生年月",align:"center",width:120},{prop:"user.email",label:"邮箱",align:"center",width:120},{prop:"user.company_name",label:"公司名称",align:"left",width:240},{prop:"user.company_position",label:"职务",align:"center",width:120},{prop:"score",label:"评分",align:"center",width:120},{prop:"created_at",label:"报名时间",align:"center",width:180},{prop:"status",label:"审核状态",align:"center",width:180},{prop:"fee_status",label:"缴费状态",align:"center",width:180},{prop:"img",label:"缴费截图",align:"center",width:120}]}},created:function(){this.url_type=this.$route.query.type?this.$route.query.type:"pay",this.subjectObj=this.$route.query,this.select.course_id=this.subjectObj.id,"pay"==this.url_type&&this.table_item.unshift({prop:"selection",type:"selection",width:50,fixed:"left"}),this.getList()},methods:{pageIndexChange:function(e){this.select.page=e,this.getList()},pageSizeChange:function(e){this.select.page_size=e,this.select.page=1,this.getList()},resetSelect:function(){this.select.name="",this.select.fee_status="",this.select.page=1,this.getList()},getIndex:function(e){var t=(this.select.page-1)*this.select.page_size,i=t+e+1;return i},getList:function(){var e=this;return Object(r["a"])(Object(s["a"])().mark((function t(){var i;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(u["b"])({page:e.select.page,page_size:e.select.page_size,name:e.select.name,filter:[{key:"fee_status",op:"eq",value:e.select.fee_status},{key:"course_id",op:"eq",value:e.select.course_id}]});case 2:i=t.sent,e.list=i.data,e.total=i.total;case 5:case"end":return t.stop()}}),t)})))()},showCheckPay:function(e){this.$refs.checkPay.row=e,this.$refs.checkPay.isShow=!0},selectionChange:function(e){if(e&&e.length>0){var t=[];e.map((function(e){t.push(e.id)})),this.selectids=t}else this.selectids=[]},updateAllFee:function(e){var t=this;if(this.selectids.length<1)this.$message.warning("请先选择要核对的学员");else{var i=this.selectids.join(",");Object(u["f"])({ids:i,fee_status:1}).then((function(e){t.$Message.success("核对成功"),t.getList()}))}},showSendMessage:function(){this.selectids.length<1?this.$message.warning("请先选择要提醒缴费的学员"):(this.$refs.sendMessage.course_id=this.select.course_id,this.$refs.sendMessage.selectids=this.selectids,this.$refs.sendMessage.isShow=!0)},exportExcel:function(){var e={};this.table_item.map((function(t){console.log("item.prop",t.prop),"status"===t.prop?e["status_text"]=t.label:"fee_status"===t.prop?e["fee_status_text"]=t.label:"img"===t.prop||"selection"===t.prop||"index"===t.prop||(e[t.prop]=t.label)})),console.log("_export",e),Object(d["a"])("/api/admin/course-signs/index","get",{name:this.select.name,export_fields:e,filter:[{key:"course_id",op:"eq",value:this.select.course_id},{key:"fee_status",op:"eq",value:this.select.fee_status}],is_export:1,page:1,page_size:999},"".concat(this.subjectObj.title,"缴费信息.xlsx"))}}},f=p,h=(i("a941"),i("2877")),y=Object(h["a"])(f,a,n,!1,null,"32a70f49",null);t["default"]=y.exports}}]);