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

2 lines
5.9 KiB
JavaScript

import{I as N,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{a as Y,e as Z}from"./project_travel_reimbursement_invoice_detail.87d07432.js";import{d as x,s as ee,r as y,a0 as oe,ai as te,o as u,c as ae,V as e,M as t,O as d,u as r,L as c,S as le,a as k,T as s,U as ie,k as ne,n as E}from"./@vue.ab566ce7.js";import"./lodash.8ea2174a.js";import{_ as re}from"./edit.vue_vue_type_script_setup_true_name_projectTravelReimbursementInvoiceDetailEdit_lang.873b44c1.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.9d490d1f.js";import"./project_travel_reimbursement.04d3edea.js";const ue=s("\u67E5\u8BE2"),se=s("\u91CD\u7F6E"),pe=s(" \u65B0\u589E "),me=s(" \u5220\u9664 "),ce={class:"mt-4"},_e=s(" \u7F16\u8F91 "),de=s(" \u5220\u9664 "),ve={class:"flex justify-end mt-4"},fe=x({name:"projectTravelReimbursementInvoiceDetailLists"}),io=x({...fe,setup(be){const v=ee(),f=y(!1),n=oe({travel_reimbursement_id:"",invoice_type:"",invoice_sn:"",invoice_form:""}),F=y([]),g=i=>{F.value=i.map(({id:o})=>o)},{dictData:B}=X("reimbursement_type,invoice_type,tax_rate,invoice_form"),{pager:_,getLists:b,resetParams:V,resetPage:j}=W({fetchFun:Y,params:n}),T=async()=>{var i;f.value=!0,await E(),(i=v.value)==null||i.open("add")},P=async i=>{var o,p;f.value=!0,await E(),(o=v.value)==null||o.open("edit"),(p=v.value)==null||p.setFormData(i)},C=async i=>{await K.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Z({id:i}),b()};return b(),(i,o)=>{const p=N,D=U,m=M,R=q,h=O,$=Q,l=z,I=G,L=J,w=te("perms"),S=H;return u(),ae("div",null,[e(h,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(R,{class:"mb-[-16px]",model:n,inline:""},{default:t(()=>[e(D,{label:"\u53D1\u7968\u7C7B\u578B",prop:"invoice_type"},{default:t(()=>[e(p,{class:"w-[280px]",modelValue:n.invoice_type,"onUpdate:modelValue":o[0]||(o[0]=a=>n.invoice_type=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u53D1\u7968\u7C7B\u578B"},null,8,["modelValue"])]),_:1}),e(D,{label:"\u53D1\u7968\u53F7",prop:"invoice_sn"},{default:t(()=>[e(p,{class:"w-[280px]",modelValue:n.invoice_sn,"onUpdate:modelValue":o[1]||(o[1]=a=>n.invoice_sn=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u53D1\u7968\u53F7"},null,8,["modelValue"])]),_:1}),e(D,{label:"\u53D1\u7968\u5F62\u5F0F",prop:"invoice_form"},{default:t(()=>[e(p,{class:"w-[280px]",modelValue:n.invoice_form,"onUpdate:modelValue":o[2]||(o[2]=a=>n.invoice_form=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u53D1\u7968\u5F62\u5F0F"},null,8,["modelValue"])]),_:1}),e(D,null,{default:t(()=>[e(m,{type:"primary",onClick:r(j)},{default:t(()=>[ue]),_:1},8,["onClick"]),e(m,{onClick:r(V)},{default:t(()=>[se]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),d((u(),c(h,{class:"!border-none",shadow:"never"},{default:t(()=>[d((u(),c(m,{type:"primary",onClick:T},{icon:t(()=>[e($,{name:"el-icon-Plus"})]),default:t(()=>[pe]),_:1})),[[w,["project.project_travel_reimbursement_invoice_detail/add"]]]),d((u(),c(m,{disabled:!F.value.length,onClick:o[3]||(o[3]=a=>C(F.value))},{default:t(()=>[me]),_:1},8,["disabled"])),[[w,["project.project_travel_reimbursement_invoice_detail/delete"]]]),k("div",ce,[e(I,{data:r(_).lists,onSelectionChange:g},{default:t(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"\u5DEE\u65C5\u62A5\u9500\u5355\u53F7",prop:"trip_reimbursement_code","show-overflow-tooltip":""}),e(l,{label:"\u53D1\u7968\u7C7B\u578B",prop:"invoice_type_text","show-overflow-tooltip":""}),e(l,{label:"\u53D1\u7968\u53F7",prop:"invoice_sn","show-overflow-tooltip":""}),e(l,{label:"\u53D1\u7968\u7A0E\u7387",prop:"tax_rate_text","show-overflow-tooltip":""},{default:t(({row:a})=>[s(ie(a.tax_rate_text)+"% ",1)]),_:1}),e(l,{label:"\u53D1\u7968\u5F62\u5F0F",prop:"invoice_form_text","show-overflow-tooltip":""}),e(l,{label:"\u53D1\u7968\u91D1\u989D",prop:"invoice_amount","show-overflow-tooltip":""}),e(l,{label:"\u53D1\u7968\u7A0E\u989D",prop:"tax_amount","show-overflow-tooltip":""}),e(l,{label:"\u53D1\u7968\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:a})=>[d((u(),c(m,{type:"primary",link:"",onClick:A=>P(a)},{default:t(()=>[_e]),_:2},1032,["onClick"])),[[w,["project.project_travel_reimbursement_invoice_detail/edit"]]]),d((u(),c(m,{type:"danger",link:"",onClick:A=>C(a.id)},{default:t(()=>[de]),_:2},1032,["onClick"])),[[w,["project.project_travel_reimbursement_invoice_detail/delete"]]])]),_:1})]),_:1},8,["data"])]),k("div",ve,[e(L,{modelValue:r(_),"onUpdate:modelValue":o[4]||(o[4]=a=>ne(_)?_.value=a:null),onChange:r(b)},null,8,["modelValue","onChange"])])]),_:1})),[[S,r(_).loading]]),f.value?(u(),c(re,{key:0,ref_key:"editRef",ref:v,"dict-data":r(B),onSuccess:r(b),onClose:o[5]||(o[5]=a=>f.value=!1)},null,8,["dict-data","onSuccess"])):le("",!0)])}}});export{io as default};