chunk-59dabc52.0d89e9c8.js 29 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-59dabc52"],{"09f4":function(e,t,r){"use strict";r.d(t,"a",(function(){return u})),Math.easeInOutQuad=function(e,t,r,a){return e/=a/2,e<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function l(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 u(e,t,r){var u=n(),o=e-u,i=20,d=0;t="undefined"===typeof t?500:t;var s=function e(){d+=i;var n=Math.easeInOutQuad(d,u,o,t);l(n),d<t?a(e):r&&"function"===typeof r&&r()};s()}},2543:function(e,t,r){"use strict";r.d(t,"q",(function(){return i})),r.d(t,"r",(function(){return d})),r.d(t,"u",(function(){return s})),r.d(t,"n",(function(){return c})),r.d(t,"o",(function(){return m})),r.d(t,"s",(function(){return f})),r.d(t,"p",(function(){return b})),r.d(t,"f",(function(){return p})),r.d(t,"g",(function(){return v})),r.d(t,"h",(function(){return h})),r.d(t,"m",(function(){return O})),r.d(t,"t",(function(){return g})),r.d(t,"k",(function(){return y})),r.d(t,"i",(function(){return T})),r.d(t,"j",(function(){return E})),r.d(t,"l",(function(){return I})),r.d(t,"d",(function(){return L})),r.d(t,"e",(function(){return A})),r.d(t,"c",(function(){return S})),r.d(t,"b",(function(){return N})),r.d(t,"a",(function(){return _}));var a=r("b775"),l=r("829b"),n=r("4328"),u=r.n(n),o="/api-web";function i(e){return Object(a["a"])({url:o+"/goods/queryPage",method:"get",params:e})}function d(e){return Object(a["a"])({url:o+"/goods/get/".concat(e),method:"get"})}function s(e){return Object(a["a"])({url:o+"/goods/updateGoodsStatus",method:"post",data:u.a.stringify(e)})}function c(e){return Object(a["a"])({url:o+"/goods/add",method:"post",data:e})}function m(e){return Object(a["a"])({url:o+"/goods/addBatch",method:"post",data:e})}function f(e){return Object(a["a"])({url:o+"/goods/update",method:"post",data:e})}function b(e){return Object(a["a"])({url:o+"/goods/del/".concat(e),method:"post"})}function p(e){return Object(a["a"])({url:o+"/category/queryPage",method:"get",params:e})}function v(e){return Object(a["a"])({url:o+"/category/upset",method:"post",data:e})}function h(e){return Object(a["a"])({url:o+"/category/del",method:"post",data:u.a.stringify(e)})}function O(e){return Object(a["a"])({url:o+"/subjectChange/queryPage",method:"get",params:e})}function g(e){return Object(a["a"])({url:o+"/subjectChange/updateCostMargin",method:"post",data:u.a.stringify(e)})}function y(e){return Object(a["a"])({url:o+"/goodsProcurement/queryGoodsProcurements",method:"get",params:e})}function T(e){return Object(a["a"])({url:o+"/goods/addGoodsProcurement",method:"post",params:e})}function E(e){return Object(a["a"])({url:o+"/swTempJc/queryPageForCourseSchedule",method:"get",params:e})}function I(e){return Object(a["a"])({url:o+"/swTempJc/queryPageForExtensionOrder",method:"get",params:e})}function L(e){return Object(l["a"])({url:o+"/goods/queryGoodsSubByPage",method:"GET",params:e,data:{}})}function A(e){return Object(l["a"])({url:o+"/goods/queryGoodsTypeList",method:"GET",params:e,data:{}})}function S(e){return Object(l["a"])({url:o+"/goods/queryGoodsCategoryList",method:"GET",params:e,data:{}})}function N(e){return Object(l["a"])({url:o+"/goods/queryGoodsBrandList",method:"GET",params:e,data:{}})}function _(e){return Object(l["a"])({url:o+"/goods/get/"+e.id,method:"GET",data:{}})}},"3de3":function(e,t,r){"use strict";r.d(t,"l",(function(){return i})),r.d(t,"m",(function(){return d})),r.d(t,"n",(function(){return s})),r.d(t,"r",(function(){return c})),r.d(t,"q",(function(){return m})),r.d(t,"t",(function(){return f})),r.d(t,"a",(function(){return b})),r.d(t,"u",(function(){return p})),r.d(t,"v",(function(){return v})),r.d(t,"A",(function(){return h})),r.d(t,"s",(function(){return O})),r.d(t,"x",(function(){return g})),r.d(t,"g",(function(){return y})),r.d(t,"d",(function(){return T})),r.d(t,"p",(function(){return E})),r.d(t,"e",(function(){return I})),r.d(t,"j",(function(){return L})),r.d(t,"z",(function(){return A})),r.d(t,"o",(function(){return S})),r.d(t,"f",(function(){return N})),r.d(t,"k",(function(){return _})),r.d(t,"i",(function(){return R})),r.d(t,"h",(function(){return C})),r.d(t,"b",(function(){return G})),r.d(t,"y",(function(){return P})),r.d(t,"c",(function(){return j})),r.d(t,"w",(function(){return w}));var a=r("b775"),l=r("829b"),n=r("4328"),u=r.n(n),o="/api-web";function i(e){return Object(a["a"])({url:o+"/order/queryPage",method:"get",params:e})}function d(e){return Object(a["a"])({url:o+"/order/queryPage1",method:"get",params:e})}function s(e){return Object(a["a"])({url:o+"/order/queryPage2",method:"get",params:e})}function c(e){return Object(a["a"])({url:o+"/routeOrder/finance",method:"get",params:e})}function m(e){return Object(a["a"])({url:o+"/routeOrder/add",method:"post",headers:{"Content-Type":"application/json"},data:e})}function f(e){return Object(a["a"])({url:o+"/studentRefunds/queryPage",method:"get",params:e})}function b(e){return Object(a["a"])({url:o+"/vipGroupManage/applyRefundAudit",method:"post",data:u.a.stringify(e)})}function p(e){return Object(a["a"])({url:o+"/studentWithdraw/queryPage",method:"get",params:e})}function v(e){return Object(a["a"])({url:o+"/studentWithdraw/confirm",method:"post",data:u.a.stringify(e)})}function h(e){return Object(a["a"])({url:o+"/order/verifyMusicalList",method:"GET",params:e})}function O(e){return Object(a["a"])({url:o+"/studentRecharge/queryPage",method:"GET",params:e})}function g(e){return Object(a["a"])({url:o+"/tenantPaymentOrder/queryPage",method:"GET",params:e})}function y(e){return Object(a["a"])({url:o+"/order/getOrderStatus",method:"GET",params:e})}function T(e){return Object(a["a"])({url:o+"/financialExpenditure/queryPage",method:"GET",params:e})}function E(e){return Object(a["a"])({url:o+"/financialExpenditure/batchDel",method:"POST",params:e})}function I(e){return Object(a["a"])({url:o+"/operatingReport/queryPage",method:"GET",params:e})}function L(e){return Object(a["a"])({url:o+"/sellOrder/queryPage",method:"GET",params:e})}function A(e){return Object(a["a"])({url:o+"/sellOrder/update",method:"POST",params:e})}function S(e){return Object(l["a"])({url:o+"/sellOrder/refund",method:"POST",params:e,hint:!0})}function N(e){return Object(a["a"])({url:o+"/routeOrder/getOrderInfo",method:"GET",params:e})}function _(e){return Object(a["a"])({url:o+"/routeOrder/delete",method:"POST",data:u.a.stringify(e)})}function R(e){return Object(a["a"])({url:o+"/routeOrder/queryPage",method:"get",params:e})}function C(e){return Object(a["a"])({url:o+"/routeOrder/query",method:"get",params:e})}function G(e){return Object(a["a"])({url:o+"/routeOrder/auditOutOrder",method:"post",data:u.a.stringify(e)})}function P(e){return Object(a["a"])({url:o+"/routeOrder/update",method:"post",data:e,headers:{"Content-Type":"application/json"}})}function j(e){return Object(l["a"])({url:o+"/cooperationOrgan/getCalenders",method:"get",params:e})}function w(e){return Object(l["a"])({url:o+"/musicGroup/takeEffectOfinstrumentInsurance",method:"post",data:e})}},"73e3":function(e,t,r){"use strict";r("b35a")},"92e3":function(e,t,r){"use strict";r.d(t,"v",(function(){return i})),r.d(t,"I",(function(){return d})),r.d(t,"t",(function(){return s})),r.d(t,"c",(function(){return c})),r.d(t,"E",(function(){return m})),r.d(t,"bb",(function(){return f})),r.d(t,"Z",(function(){return b})),r.d(t,"d",(function(){return p})),r.d(t,"M",(function(){return v})),r.d(t,"x",(function(){return h})),r.d(t,"db",(function(){return O})),r.d(t,"u",(function(){return g})),r.d(t,"o",(function(){return y})),r.d(t,"cb",(function(){return T})),r.d(t,"Q",(function(){return E})),r.d(t,"fb",(function(){return I})),r.d(t,"gb",(function(){return L})),r.d(t,"P",(function(){return A})),r.d(t,"U",(function(){return S})),r.d(t,"C",(function(){return N})),r.d(t,"l",(function(){return _})),r.d(t,"Y",(function(){return R})),r.d(t,"eb",(function(){return C})),r.d(t,"J",(function(){return G})),r.d(t,"m",(function(){return P})),r.d(t,"w",(function(){return j})),r.d(t,"N",(function(){return w})),r.d(t,"f",(function(){return M})),r.d(t,"e",(function(){return x})),r.d(t,"L",(function(){return k})),r.d(t,"K",(function(){return q})),r.d(t,"T",(function(){return H})),r.d(t,"H",(function(){return U})),r.d(t,"a",(function(){return D})),r.d(t,"y",(function(){return $})),r.d(t,"p",(function(){return W})),r.d(t,"n",(function(){return F})),r.d(t,"q",(function(){return V})),r.d(t,"g",(function(){return B})),r.d(t,"G",(function(){return J})),r.d(t,"r",(function(){return Y})),r.d(t,"D",(function(){return X})),r.d(t,"B",(function(){return K})),r.d(t,"A",(function(){return Q})),r.d(t,"h",(function(){return z})),r.d(t,"k",(function(){return Z})),r.d(t,"i",(function(){return ee})),r.d(t,"j",(function(){return te})),r.d(t,"S",(function(){return re})),r.d(t,"O",(function(){return ae})),r.d(t,"F",(function(){return le})),r.d(t,"z",(function(){return ne})),r.d(t,"R",(function(){return ue})),r.d(t,"V",(function(){return oe})),r.d(t,"X",(function(){return ie})),r.d(t,"s",(function(){return de})),r.d(t,"ab",(function(){return se})),r.d(t,"W",(function(){return ce})),r.d(t,"b",(function(){return fe}));var a=r("b85c"),l=r("3835"),n=r("267e"),u=sessionStorage.getItem("tenantConfig");u=u?JSON.parse(u):{};var o=u.tenantId,i=null,d=null;1==o?(d=[{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"}]):(d=[{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"}],c=[{label:"正常签到",value:1},{label:"异常签到",value:0}],m=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"劳务",value:"LABOUR"}],f=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],b=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],p=[].concat(b,[{value:"QUIT_SCHOOL",label:"休学"},{value:"DROP_OUT",label:"退学"},{value:"LATE",label:"迟到"}]),v=[{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:"直播课购买"},{value:"SCHOOL_GOODS_PURCHASE",label:"商品采购"},{value:"DIRECTOR_TRAINING_CAMP",label:"乐队指导培训"}],h=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],O=[{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:"已结束"}],y=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],T=[{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:"加油包"}],I=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及练习回访",label:"课后及练习回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],L=[{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:"会员续费"}]}],A=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"},{value:"YEEPAY",label:"易宝"}],S=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],N=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"},{value:"OTHER",label:"其它"}],_=[{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:"高三"}],R=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],C=[{label:"不限制",value:"1"},{label:"线上不可调为线下",value:"0"},{label:"线下不可调为线上",value:"2"},{label:"线上线下不可互调",value:"3"}],G=me(n["musicGroupType"]),P=me(n["classTime"]),j=[{label:"课程收费",value:0},{label:"会员收费",value:2},{label:"免费",value:3}],w=me(n["payOrderType"]),M=me(n["auditType"]),x=me(n["auditPaymentType"]),k=me(n["orderServerType"]),q=me(n["orderAuditType"]),H=me(n["rewardModeType"]),U=me(n["musicClassType"]),D=me(n["ProbationPeriodStatus"]),$=me(n["downListType"]),W=me(n["conclusion"]),F=me(n["clientType"]),V=me(n["couponType"]),B=me(n["backType"]),J=me(n["memberEnum"]),Y=me(n["coupontypeDetail"]),X=me(n["issue"]),K=me(n["feedbackType"]),Q=me(n["feedbackTypeDesc"]),z=me(n["campState"]),Z=me(n["catgGoupType"]),ee=me(n["catRole"]),te=me(n["catType"]),re=me(n["quiteReason"]),ae=me(n["payUserType"]),le=me(n["levelStatus"]),ne=me(n["evaluateStatus"]),ue=me(n["problemType"]),oe=me(n["schoolUserType"]),ie=me(n["shareLiveType"]),de=me(n["courseEmnu"]),se=me(n["suggestionType"]),ce=me(n["scoreType"]);function me(e){var t=[];for(var r in e)t.push({label:e[r],value:r});return t}var fe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],r=Object(l["a"])(t,2),n=r[0],u=r[1],o={};if(e&&e.length){var i,d=Object(a["a"])(e);try{for(d.s();!(i=d.n()).done;){var s=i.value;o[s[n]]=s[u]}}catch(c){d.e(c)}finally{d.f()}}return o}},b35a:function(e,t,r){},f707:function(e,t,r){"use strict";var a,l=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-form",{ref:"ruleForm",attrs:{inline:!0}},[r("div",{staticClass:"lookTitle"},[e._v("申请信息")]),e._v(" "),r("el-form-item",{attrs:{label:"申请人","label-width":"80px"}},[r("div",{staticStyle:{width:"180px"}},[e.form.operator&&e.form.operator.username?r("p",[e._v("\n "+e._s(e.form.operator.username)+"\n ")]):e._e()])]),e._v(" "),r("el-form-item",{attrs:{label:"申请时间","label-width":"80px"}},[r("div",{staticStyle:{width:"180px"}},[e._v(e._s(e.form.createTime))])])],1),e._v(" "),r("el-form",{ref:"ruleForm",attrs:{model:e.form}},[r("div",{staticClass:"lookTitle"},[e._v("基本信息")]),e._v(" "),r("el-form-item",{attrs:{label:"所属分部",rules:[{required:!0,message:"请选择分部",trigger:"change"}],prop:"routeOrganId","label-width":e.formLabelWidth}},[r("el-select",{staticStyle:{width:"100% !important"},attrs:{disabled:!e.isAdd},on:{change:e.changeOrgin},model:{value:e.form.routeOrganId,callback:function(t){e.$set(e.form,"routeOrganId","string"===typeof t?t.trim():t)},expression:"form.routeOrganId"}},e._l(e.selects.branchs,(function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"所属学校",prop:"schoolId","label-width":e.formLabelWidth}},[r("el-select",{staticStyle:{width:"100% !important"},attrs:{disabled:!e.isAdd},model:{value:e.form.schoolId,callback:function(t){e.$set(e.form,"schoolId",t)},expression:"form.schoolId"}},e._l(e.cooperationList,(function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"订单类型",prop:"insertOrderType","label-width":e.formLabelWidth}},[r("el-radio-group",{attrs:{disabled:!e.isAdd},model:{value:e.insertOrderType,callback:function(t){e.insertOrderType=t},expression:"insertOrderType"}},[r("el-radio",{attrs:{label:1}},[e._v("个人订单")]),e._v(" "),r("el-radio",{attrs:{label:2}},[e._v("学校订单")]),e._v(" "),r("el-radio",{attrs:{label:3}},[e._v("其它订单")])],1)],1),e._v(" "),2==e.insertOrderType||3==e.insertOrderType?r("el-form-item",{attrs:{label:"缴费单号",prop:"calenderId","label-width":e.formLabelWidth,rules:[{pattern:/^[0-9]*$/,message:"请输入正确的缴费单号",trigger:"blur"}]}},[r("el-input",{attrs:{disabled:!e.isAdd,placeholder:"请输入缴费单号"},model:{value:e.form.calenderId,callback:function(t){e.$set(e.form,"calenderId","string"===typeof t?t.trim():t)},expression:"form.calenderId"}})],1):e._e(),e._v(" "),1==e.insertOrderType||3==e.insertOrderType?r("el-form-item",{attrs:{label:"学员编号",prop:"userId","label-width":e.formLabelWidth}},[r("el-input",{attrs:{disabled:!e.isAdd,placeholder:"请输入学员编号"},model:{value:e.form.userId,callback:function(t){e.$set(e.form,"userId","string"===typeof t?t.trim():t)},expression:"form.userId"}})],1):e._e(),e._v(" "),r("div",{staticClass:"lookTitle"},[e._v("交易信息")]),e._v(" "),r("el-form-item",{attrs:{label:"交易流水号",rules:[{required:!0,message:"请输入流水号",trigger:"change"}],prop:"transNo","label-width":e.formLabelWidth}},[r("el-input",{attrs:{placeholder:"请输入交易流水号",type:"text",disabled:!e.isAdd},model:{value:e.form.transNo,callback:function(t){e.$set(e.form,"transNo","string"===typeof t?t.trim():t)},expression:"form.transNo"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"收款账户",prop:"merNo",rules:[{required:!0,message:"请输入收款账户",trigger:"change"}],"label-width":e.formLabelWidth}},[r("el-input",{attrs:{placeholder:"请输入收款账户",type:"text",disabled:!e.isAdd},model:{value:e.form.merNo,callback:function(t){e.$set(e.form,"merNo","string"===typeof t?t.trim():t)},expression:"form.merNo"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"交易日期",rules:[{required:!0,message:"请选择交易日期",trigger:"change"}],prop:"payTime","label-width":e.formLabelWidth}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:!e.isAdd,type:"datetime",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择交易日期"},model:{value:e.form.payTime,callback:function(t){e.$set(e.form,"payTime",t)},expression:"form.payTime"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"收入类型","label-width":e.formLabelWidth,rules:[{required:!0,message:"请选收入类型",trigger:"change"}],prop:"applyType"}},[r("el-select",{staticClass:"multiple",staticStyle:{width:"100% !important"},attrs:{filterable:"",clearable:"",disabled:!e.isAdd,placeholder:"请选择收入类型"},model:{value:e.form.applyType,callback:function(t){e.$set(e.form,"applyType","string"===typeof t?t.trim():t)},expression:"form.applyType"}},e._l(e.orderServerList,(function(e,t){return r("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),"SELL"==e.form.applyType?r("el-form-item",{attrs:{label:"销售金额",prop:"saleAmount",rules:[{required:!0,message:"请输入销售金额",trigger:"change"}],"label-width":e.formLabelWidth}},[r("el-input",{attrs:{type:"number",disabled:!e.isAdd,placeholder:"请输入销售金额"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.form.saleAmount,callback:function(t){e.$set(e.form,"saleAmount",t)},expression:"form.saleAmount"}})],1):e._e(),e._v(" "),"SERVICE"==e.form.applyType?r("el-form-item",{attrs:{label:"服务金额",rules:[{required:!0,message:"请输入服务金额",trigger:"change"}],prop:"serviceAmount","label-width":e.formLabelWidth}},[r("el-input",{attrs:{type:"number",disabled:!e.isAdd,placeholder:"请输入收入金额"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.form.serviceAmount,callback:function(t){e.$set(e.form,"serviceAmount",t)},expression:"form.serviceAmount"}})],1):e._e(),e._v(" "),"SELL"==e.form.applyType?r("div",e._l(e.form.goodsList,(function(t,a){return r("div",{key:a,staticClass:"shopListWrap"},[r("el-form-item",{staticClass:"setWidth",attrs:{label:"商品名称"+(a+1),"label-width":e.formLabelWidth,prop:"goodsList."+a+".id",rules:[{required:!0,message:"请选择商品",trigger:"change"}]}},[e.isAdd?r("el-select",{attrs:{filterable:"",disabled:!e.isAdd,placeholder:"请选择商品","popper-append-to-body":!1},model:{value:t.id,callback:function(r){e.$set(t,"id","string"===typeof r?r.trim():r)},expression:"goodsList.id"}},e._l(e.shopList,(function(e,t){return r("el-option",{key:t,attrs:{title:e.name,label:e.name,value:e.id}})})),1):r("p",{staticClass:"showShop"},[r("Tooltip",{attrs:{content:e._f("filterShopId")(t.id)}})],1)],1),e._v(" "),r("el-form-item",{staticClass:"setWidth",staticStyle:{"margin-right":"10px","margin-left":"10px"},attrs:{prop:"goodsList."+a+".number"}},[r("el-input",{staticStyle:{width:"160px"},attrs:{type:"age",disabled:!e.isAdd,clearable:"",placeholder:"请输入商品数量"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:t.number,callback:function(r){e.$set(t,"number",e._n(r))},expression:"goodsList.number"}})],1),e._v(" "),e.form.goodsList.length>1&&"REJECT"==e.auditStatus?r("el-button",{staticStyle:{"margin-bottom":"22px"},attrs:{icon:"el-icon-minus",disabled:!e.isAdd,circle:""},on:{click:function(r){return r.preventDefault(),e.removeGoodsList(t)}}}):e._e(),e._v(" "),"REJECT"==e.auditStatus?r("el-button",{staticStyle:{"margin-left":"5px","margin-bottom":"22px"},attrs:{icon:"el-icon-plus",disabled:!e.isAdd,circle:""},on:{click:function(t){return t.preventDefault(),e.addGoodsList(t)}}}):e._e()],1)})),0):e._e(),e._v(" "),r("div",{staticClass:"lookTitle"},[e._v("其它")]),e._v(" "),r("el-form-item",{attrs:{label:"提交备注","label-width":e.formLabelWidth,rules:[{required:!0,message:"请输入提交备注",trigger:"change"}]}},[r("el-input",{attrs:{placeholder:"请输入备注",disabled:!e.isAdd,type:"textarea",rows:3},model:{value:e.form.memo,callback:function(t){e.$set(e.form,"memo","string"===typeof t?t.trim():t)},expression:"form.memo"}})],1),e._v(" "),"ING"!=e.auditStatus?r("el-form-item",{attrs:{label:"审核备注","label-width":e.formLabelWidth}},[r("el-input",{attrs:{placeholder:"请输入备注",disabled:!0,type:"textarea",rows:3},model:{value:e.form.auditComment,callback:function(t){e.$set(e.form,"auditComment","string"===typeof t?t.trim():t)},expression:"form.auditComment"}})],1):e._e()],1),e._v(" "),"ING"==e.auditStatus?r("div",{staticClass:"lookTitle"},[e._v("\n 审核意见\n ")]):e._e(),e._v(" "),"ING"==e.auditStatus?r("el-form",{ref:"submitForm",attrs:{model:e.submitForm}},[r("el-form-item",{attrs:{prop:"memo",rules:[{required:!0,message:"请输入审核意见",trigger:"blur"}]}},[r("el-input",{attrs:{type:"textarea",rows:4},model:{value:e.submitForm.memo,callback:function(t){e.$set(e.submitForm,"memo",t)},expression:"submitForm.memo"}})],1)],1):e._e()],1)},n=[],u=(r("7f7f"),r("ac6a"),r("3de3")),o=r("92e3"),i=r("1cc7"),d=r("a5b0"),s={components:{Tooltip:d["a"]},props:["orderId","shopList","isLook"],data:function(){return{formLabelWidth:"100px",form:{routeOrganId:null,transNo:null,type:"OTHER",merNo:null,actualAmount:null,memo:null,payTime:null,serviceAmount:null,goodsAmount:null,schoolId:null,goodsList:[{id:null,number:null}],applyType:null,userId:"",auditComment:"",calenderId:""},isAdd:!this.isLook,insertOrderType:1,cooperationList:[],submitForm:{memo:""},auditStatus:"",orderServerList:o["L"],clearSchool:!1}},created:function(){a=this},mounted:function(){var e=this;this.orderId&&Object(u["h"])({id:this.orderId}).then((function(t){if(200==t.code){var r=t.data;e.form={createTime:r.createTime,operator:r.operator,routeOrganId:r.routeOrganId,transNo:r.transNo,type:"OTHER",merNo:r.merNo,actualAmount:r.actualAmount,memo:r.memo,payTime:r.payTime,serviceAmount:r.serviceAmount,saleAmount:r.saleAmount,schoolId:r.schoolId,userId:r.userId?r.userId:"",auditComment:r.auditComment,applyType:r.saleAmount?"SELL":"SERVICE",calenderId:r.calenderId?r.calenderId:""},e.auditStatus=r.auditStatus,e.$set(e.form,"goodsList",e.getShopList(r.goodsJson)),e.changeOrgin(r.routeOrganId),r.userId&&!t.data.calenderId?e.insertOrderType=1:t.data.calenderId&&!r.userId?e.insertOrderType=2:e.insertOrderType=3,"OUTORDER"!==r.type&&("OTHER"===r.type?e.insertOrderType=3:"SCHOOL"===r.type?e.insertOrderType=2:"PERSONAL"===r.type&&(e.insertOrderType=1)),e.clearSchool=!0}})),this.$store.dispatch("setBranchs")},methods:{changeOrgin:function(e){var t=this;e&&(this.clearSchool&&this.$set(this.form,"schoolId",null),Object(i["Z"])({rows:9999,organId:e}).then((function(e){200===e.code&&(t.cooperationList=e.data.rows)})))},getShopList:function(e){var t=[];try{var r=JSON.parse(e);for(var a in r)t.push({id:parseInt(a),number:r[a]})}catch(l){}return t.length>0?t:[]},auditOutOrder:function(e){var t=this,r=this;this.$refs.submitForm.validate((function(a){a&&Object(u["b"])({auditStatus:e,memo:t.submitForm.memo,studentPaymentRouteOrderId:t.orderId}).then((function(e){if(200==e.code)return t.$message.success("审核成功"),void r.$emit("getList")}))}))},removeGoodsList:function(e){var t=this.form.goodsList.indexOf(e);-1!==t&&this.form.goodsList.splice(t,1)},addGoodsList:function(){this.form.goodsList.push({id:null,number:null})},submitReaet:function(){var e=this;this.$refs.ruleForm.validate((function(t){if(t){var r=JSON.parse(JSON.stringify(e.form));if(!r.saleAmount&&!r.serviceAmount)return void e.$message.error("请输入销售收入或服务收入");"SELL"==r.applyType?r.serviceAmount=0:r.saleAmount=0,r.saleAmount||(r.goodsList=null);var a={};for(var l in r.goodsList)a[r.goodsList[l]["id"]]=r.goodsList[l]["number"];r.goodsJson="SERVICE"==r.applyType?null:JSON.stringify(a),r.id=e.orderId,r.auditStatus="ING",1==e.insertOrderType?r.calenderId=null:2==e.insertOrderType&&(r.userId=null),Object(u["y"])(r).then((function(t){if(200==t.code)return e.$message.success("修改成功"),void e.$emit("getList");e.$message.error(t.msg)}))}}))}},filters:{filterShopId:function(e){var t="";return a.shopList.forEach((function(r){r.id==e&&(t=r.name)})),t}}},c=s,m=(r("73e3"),r("2877")),f=Object(m["a"])(c,l,n,!1,null,"5cf7ce8a",null);t["a"]=f.exports}}]);