chunk-1ec4d2cc.2450877e.js 14 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1ec4d2cc"],{"09f4":function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),Math.easeInOutQuad=function(t,e,n,r){return t/=r/2,t<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)};var r=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,n){var u=o(),i=t-u,c=20,s=0;e="undefined"===typeof e?500:e;var d=function t(){s+=c;var o=Math.easeInOutQuad(s,u,i,e);a(o),s<e?r(t):n&&"function"===typeof n&&n()};d()}},"15fd":function(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n,r,a={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(a[n]=t[n]);return a}function a(t,e){if(null==t)return{};var n,a,o=r(t,e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(a=0;a<u.length;a++)n=u[a],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}n.d(e,"a",(function(){return a}))},"1cd9":function(t,e,n){},"2c4d":function(t,e,n){},"33be":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.isEmpty?n("empty",[n("p",[t._v("无需交接,点击确定继续操作离职")])]):n("el-form",{ref:"form",attrs:{inline:"",model:t.form}},[t._l(t.form,(function(e,r){return[e.length>0?n("select-user",{key:r,attrs:{name:r,item:e,branchsyId:t.branchsyId,employeeByOrganId:t.employeeByOrganId,technicianByOrganId:t.technicianByOrganId}}):t._e()]}))],2),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:t.$listeners.close}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v("确 定")])],1)],1)},a=[],o=(n("ac6a"),n("5df3"),n("5530")),u=(n("96cf"),n("1da1")),i=n("b85c"),c=n("a2b6"),s=n("99b4"),d=n("8985"),f=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-alert",{staticClass:"alert",attrs:{type:"info",closable:!1},scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticClass:"title"},[n("span",[t._v(t._s(t.formatName))]),t._v(" "),n("el-button",{staticStyle:{padding:"5px"},attrs:{type:"text"},on:{click:t.clear}},[t._v("清空")])],1)]},proxy:!0}])}),t._v(" "),n("div",{staticClass:"content"},t._l(t.item,(function(e,r){return n("el-row",{key:e.organId},[n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:t.branchsyId[e.organId]&&t.branchsyId[e.organId].name}})],1),t._v(" "),n("el-col",{attrs:{span:16}},[n("el-form-item",{attrs:{label:"交接人",prop:t.name+"."+r+".transferUserId",rules:[{required:!0,message:"请选择交接人"}]}},[n("el-select",{attrs:{value:e.transferUserId,clearable:"",filterable:""},on:{change:function(n){return t.change(n,e)}}},t._l(t.options[e.organId],(function(t){return n("el-option",{key:t.id||t.userId,attrs:{value:t.id||t.userId,label:t.realName}})})),1)],1)],1)],1)})),1)],1)},l=[],p=(n("7f7f"),{props:["item","name","branchsyId","employeeByOrganId","technicianByOrganId"],computed:{formatName:function(){var t={repair:"维修技师",director:"乐队指导",education:"乐团主管",teamTeacher:"运营主管"};return t[this.name]},options:function(){return"repair"===this.name?this.technicianByOrganId:this.employeeByOrganId}},methods:{quickSetting:function(t){this.item.forEach((function(e){e.transferUserId||(e.transferUserId=t)}))},change:function(t,e){e.transferUserId=t},clear:function(){this.item.forEach((function(t){t.transferUserId=""}))}}}),m=p,h=(n("9019"),n("2877")),b=Object(h["a"])(m,f,l,!1,null,"a97fca8e",null),g=b.exports,y={props:["detail"],components:{"select-user":g},data:function(){return{list:[],form:{repair:[],director:[],education:[],teamTeacher:[]},employees:[],loading:!1}},computed:{isEmpty:function(){var t=!0;for(var e in this.form)if(Object.hasOwnProperty.call(this.form,e)){var n=this.form[e];n.length>0&&(t=!1)}return t},branchsyId:function(){return Object(c["a"])(this.selects.branchs,"id")},technicianByOrganId:function(){var t,e={},n=Object(i["a"])(this.selects.technician);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.organIdList){var a,o=Object(i["a"])(r.organIdList);try{for(o.s();!(a=o.n()).done;){var u=a.value;e[u]||(e[u]=[]),e[u].push(r)}}catch(c){o.e(c)}finally{o.f()}}}}catch(c){n.e(c)}finally{n.f()}return e},employeeByOrganId:function(){var t,e={},n=Object(i["a"])(this.employees);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.organIdList){var a,o=Object(i["a"])(r.organIdList);try{for(o.s();!(a=o.n()).done;){var u=a.value;e[u]||(e[u]=[]),e[u].push(r)}}catch(c){o.e(c)}finally{o.f()}}}}catch(c){n.e(c)}finally{n.f()}return e}},mounted:function(){var t=Object(u["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.$store.dispatch("setBranchs"),this.$store.dispatch("setTechnician"),this.FetchDetail();case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),methods:{submit:function(){var t=Object(u["a"])(regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.$refs.form){t.next=12;break}return t.prev=1,t.next=4,Object(s["k"])({employeeId:this.detail.id,operate:"DEMISSION"});case 4:this.$message.success("提交成功"),this.$listeners.close(),this.$listeners.submited(),t.next=11;break;case 9:t.prev=9,t.t0=t["catch"](1);case 11:return t.abrupt("return");case 12:this.$refs.form.validate(function(){var t=Object(u["a"])(regeneratorRuntime.mark((function t(n){var r,a,u;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!n){t.next=14;break}for(u in r=[],a=function(t){if(Object.hasOwnProperty.call(e.form,t)){var n=e.form[t];r=r.concat(n.map((function(e){return Object(o["a"])(Object(o["a"])({},e),{},{roleName:t})})))}},e.form)a(u);return t.prev=4,t.next=7,Object(d["b"])(r);case 7:e.$message.success("提交成功"),e.$listeners.close(),e.$listeners.submited(),t.next=14;break;case 12:t.prev=12,t.t0=t["catch"](4);case 14:case"end":return t.stop()}}),t,null,[[4,12]])})));return function(e){return t.apply(this,arguments)}}());case 13:case"end":return t.stop()}}),t,this,[[1,9]])})));function e(){return t.apply(this,arguments)}return e}(),FetchDetail:function(){var t=Object(u["a"])(regeneratorRuntime.mark((function t(){var e,n,r,a,o,u,c=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.loading=!0,t.prev=1,t.next=4,Promise.all([Object(d["a"])({rows:99999,demissionflag:0}),Object(d["c"])({userId:this.detail.id})]).then((function(t){return c.employees=t[0].data.rows,t[1]}));case 4:for(n in e=t.sent,this.list=e.data,e.data)if(Object.hasOwnProperty.call(e.data,n)){r=e.data[n],a=Object(i["a"])(r);try{for(a.s();!(o=a.n()).done;)u=o.value,this.form[n].push({organId:u,transferUserId:"",levelUserId:this.detail.id})}catch(s){a.e(s)}finally{a.f()}}this.form=this.form,t.next=12;break;case 10:t.prev=10,t.t0=t["catch"](1);case 12:this.loading=!1;case 13:case"end":return t.stop()}}),t,this,[[1,10]])})));function e(){return t.apply(this,arguments)}return e}()}},O=y,v=(n("b897"),Object(h["a"])(O,r,a,!1,null,"4d58ab65",null));e["a"]=v.exports},8985:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return u}));var r=n("829b"),a=function(t){return Object(r["a"])({url:"/api-web/employee/level",method:"post",data:t})},o=function(t){return Object(r["a"])({url:"/api-web/employee/levelDetail",method:"get",params:t})},u=function(t){return Object(r["a"])({url:"/api-web/employee/queryEmployByOrganId",method:"get",params:t})}},9019:function(t,e,n){"use strict";n("2c4d")},a2b6:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return o}));var r=n("b85c"),a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"id",n=arguments.length>2?arguments[2]:void 0,a={};if(t){var o,u=Object(r["a"])(t);try{for(u.s();!(o=u.n()).done;){var i=o.value;a[i[e]]=n?i[n]:i}}catch(c){u.e(c)}finally{u.f()}}return a},o=function(){return location.hostname.indexOf("dev")>-1?"http://mstudev.dayaedu.com":location.hostname.indexOf("online")>-1?"https://mstuonline.dayaedu.com":location.hostname.indexOf("localhost")>-1?"http://localhost:9001":"https://mstutest.dayaedu.com"}},b897:function(t,e,n){"use strict";n("1cd9")},be41:function(t,e,n){"use strict";n("5df3"),n("1c4c");var r=n("53ca"),a=(n("456d"),n("ac6a"),function t(e){if(null===e)return null;var n=Object.assign({},e);return Object.keys(n).forEach((function(a){return n[a]="object"===Object(r["a"])(e[a])?t(e[a]):e[a]})),Array.isArray(e)?(n.length=e.length,Array.from(n)):n});e["a"]=a},d349:function(t,e,n){"use strict";n.d(e,"e",(function(){return s})),n.d(e,"d",(function(){return d})),n.d(e,"f",(function(){return f})),n.d(e,"c",(function(){return l})),n.d(e,"s",(function(){return p})),n.d(e,"G",(function(){return m})),n.d(e,"H",(function(){return h})),n.d(e,"I",(function(){return b})),n.d(e,"h",(function(){return g})),n.d(e,"l",(function(){return y})),n.d(e,"g",(function(){return O})),n.d(e,"m",(function(){return v})),n.d(e,"v",(function(){return j})),n.d(e,"t",(function(){return I})),n.d(e,"u",(function(){return w})),n.d(e,"i",(function(){return T})),n.d(e,"j",(function(){return k})),n.d(e,"p",(function(){return q})),n.d(e,"k",(function(){return S})),n.d(e,"w",(function(){return x})),n.d(e,"J",(function(){return z})),n.d(e,"n",(function(){return C})),n.d(e,"x",(function(){return P})),n.d(e,"A",(function(){return _})),n.d(e,"y",(function(){return B})),n.d(e,"z",(function(){return E})),n.d(e,"r",(function(){return $})),n.d(e,"b",(function(){return F})),n.d(e,"F",(function(){return U})),n.d(e,"q",(function(){return R})),n.d(e,"E",(function(){return D})),n.d(e,"a",(function(){return A})),n.d(e,"o",(function(){return N})),n.d(e,"C",(function(){return M})),n.d(e,"B",(function(){return G})),n.d(e,"D",(function(){return H}));var r=n("15fd"),a=n("b775"),o=n("829b"),u=n("4328"),i=n.n(u),c="/api-web";function s(t){return Object(a["a"])({url:c+"/organization/queryPage",method:"get",params:t})}function d(t){return Object(a["a"])({url:c+"/organization/add",method:"post",data:i.a.stringify(t)})}function f(t){return Object(a["a"])({url:c+"/organization/update",method:"post",data:i.a.stringify(t)})}function l(t){return Object(a["a"])({url:c+"/area/queryChild",method:"get",params:t})}function p(t){return Object(a["a"])({url:c+"/area/getParentArea/".concat(t.id),method:"get"})}function m(t){return Object(a["a"])({url:c+"/subject/queryPageByIdOrName",method:"post",data:i.a.stringify(t)})}function h(t){return Object(a["a"])({url:c+"/subject/queryPageTree",method:"get",params:t})}function b(t){return Object(a["a"])({url:c+"/subject/upset",method:"post",data:t})}function g(t){return Object(a["a"])({url:c+"/chargeType/queryPage",method:"get",params:t})}function y(t){return Object(a["a"])({url:c+"/chargeType/upSet",method:"post",data:t})}function O(t){return Object(a["a"])({url:c+"/chargeType/del/".concat(t),method:"post"})}function v(t){return Object(a["a"])({url:c+"/courseHomeworkTemplate/queryPage",method:"post",data:t})}function j(t){return Object(a["a"])({url:c+"/courseHomeworkTemplate/update",method:"post",data:i.a.stringify(t)})}function I(t){return Object(a["a"])({url:c+"/courseHomeworkTemplate/add",method:"post",data:i.a.stringify(t)})}function w(t){return Object(a["a"])({url:c+"/courseHomeworkTemplate/del/".concat(t),method:"post"})}function T(t){return Object(a["a"])({url:c+"/chargeTypeOrganizationFee/add",method:"post",data:i.a.stringify(t)})}function k(t){return Object(a["a"])({url:c+"/chargeTypeOrganizationFee/update",method:"post",data:i.a.stringify(t)})}function q(t){return Object(a["a"])({url:c+"/employee/findEducationTeacher",method:"get",params:t})}function S(t){return Object(o["a"])({url:c+"/chargeTypeSubjectMapper/queryPage",method:"get",data:{},params:t,requestType:"form"})}function x(t){return Object(o["a"])({url:c+"/chargeTypeSubjectMapper/insert",method:"post",data:t})}function z(t){return Object(o["a"])({url:c+"/chargeTypeSubjectMapper/update",method:"post",data:t})}function C(t){var e=t.id,n=Object(r["a"])(t,["id"]);return Object(o["a"])({url:c+"/chargeTypeSubjectMapper/del/"+e,method:"post",params:n})}function P(t){return Object(o["a"])({url:c+"/musicGroupOrganizationCourseSettings/add",method:"post",data:t})}function _(t){return Object(o["a"])({url:c+"/musicGroupOrganizationCourseSettings/update",method:"post",data:t})}function B(t){return Object(o["a"])({url:c+"/musicGroupOrganizationCourseSettings/delSetting",method:"post",data:{},params:t,requestType:"form"})}function E(t){return Object(o["a"])({url:c+"/musicGroupOrganizationCourseSettings/queryPage",method:"get",data:{},params:t,requestType:"form"})}function $(t){return Object(o["a"])({url:c+"/organizationCourseUnitPriceSettings/queryPage",method:"get",params:t,data:{},requestType:"form"})}function F(t){return Object(o["a"])({url:c+"/organizationCourseUnitPriceSettings/insert",method:"post",data:t})}function U(t){return Object(o["a"])({url:c+"/organizationCourseUnitPriceSettings/update",method:"post",data:t})}function R(t){return Object(o["a"])({url:c+"/organizationCourseDurationSettings/queryPage",method:"get",data:{},params:t})}function D(t){return Object(o["a"])({url:c+"/organizationCourseDurationSettings/update",method:"post",params:t})}function A(t){return Object(o["a"])({url:c+"/organizationCourseDurationSettings/insert",method:"post",params:t})}function N(t){return Object(o["a"])({url:c+"/organizationCourseDurationSettings/del",method:"post",data:t})}function M(t){return Object(o["a"])({url:c+"/organizationCloudTeacherFee/queryPage",method:"get",params:t})}function G(t){return Object(o["a"])({url:c+"/organizationCloudTeacherFee/add",method:"post",requestType:"form",data:t})}function H(t){return Object(o["a"])({url:c+"/organizationCloudTeacherFee/update",method:"post",requestType:"form",data:t})}}}]);