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

2 lines
6.9 KiB
JavaScript

import{I as S,y as I,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{a as Y,b as Z,e as ee}from"./project_travel_reimbursement.04d3edea.js";import"./lodash.8ea2174a.js";import{_ as oe}from"./edit.vue_vue_type_script_setup_true_name_projectTravelReimbursementEdit_lang.7fd8970b.js";import{d as V,s as te,r as h,a0 as le,ai as ae,o as s,c as ue,V as e,M as t,O as f,u as n,L as d,S as re,a as C,k as pe,T as _,n as D}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"./project_trip_apply.0e3190d0.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_travel_reimbursement_detail.0ba5cbff.js";import"./project_travel_reimbursement_invoice_detail.87d07432.js";const ie=_("\u67E5\u8BE2"),ne=_("\u91CD\u7F6E"),se=_(" \u65B0\u589E "),me=_(" \u5220\u9664 "),de={class:"mt-4"},_e=_(" \u7F16\u8F91 "),ce=_(" \u5220\u9664 "),fe={class:"flex mt-4 justify-end"},be=V({name:"projectTravelReimbursementLists"}),_o=V({...be,setup(ve){const b=te(),v=h(!1),u=le({trip_apply_id:"",project_id:"",reimbursement_type:"",loan_apply_id:"",apply_user:""}),E=h([]),k=r=>{E.value=r.map(({id:o})=>o)},{dictData:j}=X("reimbursement_type,invoice_type,tax_rate,invoice_form"),{pager:c,getLists:w,resetParams:g,resetPage:A}=W({fetchFun:Y,params:u}),x=async()=>{var r;v.value=!0,await D(),(r=b.value)==null||r.open("add")},T=async r=>{var i,p;let o=await Z({id:r.id});v.value=!0,await D(),(i=b.value)==null||i.open("edit"),(p=b.value)==null||p.setFormData(o)},F=async r=>{await K.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ee({id:r}),w()};return w(),(r,o)=>{const i=S,p=I,m=M,P=q,B=O,R=Q,a=z,$=G,L=J,y=ae("perms"),U=H;return s(),ue("div",null,[e(B,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(P,{class:"mb-[-16px]",model:u,inline:""},{default:t(()=>[e(p,{label:"\u51FA\u5DEE\u7533\u8BF7\u5355id",prop:"trip_apply_id"},{default:t(()=>[e(i,{class:"w-[280px]",modelValue:u.trip_apply_id,"onUpdate:modelValue":o[0]||(o[0]=l=>u.trip_apply_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u51FA\u5DEE\u7533\u8BF7\u5355id"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u9879\u76EEid",prop:"project_id"},{default:t(()=>[e(i,{class:"w-[280px]",modelValue:u.project_id,"onUpdate:modelValue":o[1]||(o[1]=l=>u.project_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EEid"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u62A5\u9500\u7C7B\u578B",prop:"reimbursement_type"},{default:t(()=>[e(i,{class:"w-[280px]",modelValue:u.reimbursement_type,"onUpdate:modelValue":o[2]||(o[2]=l=>u.reimbursement_type=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u62A5\u9500\u7C7B\u578B"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u501F\u6B3E\u5355id",prop:"loan_apply_id"},{default:t(()=>[e(i,{class:"w-[280px]",modelValue:u.loan_apply_id,"onUpdate:modelValue":o[3]||(o[3]=l=>u.loan_apply_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u501F\u6B3E\u5355id"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u62A5\u9500\u4EBA",prop:"apply_user"},{default:t(()=>[e(i,{class:"w-[280px]",modelValue:u.apply_user,"onUpdate:modelValue":o[4]||(o[4]=l=>u.apply_user=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u62A5\u9500\u4EBA"},null,8,["modelValue"])]),_:1}),e(p,null,{default:t(()=>[e(m,{type:"primary",onClick:n(A)},{default:t(()=>[ie]),_:1},8,["onClick"]),e(m,{onClick:n(g)},{default:t(()=>[ne]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((s(),d(B,{class:"!border-none",shadow:"never"},{default:t(()=>[f((s(),d(m,{type:"primary",onClick:x},{icon:t(()=>[e(R,{name:"el-icon-Plus"})]),default:t(()=>[se]),_:1})),[[y,["project.project_travel_reimbursement/add"]]]),f((s(),d(m,{disabled:!E.value.length,onClick:o[5]||(o[5]=l=>F(E.value))},{default:t(()=>[me]),_:1},8,["disabled"])),[[y,["project.project_travel_reimbursement/delete"]]]),C("div",de,[e($,{data:n(c).lists,onSelectionChange:k},{default:t(()=>[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:t(({row:l})=>[f((s(),d(m,{type:"primary",link:"",onClick:N=>T(l)},{default:t(()=>[_e]),_:2},1032,["onClick"])),[[y,["project.project_travel_reimbursement/edit"]]]),f((s(),d(m,{type:"danger",link:"",onClick:N=>F(l.id)},{default:t(()=>[ce]),_:2},1032,["onClick"])),[[y,["project.project_travel_reimbursement/delete"]]])]),_:1})]),_:1},8,["data"])]),C("div",fe,[e(L,{modelValue:n(c),"onUpdate:modelValue":o[6]||(o[6]=l=>pe(c)?c.value=l:null),onChange:n(w)},null,8,["modelValue","onChange"])])]),_:1})),[[U,n(c).loading]]),v.value?(s(),d(oe,{key:0,ref_key:"editRef",ref:b,"dict-data":n(j),onSuccess:n(w),onClose:o[7]||(o[7]=l=>v.value=!1)},null,8,["dict-data","onSuccess"])):re("",!0)])}}});export{_o as default};