engineering/public/admin/assets/index.6ad310e3.js
2024-03-04 15:04:21 +08:00

2 lines
4.5 KiB
JavaScript

import{I as z,y as O,w as G,D as H,C as J,L as K,M as Q,N as W}from"./element-plus.258bf9e7.js";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as Y,a as Z}from"./index.ec401e3b.js";import{u as ee}from"./usePaging.f6660143.js";import{u as te}from"./useDictOptions.c644f395.js";import{d as oe,a as ae,f as ie}from"./material_classify.13e39292.js";import"./lodash.1d82ee7c.js";import{_ as ne}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.7b187200.js";import se from"./detail.7e9f47dd.js";import{d as R,s as F,r as k,a0 as le,ai as re,o as s,c as me,V as e,M as t,O as h,u as i,L as l,S as E,a as b,k as ue,T as c,n as B}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"./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.e1e5e943.js";import"./custom.13e75d58.js";const ce=c("\u67E5\u8BE2"),de=c("\u91CD\u7F6E"),pe=c(" \u65B0\u589E "),_e={class:"mt-4"},fe=c(" \u7F16\u8F91 "),ve=c(" \u5220\u9664 "),Ce={class:"flex justify-end mt-4"},he=R({name:"projectLists"}),rt=R({...he,setup(ye){const V=F(),d=F(),p=k(!1),g=k(!1),_=le({name:""}),x=k([]),I=a=>{x.value=a.map(({id:o})=>o)},{dictData:w}=te("pay_period,invoice_type"),{pager:r,getLists:f,resetParams:q,resetPage:$}=ee({fetchFun:oe,params:_}),L=async()=>{var a;p.value=!0,await B(),(a=d.value)==null||a.open("add")},P=async a=>{var v,m;let o=await ae({id:a.id});p.value=!0,await B(),(v=d.value)==null||v.open("edit"),(m=d.value)==null||m.setFormData(o)},N=async a=>{await Y.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ie({id:a}),f()};return f(),(a,o)=>{const v=z,m=O,u=G,S=H,D=J,T=Z,C=K,j=Q,A=X,y=re("perms"),M=W;return s(),me("div",null,[e(D,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(S,{class:"mb-[-16px]",model:_,inline:""},{default:t(()=>[e(m,{label:"\u5206\u7C7B\u540D\u79F0",prop:"name"},{default:t(()=>[e(v,{class:"w-[280px]",modelValue:_.name,"onUpdate:modelValue":o[0]||(o[0]=n=>_.name=n),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5206\u7C7B\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(m,null,{default:t(()=>[e(u,{type:"primary",onClick:i($)},{default:t(()=>[ce]),_:1},8,["onClick"]),e(u,{onClick:i(q)},{default:t(()=>[de]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),h((s(),l(D,{class:"!border-none",shadow:"never"},{default:t(()=>[h((s(),l(u,{type:"primary",onClick:L},{icon:t(()=>[e(T,{name:"el-icon-Plus"})]),default:t(()=>[pe]),_:1})),[[y,["InvoicingRequests.InvoicingRequests/add"]]]),b("div",_e,[e(j,{data:i(r).lists,onSelectionChange:I,"row-key":"id",lazy:"","tree-props":{children:"children",hasChildren:"hasChildren"}},{default:t(()=>[e(C,{type:"selection",width:"55"}),e(C,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(C,{label:"\u5206\u7C7B\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),e(C,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:t(({row:n})=>[h((s(),l(u,{type:"primary",link:"",onClick:U=>P(n)},{default:t(()=>[fe]),_:2},1032,["onClick"])),[[y,["InvoicingRequests.InvoicingRequests/edit"]]]),h((s(),l(u,{type:"danger",link:"",onClick:U=>N(n.id)},{default:t(()=>[ve]),_:2},1032,["onClick"])),[[y,["InvoicingRequests.InvoicingRequests/delete"]]])]),_:1})]),_:1},8,["data"])]),b("div",Ce,[e(A,{modelValue:i(r),"onUpdate:modelValue":o[1]||(o[1]=n=>ue(r)?r.value=n:null),onChange:i(f)},null,8,["modelValue","onChange"])])]),_:1})),[[M,i(r).loading]]),p.value?(s(),l(ne,{key:0,ref_key:"editRef",ref:d,"dict-data":i(w),onSuccess:i(f),onClose:o[2]||(o[2]=n=>p.value=!1)},null,8,["dict-data","onSuccess"])):E("",!0),g.value?(s(),l(se,{key:1,ref_key:"detailRef",ref:V,"dict-data":i(w),onClose:o[3]||(o[3]=n=>g.value=!1)},null,8,["dict-data"])):E("",!0)])}}});export{rt as default};