2 lines
5.3 KiB
JavaScript
2 lines
5.3 KiB
JavaScript
import{I as U,y as M,G as O,H as q,w as G,D as H,C as W,L as z,M as J,N as K}from"./element-plus.258bf9e7.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{u as Y}from"./usePaging.f6660143.js";import{u as Z}from"./useDictOptions.c644f395.js";import{r as oo}from"./expense_reimbursement.1ddce67c.js";import"./lodash.1d82ee7c.js";import"./index.ec401e3b.js";import{_ as eo}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.2692f3e2.js";import to from"./detail.833c4cbe.js";import{d as C,s as b,r as d,a0 as lo,o as p,c as h,V as o,M as a,O as ao,u as r,L as n,S as D,W as ro,a8 as so,a as y,k as po,T as k}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.vue_vue_type_script_setup_true_lang.291052e3.js";import"./custom.13e75d58.js";import"./index.9492d03b.js";import"./index.vue_vue_type_script_setup_true_lang.15277e50.js";import"./cost_budget.1ece12ef.js";import"./department.1c914e1a.js";import"./organization.f0387125.js";const io=k("\u67E5\u8BE2"),uo=k("\u91CD\u7F6E"),no={class:"mt-4"},mo={class:"flex justify-end mt-4"},_o=C({name:"projectLists"}),ie=C({..._o,setup(co){const F=b(),g=b(),c=d(!1),f=d(!1),s=lo({commitor:"",expense_id:"",invoice_type:""}),x=d([]),V=E=>{x.value=E.map(({id:t})=>t)},{dictData:u}=Z("pay_type,invoice_type,tax_rate,invoice_form"),{pager:i,getLists:m,resetParams:B,resetPage:A}=Y({fetchFun:oo,params:s});return m(),(E,t)=>{const L=U,_=M,R=O,S=q,v=G,j=H,w=W,e=z,N=X,P=J,$=Q,T=K;return p(),h("div",null,[o(w,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[o(j,{class:"mb-[-16px]",model:s,inline:""},{default:a(()=>[o(_,{label:"\u62A5\u9500id",prop:"expense_id"},{default:a(()=>[o(L,{class:"w-[280px]",modelValue:s.expense_id,"onUpdate:modelValue":t[0]||(t[0]=l=>s.expense_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u62A5\u9500id"},null,8,["modelValue"])]),_:1}),o(_,{label:"\u8D39\u7528\u79D1\u76EEid",prop:"cost_subject_id"},{default:a(()=>[o(S,{class:"w-[280px]",modelValue:s.cost_subject_id,"onUpdate:modelValue":t[1]||(t[1]=l=>s.cost_subject_id=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u8D39\u7528\u79D1\u76EEid"},{default:a(()=>[(p(!0),h(ro,null,so(r(u).invoice_type,(l,I)=>(p(),n(R,{key:I,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o(_,null,{default:a(()=>[o(v,{type:"primary",onClick:r(A)},{default:a(()=>[io]),_:1},8,["onClick"]),o(v,{onClick:r(B)},{default:a(()=>[uo]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),ao((p(),n(w,{class:"!border-none",shadow:"never"},{default:a(()=>[y("div",no,[o(P,{data:r(i).lists,onSelectionChange:V},{default:a(()=>[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:a(({row:l})=>[o(N,{options:r(u).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"])]),y("div",mo,[o($,{modelValue:r(i),"onUpdate:modelValue":t[2]||(t[2]=l=>po(i)?i.value=l:null),onChange:r(m)},null,8,["modelValue","onChange"])])]),_:1})),[[T,r(i).loading]]),c.value?(p(),n(eo,{key:0,ref_key:"editRef",ref:g,"dict-data":r(u),onSuccess:r(m),onClose:t[3]||(t[3]=l=>c.value=!1)},null,8,["dict-data","onSuccess"])):D("",!0),f.value?(p(),n(to,{key:1,ref_key:"detailRef",ref:F,"dict-data":r(u),onClose:t[4]||(t[4]=l=>f.value=!1)},null,8,["dict-data"])):D("",!0)])}}});export{ie as default};
|