yxk_pc_mdh/gyhl/static/js/392.90039f9616d4fe197396.js

1 line
14 KiB
JavaScript
Raw Normal View History

2025-08-28 15:26:35 +08:00
webpackJsonp([392],{"7XKo":function(e,t){},tS93:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("BO1k"),o=a.n(s),l=a("d7EF"),i=a.n(l),n=a("//Fk"),r=a.n(n),c=a("mvHQ"),p=a.n(c),u=a("Dd8w"),h=a.n(u),d=a("bOdI"),m=a.n(d),f=a("NYxO"),g=(a("t4zo"),a("bzuE")),b=a("Dod7"),v={data:function(){var e;return e={total:0,pageSizes:[10,20,50],search_data:{pageno:1,pagesize:10,employmentState:331},value:"",accountNumberList:[],settlementTypeList:[],tableData:[],rowIds:[],prDate:"",dialogTitle:"",auditSignList:[],businessTypeList:[],companyList:[],createByList:[],formData:{},uploadAttachment:[],fileDocList:[],uploadUrl:b.a.uploadUrl,auto_upload:!1,fullscreenLoading:!1},m()(e,"dialogTitle",""),m()(e,"selectDeptId",""),m()(e,"depOptions",[]),m()(e,"config",g.a),m()(e,"btnDelDisabled",!0),m()(e,"btnOtherDisabled",!0),m()(e,"chooseClientrVisible",!1),m()(e,"dialogLoading",!1),m()(e,"chooseUserVisible",!1),m()(e,"chooseMaterielVisible",!1),m()(e,"columnSetDialogVisible",!1),m()(e,"advanceQueryDialogVisible",!1),m()(e,"chooseSupplierVisible",!1),m()(e,"columnSetDialogTitle","设置显示字段列表"),m()(e,"tableId","jobbing_table"),m()(e,"pictLoading",!1),m()(e,"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_:"entryDate",select:!0},{title:"联系电话",prop_:"mobilePhone",select:!0},{title:"用工状态",prop_:"employmentStateName",select:!0}]),m()(e,"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_:"entryDate",select:!0},{title:"联系电话",prop_:"mobilePhone",select:!0},{title:"用工状态",prop_:"employmentStateName",select:!0}]),m()(e,"showTableColumnsTemp",[]),m()(e,"formTableData",[]),m()(e,"totalTransferAmount",0),e},computed:h()({},Object(f.c)({userInfo:"user/getUserInfo"})),mounted:function(){this.showTableColumns=JSON.parse(p()(this.showTableColumns)),this.showTableColumnsTemp=JSON.parse(p()(this.showTableColumns)),this.initData(),this.getList(),this.getShowColumns()},methods:{viewDetail:function(e){var t=e.id,a=e.employeeName,s=e.employeeCode,o=e.deptName;this.$router.push({path:"/staffManagement/jobbing_add",query:{id:t,name:a,code:s,deptName:o,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.tableData.forEach(function(e){e.transferDate=/\d{4}-\d{1,2}-\d{1,2}/g.exec(e.transferDate)})):(e.total=0,e.tableData=[])}).catch(function(e){console.log(e)})},goAdd:function(){this.$router.push({path:"/staffManagement/jobbing_add",query:{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()}})},setDefaultDept:function(){if(this.depOptions.length>0&&this.search_data.deptId){var e=p()(this.search_data.deptId),t=this.treeFindPath(this.depOptions,function(t){return t.id===e});this.selectDeptId=JSON.parse(p()(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],o=a[1],l=a[2];0===s.code&&(e.typeList=s.datas),0===l.code&&(console.log(l),e.usingList=l.datas),0===o.code&&(e.depOptions=o.data.children,e.setDeptList(e.depOptio