2 lines
5.7 KiB
JavaScript
2 lines
5.7 KiB
JavaScript
import{w as O,L as U,M as z,C as G,N as H}from"./element-plus.258bf9e7.js";import{_ as I}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as J,a as K}from"./index.ec401e3b.js";import{u as Q}from"./usePaging.f6660143.js";import{u as W}from"./useDictOptions.c644f395.js";import{a as X,b as g,e as Y}from"./project_attendance_detail.a5256573.js";import{_ as Z}from"./edit.vue_vue_type_script_setup_true_name_procurementContractEdit_lang.f54d1bc6.js";import ee from"./detail.0ac6b970.js";import{d as V,a0 as B,s as j,r as D,ai as oe,o as r,c as te,O as d,u,L as s,M as i,S as x,V as e,a as $,k as ae,T as _,n as C}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.1d82ee7c.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.9492d03b.js";import"./index.vue_vue_type_script_setup_true_lang.5a5f706a.js";import"./project.bccf4059.js";import"./index.vue_vue_type_script_setup_true_lang.0ec25c70.js";import"./project_personnel.09fb588e.js";import"./custom.13e75d58.js";const le=_(" \u65B0\u589E "),re=_(" \u5220\u9664 "),ie={class:"mt-4"},ne=_(" \u7F16\u8F91 "),se=_(" \u5220\u9664 "),pe=_(" \u8BE6\u60C5 "),ue={class:"flex justify-end mt-4"},de=V({name:"projectLists"}),io=V({...de,setup(ce){B([]);const h=j(),f=j(),w=D(!1),E=D(!1),L=B({attendance_date:""}),b=D([]),P=a=>{b.value=a.map(({id:t})=>t)},{dictData:k}=W("labor_contract_status,labor_contract_type,labor_contract_name"),{pager:c,getLists:v,resetParams:me,resetPage:_e}=Q({fetchFun:X,params:L}),R=async()=>{var a;w.value=!0,await C(),(a=f.value)==null||a.open("add")},N=async a=>{var p,l;console.log(a.id);let t=await g({id:a.id});w.value=!0,await C(),(p=f.value)==null||p.open("edit"),(l=f.value)==null||l.setFormData(t)},y=async a=>{await J.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Y({id:a}),v()},S=async a=>{var p,l;let t=await g({id:a.id});E.value=!0,await C(),(p=h.value)==null||p.open(),(l=h.value)==null||l.setFormData(t)};return v(),(a,t)=>{const p=K,l=O,o=U,T=z,A=I,M=G,m=oe("perms"),q=H;return r(),te("div",null,[d((r(),s(M,{class:"!border-none",shadow:"never"},{default:i(()=>[d((r(),s(l,{type:"primary",onClick:R},{icon:i(()=>[e(p,{name:"el-icon-Plus"})]),default:i(()=>[le]),_:1})),[[m,["project.project_attendance_record/add"]]]),d((r(),s(l,{disabled:!b.value.length,onClick:t[0]||(t[0]=n=>y(b.value))},{default:i(()=>[re]),_:1},8,["disabled"])),[[m,["project.project_attendance_record/delete"]]]),$("div",ie,[e(T,{data:u(c).lists,onSelectionChange:P},{default:i(()=>[e(o,{type:"selection",width:"55"}),e(o,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(o,{label:"\u65E5\u8BB0\u5DE5\u5355\u53F7",prop:"person_idcard","show-overflow-tooltip":""}),e(o,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),e(o,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(o,{label:"\u65E5\u671F",prop:"attendance_date","show-overflow-tooltip":""}),e(o,{label:"\u59D3\u540D",prop:"person_name","show-overflow-tooltip":""}),e(o,{label:"\u8EAB\u4EFD\u8BC1\u53F7",prop:"person_idcard","show-overflow-tooltip":""}),e(o,{label:"\u5DE5\u79CD",prop:"work_type_text","show-overflow-tooltip":""}),e(o,{label:"\u4E0A\u73ED\u65F6\u95F4",prop:"work_start_time","show-overflow-tooltip":""}),e(o,{label:"\u4E0B\u73ED\u65F6\u95F4",prop:"work_end_time","show-overflow-tooltip":""}),e(o,{label:"\u8BB0\u5DE5\u6570\u91CF",prop:"work_record_num","show-overflow-tooltip":""}),e(o,{label:"\u65E5\u5DE5\u8D44",prop:"daily_salary","show-overflow-tooltip":""}),e(o,{label:"\u65E5\u751F\u6D3B\u8D39",prop:"daily_living","show-overflow-tooltip":""}),e(o,{label:"\u65E5\u8865\u8D34",prop:"daily_subsidy","show-overflow-tooltip":""}),e(o,{label:"\u65E5\u5176\u5B83",prop:"daily_other","show-overflow-tooltip":""}),e(o,{label:"\u65E5\u6536\u5165",prop:"daily_income","show-overflow-tooltip":""}),e(o,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(o,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:i(({row:n})=>[d((r(),s(l,{type:"primary",link:"",onClick:F=>N(n)},{default:i(()=>[ne]),_:2},1032,["onClick"])),[[m,["project.project_attendance_record/edit"]]]),d((r(),s(l,{type:"danger",link:"",onClick:F=>y(n.id)},{default:i(()=>[se]),_:2},1032,["onClick"])),[[m,["project.project_attendance_record/delete"]]]),d((r(),s(l,{link:"",onClick:F=>S(n)},{default:i(()=>[pe]),_:2},1032,["onClick"])),[[m,["project.project_attendance_record/detail"]]])]),_:1})]),_:1},8,["data"])]),$("div",ue,[e(A,{modelValue:u(c),"onUpdate:modelValue":t[1]||(t[1]=n=>ae(c)?c.value=n:null),onChange:u(v)},null,8,["modelValue","onChange"])])]),_:1})),[[q,u(c).loading]]),w.value?(r(),s(Z,{key:0,ref_key:"editRef",ref:f,"dict-data":u(k),onSuccess:u(v),onClose:t[2]||(t[2]=n=>w.value=!1)},null,8,["dict-data","onSuccess"])):x("",!0),E.value?(r(),s(ee,{key:1,ref_key:"detailRef",ref:h,"dict-data":u(k),onClose:t[3]||(t[3]=n=>E.value=!1)},null,8,["dict-data"])):x("",!0)])}}});export{io as default};
|