2 lines
4.5 KiB
JavaScript
2 lines
4.5 KiB
JavaScript
import{I as P,y as T,G as I,H as S,w as U,D as M,C as O,L as $,M as q,N as G}from"./element-plus.b3353ca6.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang.f8e9523f.js";import{_ as R}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{u as W}from"./usePaging.f6660143.js";import{u as z}from"./useDictOptions.c47985a3.js";import{r as J}from"./expense_reimbursement.3cd34518.js";import"./lodash.1d82ee7c.js";import"./index.892155dd.js";import{d as v,r as i,a0 as K,o as s,c as E,V as o,M as t,O as Q,u as r,L as b,W as X,a8 as Y,a as w,k as Z,T as h}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 oo=h("\u67E5\u8BE2"),eo=h("\u91CD\u7F6E"),to={class:"mt-4"},lo={class:"flex justify-end mt-4"},ao=v({name:"projectLists"}),Ro=v({...ao,setup(ro){i(!1),i(!1);const p=K({commitor:"",expense_id:"",invoice_type:""}),D=i([]),y=c=>{D.value=c.map(({id:a})=>a)},{dictData:m}=z("pay_type,invoice_type,tax_rate,invoice_form"),{pager:u,getLists:_,resetParams:C,resetPage:F}=W({fetchFun:J,params:p});return _(),(c,a)=>{const g=P,n=T,k=I,x=S,d=U,V=M,f=O,e=$,B=R,A=q,L=H,j=G;return s(),E("div",null,[o(f,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[o(V,{class:"mb-[-16px]",model:p,inline:""},{default:t(()=>[o(n,{label:"\u62A5\u9500id",prop:"expense_id"},{default:t(()=>[o(g,{class:"w-[280px]",modelValue:p.expense_id,"onUpdate:modelValue":a[0]||(a[0]=l=>p.expense_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u62A5\u9500id"},null,8,["modelValue"])]),_:1}),o(n,{label:"\u8D39\u7528\u79D1\u76EEid",prop:"cost_subject_id"},{default:t(()=>[o(x,{class:"w-[280px]",modelValue:p.cost_subject_id,"onUpdate:modelValue":a[1]||(a[1]=l=>p.cost_subject_id=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u8D39\u7528\u79D1\u76EEid"},{default:t(()=>[(s(!0),E(X,null,Y(r(m).invoice_type,(l,N)=>(s(),b(k,{key:N,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o(n,null,{default:t(()=>[o(d,{type:"primary",onClick:r(F)},{default:t(()=>[oo]),_:1},8,["onClick"]),o(d,{onClick:r(C)},{default:t(()=>[eo]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),Q((s(),b(f,{class:"!border-none",shadow:"never"},{default:t(()=>[w("div",to,[o(A,{data:r(u).lists,onSelectionChange:y},{default:t(()=>[o(e,{type:"selection",width:"55"}),o(e,{label:"\u5E8F\u53F7",type:"index",width:"55"}),o(e,{label:"\u7EC4\u7EC7\u540D\u79F0",prop:"org_name","show-overflow-tooltip":""}),o(e,{label:"\u90E8\u95E8\u540D\u79F0",prop:"dept_name","show-overflow-tooltip":""}),o(e,{label:"\u5BA2\u6237\u540D\u79F0",prop:"customer_name","show-overflow-tooltip":""}),o(e,{label:"\u62A5\u9500\u4EBA",prop:"reimburser","show-overflow-tooltip":""}),o(e,{label:"\u62A5\u9500\u91D1\u989D",prop:"reimbursement_amount","show-overflow-tooltip":""}),o(e,{label:"\u4ED8\u6B3E\u65B9\u5F0F",prop:"pay_type"},{default:t(({row:l})=>[o(B,{options:r(m).pay_type,value:l.pay_type},null,8,["options","value"])]),_:1}),o(e,{label:"\u5E74\u4EFD",prop:"year","show-overflow-tooltip":""}),o(e,{label:"\u6708\u4EFD",prop:"month","show-overflow-tooltip":""}),o(e,{label:"\u79D1\u76EE\u7F16\u7801",prop:"remark","show-overflow-tooltip":""}),o(e,{label:"\u4E00\u7EA7\u79D1\u76EE",prop:"remark","show-overflow-tooltip":""}),o(e,{label:"\u4E8C\u7EA7\u79D1\u76EE",prop:"remark","show-overflow-tooltip":""}),o(e,{label:"\u7528\u9014",prop:"remark","show-overflow-tooltip":""}),o(e,{label:"\u91D1\u989D",prop:"remark","show-overflow-tooltip":""}),o(e,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""})]),_:1},8,["data"])]),w("div",lo,[o(L,{modelValue:r(u),"onUpdate:modelValue":a[2]||(a[2]=l=>Z(u)?u.value=l:null),onChange:r(_)},null,8,["modelValue","onChange"])])]),_:1})),[[j,r(u).loading]])])}}});export{Ro as default};
|