1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-41b16241"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return o})),Math.easeInOutQuad=function(e,t,a,l){return e/=l/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var l=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function n(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(e,t,a){var o=n(),u=e-o,i=20,c=0;t="undefined"===typeof t?500:t;var s=function e(){c+=i;var n=Math.easeInOutQuad(c,o,u,t);r(n),c<t?l(e):a&&"function"===typeof a&&a()};s()}},"3c57":function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[e._m(0),e._v(" "),a("div",{staticClass:"m-core"},[a("save-form",{staticClass:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"请输入流水号/订单号",clearable:"",type:"text"},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),a("el-form-item",[a("el-input",{attrs:{placeholder:"学生姓名",clearable:"",type:"text"},model:{value:e.searchForm.userName,callback:function(t){e.$set(e.searchForm,"userName","string"===typeof t?t.trim():t)},expression:"searchForm.userName"}})],1),e._v(" "),a("el-form-item",[a("el-input",{attrs:{placeholder:"请输入商品名称",clearable:"",type:"text"},model:{value:e.searchForm.goodsName,callback:function(t){e.$set(e.searchForm,"goodsName","string"===typeof t?t.trim():t)},expression:"searchForm.goodsName"}})],1),e._v(" "),a("el-form-item",[a("select-all",{attrs:{multiple:"","collapse-tags":"",clearable:"",filterable:"",placeholder:"请选择所属分部"},on:{change:e.changeOrgan},model:{value:e.searchForm.organIdList,callback:function(t){e.$set(e.searchForm,"organIdList",t)},expression:"searchForm.organIdList"}},e._l(e.selects.branchs,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{disabled:!e.searchForm.organIdList.length>0,clearable:"",filterable:"",placeholder:"请选择所属学校"},model:{value:e.searchForm.cooperationOrganId,callback:function(t){e.$set(e.searchForm,"cooperationOrganId",t)},expression:"searchForm.cooperationOrganId"}},e._l(e.cooperations,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("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:e.searchForm.orderDate,callback:function(t){e.$set(e.searchForm,"orderDate","string"===typeof t?t.trim():t)},expression:"searchForm.orderDate"}})],1),e._v(" "),a("el-form-item",[a("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:e.searchForm.deliveryDate,callback:function(t){e.$set(e.searchForm,"deliveryDate","string"===typeof t?t.trim():t)},expression:"searchForm.deliveryDate"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"export/exportSellOrders",expression:"'export/exportSellOrders'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:e.onOrderExport}},[e._v("\n 报表导出\n ")]),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",width:"150",prop:"transNo",label:"交易流水号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.transNo))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"orderNo",label:"订单号",width:"180px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.orderNo))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"sellTime",label:"销售日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("dateForMinFormat")(t.row.sellTime))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"type",label:"销售类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("saleType")(t.row.type)))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"goodsName",label:"商品名称",width:"200px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.goodsName))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"num",label:"数量"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"expectAmount",label:"订单金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.couponRemitAmount+t.row.expectAmount))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"expectAmount",label:"优惠金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.couponRemitAmount))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"100",prop:"expectAmount",label:"应付金额(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.expectAmount))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"100",prop:"balanceAmount",label:"余额支付(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.balanceAmount))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"100",prop:"actualAmount",label:"现金支付(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.actualAmount))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"100",prop:"sellCost",label:"销售成本(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("moneyFormat")(t.row.sellCost*t.row.num)))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"userName",label:"学员姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.userName))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentChannel",label:"交易方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("paymentChannelStatus")(t.row.paymentChannel)))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"merNo",label:"收款账户"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"accountType",label:"账户类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("accountTypeFormat")(t.row.accountType)))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"stockType",label:"扣减库存"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("stockTypeFormat")(t.row.stockType)))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"organName",label:"所属分部"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.organName))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"schoolName",label:"所属学校"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.schoolName))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"eduTeacher",label:"乐团主管"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"receiveStatus",label:"确认收货"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("receiveFormat")(t.row.receiveStatus)))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"status",label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1===t.row.status?"已退货":""))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",fixed:"right",width:"150px",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"sellOrder/update",expression:"'sellOrder/update'"}],attrs:{type:"text"},on:{click:function(a){return e.onBackMoney(t.row)}}},[e._v("修改成本")]),e._v(" "),0===t.row.status?a("el-popconfirm",{directives:[{name:"permission",rawName:"v-permission",value:"sellOrder/refund",expression:"'sellOrder/refund'"}],attrs:{title:"退货后该销售金额将暂不进入账户余额"},on:{confirm:function(){return e.refund({id:t.row.id})}}},[a("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("退费")])],1):e._e()]}}])})],1),e._v(" "),a("pagination",{attrs:{sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"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(" "),a("el-dialog",{attrs:{title:"退费",width:"400px",visible:e.refundVisible},on:{"update:visible":function(t){e.refundVisible=t},close:function(t){e.refundVisible=!1}}},[a("el-form",{ref:"refundform",attrs:{model:e.refundForm,rules:e.refundRules}},[a("el-form-item",{attrs:{label:"退费金额",prop:"money","label-width":"100px"}},[a("el-input",{attrs:{type:"number",placeholder:"请输入退费金额"},model:{value:e.refundForm.money,callback:function(t){e.$set(e.refundForm,"money",t)},expression:"refundForm.money"}})],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.refundVisible=!1}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitRefund}},[e._v("确认")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"修改成本",visible:e.backStatus,width:"500px"},on:{"update:visible":function(t){e.backStatus=t},close:function(t){return e.onFormClose("ruleForm")}}},[a("el-form",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules}},[a("el-form-item",{attrs:{label:"交易流水号","label-width":e.formLabelWidth}},[e._v("\n "+e._s(e.detail.transNo)+"\n ")]),e._v(" "),a("el-form-item",{attrs:{label:"订单号","label-width":e.formLabelWidth}},[e._v("\n "+e._s(e.detail.orderNo)+"\n ")]),e._v(" "),a("el-form-item",{attrs:{label:"销售日期","label-width":e.formLabelWidth}},[e._v("\n "+e._s(e._f("dateForMinFormat")(e.detail.sellTime))+"\n ")]),e._v(" "),a("el-form-item",{attrs:{label:"学员姓名","label-width":e.formLabelWidth}},[e._v("\n "+e._s(e.detail.userName)+"\n ")]),e._v(" "),a("el-form-item",{attrs:{label:"所属分部","label-width":e.formLabelWidth}},[e._v("\n "+e._s(e.detail.organName)+"\n ")]),e._v(" "),a("el-form-item",{attrs:{label:"所属学校","label-width":e.formLabelWidth}},[e._v("\n "+e._s(e.detail.schoolName)+"\n ")]),e._v(" "),a("el-form-item",{attrs:{label:"商品名称","label-width":e.formLabelWidth}},[e._v("\n "+e._s(e.detail.goodsName)+"\n ")]),e._v(" "),a("el-form-item",{attrs:{label:"应付金额(元)","label-width":e.formLabelWidth}},[e._v("\n "+e._s(e.detail.expectAmount)+"\n ")]),e._v(" "),a("el-form-item",{attrs:{label:"单件成本(元)",prop:"amount","label-width":e.formLabelWidth}},[a("el-autocomplete",{staticClass:"inline-input",attrs:{"fetch-suggestions":e.querySearch,placeholder:"请输入成本"},model:{value:e.form.sellCost,callback:function(t){e.$set(e.form,"sellCost",t)},expression:"form.sellCost"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"乐团主管","label-width":e.formLabelWidth}},[a("remote-search",{attrs:{commit:"setEducations"},model:{value:e.form.eduTeacherId,callback:function(t){e.$set(e.form,"eduTeacherId",t)},expression:"form.eduTeacherId"}})],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.backStatus=!1}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onTeachingSubmit("ruleForm","DONE")}}},[e._v("确认")])],1)],1)],1)])},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h2",[a("div",{staticClass:"squrt"}),e._v("\n 销售列表\n ")])}],n=a("c80c"),o=(a("96cf"),a("3b8d")),u=a("75fc"),i=a("db72"),c=a("a8db"),s=a("333d"),d=a("3de3"),f=a("99b4"),b=a("1cc7"),m=a("92e3"),v=a("adb21"),p=a("5a0c"),h=a.n(p),_=a("ed08"),g=a("e3eb"),O=a.n(g),y=["orderDate","deliveryDate"],E=["orderDate","deliveryDate"],T={components:{pagination:s["a"]},name:"backMoney",data:function(){return{paymentChannelStatus:m["O"],refundVisible:!1,detail:{},searchForm:{search:"",goodsName:"",cooperationOrganId:"",organIdList:[],userName:"",orderDate:[],deliveryDate:[]},tableList:[],organList:[],educationList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},backStatus:!1,formLabelWidth:"150px",form:{id:null,sellCost:null,eduTeacherId:null},rules:{sellCost:[{required:!0,message:"请输入金额",trigger:"input"}]},refundForm:{money:null},refundRules:{money:[{required:!0,message:"请输入退费金额",trigger:"blur"}]},cooperations:[],restaurants:[]}},mounted:function(){var e,t=this;if(this.$store.dispatch("setBranchs"),Object(b["Z"])({rows:1e3}).then((function(e){200==e.code&&(t.cooperations=e.data.rows)})),(null===(e=this.searchForm.orderDate)||void 0===e?void 0:e.length)<1){new Date;var a=h()().format("YYYY-MM-DD"),l=h()().format("YYYY-MM-DD");this.searchForm.orderDate=[],this.searchForm.orderDate.push(a),this.searchForm.orderDate.push(l)}this.getList()},methods:{search:function(){this.pageInfo.page=1,this.getList()},onTeachingSubmit:function(e,t){var a=this;this.$refs[e].validate((function(e){if(!e)return!1;Object(d["z"])(a.form).then((function(e){200==e.code?(a.$message.success("操作成功"),a.backStatus=!1,a.getList()):a.$message.error(e.msg)}))}))},getList:function(){var e=this,t=this.searchForm,a=t.orderDate,l=t.deliveryDate,r=Object(c["a"])(t,y),n=Object(i["a"])(Object(i["a"])(Object(i["a"])({},r),{},{page:this.pageInfo.page,rows:this.pageInfo.limit},Object(_["b"])(a,["startTime","endTime"])),Object(_["b"])(l,["deliveryStartTime","deliveryEndTime"]));Object(d["j"])(Object(i["a"])(Object(i["a"])({},n),{},{organIdList:Object(u["a"])(this.searchForm.organIdList).join()})).then((function(t){var a=t.data;200==t.code&&(e.tableList=a.rows,e.pageInfo.total=a.total)}))},onReSet:function(){this.searchForm={startTime:null,endTime:null,organIdList:[],search:"",goodsName:[],cooperationOrganId:"",orderDate:[h()().format("YYYY-MM-DD"),h()().format("YYYY-MM-DD")],deliveryDate:[]},this.getList()},querySearch:function(e,t){var a=[];try{var l=JSON.parse(this.detail.sellCost2);a=[{value:String(l.sellCost||"")},{value:String(l.SellCost2||"")}].filter((function(e){return!!e}))}catch(r){}t(a)},onFormClose:function(e){this.$refs[e].clearValidate()},refund:function(e){var t=this;Object(d["o"])(e).then((function(e){t.getList(),t.$message.success("退费成功")})).catch((function(a){100===a.code?t.$confirm(a.msg,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.refund(Object(i["a"])(Object(i["a"])({},e),{},{reTry:!0}))})):t.$message.error(a.msg)}))},openRefund:function(e){this.refundVisible=!0,this.detail=e},submitRefund:function(){},onBackMoney:function(e){this.backStatus=!0,this.detail=e,this.form={id:e.id,sellCost:String(e.sellCost),eduTeacherId:e.eduTeacherId?e.eduTeacherId:null}},onOrderExport:function(){var e=this.searchForm,t=e.orderDate,a=e.deliveryDate,l=Object(c["a"])(e,E),r=Object(i["a"])(Object(i["a"])(Object(i["a"])({},l),{},{page:this.pageInfo.page,rows:this.pageInfo.limit},Object(_["b"])(t,["startTime","endTime"])),Object(_["b"])(a,["deliveryStartTime","deliveryEndTime"]));Object(v["a"])(this,{url:"/api-web/export/exportSellOrders",fileName:"销售列表导出.xls",params:O()(Object(i["a"])(Object(i["a"])({},r),{},{organIdList:Object(u["a"])(this.searchForm.organIdList).join()}))},"是否确认导出报表?")},changeOrgan:function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(t){var a=this;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t){e.next=4;break}return this.cooperations=[],this.searchForm.cooperationOrganId=null,e.abrupt("return");case 4:return e.next=6,Object(f["E"])({organId:t.join(",")}).then((function(e){200==e.code&&(a.cooperations=e.data,a.searchForm.cooperationOrganId=null)}));case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}},I=T,S=a("2877"),N=Object(S["a"])(I,l,r,!1,null,null,null);t["default"]=N.exports},"3de3":function(e,t,a){"use strict";a.d(t,"l",(function(){return i})),a.d(t,"m",(function(){return c})),a.d(t,"n",(function(){return s})),a.d(t,"r",(function(){return d})),a.d(t,"q",(function(){return f})),a.d(t,"t",(function(){return b})),a.d(t,"a",(function(){return m})),a.d(t,"u",(function(){return v})),a.d(t,"v",(function(){return p})),a.d(t,"A",(function(){return h})),a.d(t,"s",(function(){return _})),a.d(t,"x",(function(){return g})),a.d(t,"g",(function(){return O})),a.d(t,"d",(function(){return y})),a.d(t,"p",(function(){return E})),a.d(t,"e",(function(){return T})),a.d(t,"j",(function(){return I})),a.d(t,"z",(function(){return S})),a.d(t,"o",(function(){return N})),a.d(t,"f",(function(){return L})),a.d(t,"k",(function(){return A})),a.d(t,"i",(function(){return w})),a.d(t,"h",(function(){return R})),a.d(t,"b",(function(){return C})),a.d(t,"y",(function(){return j})),a.d(t,"c",(function(){return M})),a.d(t,"w",(function(){return k}));var l=a("b775"),r=a("829b"),n=a("4328"),o=a.n(n),u="/api-web";function i(e){return Object(l["a"])({url:u+"/order/queryPage",method:"get",params:e})}function c(e){return Object(l["a"])({url:u+"/order/queryPage1",method:"get",params:e})}function s(e){return Object(l["a"])({url:u+"/order/queryPage2",method:"get",params:e})}function d(e){return Object(l["a"])({url:u+"/routeOrder/finance",method:"get",params:e})}function f(e){return Object(l["a"])({url:u+"/routeOrder/add",method:"post",headers:{"Content-Type":"application/json"},data:e})}function b(e){return Object(l["a"])({url:u+"/studentRefunds/queryPage",method:"get",params:e})}function m(e){return Object(l["a"])({url:u+"/vipGroupManage/applyRefundAudit",method:"post",data:o.a.stringify(e)})}function v(e){return Object(l["a"])({url:u+"/studentWithdraw/queryPage",method:"get",params:e})}function p(e){return Object(l["a"])({url:u+"/studentWithdraw/confirm",method:"post",data:o.a.stringify(e)})}function h(e){return Object(l["a"])({url:u+"/order/verifyMusicalList",method:"GET",params:e})}function _(e){return Object(l["a"])({url:u+"/studentRecharge/queryPage",method:"GET",params:e})}function g(e){return Object(l["a"])({url:u+"/tenantPaymentOrder/queryPage",method:"GET",params:e})}function O(e){return Object(l["a"])({url:u+"/order/getOrderStatus",method:"GET",params:e})}function y(e){return Object(l["a"])({url:u+"/financialExpenditure/queryPage",method:"GET",params:e})}function E(e){return Object(l["a"])({url:u+"/financialExpenditure/batchDel",method:"POST",params:e})}function T(e){return Object(l["a"])({url:u+"/operatingReport/queryPage",method:"GET",params:e})}function I(e){return Object(l["a"])({url:u+"/sellOrder/queryPage",method:"GET",params:e})}function S(e){return Object(l["a"])({url:u+"/sellOrder/update",method:"POST",params:e})}function N(e){return Object(r["a"])({url:u+"/sellOrder/refund",method:"POST",params:e,hint:!0})}function L(e){return Object(l["a"])({url:u+"/routeOrder/getOrderInfo",method:"GET",params:e})}function A(e){return Object(l["a"])({url:u+"/routeOrder/delete",method:"POST",data:o.a.stringify(e)})}function w(e){return Object(l["a"])({url:u+"/routeOrder/queryPage",method:"get",params:e})}function R(e){return Object(l["a"])({url:u+"/routeOrder/query",method:"get",params:e})}function C(e){return Object(l["a"])({url:u+"/routeOrder/auditOutOrder",method:"post",data:o.a.stringify(e)})}function j(e){return Object(l["a"])({url:u+"/routeOrder/update",method:"post",data:e,headers:{"Content-Type":"application/json"}})}function M(e){return Object(r["a"])({url:u+"/cooperationOrgan/getCalenders",method:"get",params:e})}function k(e){return Object(r["a"])({url:u+"/musicGroup/takeEffectOfinstrumentInsurance",method:"post",data:e})}},"92e3":function(e,t,a){"use strict";a.d(t,"u",(function(){return i})),a.d(t,"H",(function(){return c})),a.d(t,"s",(function(){return s})),a.d(t,"c",(function(){return d})),a.d(t,"D",(function(){return f})),a.d(t,"Y",(function(){return b})),a.d(t,"X",(function(){return m})),a.d(t,"d",(function(){return v})),a.d(t,"L",(function(){return p})),a.d(t,"w",(function(){return h})),a.d(t,"ab",(function(){return _})),a.d(t,"t",(function(){return g})),a.d(t,"o",(function(){return O})),a.d(t,"Z",(function(){return y})),a.d(t,"P",(function(){return E})),a.d(t,"cb",(function(){return T})),a.d(t,"db",(function(){return I})),a.d(t,"O",(function(){return S})),a.d(t,"T",(function(){return N})),a.d(t,"B",(function(){return L})),a.d(t,"l",(function(){return A})),a.d(t,"W",(function(){return w})),a.d(t,"bb",(function(){return R})),a.d(t,"I",(function(){return C})),a.d(t,"m",(function(){return j})),a.d(t,"v",(function(){return M})),a.d(t,"M",(function(){return k})),a.d(t,"f",(function(){return x})),a.d(t,"e",(function(){return F})),a.d(t,"K",(function(){return D})),a.d(t,"J",(function(){return P})),a.d(t,"S",(function(){return G})),a.d(t,"G",(function(){return Y})),a.d(t,"a",(function(){return U})),a.d(t,"x",(function(){return V})),a.d(t,"p",(function(){return $})),a.d(t,"n",(function(){return H})),a.d(t,"q",(function(){return q})),a.d(t,"g",(function(){return B})),a.d(t,"F",(function(){return W})),a.d(t,"r",(function(){return X})),a.d(t,"C",(function(){return z})),a.d(t,"A",(function(){return J})),a.d(t,"z",(function(){return K})),a.d(t,"h",(function(){return Q})),a.d(t,"k",(function(){return Z})),a.d(t,"i",(function(){return ee})),a.d(t,"j",(function(){return te})),a.d(t,"R",(function(){return ae})),a.d(t,"N",(function(){return le})),a.d(t,"E",(function(){return re})),a.d(t,"y",(function(){return ne})),a.d(t,"Q",(function(){return oe})),a.d(t,"U",(function(){return ue})),a.d(t,"V",(function(){return ie})),a.d(t,"b",(function(){return se}));var l=a("2d63"),r=a("768b"),n=a("267e"),o=sessionStorage.getItem("tenantConfig");o=o?JSON.parse(o):{};var u=o.tenantId,i=null,c=null;1==u?(c=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],i=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"},{label:"直播课",value:"LIVE"}]):(c=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],i=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"},{label:"直播课",value:"LIVE"}]);var s=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"},{label:"直播课",value:"LIVE"}],d=[{label:"正常签到",value:1},{label:"异常签到",value:0}],f=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"劳务",value:"LABOUR"}],b=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],m=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],v=[].concat(m,[{value:"QUIT_SCHOOL",label:"休学"},{value:"DROP_OUT",label:"退学"},{value:"LATE",label:"迟到"}]),p=[{value:"APPLY",label:"报名"},{value:"RENEW",label:"续费"},{value:"MEMBER",label:"会员购买"},{value:"SMALL_CLASS_TO_BUY",label:"VIP购买"},{value:"SPORADIC",label:"零星收费"},{value:"LUCK",label:"福袋活动"},{value:"DEGREE_REGISTRATION",label:"考级报名"},{value:"DOUBLE_ELEVEN2020",label:"2020双十一活动"},{value:"DOUBLE_ELEVEN2021",label:"2021双十一活动"},{value:"DEGREE",label:"儿童节活动"},{value:"PRACTICE_GROUP_BUY",label:"网管课"},{value:"PRACTICE_GROUP_RENEW",label:"网管课续费"},{value:"REPAIR",label:"乐器维修"},{value:"OUTORDER",label:"外部收入"},{value:"GOODS_SELL",label:"商品销售"},{value:"MALL_BUY",label:"商城销售"},{value:"SUBJECT_CHANGE",label:"声部更换"},{value:"MAINTENANCE",label:"乐器保养"},{value:"ADD_STUDENT",label:"乐团报名"},{value:"REPLACEMENT",label:"乐器置换"},{value:"SCHOOL",label:"学校订单"},{value:"PERSONAL",label:"个人订单"},{value:"OTHER",label:"其他"},{value:"ACTIVITY",label:"活动购买"},{value:"LIVE_BUY",label:"直播购物"},{value:"LIVE_GROUP_BUY",label:"直播课购买"}],h=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],_=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"}],g=[{value:"NOT_START",label:"未开始"},{value:"UNDERWAY",label:"进行中"},{value:"OVER",label:"已结束"}],O=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],y=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],E=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"},{value:"CARE_PACKAGE",label:"关心包"},{value:"COME_ON_PACKAGE",label:"加油包"}],T=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],I=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"},{label:"考勤申诉",value:"考勤申诉"},{value:"异常请假回访",label:"异常请假回访"}]},{value:"小课回访",label:"小课回访",children:[{value:"续费类回访",label:"续费类回访"},{value:"服务回访",label:"服务回访"},{value:"其他",label:"其他"}]},{value:"云教练",label:"云教练",children:[{value:"体验回访",label:"体验回访"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"},{value:"会员续费",label:"会员续费"}]}],S=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"},{value:"YEEPAY",label:"易宝"}],N=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],L=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"},{value:"OTHER",label:"其它"}],A=[{value:"1",label:"一年级"},{value:"2",label:"二年级"},{value:"3",label:"三年级"},{value:"4",label:"四年级"},{value:"5",label:"五年级"},{value:"6",label:"六年级"},{value:"7",label:"初一"},{value:"8",label:"初二"},{value:"9",label:"初三"},{value:"10",label:"高一"},{value:"11",label:"高二"},{value:"12",label:"高三"}],w=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],R=[{label:"不限制",value:"1"},{label:"线上不可调为线下",value:"0"},{label:"线下不可调为线上",value:"2"},{label:"线上线下不可互调",value:"3"}],C=ce(n["musicGroupType"]),j=ce(n["classTime"]),M=[{label:"课程收费",value:0},{label:"会员收费",value:2},{label:"免费",value:3}],k=ce(n["payOrderType"]),x=ce(n["auditType"]),F=ce(n["auditPaymentType"]),D=ce(n["orderServerType"]),P=ce(n["orderAuditType"]),G=ce(n["rewardModeType"]),Y=ce(n["musicClassType"]),U=ce(n["ProbationPeriodStatus"]),V=ce(n["downListType"]),$=ce(n["conclusion"]),H=ce(n["clientType"]),q=ce(n["couponType"]),B=ce(n["backType"]),W=ce(n["memberEnum"]),X=ce(n["coupontypeDetail"]),z=ce(n["issue"]),J=ce(n["feedbackType"]),K=ce(n["feedbackTypeDesc"]),Q=ce(n["campState"]),Z=ce(n["catgGoupType"]),ee=ce(n["catRole"]),te=ce(n["catType"]),ae=ce(n["quiteReason"]),le=ce(n["payUserType"]),re=ce(n["levelStatus"]),ne=ce(n["evaluateStatus"]),oe=ce(n["problemType"]),ue=ce(n["schoolUserType"]),ie=ce(n["shareLiveType"]);function ce(e){var t=[];for(var a in e)t.push({label:e[a],value:a});return t}var se=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],a=Object(r["a"])(t,2),n=a[0],o=a[1],u={};if(e&&e.length){var i,c=Object(l["a"])(e);try{for(c.s();!(i=c.n()).done;){var s=i.value;u[s[n]]=s[o]}}catch(d){c.e(d)}finally{c.f()}}return u}},adb21:function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var l=a("bc3a"),r=a.n(l),n=(a("4328"),a("5f87")),o=a("3908"),u=a("e3eb"),i=a.n(u),c=function(e,t,a,l){var u=t.url,c={method:t.method?t.method:"get",headers:{Authorization:Object(n["b"])(),tenantId:Object(n["a"])()},url:u,responseType:"blob"};"post"==c.method?c.data=t.params:c.params=t.params,e.$confirm(a||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){o["a"].startLoading(),r()(i()(c)).then((function(a){var r=new Blob([a.data],{type:"application/vnd.ms-excel;charset=utf-8"}),n=new Response(r).text();n.then((function(a){if(-1!=a.indexOf("code")){var n=JSON.parse(a);if(403==n.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);200==n.code?e.$message.success(n.msg):e.$message.error(n.msg),l&&l()}else{var o=URL.createObjectURL(r),u=document.createElement("a"),i=t.fileName||"导出文件.xls";u.href=o,u.setAttribute("download",i),document.body.appendChild(u),u.click(),l&&l()}})),o["a"].endLoading()})).catch((function(t){console.log(t),e.$message.error("下载失败,请联系管理员"),o["a"].endLoading()}))})).catch((function(){}))}},ed08:function(e,t,a){"use strict";a.d(t,"c",(function(){return o})),a.d(t,"b",(function(){return u})),a.d(t,"a",(function(){return i}));var l=a("bd86"),r=(a("c5f6"),a("28a5"),a("a481"),a("6b54"),a("7618"),a("5a0c")),n=a.n(r);var o=function(e){var t=[];for(var a in e)if(e.hasOwnProperty(a)){var l=e[a],r=a.toLocaleUpperCase();t.push({label:l,value:"TRUE"===r||"FALSE"===r?"TRUE"===r:a})}return t},u=function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e&&e.length?(t={},Object(l["a"])(t,a[0]||"start",n()(e[0]).isValid()?n()(e[0]).format(r):""),Object(l["a"])(t,a[1]||"end",n()(e[1]).isValid()?n()(e[1]).format(r):""),t):{}},i=function(e){var t,a,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e&&e.length?"YYYY-MM-DD"===o?(t={},Object(l["a"])(t,r[0]||"start",n()(e[0]).isValid()?n()(e[0]).format(o)+" 00:00:00":""),Object(l["a"])(t,r[1]||"end",n()(e[1]).isValid()?n()(e[1]).format(o)+" 23:59:59":""),t):(a={},Object(l["a"])(a,r[0]||"start",n()(e[0]).isValid()?n()(e[0]).format(o):""),Object(l["a"])(a,r[1]||"end",n()(e[1]).isValid()?n()(e[1]).format(o):""),a):{}}}}]);
|