2 lines
6.4 KiB
JavaScript
2 lines
6.4 KiB
JavaScript
import{I as W,y as z,G as J,H as K,w as Q,D as X,C as Y,L as Z,M as oo,N as eo}from"./element-plus.258bf9e7.js";import{_ as to}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{u as lo}from"./usePaging.f6660143.js";import{u as ao}from"./useDictOptions.c644f395.js";import{d as uo,a as io}from"./InvoicingRequests.ffa42549.js";import"./lodash.1d82ee7c.js";import{a as po}from"./contract.4f8a540d.js";import{b as ro}from"./custom.13e75d58.js";import"./index.ec401e3b.js";import{d as L,a0 as y,s as no,r as f,a5 as so,ai as mo,o as p,c as F,V as o,M as a,O as D,u as n,L as m,S as co,W as V,a8 as k,a as A,k as _o,T as h,n as fo}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";const vo=h("\u67E5\u8BE2"),wo=h("\u91CD\u7F6E"),bo={class:"mt-4"},Fo=h(" \u8BE6\u60C5 "),ho={class:"flex justify-end mt-4"},Eo=L({name:"projectLists"}),re=L({...Eo,setup(Co){y([]);const v=no(),w=f(!1),E=f([]),C=f([]),u=y({invoicing_company_name:"",contract_id:"",customer_id:""}),R=f([]),I=i=>{R.value=i.map(({id:l})=>l)},{dictData:N}=ao("pay_period,invoice_type"),{pager:s,getLists:x,resetParams:T,resetPage:j}=lo({fetchFun:uo,params:u}),P=async i=>{var c,r;let l=await io({id:i.id});w.value=!0,await fo(),(c=v.value)==null||c.open(),(r=v.value)==null||r.setFormData(l)},S=()=>{po().then(i=>{E.value=i.lists})},U=()=>{ro().then(i=>{C.value=i.lists})};return S(),U(),x(),(i,l)=>{const c=W,r=z,d=J,g=K,b=Q,q=X,B=Y,e=Z,$=oo,M=to,O=so("detail-popup"),G=mo("perms"),H=eo;return p(),F("div",null,[o(B,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[o(q,{class:"mb-[-16px]",model:u,inline:""},{default:a(()=>[o(r,{label:"\u5F00\u7968\u516C\u53F8\u540D\u79F0",prop:"invoicing_company_name"},{default:a(()=>[o(c,{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(r,{label:"\u5BA2\u6237",prop:"customer_id"},{default:a(()=>[o(g,{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(d,{label:"\u5168\u90E8",value:""}),(p(!0),F(V,null,k(C.value,(t,_)=>(p(),m(d,{key:_,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o(r,{label:"\u5408\u540C",prop:"contract_id"},{default:a(()=>[o(g,{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(d,{label:"\u5168\u90E8",value:""}),(p(!0),F(V,null,k(E.value,(t,_)=>(p(),m(d,{key:_,label:t.contract_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o(r,null,{default:a(()=>[o(b,{type:"primary",onClick:n(j)},{default:a(()=>[vo]),_:1},8,["onClick"]),o(b,{onClick:n(T)},{default:a(()=>[wo]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),D((p(),m(B,{class:"!border-none",shadow:"never"},{default:a(()=>[A("div",bo,[o($,{data:n(s).lists,onSelectionChange:I},{default:a(()=>[o(e,{type:"selection",width:"55"}),o(e,{label:"\u5E8F\u53F7",type:"index",width:"55"}),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:"\u8BE2\u4EF7\u65E5\u671F",prop:"invoicing_date","show-overflow-tooltip":""}),o(e,{label:"\u7533\u8BF7\u4EBA",prop:"tax","show-overflow-tooltip":""}),o(e,{label:"\u8BE2\u4EF7\u5206\u7C7B",prop:"invoicing_amount","show-overflow-tooltip":""}),o(e,{label:"\u4EA7\u54C1\u63CF\u8FF0",prop:"amount_including_tax","show-overflow-tooltip":""}),o(e,{label:"\u6750\u6599\u7F16\u7801",prop:"tax_rate","show-overflow-tooltip":""}),o(e,{label:"\u6750\u6599\u540D\u79F0",prop:"tax","show-overflow-tooltip":""}),o(e,{label:"\u89C4\u683C\u578B\u53F7",prop:"tax","show-overflow-tooltip":""}),o(e,{label:"\u7279\u6B8A\u5C5E\u6027",prop:"tax","show-overflow-tooltip":""}),o(e,{label:"\u54C1\u724C",prop:"tax","show-overflow-tooltip":""}),o(e,{label:"\u5355\u4F4D",prop:"tax","show-overflow-tooltip":""}),o(e,{label:"\u4F9B\u5E94\u55461",prop:"tax","show-overflow-tooltip":""}),o(e,{label:"\u62A5\u4EF71",prop:"tax","show-overflow-tooltip":""}),o(e,{label:"\u578B\u53F7\u53CD\u9988",prop:"tax","show-overflow-tooltip":""}),o(e,{label:"\u4F9B\u5E94\u55462",prop:"tax","show-overflow-tooltip":""}),o(e,{label:"\u62A5\u4EF72",prop:"tax","show-overflow-tooltip":""}),o(e,{label:"\u4F9B\u5E94\u55463",prop:"tax","show-overflow-tooltip":""}),o(e,{label:"\u62A5\u4EF73",prop:"tax","show-overflow-tooltip":""}),o(e,{label:"\u62A5\u4EF74",prop:"tax","show-overflow-tooltip":""}),o(e,{label:"\u62A5\u4EF75",prop:"tax","show-overflow-tooltip":""}),o(e,{label:"\u9009\u5B9A\u4F9B\u5E94\u5546",prop:"tax","show-overflow-tooltip":""}),o(e,{label:"\u9009\u5B9A\u62A5\u4EF7",prop:"tax","show-overflow-tooltip":""}),o(e,{label:"\u5907\u6CE8",prop:"tax","show-overflow-tooltip":""}),o(e,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:a(({row:t})=>[D((p(),m(b,{link:"",onClick:_=>P(t)},{default:a(()=>[Fo]),_:2},1032,["onClick"])),[[G,["InvoicingRequests.InvoicingRequests/detail"]]])]),_:1})]),_:1},8,["data"])]),A("div",ho,[o(M,{modelValue:n(s),"onUpdate:modelValue":l[3]||(l[3]=t=>_o(s)?s.value=t:null),onChange:n(x)},null,8,["modelValue","onChange"])])]),_:1})),[[H,n(s).loading]]),w.value?(p(),m(O,{key:0,ref_key:"detailRef",ref:v,"dict-data":n(N),onClose:l[4]||(l[4]=t=>w.value=!1)},null,8,["dict-data"])):co("",!0)])}}});export{re as default};
|