1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6fb93bb4"],{"09f4":function(e,t,r){"use strict";r.d(t,"a",(function(){return u})),Math.easeInOutQuad=function(e,t,r,l){return e/=l/2,e<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)};var l=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 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);a(n),d<t?l(e):r&&"function"===typeof r&&r()};s()}},2543:function(e,t,r){"use strict";r.d(t,"k",(function(){return o})),r.d(t,"l",(function(){return i})),r.d(t,"o",(function(){return d})),r.d(t,"i",(function(){return s})),r.d(t,"m",(function(){return c})),r.d(t,"j",(function(){return m})),r.d(t,"a",(function(){return b})),r.d(t,"b",(function(){return f})),r.d(t,"c",(function(){return p})),r.d(t,"h",(function(){return v})),r.d(t,"n",(function(){return h})),r.d(t,"f",(function(){return O})),r.d(t,"d",(function(){return g})),r.d(t,"e",(function(){return y})),r.d(t,"g",(function(){return E}));var l=r("b775"),a=r("4328"),n=r.n(a),u="/api-web";function o(e){return Object(l["a"])({url:u+"/goods/queryPage",method:"get",params:e})}function i(e){return Object(l["a"])({url:u+"/goods/get/".concat(e),method:"get"})}function d(e){return Object(l["a"])({url:u+"/goods/updateGoodsStatus",method:"post",data:n.a.stringify(e)})}function s(e){return Object(l["a"])({url:u+"/goods/add",method:"post",data:n.a.stringify(e)})}function c(e){return Object(l["a"])({url:u+"/goods/update",method:"post",data:n.a.stringify(e)})}function m(e){return Object(l["a"])({url:u+"/goods/del/".concat(e),method:"post"})}function b(e){return Object(l["a"])({url:u+"/category/queryPage",method:"get",params:e})}function f(e){return Object(l["a"])({url:u+"/category/upset",method:"post",data:e})}function p(e){return Object(l["a"])({url:u+"/category/del",method:"post",data:n.a.stringify(e)})}function v(e){return Object(l["a"])({url:u+"/subjectChange/queryPage",method:"get",params:e})}function h(e){return Object(l["a"])({url:u+"/subjectChange/updateCostMargin",method:"post",data:n.a.stringify(e)})}function O(e){return Object(l["a"])({url:u+"/goodsProcurement/queryGoodsProcurements",method:"get",params:e})}function g(e){return Object(l["a"])({url:u+"/goods/addGoodsProcurement",method:"post",params:e})}function y(e){return Object(l["a"])({url:u+"/swTempJc/queryPageForCourseSchedule",method:"get",params:e})}function E(e){return Object(l["a"])({url:u+"/swTempJc/queryPageForExtensionOrder",method:"get",params:e})}},"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 b})),r.d(t,"a",(function(){return f})),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 E})),r.d(t,"p",(function(){return T})),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 w})),r.d(t,"w",(function(){return j}));var l=r("b775"),a=r("829b"),n=r("4328"),u=r.n(n),o="/api-web";function i(e){return Object(l["a"])({url:o+"/order/queryPage",method:"get",params:e})}function d(e){return Object(l["a"])({url:o+"/order/queryPage1",method:"get",params:e})}function s(e){return Object(l["a"])({url:o+"/order/queryPage2",method:"get",params:e})}function c(e){return Object(l["a"])({url:o+"/routeOrder/finance",method:"get",params:e})}function m(e){return Object(l["a"])({url:o+"/routeOrder/add",method:"post",headers:{"Content-Type":"application/json"},data:e})}function b(e){return Object(l["a"])({url:o+"/studentRefunds/queryPage",method:"get",params:e})}function f(e){return Object(l["a"])({url:o+"/vipGroupManage/applyRefundAudit",method:"post",data:u.a.stringify(e)})}function p(e){return Object(l["a"])({url:o+"/studentWithdraw/queryPage",method:"get",params:e})}function v(e){return Object(l["a"])({url:o+"/studentWithdraw/confirm",method:"post",data:u.a.stringify(e)})}function h(e){return Object(l["a"])({url:o+"/order/verifyMusicalList",method:"GET",params:e})}function O(e){return Object(l["a"])({url:o+"/studentRecharge/queryPage",method:"GET",params:e})}function g(e){return Object(l["a"])({url:o+"/tenantPaymentOrder/queryPage",method:"GET",params:e})}function y(e){return Object(l["a"])({url:o+"/order/getOrderStatus",method:"GET",params:e})}function E(e){return Object(l["a"])({url:o+"/financialExpenditure/queryPage",method:"GET",params:e})}function T(e){return Object(l["a"])({url:o+"/financialExpenditure/batchDel",method:"POST",params:e})}function I(e){return Object(l["a"])({url:o+"/operatingReport/queryPage",method:"GET",params:e})}function L(e){return Object(l["a"])({url:o+"/sellOrder/queryPage",method:"GET",params:e})}function A(e){return Object(l["a"])({url:o+"/sellOrder/update",method:"POST",params:e})}function S(e){return Object(a["a"])({url:o+"/sellOrder/refund",method:"POST",params:e,hint:!0})}function N(e){return Object(l["a"])({url:o+"/routeOrder/getOrderInfo",method:"GET",params:e})}function _(e){return Object(l["a"])({url:o+"/routeOrder/delete",method:"POST",data:u.a.stringify(e)})}function R(e){return Object(l["a"])({url:o+"/routeOrder/queryPage",method:"get",params:e})}function C(e){return Object(l["a"])({url:o+"/routeOrder/query",method:"get",params:e})}function G(e){return Object(l["a"])({url:o+"/routeOrder/auditOutOrder",method:"post",data:u.a.stringify(e)})}function P(e){return Object(l["a"])({url:o+"/routeOrder/update",method:"post",data:e,headers:{"Content-Type":"application/json"}})}function w(e){return Object(a["a"])({url:o+"/cooperationOrgan/getCalenders",method:"get",params:e})}function j(e){return Object(a["a"])({url:o+"/musicGroup/takeEffectOfinstrumentInsurance",method:"post",data:e})}},7704:function(e,t,r){},"92e3":function(e,t,r){"use strict";r.d(t,"u",(function(){return i})),r.d(t,"H",(function(){return d})),r.d(t,"s",(function(){return s})),r.d(t,"c",(function(){return c})),r.d(t,"D",(function(){return m})),r.d(t,"Y",(function(){return b})),r.d(t,"X",(function(){return f})),r.d(t,"d",(function(){return p})),r.d(t,"L",(function(){return v})),r.d(t,"w",(function(){return h})),r.d(t,"ab",(function(){return O})),r.d(t,"t",(function(){return g})),r.d(t,"o",(function(){return y})),r.d(t,"Z",(function(){return E})),r.d(t,"P",(function(){return T})),r.d(t,"cb",(function(){return I})),r.d(t,"db",(function(){return L})),r.d(t,"O",(function(){return A})),r.d(t,"T",(function(){return S})),r.d(t,"B",(function(){return N})),r.d(t,"l",(function(){return _})),r.d(t,"W",(function(){return R})),r.d(t,"bb",(function(){return C})),r.d(t,"I",(function(){return G})),r.d(t,"m",(function(){return P})),r.d(t,"v",(function(){return w})),r.d(t,"M",(function(){return j})),r.d(t,"f",(function(){return M})),r.d(t,"e",(function(){return x})),r.d(t,"K",(function(){return k})),r.d(t,"J",(function(){return H})),r.d(t,"S",(function(){return U})),r.d(t,"G",(function(){return q})),r.d(t,"a",(function(){return D})),r.d(t,"x",(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,"F",(function(){return J})),r.d(t,"r",(function(){return Y})),r.d(t,"C",(function(){return X})),r.d(t,"A",(function(){return K})),r.d(t,"z",(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,"R",(function(){return re})),r.d(t,"N",(function(){return le})),r.d(t,"E",(function(){return ae})),r.d(t,"y",(function(){return ne})),r.d(t,"Q",(function(){return ue})),r.d(t,"U",(function(){return oe})),r.d(t,"V",(function(){return ie})),r.d(t,"b",(function(){return se}));var l=r("2d63"),a=r("768b"),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"}],b=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],f=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],p=[].concat(f,[{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:"直播课购买"}],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:"锁定"}],E=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],T=[{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=de(n["musicGroupType"]),P=de(n["classTime"]),w=[{label:"课程收费",value:0},{label:"会员收费",value:2},{label:"免费",value:3}],j=de(n["payOrderType"]),M=de(n["auditType"]),x=de(n["auditPaymentType"]),k=de(n["orderServerType"]),H=de(n["orderAuditType"]),U=de(n["rewardModeType"]),q=de(n["musicClassType"]),D=de(n["ProbationPeriodStatus"]),$=de(n["downListType"]),W=de(n["conclusion"]),F=de(n["clientType"]),V=de(n["couponType"]),B=de(n["backType"]),J=de(n["memberEnum"]),Y=de(n["coupontypeDetail"]),X=de(n["issue"]),K=de(n["feedbackType"]),Q=de(n["feedbackTypeDesc"]),z=de(n["campState"]),Z=de(n["catgGoupType"]),ee=de(n["catRole"]),te=de(n["catType"]),re=de(n["quiteReason"]),le=de(n["payUserType"]),ae=de(n["levelStatus"]),ne=de(n["evaluateStatus"]),ue=de(n["problemType"]),oe=de(n["schoolUserType"]),ie=de(n["shareLiveType"]);function de(e){var t=[];for(var r in e)t.push({label:e[r],value:r});return t}var se=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],r=Object(a["a"])(t,2),n=r[0],u=r[1],o={};if(e&&e.length){var i,d=Object(l["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}},"9fa6":function(e,t,r){"use strict";r("7704")},f707:function(e,t,r){"use strict";var l,a=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,l){return r("div",{key:l,staticClass:"shopListWrap"},[r("el-form-item",{staticClass:"setWidth",attrs:{label:"商品名称"+(l+1),"label-width":e.formLabelWidth,prop:"goodsList."+l+".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."+l+".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["K"],clearSchool:!1}},created:function(){l=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 l in r)t.push({id:parseInt(l),number:r[l]})}catch(a){}return t.length>0?t:[{id:null,number:null}]},auditOutOrder:function(e){var t=this,r=this;this.$refs.submitForm.validate((function(l){l&&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 l={};for(var a in r.goodsList)l[r.goodsList[a]["id"]]=r.goodsList[a]["number"];r.goodsJson="SERVICE"==r.applyType?null:JSON.stringify(l),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 l.shopList.forEach((function(r){r.id==e&&(t=r.name)})),t}}},c=s,m=(r("9fa6"),r("2877")),b=Object(m["a"])(c,a,n,!1,null,"6c1a35ab",null);t["a"]=b.exports}}]);
|