2 lines
5.2 KiB
JavaScript
2 lines
5.2 KiB
JavaScript
import{I as M,y as U,w as q,D as O,C as z,L as G,M as H,N as J}from"./element-plus.517d4382.js";import{_ as K}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as Q,a as W}from"./index.8b1962e9.js";import{u as X}from"./usePaging.f6660143.js";import{u as Y}from"./useDictOptions.b5854a9e.js";import{a as Z,b as ee,e as te}from"./project_expense_reimbursement_detail.89263b88.js";import{_ as oe}from"./edit.vue_vue_type_script_setup_true_name_projectExpenseReimbursementDetailEdit_lang.6a7029fa.js";import{d as y,s as k,r as C,a0 as ae,ai as le,o as n,c as se,V as e,M as t,O as d,u as i,L as u,S as ie,a as j,k as ne,T as m,n as g}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"./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";import"./index.b17dae19.js";import"./index.vue_vue_type_script_setup_true_lang.254a9b99.js";import"./project_cost_temp_set.52ac3a1b.js";import"./index.vue_vue_type_script_setup_true_lang.9079a72d.js";import"./project_expense_reimbursement.132b9356.js";const re=m("\u67E5\u8BE2"),ue=m("\u91CD\u7F6E"),me=m(" \u65B0\u589E "),pe=m(" \u5220\u9664 "),ce={class:"mt-4"},de=m(" \u7F16\u8F91 "),_e=m(" \u5220\u9664 "),fe={class:"flex justify-end mt-4"},be=y({name:"projectExpenseReimbursementDetailLists"}),nt=y({...be,setup(ve){k();const _=k(),f=C(!1);C(!1);const b=ae({expense_reimbursement_id:""}),w=C([]),F=a=>{w.value=a.map(({id:o})=>o)},{dictData:V}=Y(""),{pager:p,getLists:v,resetParams:B,resetPage:A}=X({fetchFun:Z,params:b}),P=async()=>{var a;f.value=!0,await g(),(a=_.value)==null||a.open("add")},R=async a=>{var E,c;let o=await ee({id:a.id});f.value=!0,await g(),(E=_.value)==null||E.open("edit"),(c=_.value)==null||c.setFormData(o)},D=async a=>{await Q.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await te({id:a}),v()};return v(),(a,o)=>{const E=M,c=U,r=q,$=O,x=z,L=W,l=G,N=H,S=K,h=le("perms"),T=J;return n(),se("div",null,[e(x,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e($,{class:"mb-[-16px]",model:b,inline:""},{default:t(()=>[e(c,{label:"\u8D39\u7528\u62A5\u9500\u5355id",prop:"expense_reimbursement_id"},{default:t(()=>[e(E,{class:"w-[280px]",modelValue:b.expense_reimbursement_id,"onUpdate:modelValue":o[0]||(o[0]=s=>b.expense_reimbursement_id=s),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8D39\u7528\u62A5\u9500\u5355id"},null,8,["modelValue"])]),_:1}),e(c,null,{default:t(()=>[e(r,{type:"primary",onClick:i(A)},{default:t(()=>[re]),_:1},8,["onClick"]),e(r,{onClick:i(B)},{default:t(()=>[ue]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),d((n(),u(x,{class:"!border-none",shadow:"never"},{default:t(()=>[d((n(),u(r,{type:"primary",onClick:P},{icon:t(()=>[e(L,{name:"el-icon-Plus"})]),default:t(()=>[me]),_:1})),[[h,["project.project_expense_reimbursement_detail/add"]]]),d((n(),u(r,{disabled:!w.value.length,onClick:o[1]||(o[1]=s=>D(w.value))},{default:t(()=>[pe]),_:1},8,["disabled"])),[[h,["project.project_expense_reimbursement_detail/delete"]]]),j("div",ce,[e(N,{data:i(p).lists,onSelectionChange:F},{default:t(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"\u8D39\u7528\u62A5\u9500\u5355\u53F7",prop:"expense_reimbursement_code","show-overflow-tooltip":""}),e(l,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(l,{label:"\u4E00\u7EA7\u79D1\u76EE",prop:"first_level_subject","show-overflow-tooltip":""}),e(l,{label:"\u4E8C\u7EA7\u79D1\u76EE",prop:"second_level_subject","show-overflow-tooltip":""}),e(l,{label:"\u4E09\u7EA7\u79D1\u76EE",prop:"third_level_subject","show-overflow-tooltip":""}),e(l,{label:"\u91D1\u989D",prop:"amount","show-overflow-tooltip":""}),e(l,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:s})=>[d((n(),u(r,{type:"primary",link:"",onClick:I=>R(s)},{default:t(()=>[de]),_:2},1032,["onClick"])),[[h,["project.project_expense_reimbursement_detail/edit"]]]),d((n(),u(r,{type:"danger",link:"",onClick:I=>D(s.id)},{default:t(()=>[_e]),_:2},1032,["onClick"])),[[h,["project.project_expense_reimbursement_detail/delete"]]])]),_:1})]),_:1},8,["data"])]),j("div",fe,[e(S,{modelValue:i(p),"onUpdate:modelValue":o[2]||(o[2]=s=>ne(p)?p.value=s:null),onChange:i(v)},null,8,["modelValue","onChange"])])]),_:1})),[[T,i(p).loading]]),f.value?(n(),u(oe,{key:0,ref_key:"editRef",ref:_,"dict-data":i(V),onSuccess:i(v),onClose:o[3]||(o[3]=s=>f.value=!1)},null,8,["dict-data","onSuccess"])):ie("",!0)])}}});export{nt as default};
|