2 lines
6.1 KiB
JavaScript
2 lines
6.1 KiB
JavaScript
import{I as z,y as J,G as K,H as Q,w as X,D as Y,C as Z,L as ee,M as oe,N as te}from"./element-plus.258bf9e7.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{_ as ae}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{f as ne,a as ie}from"./index.ec401e3b.js";import{u as se}from"./usePaging.f6660143.js";import{u as ue}from"./useDictOptions.c644f395.js";import{c as re,e as pe,d as me}from"./expense_reimbursement.1ddce67c.js";import"./lodash.1d82ee7c.js";import{_ as de}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.7cb15a66.js";import ce from"./detail.00d61040.js";import{d as L,s as x,r as D,a0 as _e,ai as fe,o as s,c as B,V as e,M as o,O as _,u as n,L as u,S as V,W as ve,a8 as be,a as A,k as we,T as d,n as $}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 Ee=d("\u67E5\u8BE2"),ye=d("\u91CD\u7F6E"),he=d(" \u65B0\u589E "),Ce=d(" \u5220\u9664 "),De={class:"mt-4"},Fe=d(" \u7F16\u8F91 "),ke=d(" \u5220\u9664 "),ge={class:"flex justify-end mt-4"},xe=L({name:"projectLists"}),Do=L({...xe,setup(Be){const j=x(),f=x(),v=D(!1),F=D(!1),r=_e({commitor:"",expense_id:"",invoice_type:""}),h=D([]),P=i=>{h.value=i.map(({id:t})=>t)},{dictData:b}=ue("pay_type,invoice_type,tax_rate,invoice_form"),{pager:c,getLists:w,resetParams:R,resetPage:S}=se({fetchFun:re,params:r}),N=async()=>{var i;v.value=!0,await $(),(i=f.value)==null||i.open("add")},T=async i=>{var E,p;console.log(i.id);let t=await pe({id:i.id});v.value=!0,await $(),(E=f.value)==null||E.open("edit"),(p=f.value)==null||p.setFormData(t)},k=async i=>{await ne.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await me({id:i}),w()};return w(),(i,t)=>{const E=z,p=J,I=K,U=Q,m=X,M=Y,g=Z,O=ie,a=ee,q=ae,G=oe,H=le,y=fe("perms"),W=te;return s(),B("div",null,[e(g,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(M,{class:"mb-[-16px]",model:r,inline:""},{default:o(()=>[e(p,{label:"\u62A5\u9500id",prop:"expense_id"},{default:o(()=>[e(E,{class:"w-[280px]",modelValue:r.expense_id,"onUpdate:modelValue":t[0]||(t[0]=l=>r.expense_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u62A5\u9500id"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u8D39\u7528\u79D1\u76EEid",prop:"cost_subject_id"},{default:o(()=>[e(U,{class:"w-[280px]",modelValue:r.cost_subject_id,"onUpdate:modelValue":t[1]||(t[1]=l=>r.cost_subject_id=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u8D39\u7528\u79D1\u76EEid"},{default:o(()=>[(s(!0),B(ve,null,be(n(b).invoice_type,(l,C)=>(s(),u(I,{key:C,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(p,null,{default:o(()=>[e(m,{type:"primary",onClick:n(S)},{default:o(()=>[Ee]),_:1},8,["onClick"]),e(m,{onClick:n(R)},{default:o(()=>[ye]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((s(),u(g,{class:"!border-none",shadow:"never"},{default:o(()=>[_((s(),u(m,{type:"primary",onClick:N},{icon:o(()=>[e(O,{name:"el-icon-Plus"})]),default:o(()=>[he]),_:1})),[[y,["refund.refund/add"]]]),_((s(),u(m,{disabled:!h.value.length,onClick:t[2]||(t[2]=l=>k(h.value))},{default:o(()=>[Ce]),_:1},8,["disabled"])),[[y,["refund.refund/delete"]]]),A("div",De,[e(G,{data:n(c).lists,onSelectionChange:P},{default:o(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(a,{label:"\u6D41\u7A0B\u6B65\u9AA4",prop:"project_code","show-overflow-tooltip":""}),e(a,{label:"\u4ED8\u6B3E\u5355\u53F7",prop:"approve_no","show-overflow-tooltip":""}),e(a,{label:"\u7EC4\u7EC7\u540D\u79F0",prop:"org_name","show-overflow-tooltip":""}),e(a,{label:"\u90E8\u95E8\u540D\u79F0",prop:"dept_name","show-overflow-tooltip":""}),e(a,{label:"\u4F9B\u5E94\u5546\u540D\u79F0",prop:"supplier_name","show-overflow-tooltip":""}),e(a,{label:"\u5BA2\u6237\u540D\u79F0",prop:"customer_name","show-overflow-tooltip":""}),e(a,{label:"\u62A5\u9500\u4EBA",prop:"reimburser","show-overflow-tooltip":""}),e(a,{label:"\u62A5\u9500\u91D1\u989D",prop:"reimbursement_amount","show-overflow-tooltip":""}),e(a,{label:"\u4ED8\u6B3E\u65B9\u5F0F",prop:"pay_type"},{default:o(({row:l})=>[e(q,{options:n(b).pay_type,value:l.pay_type},null,8,["options","value"])]),_:1}),e(a,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(a,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:o(({row:l})=>[_((s(),u(m,{type:"primary",link:"",onClick:C=>T(l)},{default:o(()=>[Fe]),_:2},1032,["onClick"])),[[y,["refund.refund/edit"]]]),_((s(),u(m,{type:"danger",link:"",onClick:C=>k(l.id)},{default:o(()=>[ke]),_:2},1032,["onClick"])),[[y,["refund.refund/delete"]]])]),_:1})]),_:1},8,["data"])]),A("div",ge,[e(H,{modelValue:n(c),"onUpdate:modelValue":t[3]||(t[3]=l=>we(c)?c.value=l:null),onChange:n(w)},null,8,["modelValue","onChange"])])]),_:1})),[[W,n(c).loading]]),v.value?(s(),u(de,{key:0,ref_key:"editRef",ref:f,"dict-data":n(b),onSuccess:n(w),onClose:t[4]||(t[4]=l=>v.value=!1)},null,8,["dict-data","onSuccess"])):V("",!0),F.value?(s(),u(ce,{key:1,ref_key:"detailRef",ref:j,"dict-data":n(b),onClose:t[5]||(t[5]=l=>F.value=!1)},null,8,["dict-data"])):V("",!0)])}}});export{Do as default};
|