System.register(["./index-legacy.a130dba2.js","./composables-legacy.0c6ce36a.js","./LJPagiNation-legacy.9bb85dfb.js","./LJWWData-legacy.844c3ebc.js","./constant-legacy.90cdba31.js","./img_gongzt-legacy.80984d59.js"],(function(e,a){"use strict";var t,l,n,i,s,r,o,u,c,d,p,m,b,v,f=document.createElement("style");return f.textContent="[data-v-79c095a6] .el-drawer.rtl{width:30%!important}[data-v-79c095a6] .el-dialog__body{padding:0 20px}.content[data-v-79c095a6]{padding:30px}.title[data-v-79c095a6]{display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:10px}.detail[data-v-79c095a6]{font-size:12px;color:#333;margin-bottom:15px}[data-v-79c095a6] .el-drawer.rtl{border-radius:20px 0 0 20px}.member-info[data-v-edb0bb61]{display:flex;justify-content:space-between;margin:-10px 0 10px;line-height:26px}.member-info .el-tag[data-v-edb0bb61]{float:right}.btn-con[data-v-edb0bb61]{margin-bottom:10px;text-align:right}.tips[data-v-edb0bb61]{color:#fd9b03;font-size:14px}.fields-con[data-v-edb0bb61]{max-height:42vh;overflow-y:auto;padding:10px}.fields-con .field-list[data-v-edb0bb61]{display:flex;justify-content:space-between;padding:2px 10px 2px 15px;margin-bottom:10px;border:1px solid #eee;border-radius:4px;line-height:36px}.fields-con .el-input[data-v-edb0bb61]{width:100px}.high-seas-clients-views[data-v-4b559183]{background-color:#fff;height:calc(100vh - var(--main-nav-height) - var(--main-tabs-height) - var(--main-footer-height) - 72px);padding:10px;border-radius:8px}.high-seas-clients-views .type-label[data-v-4b559183]{line-height:2}.guide[data-v-4b559183]{width:100%;display:flex;flex-direction:column;align-items:center;margin:150px auto 0}[data-v-4b559183] .el-table__body tr:hover>td{background-color:#f6faff!important}\n",document.head.appendChild(f),{setters:[function(e){t=e.n,l=e.r,n=e.f,i=e.e,s=e.o,r=e.b,o=e.$,u=e.L},function(e){c=e.u},function(e){d=e.L},function(e){p=e.L},function(e){m=e.E,b=e.a},function(e){v=e._}],execute:function(){var a={__name:"sendDialog",emits:["update"],setup:function(e,a){var t=a.expose,s=a.emit,r=l(!1),o=n({is_agree:0,reason:""}),u=l(),c=l({});function d(e){c.value=e,r.value=!0}return t({init:d}),{__sfc:!0,dialogVisible:r,emits:s,form:o,rules:{reason:[{required:!0,message:"请输入驳回理由",trigger:"blur"}],is_agree:[{required:!0,message:"请选择确认结果",trigger:"change"}]},formRef:u,rowObj:c,init:d,handleClose:function(){r.value=!1,u.value.resetFields(),o.is_agree=0,o.reason=""},submitForm:function(){u.value.validate((function(e){if(!e)return!1;var a={payroll_id:c.value.id,is_agree:o.is_agree,reason:o.reason};1===a.is_agree&&delete a.reason,HTTP.post("payroll_review",a).then((function(e){0===e.code?(i.exports.Message.success("处理完成"),r.value=!1,s("update"),o.is_agree=0,o.reason=""):i.exports.Message.error(e.msg)}))}))}}}},f=function(){var e=this,a=e._self._c,t=e._self._setupProxy;return a("div",[a("el-dialog",{attrs:{title:"工资单确认","append-to-body":!0,visible:t.dialogVisible,width:"30%","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",[a("el-form",{ref:"formRef",attrs:{model:t.form,"label-width":"100px",rules:t.rules}},[a("el-form-item",{attrs:{label:"确认结果:",prop:"is_agree"}},[a("el-radio-group",{model:{value:t.form.is_agree,callback:function(a){e.$set(t.form,"is_agree",a)},expression:"form.is_agree"}},[a("el-radio",{attrs:{label:1}},[e._v("同意")]),a("el-radio",{attrs:{label:0}},[e._v("驳回")])],1)],1),0===t.form.is_agree?a("el-form-item",{attrs:{label:"理由:",prop:"reason"}},[a("el-input",{attrs:{type:"textarea"},model:{value:t.form.reason,callback:function(a){e.$set(t.form,"reason",a)},expression:"form.reason"}})],1):e._e()],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.handleClose}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[e._v("确 定")])],1)])],1)},_=[];f._withStripped=!0;var g=t(a,f,_,!1,null,"79c095a6",null,null);g.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/views/finance/myPayStub/components/sendDialog.vue";var h=g.exports,y={__name:"detailDialog",emits:["update"],setup:function(e,a){var t=a.expose,r=a.emit,o=l(!1),u=l([{key:"member",name:"员工ID",value:null,isChecked:!0,canEdit:!1},{key:"member_name",name:"姓名",value:null,isChecked:!0,canEdit:!1},{key:"wechat_dept_id",name:"部门",value:null,isChecked:!0,canEdit:!1},{key:"entry_date",name:"入职日期",value:null,isChecked:!0,canEdit:!1},{key:"confirmation_date",name:"转正日期",value:null,isChecked:!0,canEdit:!1},{key:"basic_salary",name:"基本工资",value:null,isChecked:!0,canEdit:!0},{key:"post_salary",name:"岗位工资",value:null,isChecked:!0,canEdit:!0},{key:"performance_amount",name:"绩效工资",value:null,isChecked:!0,canEdit:!0},{key:"commission_amount",name:"提成工资",value:null,isChecked:!0,canEdit:!0},{key:"bonus_amount",name:"奖金金额",value:null,isChecked:!0,canEdit:!0},{key:"attendance_bonus",name:"全勤奖金",value:null,isChecked:!0,canEdit:!0},{key:"attendance_required",name:"应出勤",value:null,isChecked:!0,canEdit:!0},{key:"attendance_actual",name:"实际出勤",value:null,isChecked:!0,canEdit:!0},{key:"working_age",name:"工龄",value:null,isChecked:!0,canEdit:!1},{key:"allowance",name:"补贴",value:null,isChecked:!0,canEdit:!0},{key:"deduction",name:"扣款",value:null,isChecked:!0,canEdit:!1},{key:"absence_deduction",name:"事假扣款",value:null,isChecked:!0,canEdit:!0},{key:"sick_deduction",name:"病假扣款",value:null,isChecked:!0,canEdit:!0},{key:"late_deduction",name:"迟到缺卡扣款",value:null,isChecked:!0,canEdit:!0},{key:"absenteeism_deduction",name:"旷工扣款",value:null,isChecked:!0,canEdit:!0},{key:"personal_social_security",name:"个人社保",value:null,isChecked:!0,canEdit:!0},{key:"corporate_social_security",name:"公司社保",value:null,isChecked:!0,canEdit:!0},{key:"personal_medical_insurance",name:"个人医保",value:null,isChecked:!0,canEdit:!0},{key:"corporate_medical_insurance",name:"公司医保",value:null,isChecked:!0,canEdit:!0},{key:"personal_provident_fund",name:"个人公积金",value:null,isChecked:!0,canEdit:!0},{key:"corporate_provident_fund",name:"公司公积金",value:null,isChecked:!0,canEdit:!0},{key:"personal_income_tax",name:"个税",value:null,isChecked:!0,canEdit:!0},{key:"net_salary",name:"实发工资",value:null,isChecked:!0,canEdit:!0}]),c=l(!1),d=l({}),m=n({0:"",1:"warning",2:"success",3:"danger"});function b(e){console.log("data",e),o.value=!0,e&&e.id?(c.value=!1,d.value=e,u.value.map((function(a){a.value=e[a.key]}))):(c.value=!0,d.value={},u.value.map((function(e){e.value=null})))}return s((function(){})),t({init:b}),{__sfc:!0,dialogVisible:o,emits:r,form:u,isSend:c,currDetail:d,statusColor:m,init:b,saveForm:function(){o.value=!1;var e={choose_fields:[]};u.value.map((function(a){e[a.key]=a.value,a.isChecked&&e.choose_fields.push(a.key)})),d.value.id&&(e.payroll_id=d.value.id),HTTP.post("send_payroll",e).then((function(e){0===e.code?(i.exports.Message({type:"success",message:"发送成功"}),o.value=!1,r("update",u.value)):i.exports.Message({type:"error",message:e.msg})}))},LJWWData:p}}},k=function(){var e=this,a=e._self._c,t=e._self._setupProxy;return a("div",[a("el-dialog",{attrs:{title:"工资单","append-to-body":!0,visible:t.dialogVisible,width:"500px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[t.currDetail&&t.currDetail.id?a("div",{staticClass:"member-info"},[a("div",{staticStyle:{display:"flex"}},[a("span",[a(t.LJWWData,{attrs:{type:2,openid:t.currDetail.member_name}})],1),a("el-divider",{attrs:{direction:"vertical"}}),a("span",[a(t.LJWWData,{attrs:{type:1,openid:t.currDetail.wechat_dept_id}})],1)],1),a("el-tag",{attrs:{type:t.statusColor[t.currDetail.status]}},[e._v(" "+e._s(t.currDetail.status_text)+" ")])],1):e._e(),a("div",{staticClass:"fields-con"},e._l(t.form,(function(l,n){return a("div",{key:n,staticClass:"field-list"},[a("el-checkbox",{model:{value:l.isChecked,callback:function(a){e.$set(l,"isChecked",a)},expression:"item.isChecked"}},[e._v(e._s(l.name))]),a("div",{staticClass:"field-value"},[a("div",{staticClass:"value"},["member_name"===l.key?a("span",[a(t.LJWWData,{attrs:{type:2,openid:l.value}})],1):"wechat_dept_id"===l.key?a("span",[a(t.LJWWData,{attrs:{type:1,openid:l.value}})],1):a("span",[e._v(" "+e._s(l.value)+" ")])])])],1)})),0),a("div",{staticClass:"tips"},[e._v("!修改后的基础数据会同步更新至薪资档案")])])],1)},x=[];k._withStripped=!0;var w=t(y,k,x,!1,null,"edb0bb61",null,null);w.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/views/finance/sendPayslip/components/detailDialog.vue";var C=w.exports,E={__name:"personalSlipListViews",setup:function(e){var a=l(),t=l(),i=c(),v=l(r((function(){return o.getters.appMainHeight-111-104-32}))),f=l(!0),_=l(!0),g=l([{name:"全部",status:"",btn:""},{name:"待发送",status:0,btn:"编辑"},{name:"待确认",status:1,btn:"再次编辑"},{name:"已驳回",status:3,btn:"修改"},{name:"已确认",status:2,btn:"查看"}]),y=n({member:o.getters.member.id,company:o.getters.company,date:"",settlement_year:"",settlement_month:"",limit:10,offset:0,del_flag:0,ordering:"-id"}),k=l(0),x=l(1),w=l([]),E=m,D=b;function L(){f.value=!0,y.settlement_year=y.date?y.date.substring(0,4):"",y.settlement_month=y.date?+y.date.substring(5,7):"",HTTP.get("payroll",y).then((function(e){k.value=e.data.count,w.value=e.data.results.map((function(e){var a=g.value.filter((function(a){return a.status===e.oa_status}));return e.status_text=a.length?a[0].name:"",e.btn=a.length?a[0].btn:"",e})),w.value.length>0?_.value=!0:_.value=!1})).finally((function(){setTimeout((function(){return f.value=!1}),500)}))}return s((function(){f.value=!0,L()})),{__sfc:!0,sendRef:a,detailRef:t,router:i,tableHeight:v,loading:f,showTip:_,statusArray:g,filter:y,total:k,currentPage:x,tableData:w,employeeStatus:E,employeeType:D,getList:L,handleSizeChange:function(e){y.limit=e,L()},handleCurrentChange:function(e){x.value=e,y.offset=(e-1)*y.limit,L()},resetFilter:function(){x.value=1,y.offset=0,L()},showDetail:function(e){t.value.init(e)},sendPayroll:function(e){a.value.init(e)},LJPagiNation:d,LJTableHeader:u,sendDialog:h,detailDialog:C,LJWWData:p}}},D=function(){var e=this,a=e._self._c,t=e._self._setupProxy;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"high-seas-clients-views"},[a(t.LJTableHeader,{attrs:{dropdown:!1,search:!1},model:{value:t.filter.search,callback:function(a){e.$set(t.filter,"search",a)},expression:"filter.search"}},[a("el-date-picker",{attrs:{"value-format":"yyyy-M",type:"month",placeholder:"选择日期"},on:{change:t.resetFilter},model:{value:t.filter.date,callback:function(a){e.$set(t.filter,"date",a)},expression:"filter.date"}})],1),a("div",{staticClass:"lj-el-table m-t-20"},[t.showTip?a("el-table",{attrs:{data:t.tableData,"header-cell-style":{background:"#F6FAFF"},height:"".concat(t.tableHeight,"px")}},[a("el-table-column",{attrs:{prop:"id",label:"ID"}}),a("el-table-column",{attrs:{prop:"member",label:"员工ID"}}),a("el-table-column",{attrs:{prop:"id",label:"姓名"},scopedSlots:e._u([{key:"default",fn:function(e){var l=e.row;return[a(t.LJWWData,{attrs:{type:2,openid:l.member_name}})]}}],null,!1,1990572944)}),a("el-table-column",{attrs:{prop:"member_status",label:"员工状态"},scopedSlots:e._u([{key:"default",fn:function(a){var l=a.row;return[e._v(" "+e._s(t.employeeStatus[l.member_status])+" ")]}}],null,!1,2992634452)}),a("el-table-column",{attrs:{prop:"dept",label:"部门"},scopedSlots:e._u([{key:"default",fn:function(e){var l=e.row;return[a(t.LJWWData,{attrs:{type:1,openid:l.wechat_dept_id}})]}}],null,!1,1358159775)}),a("el-table-column",{attrs:{prop:"working_location",label:"工作地点"}}),a("el-table-column",{attrs:{prop:"entry_date",label:"入职日期",width:"100"}}),a("el-table-column",{attrs:{prop:"confirmation_date",label:"转正日期",width:"110"}}),a("el-table-column",{attrs:{prop:"last_working_day",label:"最后工作日",width:"110"}}),a("el-table-column",{attrs:{prop:"change_salary_day",label:"最后调薪日",width:"110"}}),a("el-table-column",{attrs:{prop:"basic_salary",label:"基本工资"}}),a("el-table-column",{attrs:{prop:"post_salary",label:"岗位工资"}}),a("el-table-column",{attrs:{prop:"performance_amount",label:"绩效工资"}}),a("el-table-column",{attrs:{prop:"commission_amount",label:"提成工资"}}),a("el-table-column",{attrs:{prop:"bonus_amount",label:"奖金金额"}}),a("el-table-column",{attrs:{prop:"attendance_bonus",label:"全勤奖金"}}),a("el-table-column",{attrs:{prop:"attendance_required",label:"应出勤"}}),a("el-table-column",{attrs:{prop:"attendance_actual",label:"实际出勤"}}),a("el-table-column",{attrs:{prop:"working_age",label:"工龄"}}),a("el-table-column",{attrs:{prop:"allowance",label:"补贴"}}),a("el-table-column",{attrs:{prop:"deduction",label:"扣款"}}),a("el-table-column",{attrs:{prop:"absence_deduction",label:"事假扣款"}}),a("el-table-column",{attrs:{prop:"sick_deduction",label:"病假扣款"}}),a("el-table-column",{attrs:{prop:"late_deduction",label:"迟到缺卡扣款",width:"120"}}),a("el-table-column",{attrs:{prop:"absenteeism_deduction",label:"旷工扣款"}}),a("el-table-column",{attrs:{prop:"personal_social_security",label:"个人社保"}}),a("el-table-column",{attrs:{prop:"corporate_social_security",label:"公司社保"}}),a("el-table-column",{attrs:{prop:"personal_medical_insurance",label:"个人医保"}}),a("el-table-column",{attrs:{prop:"corporate_medical_insurance",label:"公司医保"}}),a("el-table-column",{attrs:{prop:"personal_provident_fund",label:"个人公积金",width:"100"}}),a("el-table-column",{attrs:{prop:"corporate_provident_fund",label:"公司公积金",width:"100"}}),a("el-table-column",{attrs:{prop:"personal_income_tax",label:"个税"}}),a("el-table-column",{attrs:{prop:"net_salary",label:"实发工资"}}),a("el-table-column",{attrs:{prop:"status_text",label:"确认状态"}}),a("el-table-column",{attrs:{prop:"reason",label:"原因"}}),a("el-table-column",{attrs:{prop:"date",label:"详情",fixed:"right",align:"center",width:"180"},scopedSlots:e._u([{key:"default",fn:function(l){var n=l.row;return[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:62102,expression:"62102"}],attrs:{type:"text"},on:{click:function(e){return t.showDetail(n)}}},[e._v("查看 ")]),2!==n.status?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:62103,expression:"62103"}],attrs:{type:"text"},on:{click:function(e){return t.sendPayroll(n)}}},[e._v("处理 ")]):e._e()]}}],null,!1,2563899513)})],1):a("div",{staticClass:"guide"},[a("img",{attrs:{src:v,alt:""}}),a("div",{staticStyle:{"margin-top":"15px","font-size":"16px",color:"#919398"}},[e._v(" 每个人的付出都有公平的回报 ")])])],1),t.showTip?a(t.LJPagiNation,{attrs:{"current-page":t.currentPage,"page-size":t.filter.limit,total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}):e._e(),a(t.sendDialog,{ref:"sendRef",on:{update:t.getList}}),a(t.detailDialog,{ref:"detailRef",on:{update:t.getList}})],1)},L=[];D._withStripped=!0;var S=t(E,D,L,!1,null,"4b559183",null,null);S.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/views/finance/myPayStub/personalSlipListViews.vue",e("default",S.exports)}}}));