engineering/public/admin/assets/index.3871601b.js
2024-02-27 10:28:16 +08:00

2 lines
6.1 KiB
JavaScript

import{J as z,y as G,w as H,D as K,C as Q,L as W,M as X,N as Z}from"./element-plus.517d4382.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as te,a as oe}from"./index.8b1962e9.js";import{u as ae}from"./usePaging.f6660143.js";import{u as le}from"./useDictOptions.b5854a9e.js";import{a as ne,b as x,e as re}from"./project_attendance_record.2786e3ce.js";import{_ as ie}from"./edit.vue_vue_type_script_setup_true_name_procurementContractEdit_lang.c4c58fae.js";import se from"./detail.58089b38.js";import{d as P,a0 as V,s as A,r as k,ai as ue,o as r,c as de,V as e,M as o,O as _,u as i,L as u,S as R,a as $,k as ce,T as p,n as D}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.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.b17dae19.js";import"./index.vue_vue_type_script_setup_true_lang.ed719f67.js";import"./project.a81dff6c.js";import"./index.vue_vue_type_script_setup_true_lang.3836b80f.js";import"./project_personnel.b59a00de.js";import"./custom.99349afc.js";const pe=p("\u67E5\u8BE2"),_e=p("\u91CD\u7F6E"),me=p(" \u65B0\u589E "),fe=p(" \u5220\u9664 "),ve={class:"mt-4"},we=p(" \u7F16\u8F91 "),Ee=p(" \u5220\u9664 "),he=p(" \u8BE6\u60C5 "),be={class:"flex justify-end mt-4"},ye=P({name:"projectLists"}),mt=P({...ye,setup(Ce){V([]);const b=A(),v=A(),w=k(!1),y=k(!1),E=V({attendance_date:""}),C=k([]),L=l=>{C.value=l.map(({id:t})=>t)},{dictData:F}=le("labor_contract_status,labor_contract_type,labor_contract_name"),{pager:m,getLists:h,resetParams:N,resetPage:S}=ae({fetchFun:ne,params:E}),T=async()=>{var l;w.value=!0,await D(),(l=v.value)==null||l.open("add")},M=async l=>{var d,s;console.log(l.id);let t=await x({id:l.id});w.value=!0,await D(),(d=v.value)==null||d.open("edit"),(s=v.value)==null||s.setFormData(t)},B=async l=>{await te.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await re({id:l}),h()},Y=async l=>{var d,s;let t=await x({id:l.id});y.value=!0,await D(),(d=b.value)==null||d.open(),(s=b.value)==null||s.setFormData(t)};return h(),(l,t)=>{const d=z,s=G,c=H,q=K,g=Q,U=oe,a=W,I=X,J=ee,f=ue("perms"),O=Z;return r(),de("div",null,[e(g,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(q,{class:"mb-[-16px]",model:E,inline:""},{default:o(()=>[e(s,{label:"\u65E5\u671F",prop:"attendance_date"},{default:o(()=>[e(d,{class:"flex-1 !flex",clearable:"",modelValue:E.attendance_date,"onUpdate:modelValue":t[0]||(t[0]=n=>E.attendance_date=n),type:"date","value-format":"YYYY-MM-DD",placeholder:"\u9009\u62E9\u8003\u52E4\u65E5\u671F"},null,8,["modelValue"])]),_:1}),e(s,null,{default:o(()=>[e(c,{type:"primary",onClick:i(S)},{default:o(()=>[pe]),_:1},8,["onClick"]),e(c,{onClick:i(N)},{default:o(()=>[_e]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((r(),u(g,{class:"!border-none",shadow:"never"},{default:o(()=>[_((r(),u(c,{type:"primary",onClick:T},{icon:o(()=>[e(U,{name:"el-icon-Plus"})]),default:o(()=>[me]),_:1})),[[f,["project.project_attendance_record/add"]]]),_((r(),u(c,{disabled:!C.value.length,onClick:t[1]||(t[1]=n=>B(C.value))},{default:o(()=>[fe]),_:1},8,["disabled"])),[[f,["project.project_attendance_record/delete"]]]),$("div",ve,[e(I,{data:i(m).lists,onSelectionChange:L},{default:o(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(a,{label:"\u65E5\u8BB0\u5DE5\u5355\u53F7",prop:"attendance_code","show-overflow-tooltip":""}),e(a,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),e(a,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(a,{label:"\u65E5\u671F",prop:"attendance_date","show-overflow-tooltip":""}),e(a,{label:"\u51FA\u52E4\u4EBA\u6570",prop:"cqrs","show-overflow-tooltip":""}),e(a,{label:"\u8BB0\u5DE5\u6570\u91CF",prop:"work_record_num_total","show-overflow-tooltip":""}),e(a,{label:"\u65E5\u5DE5\u8D44\u5408\u8BA1",prop:"daily_salary_total","show-overflow-tooltip":""}),e(a,{label:"\u65E5\u751F\u6D3B\u8D39\u5408\u8BA1",prop:"daily_living_total","show-overflow-tooltip":""}),e(a,{label:"\u65E5\u8865\u8D34\u5408\u8BA1",prop:"daily_subsidy_total","show-overflow-tooltip":""}),e(a,{label:"\u65E5\u5176\u5B83\u5408\u8BA1",prop:"daily_other_total","show-overflow-tooltip":""}),e(a,{label:"\u65E5\u6536\u5165\u5408\u8BA1",prop:"daily_income_total","show-overflow-tooltip":""}),e(a,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:o(({row:n})=>[_((r(),u(c,{type:"primary",link:"",onClick:j=>M(n)},{default:o(()=>[we]),_:2},1032,["onClick"])),[[f,["project.project_attendance_record/edit"]]]),_((r(),u(c,{type:"danger",link:"",onClick:j=>B(n.id)},{default:o(()=>[Ee]),_:2},1032,["onClick"])),[[f,["project.project_attendance_record/delete"]]]),_((r(),u(c,{link:"",onClick:j=>Y(n)},{default:o(()=>[he]),_:2},1032,["onClick"])),[[f,["project.project_attendance_record/detail"]]])]),_:1})]),_:1},8,["data"])]),$("div",be,[e(J,{modelValue:i(m),"onUpdate:modelValue":t[2]||(t[2]=n=>ce(m)?m.value=n:null),onChange:i(h)},null,8,["modelValue","onChange"])])]),_:1})),[[O,i(m).loading]]),w.value?(r(),u(ie,{key:0,ref_key:"editRef",ref:v,"dict-data":i(F),onSuccess:i(h),onClose:t[3]||(t[3]=n=>w.value=!1)},null,8,["dict-data","onSuccess"])):R("",!0),y.value?(r(),u(se,{key:1,ref_key:"detailRef",ref:b,"dict-data":i(F),onClose:t[4]||(t[4]=n=>y.value=!1)},null,8,["dict-data"])):R("",!0)])}}});export{mt as default};