2 lines
5.8 KiB
JavaScript
2 lines
5.8 KiB
JavaScript
import{I as S,y as U,w as M,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,e as Z}from"./project_travel_reimbursement_invoice_detail.30cba8c6.js";import"./lodash.1d82ee7c.js";import{_ as ee}from"./edit.vue_vue_type_script_setup_true_name_projectTravelReimbursementInvoiceDetailEdit_lang.622c4836.js";import{d as x,s as oe,r as y,a0 as te,ai as ae,o as u,c as le,V as e,M as t,O as d,u as r,L as p,S as ie,a as k,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.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";const re=c("\u67E5\u8BE2"),ue=c("\u91CD\u7F6E"),se=c(" \u65B0\u589E "),me=c(" \u5220\u9664 "),pe={class:"mt-4"},ce=c(" \u7F16\u8F91 "),_e=c(" \u5220\u9664 "),de={class:"flex justify-end mt-4"},ve=x({name:"projectTravelReimbursementInvoiceDetailLists"}),lo=x({...ve,setup(fe){const v=oe(),f=y(!1),n=te({travel_reimbursement_id:"",invoice_type:"",invoice_sn:"",invoice_form:""}),F=y([]),B=i=>{F.value=i.map(({id:o})=>o)},{dictData:V}=X("reimbursement_type,invoice_type,tax_rate,invoice_form"),{pager:_,getLists:b,resetParams:g,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,s;f.value=!0,await E(),(o=v.value)==null||o.open("edit"),(s=v.value)==null||s.setFormData(i)},C=async i=>{await K.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Z({id:i}),b()};return b(),(i,o)=>{const s=S,D=U,m=M,R=q,h=O,$=Q,l=z,I=G,L=J,w=ae("perms"),A=H;return u(),le("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(s,{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(s,{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(s,{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(()=>[re]),_:1},8,["onClick"]),e(m,{onClick:r(g)},{default:t(()=>[ue]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),d((u(),p(h,{class:"!border-none",shadow:"never"},{default:t(()=>[d((u(),p(m,{type:"primary",onClick:T},{icon:t(()=>[e($,{name:"el-icon-Plus"})]),default:t(()=>[se]),_:1})),[[w,["project.project_travel_reimbursement_invoice_detail/add"]]]),d((u(),p(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",pe,[e(I,{data:r(_).lists,onSelectionChange:B},{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":""}),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(),p(m,{type:"primary",link:"",onClick:N=>P(a)},{default:t(()=>[ce]),_:2},1032,["onClick"])),[[w,["project.project_travel_reimbursement_invoice_detail/edit"]]]),d((u(),p(m,{type:"danger",link:"",onClick:N=>C(a.id)},{default:t(()=>[_e]),_:2},1032,["onClick"])),[[w,["project.project_travel_reimbursement_invoice_detail/delete"]]])]),_:1})]),_:1},8,["data"])]),k("div",de,[e(L,{modelValue:r(_),"onUpdate:modelValue":o[4]||(o[4]=a=>ne(_)?_.value=a:null),onChange:r(b)},null,8,["modelValue","onChange"])])]),_:1})),[[A,r(_).loading]]),f.value?(u(),p(ee,{key:0,ref_key:"editRef",ref:v,"dict-data":r(V),onSuccess:r(b),onClose:o[5]||(o[5]=a=>f.value=!1)},null,8,["dict-data","onSuccess"])):ie("",!0)])}}});export{lo as default};
|