chunk-602a1f37.0be9857e.js 11 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-602a1f37"],{"09f4":function(t,e,r){"use strict";r.d(e,"a",(function(){return u})),Math.easeInOutQuad=function(t,e,r,n){return t/=n/2,t<1?r/2*t*t+e:(t--,-r/2*(t*(t-2)-1)+e)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function a(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function u(t,e,r){var u=o(),i=t-u,l=20,s=0;e="undefined"===typeof e?500:e;var c=function t(){s+=l;var o=Math.easeInOutQuad(s,u,i,e);a(o),s<e?n(t):r&&"function"===typeof r&&r()};c()}},"18bd":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"m-container"},[t._m(0),t._v(" "),r("div",{staticClass:"m-core"},[r("el-form",{staticClass:"searchForm",attrs:{inline:!0},model:{value:t.searchForm,callback:function(e){t.searchForm="string"===typeof e?e.trim():e},expression:"searchForm"}},[r("el-form-item",{attrs:{prop:"organId"}},[r("el-select",{staticClass:"multiple",attrs:{clearable:"",filterable:"",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.organList,(function(t,e){return r("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),t._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:t.searchOrderDate},model:{value:t.orderDate,callback:function(e){t.orderDate="string"===typeof e?e.trim():e},expression:"orderDate"}})],1),t._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"danger"},on:{click:t.search}},[t._v("搜索")]),t._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:t.onReSet}},[t._v("重置")])],1)],1),t._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{attrs:{data:t.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{align:"center",width:"150",prop:"createTime",label:"申请时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v("\n "+t._s(t._f("dateForMinFormat")(e.row.createTime))+"\n ")])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"orderNo",label:"原订单编号"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentPaymentOrder.expectAmount",label:"应付金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.studentPaymentOrder.expectAmount))+"\n ")])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentPaymentOrder.actualAmount",label:"实付金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.studentPaymentOrder.actualAmount))+"\n ")])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"user.username",label:"学员姓名"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"remark",label:"退费说明"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"expectAmount",label:"预退费金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.expectAmount))+"\n ")])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"actualAmount",label:"实退费金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.actualAmount))+"\n ")])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",label:"退费状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("returnStatus")(e.row.status))+"\n ")]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return"WAIT_PAYMENT"==e.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 t.onBackMoney(e.row)}}},[t._v("退费")])]:void 0}}],null,!0)})],1),t._v(" "),r("pagination",{attrs:{total:t.pageInfo.total,page:t.pageInfo.page,limit:t.pageInfo.limit,"page-sizes":t.pageInfo.page_size},on:{"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),t._v(" "),r("el-dialog",{attrs:{title:"退费确认",visible:t.backStatus,width:"500px"},on:{"update:visible":function(e){t.backStatus=e},close:function(e){return t.onFormClose("ruleForm")}}},[r("el-form",{ref:"ruleForm",attrs:{model:t.form,rules:t.rules}},[r("el-form-item",{attrs:{label:"退费路径",prop:"name","label-width":t.formLabelWidth}},[r("el-input",{attrs:{disabled:"",value:"余额",autocomplete:"off"}})],1),t._v(" "),r("el-form-item",{attrs:{label:"退费金额",prop:"amount","label-width":t.formLabelWidth}},[r("el-input",{attrs:{autocomplete:"off"},model:{value:t.form.amount,callback:function(e){t.$set(t.form,"amount",t._n("string"===typeof e?e.trim():e))},expression:"form.amount"}})],1)],1),t._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"danger"},on:{click:function(e){return t.onTeachingSubmit("ruleForm","REJECT")}}},[t._v("拒绝退费")]),t._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onTeachingSubmit("ruleForm","DONE")}}},[t._v("确认退费")])],1)],1)],1)])},a=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("h2",[r("div",{staticClass:"squrt"}),t._v("退费管理\n ")])}],o=r("333d"),u=r("3de3"),i=r("1cc7"),l=(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 t=this;Object(i["Y"])().then((function(e){200==e.code&&(t.organList=e.data)}));var e=new Date,r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())).toISOString().slice(0,10),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.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(t,e){var r=this;this.$refs[t].validate((function(t){if(!t)return!1;r.form.status=e,Object(u["a"])(r.form).then((function(t){200==t.code?(r.$message.success("操作成功"),r.backStatus=!1,r.getList()):r.$message.error(t.msg)}))}))},getList:function(){var t,e=this,r=this.searchForm;r.rows=this.pageInfo.limit,r.page=this.pageInfo.page,(null===(t=this.orderDate)||void 0===t?void 0:t.length)>0?(r.startTime=this.orderDate[0],r.endTime=this.orderDate[1]):(r.startTime=null,r.endTime=null),Object(u["s"])(r).then((function(t){var r=t.data;200==t.code&&(e.tableList=r.rows,e.pageInfo.total=r.total)}))},searchOrderDate:function(t){t?(this.searchForm.startTime=t[0]+" 00:00:00",this.searchForm.endTime=t[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(t){this.$refs[t].clearValidate()},onBackMoney:function(t){this.backStatus=!0,this.form={id:t.id,amount:t.expectAmount}}}}),s=l,c=r("2877"),d=Object(c["a"])(s,n,a,!1,null,null,null);e["default"]=d.exports},"3de3":function(t,e,r){"use strict";r.d(e,"k",(function(){return l})),r.d(e,"l",(function(){return s})),r.d(e,"m",(function(){return c})),r.d(e,"q",(function(){return d})),r.d(e,"p",(function(){return m})),r.d(e,"s",(function(){return f})),r.d(e,"a",(function(){return p})),r.d(e,"t",(function(){return g})),r.d(e,"u",(function(){return h})),r.d(e,"y",(function(){return b})),r.d(e,"r",(function(){return v})),r.d(e,"v",(function(){return y})),r.d(e,"f",(function(){return O})),r.d(e,"c",(function(){return _})),r.d(e,"o",(function(){return T})),r.d(e,"d",(function(){return w})),r.d(e,"i",(function(){return k})),r.d(e,"x",(function(){return j})),r.d(e,"n",(function(){return F})),r.d(e,"e",(function(){return S})),r.d(e,"j",(function(){return D})),r.d(e,"h",(function(){return I})),r.d(e,"g",(function(){return E})),r.d(e,"b",(function(){return P})),r.d(e,"w",(function(){return q}));var n=r("b775"),a=r("829b"),o=r("4328"),u=r.n(o),i="/api-web";function l(t){return Object(n["a"])({url:i+"/order/queryPage",method:"get",params:t})}function s(t){return Object(n["a"])({url:i+"/order/queryPage1",method:"get",params:t})}function c(t){return Object(n["a"])({url:i+"/order/queryPage2",method:"get",params:t})}function d(t){return Object(n["a"])({url:i+"/routeOrder/finance",method:"get",params:t})}function m(t){return Object(n["a"])({url:i+"/routeOrder/add",method:"post",headers:{"Content-Type":"application/json"},data:t})}function f(t){return Object(n["a"])({url:i+"/studentRefunds/queryPage",method:"get",params:t})}function p(t){return Object(n["a"])({url:i+"/vipGroupManage/applyRefundAudit",method:"post",data:u.a.stringify(t)})}function g(t){return Object(n["a"])({url:i+"/studentWithdraw/queryPage",method:"get",params:t})}function h(t){return Object(n["a"])({url:i+"/studentWithdraw/confirm",method:"post",data:u.a.stringify(t)})}function b(t){return Object(n["a"])({url:i+"/order/verifyMusicalList",method:"GET",params:t})}function v(t){return Object(n["a"])({url:i+"/studentRecharge/queryPage",method:"GET",params:t})}function y(t){return Object(n["a"])({url:i+"/tenantPaymentOrder/queryPage",method:"GET",params:t})}function O(t){return Object(n["a"])({url:i+"/order/getOrderStatus",method:"GET",params:t})}function _(t){return Object(n["a"])({url:i+"/financialExpenditure/queryPage",method:"GET",params:t})}function T(t){return Object(n["a"])({url:i+"/financialExpenditure/batchDel",method:"POST",params:t})}function w(t){return Object(n["a"])({url:i+"/operatingReport/queryPage",method:"GET",params:t})}function k(t){return Object(n["a"])({url:i+"/sellOrder/queryPage",method:"GET",params:t})}function j(t){return Object(n["a"])({url:i+"/sellOrder/update",method:"POST",params:t})}function F(t){return Object(a["a"])({url:i+"/sellOrder/refund",method:"POST",params:t,hint:!0})}function S(t){return Object(n["a"])({url:i+"/routeOrder/getOrderInfo",method:"GET",params:t})}function D(t){return Object(n["a"])({url:i+"/routeOrder/delete",method:"POST",data:u.a.stringify(t)})}function I(t){return Object(n["a"])({url:i+"/routeOrder/queryPage",method:"get",params:t})}function E(t){return Object(n["a"])({url:i+"/routeOrder/query",method:"get",params:t})}function P(t){return Object(n["a"])({url:i+"/routeOrder/auditOutOrder",method:"post",data:u.a.stringify(t)})}function q(t){return Object(n["a"])({url:i+"/routeOrder/update",method:"post",data:t,headers:{"Content-Type":"application/json"}})}}}]);