import{n as w,f as d,r as o,o as x,L as S}from"./index.9d8a3e8d.js";import{u as L}from"./composables.2846c723.js";import{L as k}from"./LJWWData.05f5d8d0.js";import{E as C}from"./constant.c8c783ba.js";const D="/assets/img_xinzgl-1.38307604.png";const T={__name:"payrollFileListViews",setup(v){const e=L(),t=d({switch:0,limit:99,offset:0,ordering:"-id"});let a=o([]);const s=C,n=d({total_count:0,not_have_salary_count:0,have_salary_count:0}),l=o([]),u=o(!0),r=o(!0),c=o(!0);x(()=>{r.value=!0,p()});function p(){r.value=!0,HTTP.get("get_salary_file_list",t).then(i=>{l.value=i.data.not_have_team?i.data.not_have_team.split(","):[],n.total_count=i.data.total_count_member,n.have_salary_count=i.data.have_salary_count,n.not_have_salary_count=i.data.not_have_salary_count,a.value=i.data.list.map(_=>(_.is_include_leader=!0,_.is_expand=!0,_)),a.value.length>0?c.value=!0:c.value=!1}).finally(()=>{setTimeout(()=>r.value=!1,500)})}function h(){e.push({path:"/finances/financesHome/payrollFileCreateRule",query:{}})}function y(i){console.log(i),e.push({path:"/finances/financesHome/payrollFileCreateTemplate",query:{team_id:i.team_id,include_leader:i.is_include_leader?1:0}})}function b(i){e.push({path:"/finances/financesHome/payrollFileCreatePersonal",query:{member_id:i.member_id}})}function g(){e.push({path:"/personnelRoot/teamDivision/teamDivisionViews"})}return{__sfc:!0,router:e,filter:t,tableData:a,employeeStatus:s,staticsData:n,teamList:l,isShowNotSetNumber:u,loading:r,showTip:c,getList:p,addRule:h,batSetting:y,addTemplate:b,goTeam:g,LJTableHeader:S,LJWWData:k}}};var m=function(){var e=this,t=e._self._c,a=e._self._setupProxy;return t("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?t("div",{staticClass:"top-info"},[a.teamList.length?t("div",{staticClass:"info"},[e._l(a.teamList.slice(0,1),function(s,n){return t(a.LJWWData,{key:n,staticStyle:{display:"inline-block"},attrs:{type:2,openid:s}})}),a.teamList.length>1?t("span",[e._v("...\u7B49"+e._s(a.teamList.length)+"\u4EBA")]):e._e(),e._v(" \u672A\u5339\u914D\u56E2\u961F\uFF0C\u8BF7\u5148\u5339\u914D\u56E2\u961F "),t("span",{staticClass:"btn",on:{click:a.goTeam}},[e._v("\u524D\u5F80\u914D\u7F6E")])],2):e._e(),a.isShowNotSetNumber&&a.staticsData.not_have_salary_count?t("div",{staticClass:"info"},[e._v(" \u5269\u4F59"+e._s(a.staticsData.not_have_salary_count)+"\u4EBA\u672A\u8BBE\u7F6E\u85AA\u8D44\u6863\u6848 "),t("i",{staticClass:"el-icon-close",on:{click:function(s){a.isShowNotSetNumber=!1}}})]):e._e()]):e._e(),t("div",{staticClass:"search-top"},[t(a.LJTableHeader,{attrs:{dropdown:!1,search:!1,"search-placeholder":"\u6A21\u677F\u540D\u79F0/\u90E8\u95E8/\u4EBA\u5458"},model:{value:a.filter.search,callback:function(s){e.$set(a.filter,"search",s)},expression:"filter.search"}},[t("template",{slot:"left"},[t("el-radio-group",{on:{change:a.getList},model:{value:a.filter.switch,callback:function(s){e.$set(a.filter,"switch",s)},expression:"filter.switch"}},[t("el-radio",{attrs:{label:0}},[e._v("\u5168\u90E8\u4EBA\u6570("+e._s(a.staticsData.total_count)+") ")]),t("el-radio",{attrs:{label:1}},[e._v("\u5DF2\u8BBE\u7F6E\u4EBA\u6570("+e._s(a.staticsData.have_salary_count)+") ")]),t("el-radio",{attrs:{label:2}},[e._v("\u672A\u8BBE\u7F6E\u4EBA\u6570("+e._s(a.staticsData.not_have_salary_count)+") ")])],1)],1),t("template",{slot:"right"},[t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:62303,expression:"62303"}],attrs:{type:"primary"},on:{click:a.addRule}},[e._v("\u8003\u52E4\u89C4\u5219\u914D\u7F6E")])],1)],2)],1),e._l(a.tableData,function(s,n){return a.showTip?t("div",{key:n,staticClass:"table-list"},[t("div",{staticClass:"table-btn-con"},[t("div",{staticClass:"left-con"},[e._v(" "+e._s(s.team_name)+" "),t("i",{class:s.is_expand?"el-icon-caret-top":"el-icon-caret-bottom",staticStyle:{color:"#265cf0","font-size":"16px"},on:{click:function(l){s.is_expand=!s.is_expand}}})]),t("div",{staticClass:"right-con"},[t("el-checkbox",{model:{value:s.is_include_leader,callback:function(l){e.$set(s,"is_include_leader",l)},expression:"table.is_include_leader"}},[e._v("\u5305\u542B\u8D1F\u8D23\u4EBA ")]),t("el-button",{attrs:{type:"primary",size:"small",plain:""},on:{click:function(l){return a.batSetting(s)}}},[e._v("\u6279\u91CF\u8BBE\u7F6E ")])],1)]),s.is_expand?t("el-table",{staticStyle:{width:"100%"},attrs:{data:s.members.filter(l=>s.is_include_leader||!l.is_leader),"header-cell-style":{background:"#F6FAFF"}}},[t("el-table-column",{attrs:{prop:"member_id",label:"ID",width:"60"}}),t("el-table-column",{attrs:{prop:"id",label:"\u59D3\u540D"},scopedSlots:e._u([{key:"default",fn:function({row:l}){return[t(a.LJWWData,{attrs:{type:2,openid:l.member_name}})]}}],null,!0)}),t("el-table-column",{attrs:{prop:"member_status",label:"\u5458\u5DE5\u72B6\u6001"},scopedSlots:e._u([{key:"default",fn:function({row:l}){return[e._v(" "+e._s(a.employeeStatus[l.status])+" ")]}}],null,!0)}),t("el-table-column",{attrs:{prop:"dept",label:"\u804C\u4F4D"},scopedSlots:e._u([{key:"default",fn:function({row:l}){return[e._v(" "+e._s(l.is_leader?"\u8D1F\u8D23\u4EBA":"\u6210\u5458")+" ")]}}],null,!0)}),t("el-table-column",{attrs:{prop:"position",label:"\u804C\u4F4D"}}),t("el-table-column",{attrs:{prop:"address",label:"\u5DE5\u4F5C\u5730\u70B9"}}),t("el-table-column",{attrs:{prop:"employment_form",label:"\u8058\u7528\u5F62\u5F0F"}}),t("el-table-column",{attrs:{prop:"informal_type",label:"\u975E\u6B63\u5F0F\u7C7B\u578B",width:"100"}}),t("el-table-column",{attrs:{prop:"address",fixed:"right",label:"\u64CD\u4F5C",width:"90"},scopedSlots:e._u([{key:"default",fn:function(l){return[t("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(u){return a.addTemplate(l.row)}}},[e._v(e._s(l.row.is_config_salary?"\u8BBE\u7F6E":"\u9996\u6B21\u8BBE\u7F6E")+" ")])]}}],null,!0)})],1):e._e()],1):e._e()}),a.showTip?e._e():t("div",{staticClass:"guide"},[t("img",{attrs:{src:D,alt:""}}),t("div",{staticStyle:{"margin-top":"15px","font-size":"16px",color:"#919398"}},[e._v(" \u6BCF\u4E2A\u4EBA\u7684\u85AA\u8D44\u6863\u6848\u90FD\u5728\u8FD9\u91CC ")])])],2)},F=[];m._withStripped=!0;var f=w(T,m,F,!1,null,"1e2e49a5",null,null);f.options.__file="E:/\u5341\u4E8C\u79D1\u6280/\u9879\u76EE/\u4E5D\u53F7\u540C\u4E8B/salary-management-web/src/views/finance/salarys/payrollFileListViews.vue";const R=f.exports;export{R as default};