engineering/public/admin/assets/index.951d4e83.js
2024-03-04 15:04:21 +08:00

2 lines
6.2 KiB
JavaScript

import{I as T,y as U,w as M,D as q,C as O,L as z,M as G,N as H}from"./element-plus.258bf9e7.js";import{_ as J}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as K,a as Q}from"./index.ec401e3b.js";import{u as W}from"./usePaging.f6660143.js";import{u as X}from"./useDictOptions.c644f395.js";import{a as Y,e as Z}from"./project_expense_reimbursement_invoice_detail.e5aac239.js";import"./lodash.1d82ee7c.js";import{_ as ee}from"./edit.vue_vue_type_script_setup_true_name_projectExpenseReimbursementInvoiceDetailEdit_lang.bd76b690.js";import{d as k,s as oe,r as h,a0 as te,ai as le,o as s,c as ie,V as e,M as t,O as f,u,L as m,S as ae,a as y,k as ne,T as c,n as E}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.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.9492d03b.js";import"./index.vue_vue_type_script_setup_true_lang.172efd1d.js";import"./project_expense_reimbursement.63091589.js";const ue=c("\u67E5\u8BE2"),re=c("\u91CD\u7F6E"),se=c(" \u65B0\u589E "),pe=c(" \u5220\u9664 "),me={class:"mt-4"},ce=c(" \u7F16\u8F91 "),_e=c(" \u5220\u9664 "),de={class:"flex mt-4 justify-end"},fe=k({name:"projectExpenseReimbursementInvoiceDetailLists"}),io=k({...fe,setup(ve){const v=oe(),b=h(!1),a=te({expense_reimbursement_id:"",invoice_type:"",invoice_sn:"",invoice_form:""}),F=h([]),V=n=>{F.value=n.map(({id:o})=>o)},{dictData:B}=X("reimbursement_type,invoice_type,tax_rate,invoice_form"),{pager:_,getLists:D,resetParams:g,resetPage:j}=W({fetchFun:Y,params:a}),A=async()=>{var n;b.value=!0,await E(),(n=v.value)==null||n.open("add")},P=async n=>{var o,r;b.value=!0,await E(),(o=v.value)==null||o.open("edit"),(r=v.value)==null||r.setFormData(n)},x=async n=>{await K.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Z({id:n}),D()};return D(),(n,o)=>{const r=T,d=U,p=M,R=q,C=O,$=Q,i=z,I=G,L=J,w=le("perms"),N=H;return s(),ie("div",null,[e(C,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(R,{class:"mb-[-16px]",model:a,inline:""},{default:t(()=>[e(d,{label:"\u8D39\u7528\u62A5\u9500\u5355id",prop:"expense_reimbursement_id"},{default:t(()=>[e(r,{class:"w-[280px]",modelValue:a.expense_reimbursement_id,"onUpdate:modelValue":o[0]||(o[0]=l=>a.expense_reimbursement_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8D39\u7528\u62A5\u9500\u5355id"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u53D1\u7968\u7C7B\u578B",prop:"invoice_type"},{default:t(()=>[e(r,{class:"w-[280px]",modelValue:a.invoice_type,"onUpdate:modelValue":o[1]||(o[1]=l=>a.invoice_type=l),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(r,{class:"w-[280px]",modelValue:a.invoice_sn,"onUpdate:modelValue":o[2]||(o[2]=l=>a.invoice_sn=l),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(r,{class:"w-[280px]",modelValue:a.invoice_form,"onUpdate:modelValue":o[3]||(o[3]=l=>a.invoice_form=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u53D1\u7968\u5F62\u5F0F"},null,8,["modelValue"])]),_:1}),e(d,null,{default:t(()=>[e(p,{type:"primary",onClick:u(j)},{default:t(()=>[ue]),_:1},8,["onClick"]),e(p,{onClick:u(g)},{default:t(()=>[re]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((s(),m(C,{class:"!border-none",shadow:"never"},{default:t(()=>[f((s(),m(p,{type:"primary",onClick:A},{icon:t(()=>[e($,{name:"el-icon-Plus"})]),default:t(()=>[se]),_:1})),[[w,["project.project_expense_reimbursement_invoice_detail/add"]]]),f((s(),m(p,{disabled:!F.value.length,onClick:o[4]||(o[4]=l=>x(F.value))},{default:t(()=>[pe]),_:1},8,["disabled"])),[[w,["project.project_expense_reimbursement_invoice_detail/delete"]]]),y("div",me,[e(I,{data:u(_).lists,onSelectionChange:V},{default:t(()=>[e(i,{type:"selection",width:"55"}),e(i,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(i,{label:"\u8D39\u7528\u62A5\u9500\u5355\u53F7",prop:"expense_reimbursement_code","show-overflow-tooltip":""}),e(i,{label:"\u53D1\u7968\u7C7B\u578B",prop:"invoice_form_text","show-overflow-tooltip":""}),e(i,{label:"\u53D1\u7968\u53F7",prop:"invoice_sn","show-overflow-tooltip":""}),e(i,{label:"\u53D1\u7968\u7A0E\u7387(%)",prop:"tax_rate_text","show-overflow-tooltip":""}),e(i,{label:"\u53D1\u7968\u5F62\u5F0F",prop:"invoice_type_text","show-overflow-tooltip":""}),e(i,{label:"\u53D1\u7968\u91D1\u989D",prop:"invoice_amount","show-overflow-tooltip":""}),e(i,{label:"\u53D1\u7968\u7A0E\u989D",prop:"tax_amount","show-overflow-tooltip":""}),e(i,{label:"\u53D1\u7968\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(i,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:l})=>[f((s(),m(p,{type:"primary",link:"",onClick:S=>P(l)},{default:t(()=>[ce]),_:2},1032,["onClick"])),[[w,["project.project_expense_reimbursement_invoice_detail/edit"]]]),f((s(),m(p,{type:"danger",link:"",onClick:S=>x(l.id)},{default:t(()=>[_e]),_:2},1032,["onClick"])),[[w,["project.project_expense_reimbursement_invoice_detail/delete"]]])]),_:1})]),_:1},8,["data"])]),y("div",de,[e(L,{modelValue:u(_),"onUpdate:modelValue":o[5]||(o[5]=l=>ne(_)?_.value=l:null),onChange:u(D)},null,8,["modelValue","onChange"])])]),_:1})),[[N,u(_).loading]]),b.value?(s(),m(ee,{key:0,ref_key:"editRef",ref:v,"dict-data":u(B),onSuccess:u(D),onClose:o[6]||(o[6]=l=>b.value=!1)},null,8,["dict-data","onSuccess"])):ae("",!0)])}}});export{io as default};