engineering/public/admin/assets/index.a19146a4.js
shengchanzhe a2653dcd36 提交pc
2024-01-27 11:43:47 +08:00

2 lines
6.1 KiB
JavaScript

import{I,y as U,w as M,D as q,C as O,L as z,M as G,N as H}from"./element-plus.4ff6f47d.js";import{_ as J}from"./index.vue_vue_type_script_setup_true_lang.7dabd2cb.js";import{f as K,a as Q}from"./index.aaca920c.js";import{u as W}from"./usePaging.f6660143.js";import{u as X}from"./useDictOptions.c83e2497.js";import{d as Y,a as Z,e as ee}from"./project_expense_reimbursement.6e7cbead.js";import"./lodash.8ea2174a.js";import{_ as oe}from"./edit.vue_vue_type_script_setup_true_name_projectTravelReimbursementEdit_lang.69e45778.js";import{d as k,s as te,r as B,a0 as ae,ai as le,o as u,c as re,V as e,M as o,O as f,u as s,L as m,S as se,a as D,k as ue,T as c,n as F}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.8497a500.js";import"./lodash-es.49f4af13.js";import"./dayjs.fc5568d8.js";import"./axios.5b893b79.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.4cbccc26.js";import"./color.033abf8c.js";import"./clone.a6258514.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.7eedf28f.js";import"./ms.a9ae1d6d.js";import"./nprogress.93182424.js";import"./vue-clipboard3.6a55d49e.js";import"./clipboard.2986c82d.js";import"./echarts.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.ff7c6188.js";import"./index.vue_vue_type_script_setup_true_lang.c07aa9ab.js";import"./project.86812b1a.js";import"./index.vue_vue_type_script_setup_true_lang.a49ec539.js";import"./project_loan_apply.917dd4b4.js";import"./index.vue_vue_type_script_setup_true_lang.f6128439.js";import"./bank_account.bfd9beef.js";import"./index.vue_vue_type_script_setup_true_lang.1e6f4866.js";import"./project_cost_temp_set.3c983c9e.js";import"./project_expense_reimbursement_detail.5755fded.js";import"./project_expense_reimbursement_invoice_detail.0720d2df.js";const ne=c("\u67E5\u8BE2"),ie=c("\u91CD\u7F6E"),pe=c(" \u65B0\u589E "),me=c(" \u5220\u9664 "),ce={class:"mt-4"},_e=c(" \u7F16\u8F91 "),de=c(" \u5220\u9664 "),fe={class:"flex mt-4 justify-end"},be=k({name:"projectExpenseReimbursementLists"}),_o=k({...be,setup(ve){const b=te(),v=B(!1),n=ae({project_id:"",apply_user:"",reimbursement_type:"",payee_name:""}),h=B([]),x=r=>{h.value=r.map(({id:t})=>t)},{dictData:g}=X("reimbursement_type,invoice_type,tax_rate,invoice_form"),{pager:_,getLists:w,resetParams:j,resetPage:A}=W({fetchFun:Y,params:n}),V=async()=>{var r;v.value=!0,await F(),(r=b.value)==null||r.open("add")},P=async r=>{var d,i;let t=await Z({id:r.id});v.value=!0,await F(),(d=b.value)==null||d.open("edit"),(i=b.value)==null||i.setFormData(t)},E=async r=>{await K.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ee({id:r}),w()};return w(),(r,t)=>{const d=I,i=U,p=M,R=q,C=O,$=Q,a=z,L=G,N=J,y=le("perms"),S=H;return u(),re("div",null,[e(C,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(R,{class:"mb-[-16px]",model:n,inline:""},{default:o(()=>[e(i,{label:"\u62A5\u9500\u4EBA",prop:"apply_user"},{default:o(()=>[e(d,{class:"w-[280px]",modelValue:n.apply_user,"onUpdate:modelValue":t[0]||(t[0]=l=>n.apply_user=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u62A5\u9500\u4EBA"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u62A5\u9500\u7C7B\u578B",prop:"reimbursement_type"},{default:o(()=>[e(d,{class:"w-[280px]",modelValue:n.reimbursement_type,"onUpdate:modelValue":t[1]||(t[1]=l=>n.reimbursement_type=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u62A5\u9500\u7C7B\u578B"},null,8,["modelValue"])]),_:1}),e(i,null,{default:o(()=>[e(p,{type:"primary",onClick:s(A)},{default:o(()=>[ne]),_:1},8,["onClick"]),e(p,{onClick:s(j)},{default:o(()=>[ie]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((u(),m(C,{class:"!border-none",shadow:"never"},{default:o(()=>[f((u(),m(p,{type:"primary",onClick:V},{icon:o(()=>[e($,{name:"el-icon-Plus"})]),default:o(()=>[pe]),_:1})),[[y,["project.project_expense_reimbursement/add"]]]),f((u(),m(p,{disabled:!h.value.length,onClick:t[2]||(t[2]=l=>E(h.value))},{default:o(()=>[me]),_:1},8,["disabled"])),[[y,["project.project_expense_reimbursement/delete"]]]),D("div",ce,[e(L,{data:s(_).lists,onSelectionChange:x},{default:o(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"\u8D39\u7528\u62A5\u9500\u5355\u53F7",prop:"expense_reimbursement_code","show-overflow-tooltip":""}),e(a,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","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:"\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:"\u4ED8\u6B3E\u91D1\u989D",prop:"pay_amount","show-overflow-tooltip":""}),e(a,{label:"\u672C\u6B21\u51B2\u62B5\u501F\u6B3E\u91D1\u989D",prop:"offset_loan_amount","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})=>[f((u(),m(p,{type:"primary",link:"",onClick:T=>P(l)},{default:o(()=>[_e]),_:2},1032,["onClick"])),[[y,["project.project_expense_reimbursement/edit"]]]),f((u(),m(p,{type:"danger",link:"",onClick:T=>E(l.id)},{default:o(()=>[de]),_:2},1032,["onClick"])),[[y,["project.project_expense_reimbursement/delete"]]])]),_:1})]),_:1},8,["data"])]),D("div",fe,[e(N,{modelValue:s(_),"onUpdate:modelValue":t[3]||(t[3]=l=>ue(_)?_.value=l:null),onChange:s(w)},null,8,["modelValue","onChange"])])]),_:1})),[[S,s(_).loading]]),v.value?(u(),m(oe,{key:0,ref_key:"editRef",ref:b,"dict-data":s(g),onSuccess:s(w),onClose:t[4]||(t[4]=l=>v.value=!1)},null,8,["dict-data","onSuccess"])):se("",!0)])}}});export{_o as default};