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

2 lines
6.2 KiB
JavaScript

import{I as Y,y as Z,G as oo,H as eo,w as to,D as lo,C as ao,L as io,M as no,N as uo}from"./element-plus.517d4382.js";import{_ as so}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{u as po}from"./usePaging.f6660143.js";import{u as ro}from"./useDictOptions.b5854a9e.js";import{d as co,a as mo}from"./InvoicingRequests.194880ba.js";import"./lodash.1d82ee7c.js";import{a as _o}from"./contract.2d0c2079.js";import{b as vo}from"./custom.99349afc.js";import"./index.8b1962e9.js";import{d as j,a0 as V,s as x,r as d,a5 as L,ai as fo,o as i,c as g,V as o,M as a,O as R,u as n,L as r,S,W as I,a8 as N,a as T,k as wo,T as F,n as bo}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.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const Co=F("\u67E5\u8BE2"),go=F("\u91CD\u7F6E"),Fo={class:"mt-4"},ho=F(" \u8BE6\u60C5 "),Eo={class:"flex justify-end mt-4"},Do=j({name:"projectLists"}),ce=j({...Do,setup(yo){V([]);const f=x(),P=x(),h=d(!1),w=d(!1),E=d([]),D=d([]),u=V({invoicing_company_name:"",contract_id:"",customer_id:""}),U=d([]),$=s=>{U.value=s.map(({id:l})=>l)},{dictData:y}=ro("pay_period,invoice_type"),{pager:c,getLists:b,resetParams:q,resetPage:A}=po({fetchFun:co,params:u}),M=async s=>{var m,p;let l=await mo({id:s.id});w.value=!0,await bo(),(m=f.value)==null||m.open(),(p=f.value)==null||p.setFormData(l)},O=()=>{_o().then(s=>{E.value=s.lists})},G=()=>{vo().then(s=>{D.value=s.lists})};return O(),G(),b(),(s,l)=>{const m=Y,p=Z,_=oo,B=eo,C=to,H=lo,k=ao,e=io,W=no,z=so,J=L("edit-popup"),K=L("detail-popup"),Q=fo("perms"),X=uo;return i(),g("div",null,[o(k,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[o(H,{class:"mb-[-16px]",model:u,inline:""},{default:a(()=>[o(p,{label:"\u5F00\u7968\u516C\u53F8\u540D\u79F0",prop:"invoicing_company_name"},{default:a(()=>[o(m,{class:"w-[280px]",modelValue:u.invoicing_company_name,"onUpdate:modelValue":l[0]||(l[0]=t=>u.invoicing_company_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5F00\u7968\u516C\u53F8\u540D\u79F0"},null,8,["modelValue"])]),_:1}),o(p,{label:"\u5BA2\u6237",prop:"customer_id"},{default:a(()=>[o(B,{class:"w-[280px]",modelValue:u.customer_id,"onUpdate:modelValue":l[1]||(l[1]=t=>u.customer_id=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5BA2\u6237"},{default:a(()=>[o(_,{label:"\u5168\u90E8",value:""}),(i(!0),g(I,null,N(D.value,(t,v)=>(i(),r(_,{key:v,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o(p,{label:"\u5408\u540C",prop:"contract_id"},{default:a(()=>[o(B,{class:"w-[280px]",modelValue:u.contract_id,"onUpdate:modelValue":l[2]||(l[2]=t=>u.contract_id=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5408\u540C"},{default:a(()=>[o(_,{label:"\u5168\u90E8",value:""}),(i(!0),g(I,null,N(E.value,(t,v)=>(i(),r(_,{key:v,label:t.contract_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o(p,null,{default:a(()=>[o(C,{type:"primary",onClick:n(A)},{default:a(()=>[Co]),_:1},8,["onClick"]),o(C,{onClick:n(q)},{default:a(()=>[go]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),R((i(),r(k,{class:"!border-none",shadow:"never"},{default:a(()=>[T("div",Fo,[o(W,{data:n(c).lists,onSelectionChange:$},{default:a(()=>[o(e,{type:"selection",width:"55"}),o(e,{label:"\u5E8F\u53F7",type:"index",width:"55"}),o(e,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),o(e,{label:"\u4F9B\u5E94\u65B9\u5F0F",prop:"project_code","show-overflow-tooltip":""}),o(e,{label:"\u4ED3\u5E93\u540D\u79F0",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u4ED3\u5E93\u7F16\u7801",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u6750\u6599\u7C7B\u522B",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u6750\u6599\u4E2D\u7C7B",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u6750\u6599\u5C0F\u7C7B",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u6750\u6599\u540D\u79F0",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u6750\u6599\u7F16\u7801",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u89C4\u683C\u578B\u53F7",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u54C1\u724C",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u53C2\u6570\u8BF4\u660E",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u5355\u4F4D",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u5E93\u5B58\u6570\u91CF",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u5360\u7528\u6570\u91CF",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u53EF\u7528\u6570\u91CF",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u5E93\u5B58\u91D1\u989D",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:a(({row:t})=>[R((i(),r(C,{link:"",onClick:v=>M(t)},{default:a(()=>[ho]),_:2},1032,["onClick"])),[[Q,["InvoicingRequests.InvoicingRequests/detail"]]])]),_:1})]),_:1},8,["data"])]),T("div",Eo,[o(z,{modelValue:n(c),"onUpdate:modelValue":l[3]||(l[3]=t=>wo(c)?c.value=t:null),onChange:n(b)},null,8,["modelValue","onChange"])])]),_:1})),[[X,n(c).loading]]),h.value?(i(),r(J,{key:0,ref_key:"editRef",ref:P,"dict-data":n(y),onSuccess:n(b),onClose:l[4]||(l[4]=t=>h.value=!1)},null,8,["dict-data","onSuccess"])):S("",!0),w.value?(i(),r(K,{key:1,ref_key:"detailRef",ref:f,"dict-data":n(y),onClose:l[5]||(l[5]=t=>w.value=!1)},null,8,["dict-data"])):S("",!0)])}}});export{ce as default};