2 lines
6.8 KiB
JavaScript
2 lines
6.8 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.4ff6f47d.js";import{_ as po}from"./index.vue_vue_type_script_setup_true_lang.7dabd2cb.js";import{u as so}from"./usePaging.f6660143.js";import{u as ro}from"./useDictOptions.c83e2497.js";import{d as co,a as mo}from"./InvoicingRequests.ba6804ac.js";import"./lodash.8ea2174a.js";import{a as _o}from"./contract.36d7c861.js";import{b as vo}from"./custom.01004c04.js";import"./index.aaca920c.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 F,V as o,M as a,O as R,u as n,L as r,S as I,W as S,a8 as N,a as T,k as wo,T as C,n as bo}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.8497a500.js";import"./lodash-es.49f4af13.js";import"./dayjs.fc5568d8.js";import"./axios.5b893b79.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.4cbccc26.js";import"./color.033abf8c.js";import"./clone.a6258514.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.7eedf28f.js";import"./ms.a9ae1d6d.js";import"./nprogress.93182424.js";import"./vue-clipboard3.6a55d49e.js";import"./clipboard.2986c82d.js";import"./echarts.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const go=C("\u67E5\u8BE2"),Fo=C("\u91CD\u7F6E"),Co={class:"mt-4"},ho=C(" \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([]),$=p=>{U.value=p.map(({id:l})=>l)},{dictData:y}=ro("pay_period,invoice_type"),{pager:c,getLists:b,resetParams:q,resetPage:A}=so({fetchFun:co,params:u}),M=async p=>{var m,s;let l=await mo({id:p.id});w.value=!0,await bo(),(m=f.value)==null||m.open(),(s=f.value)==null||s.setFormData(l)},O=()=>{_o().then(p=>{E.value=p.lists})},G=()=>{vo().then(p=>{D.value=p.lists})};return O(),G(),b(),(p,l)=>{const m=Y,s=Z,_=oo,B=eo,g=to,H=lo,k=ao,e=io,W=no,z=po,J=L("edit-popup"),K=L("detail-popup"),Q=fo("perms"),X=uo;return i(),F("div",null,[o(k,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[o(H,{class:"mb-[-16px]",model:u,inline:""},{default:a(()=>[o(s,{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(s,{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),F(S,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(s,{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),F(S,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(s,null,{default:a(()=>[o(g,{type:"primary",onClick:n(A)},{default:a(()=>[go]),_:1},8,["onClick"]),o(g,{onClick:n(q)},{default:a(()=>[Fo]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),R((i(),r(k,{class:"!border-none",shadow:"never"},{default:a(()=>[T("div",Co,[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:"ID",prop:"customer_name","show-overflow-tooltip":""}),o(e,{label:"\u76D8\u70B9\u5355\u53F7",prop:"customer_name","show-overflow-tooltip":""}),o(e,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),o(e,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","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:"\u5E74",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u6708",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u4F9B\u5E94\u65B9\u5F0F",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u51FA\u5E93\u65E5\u671F",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:"\u54C1\u724C",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u89C4\u683C\u578B\u53F7",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:"\u6570\u91CF",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u5355\u4EF7",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u5E93\u5B58\u6570\u91CF",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u5269\u4F59\u6570\u91CF",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u4F7F\u7528\u6570\u91CF",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:a(({row:t})=>[R((i(),r(g,{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"])):I("",!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"])):I("",!0)])}}});export{ce as default};
|