1 line
33 KiB
JavaScript
1 line
33 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-06339c56"],{"0b37":function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return o})),a.d(e,"d",(function(){return i})),a.d(e,"f",(function(){return l})),a.d(e,"e",(function(){return c}));a("8dee"),a("e680"),a("4057"),a("fc02");function n(t,e){var a,n,r,o;try{a=t.toString().split(".")[1].length}catch(l){a=0}try{n=e.toString().split(".")[1].length}catch(l){n=0}if(o=Math.abs(a-n),r=Math.pow(10,Math.max(a,n)),o>0){var i=Math.pow(10,o);a>n?(t=Number(t.toString().replace(".","")),e=Number(e.toString().replace(".",""))*i):(t=Number(t.toString().replace(".",""))*i,e=Number(e.toString().replace(".","")))}else t=Number(t.toString().replace(".","")),e=Number(e.toString().replace(".",""));return(t+e)/r}function r(t,e){var a,n,r=0,o=0;try{r=t.toString().split(".")[1].length}catch(i){}try{o=e.toString().split(".")[1].length}catch(i){}return a=Number(t.toString().replace(".","")),n=Number(e.toString().replace(".","")),a/n*Math.pow(10,o-r)}function o(t,e){var a=0,n=t.toString(),r=e.toString();try{a+=n.split(".")[1].length}catch(o){}try{a+=r.split(".")[1].length}catch(o){}return Number(n.replace(".",""))*Number(r.replace(".",""))/Math.pow(10,a)}function i(t,e){var a,n,r,o;try{a=t.toString().split(".")[1].length}catch(i){a=0}try{n=e.toString().split(".")[1].length}catch(i){n=0}return r=Math.pow(10,Math.max(a,n)),o=a>=n?a:n,(Math.round(t*r-e*r)/r).toFixed(o)}function l(t,e){if(0==t&&(t=0),/[^[\-|0-9][0-9]*]/.test(t))return"0";if(null==t||""===t)return"";t=t.toString().replace(/^(-\d*)$/,"$1."),t=t.toString().replace(/^(\d*)$/,"$1."),t=(t+"00").replace(/(\d*\.\d\d)\d*/,"$1"),t=t.replace(".",",");var a=/(\d)(\d{3},)/;while(a.test(t))t=t.replace(a,"$1,$2");if(t=t.replace(/,(\d\d)$/,".$1"),0===e||void 0===e){var n=t.split(".");"00"==n[1]&&(t=n[0])}return t}function c(t,e){t=t.toString();var a=t.indexOf(".");return t=-1!==a?t.substring(0,e+a+1):t.substring(0),parseFloat(t).toFixed(e)}},1248:function(t,e,a){},"13c3":function(t,e,a){},"19e3":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container bgHeight"},[a("el-tabs",{attrs:{value:t.activeName,type:"border-card"},on:{"tab-click":t.handleClick}},[a("el-tab-pane",{attrs:{label:"预算包管理",name:"package"}},["package"===t.activeName?a("packageManage",{ref:"packageManage",attrs:{show:t.list},on:{edit:t.editClick}}):t._e(),t._v(" "),a("packageAdd",{ref:"package",attrs:{show:t.addModel,jobList:t.jobList,projectList:t.projectList},on:{back:t.back,callback:t.backCall}})],1),t._v(" "),a("el-tab-pane",{attrs:{label:"价值换算",name:"value"}},["value"===t.activeName?a("laborValue",{attrs:{jobList:t.jobList,projectList:t.projectList}}):t._e()],1)],1)],1)},r=[],o=a("4513"),i=a("67d5"),l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.show?a("div",[a("div",{staticClass:"searchBar"},[a("el-form",{ref:"query",attrs:{model:t.query}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{prop:"name"}},[a("el-input",{attrs:{clearable:"",placeholder:"输入预算包名称"},model:{value:t.query.name,callback:function(e){t.$set(t.query,"name",e)},expression:"query.name"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v("查询")]),t._v(" "),a("el-button",{on:{click:function(e){return t.resetForm("query")}}},[t._v("重置")])],1)],1)],1)],1)],1),t._v(" "),a("div",[a("div",{staticClass:"headerTop"},[a("span",{staticClass:"title"},[t._v("预算包列表")]),t._v(" "),a("div",[a("el-button",{attrs:{type:"primary"},on:{click:t.addClick}},[t._v("新增预算包")])],1)]),t._v(" "),a("div",[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{"header-cell-style":{background:"#FAFAFA"},data:t.listTable,align:"center",border:""}},[a("el-table-column",{attrs:{label:"#",fixed:"",align:"center",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.query.pageNumber-1)*t.query.pageSize+1))])]}}],null,!1,714878904)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"预算包名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.name||"-")+"\n ")]}}],null,!1,2174472855)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"预算包金额","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.amount||"-")+"\n ")]}}],null,!1,30546364)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"应用人数","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.relNum||0)+"\n ")]}}],null,!1,3815239520)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text"},on:{click:function(a){return t.applyClick(e.row)}}},[t._v("应用")]),t._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text"},on:{click:function(a){return t.editClick(e.row)}}},[t._v("编辑")]),t._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"text"},on:{click:function(a){return t.delClick(e.row)}}},[t._v("删除")])]}}],null,!1,1067666716)})],1),t._v(" "),a("div",{staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","current-page":t.query.pageNumber,"page-sizes":[10,30,50,100,200],"page-size":t.query.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.pageTotal},on:{"update:currentPage":function(e){return t.$set(t.query,"pageNumber",e)},"update:current-page":function(e){return t.$set(t.query,"pageNumber",e)},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)])]):t._e(),t._v(" "),a("el-dialog",{attrs:{title:t.title,visible:t.addVisible,width:"30%","close-on-press-escape":!1,"close-on-click-modal":!1,"before-close":t.addClose},on:{"update:visible":function(e){t.addVisible=e}}},[a("el-form",{ref:"add",attrs:{model:t.add,"label-width":"100px","label-position":"right","hide-required-asterisk":"",inline:!0}},[a("el-form-item",{attrs:{label:"预算包名称",prop:"name",rules:{required:!0,message:"请填写预算包名称",trigger:"blur"}}},[a("el-input",{staticStyle:{width:"400px"},attrs:{maxlength:"20","show-word-limit":"",clearable:"",placeholder:"输入预算包名称"},model:{value:t.add.name,callback:function(e){t.$set(t.add,"name",e)},expression:"add.name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"预算包金额",prop:"amount",rules:{required:!0,message:"请填写预算包金额",trigger:"blur"}}},[a("el-input-number",{staticStyle:{width:"300px"},attrs:{"controls-position":"right",min:1,max:1e8,precision:2},model:{value:t.add.amount,callback:function(e){t.$set(t.add,"amount",e)},expression:"add.amount"}})],1),t._v(" "),a("el-form-item",{attrs:{label:" "}},["新增预算包"==t.title?a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary"},on:{click:t.postAdd}},[t._v("确定")]):a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary"},on:{click:t.postSave}},[t._v("保存")]),t._v(" "),a("el-button",{on:{click:t.addClose}},[t._v("取消")])],1)],1)],1)],1)},c=[],s=(a("a450"),a("4355")),u={props:["show"],data:function(){return{addVisible:!1,title:"新增预算包",listLoading:!1,listTable:[],pageTotal:0,saveData:{},query:{name:"",pageNumber:1,pageSize:10},add:{name:"",amount:""}}},mounted:function(){this.getlistData()},methods:{getlistData:function(){var t=this;this.listLoading=!0,this.query.companyId=JSON.parse(localStorage.getItem("companyInfo")).osId,Object(s["h"])(this.query).then((function(e){0==e.code?(t.pageTotal=e.data.rowsCount,t.listTable=e.data.records,t.listLoading=!1):t.listLoading=!1})).catch((function(e){t.listLoading=!1}))},handleSizeChange:function(t){this.query.pageSize=t,this.query.pageNumber=1,this.getlistData()},handleCurrentChange:function(t){this.query.pageNumber=t,this.getlistData()},onSearch:function(){this.getlistData()},resetForm:function(t){this.$refs[t].resetFields(),this.onSearch()},addClick:function(){this.title="新增预算包",this.addVisible=!0},postAdd:function(){var t=this;this.$refs["add"].validate((function(e){if(e){var a=t.add;a.companyId=JSON.parse(localStorage.getItem("companyInfo")).osId,Object(s["c"])(a).then((function(e){0==e.code&&(t.$message({message:"添加成功",type:"success"}),t.addClose(),t.getlistData())}))}}))},addClose:function(){this.$refs["add"].resetFields(),this.addVisible=!1},delClick:function(t){var e=this;this.$confirm("此操作将删除该预算包, 是否继续?","删除",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(s["d"])({id:t.id}).then((function(t){0==t.code&&(e.$message({message:"删除成功!",type:"success"}),e.getlistData())}))})).catch((function(){}))},editClick:function(t){this.title="编辑预算包",this.saveData=JSON.parse(JSON.stringify(t)),this.add={name:this.saveData.name,amount:this.saveData.amount},this.$nextTick((function(){this.addVisible=!0}))},postSave:function(){var t=this;this.$refs["add"].validate((function(e){if(e){var a=t.add;a.companyId=t.saveData.companyId,a.id=t.saveData.id,Object(s["j"])(a).then((function(e){0==e.code&&(t.$message({message:"修改成功!",type:"success"}),t.addClose(),t.getlistData())}))}}))},applyClick:function(t){this.$emit("edit",t)}}},d=u,p=(a("4f21"),a("829d")),m=Object(p["a"])(d,l,c,!1,null,"544b382a",null),f=m.exports,h=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",[a("div",{staticClass:"searchBar"},[a("el-form",{ref:"query",attrs:{model:t.query}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{prop:"projectUuid"}},[a("el-select",{attrs:{placeholder:"请选择项目",clearable:"",filterable:""},model:{value:t.query.projectUuid,callback:function(e){t.$set(t.query,"projectUuid",e)},expression:"query.projectUuid"}},t._l(t.projectList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.uuid}})})),1)],1)],1),t._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{prop:"jobId"}},[a("el-select",{attrs:{placeholder:"请选择岗位",clearable:"",filterable:""},model:{value:t.query.jobId,callback:function(e){t.$set(t.query,"jobId",e)},expression:"query.jobId"}},t._l(t.jobList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1),t._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{prop:"memberName"}},[a("el-input",{attrs:{clearable:"",placeholder:"输入成员姓名"},model:{value:t.query.memberName,callback:function(e){t.$set(t.query,"memberName",e)},expression:"query.memberName"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"month",format:"yyyy-MM","value-format":"yyyy-MM",placeholder:"选择计算月份","picker-options":t.pickerOptions,clearable:!1},model:{value:t.query.month,callback:function(e){t.$set(t.query,"month",e)},expression:"query.month"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v("查询")]),t._v(" "),a("el-button",{on:{click:function(e){return t.resetForm("query")}}},[t._v("重置")])],1)],1)],1)],1)],1),t._v(" "),a("div",[a("div",{staticClass:"headerTop"},[a("span",{staticClass:"title"},[t._v("成员列表【"+t._s(t.query.month||"")+"】")]),t._v(" "),a("div",[a("el-button",{attrs:{type:"primary"},on:{click:t.exportClick}},[t._v("下载表格")]),t._v(" "),a("el-button",{attrs:{type:"primary",loading:t.syncBtn},on:{click:t.synchroClick}},[t._v("立即同步")])],1)]),t._v(" "),a("div",[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{"header-cell-style":{background:"#FAFAFA"},data:t.listTable,align:"center",border:""}},[a("el-table-column",{attrs:{label:"#",fixed:"",align:"center",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.query.pageNumber-1)*t.query.pageSize+1))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"项目名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.projectName||"-")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"岗位","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.jobName||"-")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"姓名","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.memberName||"-")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"员工价值"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.packageAmount>0?a("el-link",{attrs:{type:"primary"},on:{click:function(a){return t.valueClick(e.row)}}},[t._v(t._s(e.row.packageAmount||0))]):a("span",[t._v(t._s(e.row.packageAmount||0))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"云豆总值"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.totalAmount>0?a("el-link",{attrs:{type:"primary"},on:{click:t.pathClick}},[t._v(t._s(e.row.totalAmount||0))]):a("span",[t._v(t._s(e.row.totalAmount||0))])]}}])})],1),t._v(" "),a("div",{staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","current-page":t.query.pageNumber,"page-sizes":[10,30,50,100,200],"page-size":t.query.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.pageTotal},on:{"update:currentPage":function(e){return t.$set(t.query,"pageNumber",e)},"update:current-page":function(e){return t.$set(t.query,"pageNumber",e)},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)]),t._v(" "),a("el-dialog",{attrs:{title:"员工价值",visible:t.valueVisible,width:"50%","before-close":t.valueClose},on:{"update:visible":function(e){t.valueVisible=e}}},[a("el-table",{attrs:{"header-cell-style":{background:"#FAFAFA"},data:t.valueList,align:"center",border:"",height:"400"}},[a("el-table-column",{attrs:{label:"#",fixed:"",align:"center",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.query.pageNumber-1)*t.query.pageSize+1))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"预算包名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.packageName||"-")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"预算包金额","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.packageTotalAmount||0)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"员工云豆绩效","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.amount||0)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"总云豆绩效"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.totalAmount||0)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"员工价值"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.packageAmount||0)+"\n ")]}}])})],1),t._v(" "),a("div",{staticClass:"value-total"},[a("div",[t._v("合计")]),t._v(" "),a("div",[t._v(t._s(t.totalValue))])])],1)],1)])},b=[],g=(a("1bc7"),a("4057"),a("0b37")),v={props:{jobList:{type:Array,default:[]},projectList:{type:Array,default:[]}},data:function(){return{pickerOptions:{disabledDate:function(t){var e=new Date,a=e.getFullYear(),n=e.getMonth()-1+1;n>=1&&n<=9&&(n="0"+n);var r=a.toString()+n.toString(),o=t.getFullYear(),i=t.getMonth()+1;i>=1&&i<=9&&(i="0"+i);var l=o.toString()+i.toString();return l>r}},syncBtn:!1,listLoading:!1,listTable:[],pageTotal:0,query:{projectUuid:"",jobId:"",memberName:"",month:"",pageNumber:1,pageSize:10},valueVisible:!1,valueList:[],totalValue:0}},mounted:function(){this.getNowTime()},methods:{getNowTime:function(){var t=new Date,e=t.getFullYear(),a=t.getMonth()-1+1,n=a<10?"0"+a:a;this.query.month="".concat(e,"-").concat(n),this.getlistData()},getlistData:function(){var t=this;this.listLoading=!0,this.query.companyId=JSON.parse(localStorage.getItem("companyInfo")).osId,Object(s["g"])(this.query).then((function(e){0==e.code?(t.pageTotal=e.data.rowsCount,t.listTable=e.data.records,t.listLoading=!1):t.listLoading=!1})).catch((function(e){t.listLoading=!1}))},handleSizeChange:function(t){this.query.pageSize=t,this.query.pageNumber=1,this.getlistData()},handleCurrentChange:function(t){this.query.pageNumber=t,this.getlistData()},onSearch:function(){this.getlistData()},resetForm:function(t){this.$refs[t].resetFields(),this.getNowTime()},synchroClick:function(){var t=this;this.syncBtn=!0,Object(s["i"])({companyId:JSON.parse(localStorage.getItem("companyInfo")).osId}).then((function(e){0==e.code?(t.$message({message:"同步成功!",type:"success"}),t.syncBtn=!1,t.getlistData()):t.syncBtn=!1})).catch((function(e){t.syncBtn=!1}))},valueClick:function(t){var e=this,a={memberId:t.memberId,companyId:t.companyId,month:t.month};Object(s["k"])(a).then((function(t){if(t.data&&t.data.records.length>0){var a=0;t.data.records.forEach((function(t){a=Object(g["a"])(a,t.packageAmount)})),e.totalValue=a}e.valueList=t.data.records,e.valueVisible=!0}))},valueClose:function(){this.valueVisible=!1},pathClick:function(){this.$router.push("/personnelMerits/humanEffectManage")},exportClick:function(){Object(s["e"])({companyId:JSON.parse(localStorage.getItem("companyInfo")).osId,month:this.query.month}).then((function(t){var e=new Blob([t],{type:"application/vnd.ms-excel;charset=UTF-8"}),a=(new Date).valueOf();if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(e);else{var n=document.createElement("a");n.download="价值换算成员列表_".concat(a,".xls"),n.href=URL.createObjectURL(e),n.click(),URL.revokeObjectURL(n.href),document.body.removeChild(n)}}))}}},y=v,_=(a("9f72"),Object(p["a"])(y,h,b,!1,null,"72d1041f",null)),k=_.exports,S=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.show?a("div",[a("div",{staticStyle:{"margin-bottom":"30px"}},[a("el-page-header",{attrs:{content:t.title},on:{back:t.goBack}})],1),t._v(" "),t._m(0),t._v(" "),a("div",{staticClass:"addTop"},[a("el-descriptions",{attrs:{title:""}},[a("el-descriptions-item",{attrs:{label:"预算包名称"}},[t._v(t._s(t.infoData.name))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"预算包金额"}},[t._v(t._s(t.infoData.amount))])],1)],1),t._v(" "),t._m(1),t._v(" "),a("div",[a("div",{staticClass:"searchBar"},[a("el-form",{ref:"search",attrs:{model:t.search}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{prop:"projectUuid"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择项目",clearable:"",filterable:""},model:{value:t.search.projectUuid,callback:function(e){t.$set(t.search,"projectUuid",e)},expression:"search.projectUuid"}},t._l(t.projectList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.uuid}})})),1)],1)],1),t._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{prop:"postUuid"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择岗位",clearable:"",filterable:""},model:{value:t.search.postUuid,callback:function(e){t.$set(t.search,"postUuid",e)},expression:"search.postUuid"}},t._l(t.jobList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1),t._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{prop:"memberName"}},[a("el-input",{attrs:{clearable:"",placeholder:"成员姓名"},model:{value:t.search.memberName,callback:function(e){t.$set(t.search,"memberName",e)},expression:"search.memberName"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v("查询")]),t._v(" "),a("el-button",{on:{click:function(e){return t.resetForm("search")}}},[t._v("重置")])],1)],1)],1)],1)],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"userListTable",attrs:{"header-cell-style":{background:"#FAFAFA"},data:t.listTable,"row-key":"memberId",align:"center",border:""},on:{"selection-change":t.selectionList}},[a("el-table-column",{attrs:{type:"selection",align:"center",width:"55","reserve-selection":!0}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"项目名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.projectName||"-")+"\n ")]}}],null,!1,1126771618)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"岗位","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.postName||"-")+"\n ")]}}],null,!1,186658639)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"姓名","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.memberName||"-")+"\n ")]}}],null,!1,863771207)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"手机号码","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.phoneNumber||"-")+"\n ")]}}],null,!1,658344015)})],1),t._v(" "),a("div",{staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","current-page":t.pageNumber,"page-sizes":[10,30,50,100,200],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.pageTotal},on:{"update:currentPage":function(e){t.pageNumber=e},"update:current-page":function(e){t.pageNumber=e},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1),t._v(" "),a("div",{staticClass:"bottom-btn"},[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary"},on:{click:t.postClick}},[t._v("确定")]),t._v(" "),a("el-button",{on:{click:t.goBack}},[t._v("取消")])],1)]):t._e()},j=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"headerTop"},[a("span",{staticClass:"title"},[t._v("基础信息")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"headerTop"},[a("span",{staticClass:"title"},[t._v("应用成员")])])}],w=(a("d91d"),{props:{show:{type:Boolean,default:!1},jobList:{type:Array,default:[]},projectList:{type:Array,default:[]}},data:function(){return{title:"预算包应用",infoData:{},search:{projectUuid:"",postUuid:"",memberName:""},pageTotal:0,pageNumber:1,pageSize:10,listLoading:!1,listTable:[],selectList:[],defaultSelect:[]}},methods:{init:function(t){this.infoData=t,this.infoData.relNum&&this.infoData.relNum>0?this.getSelectList():this.getList()},getList:function(){var t=this;this.pageNumber=1,this.pageSize=10;var e=this.search;e.companyId=JSON.parse(window.localStorage.getItem("companyInfo")).osId,e.isStop=1,e.onJobState=1,e.pageNumber=-1,e.pageSize=-1,Object(s["a"])(e).then((function(e){t.saveTabel=e.data.records,t.listTable=t.saveTabel.slice(0,9),t.pageTotal=t.saveTabel.length,t.infoData.relNum&&t.infoData.relNum>0&&t.defaultSelect.forEach((function(e){t.$refs.userListTable.toggleRowSelection(e)}))}))},getSelectList:function(){var t=this;Object(s["f"])({packageId:this.infoData.id}).then((function(e){t.defaultSelect=e.data,t.getList()}))},onSearch:function(){this.search.pageNumber=1,this.getList()},resetForm:function(t){this.$refs[t].resetFields(),this.onSearch()},handleSizeChange:function(t){this.pageSize=t,this.pageNumber=1,this.listTable=this.saveTabel.slice(0,t-1)},handleCurrentChange:function(t){this.pageNumber=t,this.listTable=this.saveTabel.slice((t-1)*this.pageSize,(t-1)*this.pageSize+this.pageSize-1)},selectionList:function(t){this.selectList=t},postClick:function(){var t=this;if(this.selectList.length>0){var e={memberInfos:this.selectList,packageId:this.infoData.id};Object(s["b"])(e).then((function(e){0==e.code&&(t.$message({message:"预算包应用成功!",type:"success"}),t.$refs.userListTable.clearSelection(),t.callBack())}))}else this.$message({message:"请选择项目成员!",type:"warning"})},goBack:function(){this.$emit("back")},callBack:function(){this.$emit("callback")}}}),O=w,N=(a("aba5"),Object(p["a"])(O,S,j,!1,null,"16062a46",null)),L=N.exports,C={name:"valueManage",components:{packageManage:f,laborValue:k,packageAdd:L},data:function(){return{list:!0,addModel:!1,activeName:"value",jobList:[],projectList:[]}},mounted:function(){this.getJobList(),this.getProjectInfo()},methods:{handleClick:function(t){var e=t.paneName;this.activeName=e},getJobList:function(){var t=this;Object(o["n"])({}).then((function(e){e.data.length>0?t.jobList=e.data:t.jobList=[]})).catch((function(t){console.log(t)}))},getProjectInfo:function(){var t=this,e=JSON.parse(window.localStorage.getItem("companyInfo")).osId;Object(i["j"])({id:e,attribute:1}).then((function(e){0===e.code&&e.data?t.projectList=e.data:t.projectList=[]}))},editClick:function(t){this.list=!1,this.addModel=!0,this.$nextTick((function(){this.$refs.package.init(t)}))},back:function(){this.list=!0,this.addModel=!1},backCall:function(){this.back(),this.$refs.packageManage.getlistData()}}},q=C,x=(a("fd7f"),Object(p["a"])(q,n,r,!1,null,null,null));e["default"]=x.exports},4355:function(t,e,a){"use strict";a.d(e,"c",(function(){return r})),a.d(e,"d",(function(){return o})),a.d(e,"j",(function(){return i})),a.d(e,"h",(function(){return l})),a.d(e,"a",(function(){return c})),a.d(e,"b",(function(){return s})),a.d(e,"f",(function(){return u})),a.d(e,"g",(function(){return d})),a.d(e,"k",(function(){return p})),a.d(e,"i",(function(){return m})),a.d(e,"e",(function(){return f}));var n=a("b775");function r(t){return Object(n["a"])({url:"/hakocompany/MeritsBudgetPackage/create",method:"post",data:t})}function o(t){return Object(n["a"])({url:"/hakocompany/MeritsBudgetPackage/delete",method:"post",data:t})}function i(t){return Object(n["a"])({url:"/hakocompany/MeritsBudgetPackage/update",method:"post",data:t})}function l(t){return Object(n["a"])({url:"/hakocompany/MeritsBudgetPackage/pageList",method:"post",data:t})}function c(t){return Object(n["a"])({url:"/company/member/companyMemberPage",method:"post",data:t})}function s(t){return Object(n["a"])({url:"/hakocompany/MeritsPackageMemberRel/create",method:"post",data:t})}function u(t){return Object(n["a"])({url:"/hakocompany/MeritsPackageMemberRel/listByPackageId",method:"post",data:t})}function d(t){return Object(n["a"])({url:"/hakocompany/MeritsBudgetPackageStatistics/pageByMonth",method:"post",data:t})}function p(t){return Object(n["a"])({url:"/hakocompany/MeritsBudgetPackageStatistics/pageList",method:"post",data:t})}function m(t){return Object(n["a"])({url:"/hakocompany/MeritsBudgetPackageStatistics/statistics",method:"post",data:t})}function f(t){return Object(n["a"])({url:"/hakocompany/MeritsBudgetPackageStatistics/exportByMonth",method:"post",data:t,responseType:"blob"})}},4513:function(t,e,a){"use strict";a.d(e,"v",(function(){return r})),a.d(e,"w",(function(){return o})),a.d(e,"x",(function(){return i})),a.d(e,"l",(function(){return l})),a.d(e,"t",(function(){return c})),a.d(e,"j",(function(){return s})),a.d(e,"o",(function(){return u})),a.d(e,"u",(function(){return d})),a.d(e,"b",(function(){return p})),a.d(e,"p",(function(){return m})),a.d(e,"D",(function(){return f})),a.d(e,"B",(function(){return h})),a.d(e,"q",(function(){return b})),a.d(e,"c",(function(){return g})),a.d(e,"s",(function(){return v})),a.d(e,"i",(function(){return y})),a.d(e,"n",(function(){return _})),a.d(e,"a",(function(){return k})),a.d(e,"g",(function(){return S})),a.d(e,"d",(function(){return j})),a.d(e,"f",(function(){return w})),a.d(e,"C",(function(){return O})),a.d(e,"m",(function(){return N})),a.d(e,"y",(function(){return L})),a.d(e,"r",(function(){return C})),a.d(e,"e",(function(){return q})),a.d(e,"z",(function(){return x})),a.d(e,"A",(function(){return I})),a.d(e,"h",(function(){return $})),a.d(e,"k",(function(){return T}));var n=a("b775");function r(){return Object(n["a"])({url:"/company/organizationalStructure/updateOrgnization",method:"post"})}function o(t){return Object(n["a"])({url:"/company/organizationalStructure/findOsTree",method:"post",data:t})}function i(t){return Object(n["a"])({url:"/company/organizationalStructure/findOsTreeV2",method:"post",data:t})}function l(t){return Object(n["a"])({url:"/company/OrganizationRoleRel/findProjectByRoleIdAndParent",method:"post",data:t})}function c(t){return Object(n["a"])({url:"/company/member/pageListByCompanyId",method:"post",data:t})}function s(t){return Object(n["a"])({url:"/company/member/findByProjectUuidAndJobUuid",method:"post",data:t})}function u(t){return Object(n["a"])({url:"/company/member/getList",method:"post",data:t})}function d(t){return Object(n["a"])({url:"/company/organizationalStructure/findOsPathList",method:"post",data:t})}function p(t){return Object(n["a"])({url:"/company/member/create",method:"post",data:t})}function m(t){return Object(n["a"])({url:"/company/member/findById",method:"post",data:t})}function f(t){return Object(n["a"])({url:"/company/member/update",method:"post",data:t})}function h(t){return Object(n["a"])({url:"/company/member/suspendMember",method:"post",data:t})}function b(t){return Object(n["a"])({url:"/enterprise/os/memberQuit/".concat(t.memberUuid),method:"post"})}function g(t){return Object(n["a"])({url:"/company/organizationalStructure/create",method:"post",data:t})}function v(t){return Object(n["a"])({url:"/company/organizationalStructure/update",method:"post",data:t})}function y(t){return Object(n["a"])({url:"/company/member/findByProjectUuid",method:"post",data:t})}function _(t){return Object(n["a"])({url:"/hakocompany/Job/getJobList",method:"post",data:t})}function k(t){return Object(n["a"])({url:"/company/member/ChangeDepartment",method:"post",data:t})}function S(t){return Object(n["a"])({url:"/hakocompany/Role/pageList",method:"post",data:t})}function j(t){return Object(n["a"])({url:"/hakocompany/MemberRoleRel/create",method:"post",data:t})}function w(t){return Object(n["a"])({url:"/hakocompany/MemberRoleRel/findByMemberId",method:"post",data:t})}function O(t){return Object(n["a"])({url:"/hakocompany/MemberRoleRel/update",method:"post",data:t})}function N(t){return Object(n["a"])({url:"/company/member/getList",method:"POST",data:t})}function L(t){return Object(n["a"])({url:"/company/member/queryByStaff",method:"POST",data:t})}function C(t){return Object(n["a"])({url:"/company/member/memberQuit",method:"POST",data:t})}function q(t){return Object(n["a"])({url:"/company/organizationalStructure/delete",method:"POST",data:t})}function x(t){return Object(n["a"])({url:"/hakocompany/Space/queryInitData",method:"POST",data:t})}function I(t){return Object(n["a"])({url:"/hakocompany/Space/queryList",method:"POST",data:t})}function $(t){return Object(n["a"])({url:"/hakocompany/Space/findByProId",method:"POST",data:t})}function T(t){return Object(n["a"])({url:"/company/organizationalStructure/findOSListByRoleId",method:"POST",data:t})}},"4f21":function(t,e,a){"use strict";a("1248")},"67d5":function(t,e,a){"use strict";a.d(e,"i",(function(){return r})),a.d(e,"j",(function(){return o})),a.d(e,"f",(function(){return i})),a.d(e,"b",(function(){return l})),a.d(e,"c",(function(){return c})),a.d(e,"k",(function(){return s})),a.d(e,"e",(function(){return u})),a.d(e,"d",(function(){return d})),a.d(e,"h",(function(){return p})),a.d(e,"a",(function(){return m})),a.d(e,"g",(function(){return f}));var n=a("b775");function r(t){return Object(n["a"])({url:"/hakocompany/Role/pageList",method:"post",data:t})}function o(t){return Object(n["a"])({url:"/company/organizationalStructure/selectOsList",method:"post",data:t})}function i(t){return Object(n["a"])({url:"/company/organizationalStructure/findOsTree",method:"post",data:t})}function l(t){return Object(n["a"])({url:"/hakocompany/Role/create",method:"post",data:t})}function c(t){return Object(n["a"])({url:"/hakocompany/Role/delete",method:"post",data:t})}function s(t){return Object(n["a"])({url:"/hakocompany/Role/update",method:"post",data:t})}function u(t){return Object(n["a"])({url:"/hakocompany/RoleMenuRel/findByRoleIdAndClienId",method:"post",data:t})}function d(t){return Object(n["a"])({url:"/hakocompany/OrganizationRoleRel/findByRoleId",method:"post",data:t})}function p(t){return Object(n["a"])({url:"/company/member/pageListForRole",method:"post",data:t})}function m(t){return Object(n["a"])({url:"/company/MemberRoleRel/batchDelete",method:"post",data:t})}function f(t){return Object(n["a"])({url:"/hakocompany/account/findProjectByRole",method:"post",data:t})}},"76fa":function(t,e,a){},"9f72":function(t,e,a){"use strict";a("13c3")},aba5:function(t,e,a){"use strict";a("76fa")},cbad:function(t,e,a){},fd7f:function(t,e,a){"use strict";a("cbad")}}]); |