engineering/public/admin/assets/index.05c1cae3.js
2024-02-27 10:28:16 +08:00

2 lines
6.7 KiB
JavaScript

import{I as H,y as J,w as K,D as Q,C as W,L as X,M as Y,N as Z}from"./element-plus.517d4382.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as te,a as oe}from"./index.8b1962e9.js";import{u as ae}from"./usePaging.f6660143.js";import{u as le}from"./useDictOptions.b5854a9e.js";import{d as re,a as V,e as ie}from"./project_travel_reimbursement.efc95bb8.js";import{_ as ue}from"./edit.vue_vue_type_script_setup_true_name_projectTravelReimbursementEdit_lang.3e4a474b.js";import se from"./detail.f12a857f.js";import{u as ne}from"./vue-router.87ebc608.js";import{d as T,s as x,r as B,a0 as pe,ai as me,o as u,c as de,V as e,M as o,O as _,u as s,L as p,S as R,a as P,k as ce,T as d,n as D}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"./lodash.1d82ee7c.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";import"./index.b17dae19.js";import"./project_trip_apply.674c9014.js";import"./index.vue_vue_type_script_setup_true_lang.39b4a7c8.js";import"./project_loan_apply.46fbc61c.js";import"./index.vue_vue_type_script_setup_true_lang.80968ed7.js";import"./bank_account.ef6a10d2.js";import"./index.vue_vue_type_script_setup_true_lang.254a9b99.js";import"./project_cost_temp_set.52ac3a1b.js";import"./project_travel_reimbursement_detail.e5dcd332.js";import"./project_travel_reimbursement_invoice_detail.30cba8c6.js";import"./index.011c79f0.js";import"./approve.bbbe5096.js";import"./flow.34e13ba8.js";import"./flowSet.6da79e1c.js";const _e=d("\u67E5\u8BE2"),fe=d("\u91CD\u7F6E"),ve=d(" \u65B0\u589E "),be=d(" \u5220\u9664 "),we={class:"mt-4"},ye=d(" \u7F16\u8F91 "),he=d(" \u5220\u9664 "),Ce=d(" \u8BE6\u60C5 "),Ee={class:"flex justify-end mt-4"},Be=T({name:"projectTravelReimbursementLists"}),Ft=T({...Be,setup(De){var j;const h=x(),b=x(),w=B(!1),C=B(!1),c=pe({trip_apply_id:"",project_id:"",reimbursement_type:"",loan_apply_id:"",apply_user:""}),E=B([]),$=r=>{E.value=r.map(({id:t})=>t)},{dictData:F}=le("reimbursement_type,invoice_type,tax_rate,invoice_form"),{pager:f,getLists:y,resetParams:L,resetPage:N}=ae({fetchFun:re,params:c}),S=async()=>{var r;w.value=!0,await D(),(r=b.value)==null||r.open("add")},I=async r=>{var n,i;let t=await V({id:r.id});w.value=!0,await D(),(n=b.value)==null||n.open("edit"),(i=b.value)==null||i.setFormData(t)},k=async r=>{await te.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ie({id:r}),y()},U=async r=>{var n,i;let t=await V({id:r.id});C.value=!0,await D(),(n=h.value)==null||n.open(),(i=h.value)==null||i.setFormData(t)};return(j=ne().query)!=null&&j.listId,y(),(r,t)=>{const n=H,i=J,m=K,q=Q,g=W,M=oe,a=X,O=Y,z=ee,v=me("perms"),G=Z;return u(),de("div",null,[e(g,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(q,{class:"mb-[-16px]",model:c,inline:""},{default:o(()=>[e(i,{label:"\u62A5\u9500\u7C7B\u578B",prop:"reimbursement_type"},{default:o(()=>[e(n,{class:"w-[280px]",modelValue:c.reimbursement_type,"onUpdate:modelValue":t[0]||(t[0]=l=>c.reimbursement_type=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u62A5\u9500\u7C7B\u578B"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u62A5\u9500\u4EBA",prop:"apply_user"},{default:o(()=>[e(n,{class:"w-[280px]",modelValue:c.apply_user,"onUpdate:modelValue":t[1]||(t[1]=l=>c.apply_user=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u62A5\u9500\u4EBA"},null,8,["modelValue"])]),_:1}),e(i,null,{default:o(()=>[e(m,{type:"primary",onClick:s(N)},{default:o(()=>[_e]),_:1},8,["onClick"]),e(m,{onClick:s(L)},{default:o(()=>[fe]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((u(),p(g,{class:"!border-none",shadow:"never"},{default:o(()=>[_((u(),p(m,{type:"primary",onClick:S},{icon:o(()=>[e(M,{name:"el-icon-Plus"})]),default:o(()=>[ve]),_:1})),[[v,["project.project_travel_reimbursement/add"]]]),_((u(),p(m,{disabled:!E.value.length,onClick:t[2]||(t[2]=l=>k(E.value))},{default:o(()=>[be]),_:1},8,["disabled"])),[[v,["project.project_travel_reimbursement/delete"]]]),P("div",we,[e(O,{data:s(f).lists,onSelectionChange:$},{default:o(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"\u51FA\u5DEE\u7533\u8BF7\u5355\u7F16\u53F7",prop:"trip_reimbursement_code","show-overflow-tooltip":""}),e(a,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(a,{label:"\u62A5\u9500\u7C7B\u578B",prop:"reimbursement_type","show-overflow-tooltip":""}),e(a,{label:"\u501F\u6B3E\u5355\u7F16\u53F7",prop:"loan_apply_code","show-overflow-tooltip":""}),e(a,{label:"\u501F\u6B3E\u91D1\u989D",prop:"loan_amount","show-overflow-tooltip":""}),e(a,{label:"\u62A5\u9500\u91D1\u989D",prop:"total_amount","show-overflow-tooltip":""}),e(a,{label:"\u51B2\u62B5\u501F\u6B3E\u91D1\u989D",prop:"offset_loan_amount","show-overflow-tooltip":""}),e(a,{label:"\u4ED8\u6B3E\u91D1\u989D",prop:"pay_amount","show-overflow-tooltip":""}),e(a,{label:"\u62A5\u9500\u4EBA",prop:"apply_user","show-overflow-tooltip":""}),e(a,{label:"\u62A5\u9500\u65E5\u671F",prop:"apply_date","show-overflow-tooltip":""}),e(a,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(a,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:l})=>[_((u(),p(m,{type:"primary",link:"",onClick:A=>I(l)},{default:o(()=>[ye]),_:2},1032,["onClick"])),[[v,["project.project_travel_reimbursement/edit"]]]),_((u(),p(m,{type:"danger",link:"",onClick:A=>k(l.id)},{default:o(()=>[he]),_:2},1032,["onClick"])),[[v,["project.project_travel_reimbursement/delete"]]]),_((u(),p(m,{link:"",onClick:A=>U(l)},{default:o(()=>[Ce]),_:2},1032,["onClick"])),[[v,["project.project_travel_reimbursement/detail"]]])]),_:1})]),_:1},8,["data"])]),P("div",Ee,[e(z,{modelValue:s(f),"onUpdate:modelValue":t[3]||(t[3]=l=>ce(f)?f.value=l:null),onChange:s(y)},null,8,["modelValue","onChange"])])]),_:1})),[[G,s(f).loading]]),w.value?(u(),p(ue,{key:0,ref_key:"editRef",ref:b,"dict-data":s(F),onSuccess:s(y),onClose:t[4]||(t[4]=l=>w.value=!1)},null,8,["dict-data","onSuccess"])):R("",!0),C.value?(u(),p(se,{key:1,ref_key:"detailRef",ref:h,"dict-data":s(F),onClose:t[5]||(t[5]=l=>C.value=!1)},null,8,["dict-data"])):R("",!0)])}}});export{Ft as default};