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