You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
21 KiB
2 lines
21 KiB
|
4 months ago
|
import{d as J,ax as C,r as A,ao as H,y as R,G,a as p,f as V,e as l,b as a,H as u,h as n,F as v,g as Y,c as x,q as b,bC as L,a7 as K,a1 as Q,aF as W,aj as X,an as Z,aU as $,aq as ee,ap as le,aE as ae,bD as te,aV as oe,ab as ne,p as se,m as de,_ as ue}from"./index-e450010e.js";import{u as re,h as ie,a as me,b as ce,c as pe,d as fe,e as be,y as _e,H as ge}from"./datacont-b732338e.js";const B=(h,M,o)=>{let U=0;typeof M=="string"?U=parseInt(M):U=M;let e=new Date(h),g=e.getDate();e.getMonth(),e.setMonth(e.getMonth()+U*1,1);let y=e.getMonth()+1,d=e.getFullYear();y==4||y==6||y==9||y==11?g>30&&(g=30):y==2?d%4==0&&d%100!=0||d%400==0?g>29&&(g=29):g>28&&(g=28):g>31&&(g=31);let E=e.getHours(),I=e.getMinutes(),S=e.getSeconds(),z=T(y),q=T(g);return o?d+"-"+z+"-"+q+" "+E+":"+I+":"+S:d+"-"+z+"-"+q};function T(h){let M=h.toString();return h.toString().length==1&&(M="0"+h),M}const _=h=>(se("data-v-3725e41e"),h=h(),de(),h),he=_(()=>b("i",{class:"hong_mi"},"*",-1)),ye=_(()=>b("i",{class:"hong_mi"},"*",-1)),Ve=_(()=>b("i",{class:"hong_mi"},"*",-1)),ve=_(()=>b("i",{class:"hong_mi"},"*",-1)),ke=_(()=>b("i",{class:"hong_mi"},"*",-1)),we=_(()=>b("i",{class:"hong_mi"},"*",-1)),Ye=_(()=>b("i",{class:"hong_mi"},"*",-1)),xe=_(()=>b("i",{class:"fa fa-medkit"},null,-1)),Me=_(()=>b("i",{class:"hong_mi"},"*",-1)),Ue=_(()=>b("i",{class:"hong_mi"},"*",-1)),De=_(()=>b("i",{class:"hong_mi"},"*",-1)),je=_(()=>b("i",{class:"hong_mi"},"*",-1)),ze=_(()=>b("i",{class:"hong_mi"},"*",-1)),qe=_(()=>b("i",{class:"fa fa-home"},null,-1)),Ee=_(()=>b("i",{class:"fa fa-heart-o"},null,-1)),Ie={class:"dialog-footer"},Se=J({__name:"editcontent",props:{editShow:{type:Boolean,default:!1},usercont:{type:Object,default(){return{}}}},emits:["update:editShow","refreshcontdata"],setup(h,{emit:M}){const o=h,U=M,e=C({entrydatetime:"",probationperiod:1}),g=A(H),y=A(!1),d=C({}),E=C({name:[{required:!0,message:"请输入姓名",trigger:"blur"}],gender:[{required:!0,message:"请选择性别",trigger:"blur"}],health:[{required:!0,message:"请选择健康状况",trigger:"blur"}],birthdaytime:[{required:!0,message:"请选择出生日期",trigger:"blur"}],idcardno:[{required:!0,message:"请输入身份证号",trigger:"blur"}],mobilephone:[{required:!0,message:"请输入手机号码",trigger:"blur"}],currentresidence:[{required:!0,message:"请输入现居住地",trigger:"blur"}],myfolk:[{required:!0,message:"请输入民族",trigger:"blur"}],hireclass:[{required:!0,message:"请选雇佣类型",trigger:"blur"}],emptype:[{required:!0,message:"请选择工关系",trigger:"blur"}],entrydatetime:[{required:!0,message:"请输入入职日期",trigger:"blur"}],probationperiod:[{required:!0,message:"请输入试用期(月)",trigger:"blur"}]});R({get:()=>o.editShow,set:D=>{U("update:editShow",D)}});function I(){y.value=!0,g.value.validate(D=>{D&&(d.id=e.idstr,d.name=e.name,d.mobilephone=e.mobilephone,d.idcardno=e.idcardno,d.entrydatetime=e.entrydatetime,d.probationperiod=e.probationperiod,d.confirmationdate=e.planformaldatetime,d.jobstartdatestr=e.jobstartdatestr,d.nameusedbefore=e.nameusedbefore,d.gender=e.gender,d.myfolk=e.myfolk,d.politicaloutlook=e.politicaloutlook,d.health=e.health,d.birthdaytime=e.birthdaytime,d.idcardstarttimedata=e.idcardstarttimedata,d.idcardendtimedata=e.idcardendtimedata,d.idcardaddress=e.idcardaddress,d.idcardIssued=e.idcardIssued,d.currentresidence=e.currentresidence,d.nativeplace=e.nativeplace,d.email=e.email,d.internaltelephone=e.internaltelephone,d.hireclass=e.hireclass,d.emptype=e.emptype,d.isveterans=e.isveterans,d.veteransnumber=e.veteransnumber,d.passportno=e.passportno,d.globalroaming=e.globalroaming,d.wechat=e.wechat,d.workwechat=e.workwechat,d.constellationing=e.constellationing,d.maritalstatus=e.maritalstatus,d.interests=e.interests,d.bloodtype=e.bloodtype,d.natureofAccount=e.natureofAccount,L(d).then(()=>{K.success("编辑成功"),U("refreshcontdata",e),U("update:editShow",!1)}).finally(()=>{y.value=!1}))})}function S(){U("update:editShow",!1)}G(()=>{e.id=o.usercont.id,e.number=o.usercont.number,e.name=o.usercont.name,e.icon=o.usercont.icon,e.hireclass=o.userc
|