yxk_pc_mdh/gyhl/static/js/340.3151e56a998ff42d1155.js

1 line
11 KiB
JavaScript
Raw Normal View History

2025-08-28 15:26:35 +08:00
webpackJsonp([340],{"0jG6":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("BO1k"),l=a.n(s),o=a("d7EF"),i=a.n(o),n=a("//Fk"),r=a.n(n),c=a("Dd8w"),p=a.n(c),h=a("mvHQ"),d=a.n(h),u=a("NYxO"),m=(a("t4zo"),a("bzuE")),f={data:function(){return{total:0,pageSizes:[10,20,50],search_data:{pageno:1,pagesize:10,employmentState:332},value:"",selectDeptId1:"",accountNumberList:[],settlementTypeList:[],tableData:[],rowIds:[],prDate:"",auditSignList:[],businessTypeList:[],companyList:[],createByList:[],depOptions:[],formData:{deptId:null},selectDeptId:"",config:m.a,btnDelDisabled:!0,btnOtherDisabled:!0,dialogLoading:!1,columnSetDialogVisible:!1,columnSetDialogTitle:"设置显示字段列表",tableId:"retire_table",pictLoading:!1,showTableColumnsDefault:[{title:"工号",prop_:"employeeCode",select:!0},{title:"姓名",prop_:"employeeName",select:!0},{title:"职级",prop_:"employeeLevel",select:!0},{title:"任职部门",prop_:"deptName",select:!0},{title:"岗位",prop_:"employeePostName",select:!0},{title:"退休时间",prop_:"retireDate",select:!0},{title:"联系电话",prop_:"mobilePhone",select:!0},{title:"用工状态",prop_:"employmentStateName",select:!0}],showTableColumns:[{title:"工号",prop_:"employeeCode",select:!0},{title:"姓名",prop_:"employeeName",select:!0},{title:"职级",prop_:"employeeLevel",select:!0},{title:"任职部门",prop_:"deptName",select:!0},{title:"岗位",prop_:"employeePostName",select:!0},{title:"退休时间",prop_:"retireDate",select:!0},{title:"联系电话",prop_:"mobilePhone",select:!0},{title:"用工状态",prop_:"employmentStateName",select:!0}],showTableColumnsTemp:[],formTableData:[],totalTransferAmount:0}},computed:{},mounted:function(){this.showTableColumns=JSON.parse(d()(this.showTableColumns)),this.showTableColumnsTemp=JSON.parse(d()(this.showTableColumns)),this.initData(),this.getList(),this.getShowColumns()},methods:p()({},Object(u.d)({removeTagNav:"tagNav/removeTagNav"}),{viewDetail:function(e){var t=e.id,a=e.employeeName,s=e.employeeCode,l=e.deptName;this.$router.push({path:"/staffManagement/jobbing_add",query:{id:t,name:a,code:s,deptName:l,from:"retire",t:Date.now()}})},edit:function(){console.log(this.rowIds[0]);var e=this.rowIds[0].id,t=this.rowIds[0].employeeName,a=this.rowIds[0].employeeCode,s=this.rowIds[0].deptName;this.$router.push({path:"/staffManagement/jobbing_add",query:{id:e,name:t,code:a,deptName:s,t:Date.now()}})},search:function(){this.search_data.pageno=1,this.getList()},getList:function(){var e=this;this.pictLoading=!0,this.$api.jobbingAPI.pageList(this.search_data).then(function(t){e.pictLoading=!1,t.data?(e.total=t.data.totalRows,e.tableData=t.data.datas?t.data.datas:[]):(e.total=0,e.tableData=[])}).catch(function(e){console.log(e)})},goAdd:function(e){this.$router.push({path:"/staffManagement/jobbing_add",query:{t:Date.now()}})},setDefaultDept:function(){if(this.depOptions.length>0&&this.search_data.deptId){var e=d()(this.search_data.deptId),t=this.treeFindPath(this.depOptions,function(t){return t.id===e});this.selectDeptId=JSON.parse(d()(t))}},handleChange:function(e){this.search_data.deptId=e[e.length-1],this.selectDeptId=e},initData:function(){var e=this;r.a.all([this.$api.dictAPI.getDictsByType("device_type"),this.$api.commonAPI.getDeptsTree(),this.$api.dictAPI.getDictsByType("device_status")]).then(function(t){var a=i()(t,3),s=a[0],l=a[1],o=a[2];0===s.code&&(e.typeList=s.datas),0===o.code&&(console.log(o),e.usingList=o.datas),0===l.code&&(e.depOptions=l.data.children,e.setDeptList(e.depOptions),e.setDefaultDept())}).catch(function(e){console.log(e)})},setDeptList:function(e){var t=!0,a=!1,s=void 0;try{for(var o,i=l()(e);!(t=(o=i.next()).done);t=!0){var n=o.value;n.hasChildren?this.setDeptList(n.children):n.children=void 0}}catch(e){a=!0,s=e}finally{try{!t&&i.return&&i.return()}finally{if(a)throw s}}},handleSelectionChange:function(e){console.log(e),this.rowIds=e,this.setBtn(e)},handleSizeChange:function(e){this.search_data.pagesize=e,this.getList()},handleCurrentChange:function(e){this.search_data.pageno=e,this.getList()},set