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