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