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,s=20,l=0;e="undefined"===typeof e?500:e;var c=function t(){l+=s;var o=Math.easeInOutQuad(l,u,i,e);a(o),l<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("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,noclear:"",model:t.searchForm},on:{submit:t.search,reset:t.onReSet}},[r("el-form-item",{attrs:{prop:"organId"}},[r("el-select",{staticClass:"multiple",attrs:{clearable:"",filterable:"",multiple:"","collapse-tags":"",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 r("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),r("el-form-item",{attrs:{prop:"orderDate"}},[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}},model:{value:t.searchForm.orderDate,callback:function(e){t.$set(t.searchForm,"orderDate","string"===typeof e?e.trim():e)},expression:"searchForm.orderDate"}})],1),t._v(" "),r("el-form-item",[r("el-button",{attrs:{"native-type":"submit",type:"danger"}},[t._v("搜索")]),t._v(" "),r("el-button",{attrs:{"native-type":"reset",type:"primary"}},[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:{sync:"",total:t.pageInfo.total,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),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 退费管理\n ")])}],o=(r("386d"),r("5530")),u=r("15fd"),i=r("333d"),s=r("3de3"),l=(r("1cc7"),r("ed08")),c=(r("4360"),["orderDate","organId"]),d={components:{pagination:i["a"]},name:"backMoney",data:function(){return{searchForm:{startTime:null,endTime:null,organId:[],orderDate:[]},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,e;this.$store.dispatch("setBranchs"),(null===(t=this.searchForm)||void 0===t||null===(e=t.orderDate)||void 0===e?void 0:e.length)<1&&this.getNow(),this.getList()},methods:{getNow:function(){var t=this.$helpers.dayjs(new Date).format("YYYY-MM-DD");this.$set(this.searchForm,"orderDate",[]),this.searchForm.orderDate.push(t),this.searchForm.orderDate.push(t)},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(s["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=this;this.searchForm.orderDate;var e=this.searchForm,r=e.orderDate,n=e.organId,a=Object(u["a"])(e,c),i=Object(o["a"])(Object(o["a"])({},a),{},{organId:n.join(","),page:this.pageInfo.page,rows:this.pageInfo.limit},Object(l["d"])(r,["startTime","endTime"]));Object(s["t"])(i).then((function(e){var r=e.data;200==e.code&&(t.tableList=r.rows,t.pageInfo.total=r.total)}))},onReSet:function(){this.$refs["searchForm"].resetFields(),this.getNow(),this.search()},onFormClose:function(t){this.$refs[t].clearValidate()},onBackMoney:function(t){this.backStatus=!0,this.form={id:t.id,amount:t.expectAmount}}}},m=d,f=r("2877"),p=Object(f["a"])(m,n,a,!1,null,null,null);e["default"]=p.exports},"3de3":function(t,e,r){"use strict";r.d(e,"l",(function(){return s})),r.d(e,"m",(function(){return l})),r.d(e,"n",(function(){return c})),r.d(e,"r",(function(){return d})),r.d(e,"q",(function(){return m})),r.d(e,"t",(function(){return f})),r.d(e,"a",(function(){return p})),r.d(e,"u",(function(){return h})),r.d(e,"v",(function(){return b})),r.d(e,"A",(function(){return g})),r.d(e,"s",(function(){return v})),r.d(e,"x",(function(){return y})),r.d(e,"g",(function(){return O})),r.d(e,"d",(function(){return _})),r.d(e,"p",(function(){return j})),r.d(e,"e",(function(){return w})),r.d(e,"j",(function(){return F})),r.d(e,"z",(function(){return k})),r.d(e,"o",(function(){return T})),r.d(e,"f",(function(){return I})),r.d(e,"k",(function(){return S})),r.d(e,"i",(function(){return E})),r.d(e,"h",(function(){return P})),r.d(e,"b",(function(){return D})),r.d(e,"y",(function(){return q})),r.d(e,"c",(function(){return A})),r.d(e,"w",(function(){return x}));var n=r("b775"),a=r("829b"),o=r("4328"),u=r.n(o),i="/api-web";function s(t){return Object(n["a"])({url:i+"/order/queryPage",method:"get",params:t})}function l(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 h(t){return Object(n["a"])({url:i+"/studentWithdraw/queryPage",method:"get",params:t})}function b(t){return Object(n["a"])({url:i+"/studentWithdraw/confirm",method:"post",data:u.a.stringify(t)})}function g(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 j(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 F(t){return Object(n["a"])({url:i+"/sellOrder/queryPage",method:"GET",params:t})}function k(t){return Object(n["a"])({url:i+"/sellOrder/update",method:"POST",params:t})}function T(t){return Object(a["a"])({url:i+"/sellOrder/refund",method:"POST",params:t,hint:!0})}function I(t){return Object(n["a"])({url:i+"/routeOrder/getOrderInfo",method:"GET",params:t})}function S(t){return Object(n["a"])({url:i+"/routeOrder/delete",method:"POST",data:u.a.stringify(t)})}function E(t){return Object(n["a"])({url:i+"/routeOrder/queryPage",method:"get",params:t})}function P(t){return Object(n["a"])({url:i+"/routeOrder/query",method:"get",params:t})}function D(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"}})}function A(t){return Object(a["a"])({url:i+"/cooperationOrgan/getCalenders",method:"get",params:t})}function x(t){return Object(a["a"])({url:i+"/musicGroup/takeEffectOfinstrumentInsurance",method:"post",data:t})}}}]);
|