1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-602a1f37"],{"09f4":function(e,t,r){"use strict";r.d(t,"a",(function(){return u})),Math.easeInOutQuad=function(e,t,r,n){return e/=n/2,e<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function a(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function u(e,t,r){var u=o(),i=e-u,s=20,l=0;t="undefined"===typeof t?500:t;var c=function e(){l+=s;var o=Math.easeInOutQuad(l,u,i,t);a(o),l<t?n(e):r&&"function"===typeof r&&r()};c()}},"18bd":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"m-container"},[e._m(0),e._v(" "),r("div",{staticClass:"m-core"},[r("el-form",{staticClass:"searchForm",attrs:{inline:!0},model:{value:e.searchForm,callback:function(t){e.searchForm="string"===typeof t?t.trim():t},expression:"searchForm"}},[r("el-form-item",{attrs:{prop:"organId"}},[r("el-select",{staticClass:"multiple",attrs:{clearable:"",filterable:"",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.organList,(function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",[r("el-date-picker",{staticStyle:{width:"410px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"申请开始日期","end-placeholder":"申请结束日期","picker-options":{firstDayOfWeek:1}},on:{change:e.searchOrderDate},model:{value:e.orderDate,callback:function(t){e.orderDate="string"===typeof t?t.trim():t},expression:"orderDate"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{align:"center",width:"150",prop:"createTime",label:"申请时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(e._f("dateForMinFormat")(t.row.createTime))+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"orderNo",label:"原订单编号"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentPaymentOrder.expectAmount",label:"应付金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.studentPaymentOrder.expectAmount))+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentPaymentOrder.actualAmount",label:"实付金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.studentPaymentOrder.actualAmount))+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"user.username",label:"学员姓名"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"remark",label:"退费说明"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"expectAmount",label:"预退费金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.expectAmount))+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"actualAmount",label:"实退费金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.actualAmount))+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"退费状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("returnStatus")(t.row.status))+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return"WAIT_PAYMENT"==t.row.status?[r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"vipGroupManage/applyRefundAudit",expression:"'vipGroupManage/applyRefundAudit'"}],attrs:{type:"text"},on:{click:function(r){return e.onBackMoney(t.row)}}},[e._v("退费")])]:void 0}}],null,!0)})],1),e._v(" "),r("pagination",{attrs:{total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"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),e._v(" "),r("el-dialog",{attrs:{title:"退费确认",visible:e.backStatus,width:"500px"},on:{"update:visible":function(t){e.backStatus=t},close:function(t){return e.onFormClose("ruleForm")}}},[r("el-form",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules}},[r("el-form-item",{attrs:{label:"退费路径",prop:"name","label-width":e.formLabelWidth}},[r("el-input",{attrs:{disabled:"",value:"余额",autocomplete:"off"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"退费金额",prop:"amount","label-width":e.formLabelWidth}},[r("el-input",{attrs:{autocomplete:"off"},model:{value:e.form.amount,callback:function(t){e.$set(e.form,"amount",e._n("string"===typeof t?t.trim():t))},expression:"form.amount"}})],1)],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"danger"},on:{click:function(t){return e.onTeachingSubmit("ruleForm","REJECT")}}},[e._v("拒绝退费")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onTeachingSubmit("ruleForm","DONE")}}},[e._v("确认退费")])],1)],1)],1)])},a=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("h2",[r("div",{staticClass:"squrt"}),e._v("退费管理\n ")])}],o=r("333d"),u=r("3de3"),i=r("1cc7"),s=(r("4360"),{components:{pagination:o["a"]},name:"backMoney",data:function(){return{orderDate:null,searchForm:{startTime:null,endTime:null,organId:null},tableList:[],organList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},backStatus:!1,formLabelWidth:"100px",form:{id:null,amount:null},rules:{amount:[{required:!0,type:"number",message:"请输入金额",trigger:"blur"}]}}},mounted:function(){var e=this;Object(i["V"])().then((function(t){200==t.code&&(e.organList=t.data)}));var t=new Date,r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())).toISOString().slice(0,10),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())).toISOString().slice(0,10);this.orderDate=[],this.orderDate.push(r),this.orderDate.push(n),this.getList()},methods:{search:function(){this.pageInfo.page=1,this.getList()},onTeachingSubmit:function(e,t){var r=this;this.$refs[e].validate((function(e){if(!e)return!1;r.form.status=t,Object(u["a"])(r.form).then((function(e){200==e.code?(r.$message.success("操作成功"),r.backStatus=!1,r.getList()):r.$message.error(e.msg)}))}))},getList:function(){var e,t=this,r=this.searchForm;r.rows=this.pageInfo.limit,r.page=this.pageInfo.page,(null===(e=this.orderDate)||void 0===e?void 0:e.length)>0?(r.startTime=this.orderDate[0],r.endTime=this.orderDate[1]):(r.startTime=null,r.endTime=null),Object(u["p"])(r).then((function(e){var r=e.data;200==e.code&&(t.tableList=r.rows,t.pageInfo.total=r.total)}))},searchOrderDate:function(e){e?(this.searchForm.startTime=e[0]+" 00:00:00",this.searchForm.endTime=e[1]+" 23:59:59"):(this.searchForm.startTime=null,this.searchForm.endTime=null)},onReSet:function(){this.orderDate=null,this.searchForm={startTime:null,endTime:null}},onFormClose:function(e){this.$refs[e].clearValidate()},onBackMoney:function(e){this.backStatus=!0,this.form={id:e.id,amount:e.expectAmount}}}}),l=s,c=r("2877"),d=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=d.exports},"3de3":function(e,t,r){"use strict";var n=r("b775"),a=r("d4ec"),o=r("bee2"),u=(r("ac4d"),r("8a81"),r("5c96")),i=r.n(u),s=r("bc3a"),l=r.n(s),c=r("4360"),d=r("5f87"),m=r("e3eb"),f=r.n(m),p=r("3908"),g=r("a18c"),h=r("2b0e"),b=Symbol("showMessage"),v=function(){function e(){Object(a["a"])(this,e)}return Object(o["a"])(e,[{key:"success",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this[b]("success",e,t)}},{key:"warning",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this[b]("warning",e,t)}},{key:"info",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this[b]("info",e,t)}},{key:"error",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this[b]("error",e,t)}},{key:b,value:function(e,t,r){r?0===document.getElementsByClassName("el-message").length&&u["Message"][e](t):u["Message"][e](t)}}]),e}();h["default"].use(i.a),h["default"].prototype.$message=new v;var y=new h["default"],_=0;function O(){0===_&&p["a"].startLoading(),_++}function T(){_<=0||(_--,0===_&&p["a"].endLoading())}var k=l.a.create({baseURL:"",timeout:18e4});k.interceptors.request.use((function(e){return O(),c["a"].getters.token&&(e.headers["Authorization"]=Object(d["a"])()),e.params=f()(e.params),e}),(function(e){return T(),Promise.reject(e)})),k.interceptors.response.use((function(e){if(e.data){var t=JSON.parse(JSON.stringify(e.data));if(401==t.code||403==t.code)return y.$message.error("登录过期,请重新登录!"),void setTimeout((function(){T(),c["a"].dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);if(404==t.code&&g["c"].push("/404"),200!=t.code){var r=t.msg||"请求失败code码为".concat(t.code);return!0!==e.config.hint&&y.$message.error(r),T(),Promise.reject(t)}return T(),t}return T(),Promise.reject()}),(function(e){return"Network Error"==e.message?y.$message.error("网络异常,请检查网络连接"):y.$message.error(e.message),T(),Promise.reject(e)}));var w=k,j=r("4328"),F=r.n(j);r.d(t,"h",(function(){return D})),r.d(t,"i",(function(){return P})),r.d(t,"j",(function(){return E})),r.d(t,"n",(function(){return I})),r.d(t,"m",(function(){return A})),r.d(t,"p",(function(){return L})),r.d(t,"a",(function(){return M})),r.d(t,"q",(function(){return q})),r.d(t,"r",(function(){return x})),r.d(t,"u",(function(){return $})),r.d(t,"o",(function(){return C})),r.d(t,"s",(function(){return R})),r.d(t,"e",(function(){return G})),r.d(t,"b",(function(){return N})),r.d(t,"l",(function(){return W})),r.d(t,"c",(function(){return z})),r.d(t,"f",(function(){return J})),r.d(t,"t",(function(){return B})),r.d(t,"k",(function(){return U})),r.d(t,"d",(function(){return Y})),r.d(t,"g",(function(){return Q}));var S="/api-web";function D(e){return Object(n["a"])({url:S+"/order/queryPage",method:"get",params:e})}function P(e){return Object(n["a"])({url:S+"/order/queryPage1",method:"get",params:e})}function E(e){return Object(n["a"])({url:S+"/order/queryPage2",method:"get",params:e})}function I(e){return Object(n["a"])({url:S+"/routeOrder/finance",method:"get",params:e})}function A(e){return Object(n["a"])({url:S+"/routeOrder/add",method:"post",headers:{"Content-Type":"application/json"},data:e})}function L(e){return Object(n["a"])({url:S+"/studentRefunds/queryPage",method:"get",params:e})}function M(e){return Object(n["a"])({url:S+"/vipGroupManage/applyRefundAudit",method:"post",data:F.a.stringify(e)})}function q(e){return Object(n["a"])({url:S+"/studentWithdraw/queryPage",method:"get",params:e})}function x(e){return Object(n["a"])({url:S+"/studentWithdraw/confirm",method:"post",data:F.a.stringify(e)})}function $(e){return Object(n["a"])({url:S+"/order/verifyMusicalList",method:"GET",params:e})}function C(e){return Object(n["a"])({url:S+"/studentRecharge/queryPage",method:"GET",params:e})}function R(e){return Object(n["a"])({url:S+"/tenantPaymentOrder/queryPage",method:"GET",params:e})}function G(e){return Object(n["a"])({url:S+"/order/getOrderStatus",method:"GET",params:e})}function N(e){return Object(n["a"])({url:S+"/financialExpenditure/queryPage",method:"GET",params:e})}function W(e){return Object(n["a"])({url:S+"/financialExpenditure/batchDel",method:"POST",params:e})}function z(e){return Object(n["a"])({url:S+"/operatingReport/queryPage",method:"GET",params:e})}function J(e){return Object(n["a"])({url:S+"/sellOrder/queryPage",method:"GET",params:e})}function B(e){return Object(n["a"])({url:S+"/sellOrder/update",method:"POST",params:e})}function U(e){return w({url:S+"/sellOrder/refund",method:"POST",params:e,hint:!0})}function Y(e){return Object(n["a"])({url:S+"/routeOrder/getOrderInfo",method:"GET",params:e})}function Q(e){return Object(n["a"])({url:S+"/routeOrder/delete",method:"POST",data:F.a.stringify(e)})}}}]);
|