| 1 |
- System.register(["./vendor-legacy-b96de472.js","./index-legacy-41fa6794.js","./LJWWData-legacy-420c4c4a.js","./constant-legacy-f9099b4c.js","./LJWWData.vue_vue_type_style_index_0_scoped_1870765c_lang-legacy-38258497.js"],(function(t,e){"use strict";var a,l,n,i,o,s,r,c,d=document.createElement("style");return d.textContent=".clue-times[data-v-2101b81a]{background-color:#fff;padding:15px;border-radius:8px}.top-info[data-v-2101b81a]{position:absolute;top:4px;left:50%;transform:translate(-40%);z-index:2;font-size:12px;line-height:38px;border-radius:2px;text-align:center}.top-info .info[data-v-2101b81a]{display:inline-block;color:#ff0015;background:rgb(255,230,232);margin-top:5px;padding:0 15px}.top-info .info .el-icon-close[data-v-2101b81a]{margin-left:15px;font-size:15px;color:#333;cursor:pointer}.top-info .lj-ww-data[data-v-2101b81a]{display:inline-block;color:#ff0015}.top-info .btn[data-v-2101b81a]{display:inline-block;line-height:22px;padding:0 10px;margin-left:15px;background:#ff0015;border-radius:4px;color:#fff;cursor:pointer}.top-info .btn[data-v-2101b81a]:hover{opacity:.8}.table-list[data-v-2101b81a]{margin-top:20px}.table-list .guide[data-v-2101b81a]{width:100%;display:flex;flex-direction:column;align-items:center;margin:150px auto 0}.table-btn-con[data-v-2101b81a]{display:flex;padding:10px 0;align-items:center}.table-btn-con .left-con[data-v-2101b81a]{font-size:15px}.table-btn-con .right-con[data-v-2101b81a]{margin-left:auto}.table-btn-con .right-con .el-checkbox[data-v-2101b81a]{margin-right:15px}[data-v-2101b81a] .el-dialog__body{padding:0 20px}[data-v-2101b81a] .el-table__body tr:hover>td{background-color:#f6faff!important}\n",document.head.appendChild(d),{setters:[function(t){a=t.u,l=t.i,n=t.r,i=t.o},function(t){o=t.n,s=t.L},function(t){r=t.L},function(t){c=t.E},function(){}],execute:function(){t("default",o({__name:"payrollFileListViews",setup:function(t){var e=a(),o=l({switch:0,limit:99,offset:0,ordering:"-id"}),d=n([]),u=c,p=l({total_count:0,not_have_salary_count:0,have_salary_count:0}),_=n([]),f=n(!0),b=n(!0),m=n(!0);function v(){b.value=!0,HTTP.get("get_salary_file_list",o).then((function(t){_.value=t.data.not_have_team?t.data.not_have_team.split(","):[],p.total_count=t.data.total_count_member,p.have_salary_count=t.data.have_salary_count,p.not_have_salary_count=t.data.not_have_salary_count,d.value=t.data.list.map((function(t){return t.is_include_leader=!0,t.is_expand=!0,t})),d.value.length>0?m.value=!0:m.value=!1})).finally((function(){setTimeout((function(){return b.value=!1}),500)}))}return i((function(){b.value=!0,v()})),{__sfc:!0,router:e,filter:o,tableData:d,employeeStatus:u,staticsData:p,teamList:_,isShowNotSetNumber:f,loading:b,showTip:m,getList:v,addRule:function(){e.push({path:"/finances/financesHome/payrollFileCreateRule",query:{}})},batSetting:function(t){console.log(t),e.push({path:"/finances/financesHome/payrollFileCreateTemplate",query:{team_id:t.team_id,include_leader:t.is_include_leader?1:0}})},addTemplate:function(t){e.push({path:"/finances/financesHome/payrollFileCreatePersonal",query:{member_id:t.member_id}})},goTeam:function(){e.push({path:"/personnelRoot/teamDivision/teamDivisionViews"})},LJTableHeader:s,LJWWData:r}}},(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:a.loading,expression:"loading"}],staticClass:"clue-times",staticStyle:{"padding-bottom":"20px"}},[a.isShowNotSetNumber&&a.staticsData.not_have_salary_count||a.teamList.length?e("div",{staticClass:"top-info"},[a.teamList.length?e("div",{staticClass:"info"},[t._l(a.teamList.slice(0,1),(function(t,l){return e(a.LJWWData,{key:l,staticStyle:{display:"inline-block"},attrs:{type:2,openid:t}})})),a.teamList.length>1?e("span",[t._v("...等"+t._s(a.teamList.length)+"人")]):t._e(),t._v(" 未匹配团队,请先匹配团队 "),e("span",{staticClass:"btn",on:{click:a.goTeam}},[t._v("前往配置")])],2):t._e(),a.isShowNotSetNumber&&a.staticsData.not_have_salary_count?e("div",{staticClass:"info"},[t._v(" 剩余"+t._s(a.staticsData.not_have_salary_count)+"人未设置薪资档案 "),e("i",{staticClass:"el-icon-close",on:{click:function(t){a.isShowNotSetNumber=!1}}})]):t._e()]):t._e(),e("div",{staticClass:"search-top"},[e(a.LJTableHeader,{attrs:{dropdown:!1,search:!1,"search-placeholder":"模板名称/部门/人员"},model:{value:a.filter.search,callback:function(e){t.$set(a.filter,"search",e)},expression:"filter.search"}},[e("template",{slot:"left"},[e("el-radio-group",{on:{change:a.getList},model:{value:a.filter.switch,callback:function(e){t.$set(a.filter,"switch",e)},expression:"filter.switch"}},[e("el-radio",{attrs:{label:0}},[t._v("全部人数("+t._s(a.staticsData.total_count)+") ")]),e("el-radio",{attrs:{label:1}},[t._v("已设置人数("+t._s(a.staticsData.have_salary_count)+") ")]),e("el-radio",{attrs:{label:2}},[t._v("未设置人数("+t._s(a.staticsData.not_have_salary_count)+") ")])],1)],1),e("template",{slot:"right"},[e("el-button",{directives:[{name:"permission",rawName:"v-permission",value:62303,expression:"62303"}],attrs:{type:"primary"},on:{click:a.addRule}},[t._v("考勤规则配置")])],1)],2)],1),t._l(a.tableData,(function(l,n){return a.showTip?e("div",{key:n,staticClass:"table-list"},[e("div",{staticClass:"table-btn-con"},[e("div",{staticClass:"left-con"},[t._v(" "+t._s(l.team_name)+" "),e("i",{class:l.is_expand?"el-icon-caret-top":"el-icon-caret-bottom",staticStyle:{color:"#265cf0","font-size":"16px"},on:{click:function(t){l.is_expand=!l.is_expand}}})]),e("div",{staticClass:"right-con"},[e("el-checkbox",{model:{value:l.is_include_leader,callback:function(e){t.$set(l,"is_include_leader",e)},expression:"table.is_include_leader"}},[t._v("包含负责人 ")]),e("el-button",{attrs:{type:"primary",size:"small",plain:""},on:{click:function(t){return a.batSetting(l)}}},[t._v("批量设置 ")])],1)]),l.is_expand?e("el-table",{staticStyle:{width:"100%"},attrs:{data:l.members.filter((function(t){return l.is_include_leader||!t.is_leader})),"header-cell-style":{background:"#F6FAFF"}}},[e("el-table-column",{attrs:{prop:"member_id",label:"ID",width:"60"}}),e("el-table-column",{attrs:{prop:"id",label:"姓名"},scopedSlots:t._u([{key:"default",fn:function(t){var l=t.row;return[e(a.LJWWData,{attrs:{type:2,openid:l.member_name}})]}}],null,!0)}),e("el-table-column",{attrs:{prop:"member_status",label:"员工状态"},scopedSlots:t._u([{key:"default",fn:function(e){var l=e.row;return[t._v(" "+t._s(a.employeeStatus[l.status])+" ")]}}],null,!0)}),e("el-table-column",{attrs:{prop:"dept",label:"职位"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(a.is_leader?"负责人":"成员")+" ")]}}],null,!0)}),e("el-table-column",{attrs:{prop:"position",label:"职位"}}),e("el-table-column",{attrs:{prop:"address",label:"工作地点"}}),e("el-table-column",{attrs:{prop:"employment_form",label:"聘用形式"}}),e("el-table-column",{attrs:{prop:"informal_type",label:"非正式类型",width:"100"}}),e("el-table-column",{attrs:{prop:"address",fixed:"right",label:"操作",width:"90"},scopedSlots:t._u([{key:"default",fn:function(l){return[e("el-button",{directives:[{name:"permission",rawName:"v-permission",value:[62304,62305],expression:"[62304, 62305]"}],style:{color:l.row.is_config_salary?"#1651EE":"#E10D30"},attrs:{type:"text"},on:{click:function(t){return a.addTemplate(l.row)}}},[t._v(t._s(l.row.is_config_salary?"设置":"首次设置")+" ")])]}}],null,!0)})],1):t._e()],1):t._e()})),a.showTip?t._e():e("div",{staticClass:"guide"},[e("img",{attrs:{src:"/png/img_xinzgl-1-38307604.png",alt:""}}),e("div",{staticStyle:{"margin-top":"15px","font-size":"16px",color:"#919398"}},[t._v(" 每个人的薪资档案都在这里 ")])])],2)}),[],!1,null,"2101b81a",null,null).exports)}}}));
|