2 lines
5.8 KiB
JavaScript
2 lines
5.8 KiB
JavaScript
import{I as U,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_loan_apply.917dd4b4.js";import"./lodash.8ea2174a.js";import{_ as oe}from"./edit.vue_vue_type_script_setup_true_name_projectLoanApplyEdit_lang.fa5ddc43.js";import{d as D,s as ae,r as h,a0 as te,ai as le,o as s,c as ne,V as e,M as a,O as f,u,L as d,S as pe,a as C,k as ue,T as _,n as k}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"./index.vue_vue_type_script_setup_true_lang.c07aa9ab.js";import"./project.86812b1a.js";import"./index.vue_vue_type_script_setup_true_lang.f6128439.js";import"./bank_account.bfd9beef.js";const re=_("\u67E5\u8BE2"),se=_("\u91CD\u7F6E"),ie=_(" \u65B0\u589E "),me=_(" \u5220\u9664 "),de={class:"mt-4"},_e=_(" \u7F16\u8F91 "),ce=_(" \u5220\u9664 "),fe={class:"flex justify-end mt-4"},ye=D({name:"projectLoanApplyLists"}),uo=D({...ye,setup(Ee){const y=ae(),E=h(!1),p=te({loan_apply_code:"",project_id:"",apply_user:"",loan_date:"",loan_amount:"",payee_name:"",payee_bank:"",payee_account:"",remark:"",annex:"",bank_account_id:""}),F=h([]),V=n=>{F.value=n.map(({id:o})=>o)},{dictData:g}=X(""),{pager:c,getLists:v,resetParams:x,resetPage:A}=W({fetchFun:Y,params:p}),j=async()=>{var n;E.value=!0,await k(),(n=y.value)==null||n.open("add")},L=async n=>{var i,r;let o=await Z({id:n.id});E.value=!0,await k(),(i=y.value)==null||i.open("edit"),(r=y.value)==null||r.setFormData(o)},b=async n=>{await K.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ee({id:n}),v()};return v(),(n,o)=>{const i=U,r=I,m=M,P=q,B=O,$=Q,l=z,N=G,S=J,w=le("perms"),T=H;return s(),ne("div",null,[e(B,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(P,{class:"mb-[-16px]",model:p,inline:""},{default:a(()=>[e(r,{label:"\u501F\u6B3E\u5355\u53F7",prop:"loan_apply_code"},{default:a(()=>[e(i,{class:"w-[280px]",modelValue:p.loan_apply_code,"onUpdate:modelValue":o[0]||(o[0]=t=>p.loan_apply_code=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u501F\u6B3E\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u501F\u6B3E\u4EBA",prop:"apply_user"},{default:a(()=>[e(i,{class:"w-[280px]",modelValue:p.apply_user,"onUpdate:modelValue":o[1]||(o[1]=t=>p.apply_user=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u501F\u6B3E\u4EBA"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u6536\u6B3E\u4EBA\u59D3\u540D",prop:"payee_name"},{default:a(()=>[e(i,{class:"w-[280px]",modelValue:p.payee_name,"onUpdate:modelValue":o[2]||(o[2]=t=>p.payee_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6536\u6B3E\u4EBA\u59D3\u540D"},null,8,["modelValue"])]),_:1}),e(r,null,{default:a(()=>[e(m,{type:"primary",onClick:u(A)},{default:a(()=>[re]),_:1},8,["onClick"]),e(m,{onClick:u(x)},{default:a(()=>[se]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((s(),d(B,{class:"!border-none",shadow:"never"},{default:a(()=>[f((s(),d(m,{type:"primary",onClick:j},{icon:a(()=>[e($,{name:"el-icon-Plus"})]),default:a(()=>[ie]),_:1})),[[w,["project_loan_apply/add"]]]),f((s(),d(m,{disabled:!F.value.length,onClick:o[3]||(o[3]=t=>b(F.value))},{default:a(()=>[me]),_:1},8,["disabled"])),[[w,["project_loan_apply/delete"]]]),C("div",de,[e(N,{data:u(c).lists,onSelectionChange:V},{default:a(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"\u501F\u6B3E\u5355\u53F7",prop:"loan_apply_code","show-overflow-tooltip":""}),e(l,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(l,{label:"\u501F\u6B3E\u4EBA",prop:"apply_user","show-overflow-tooltip":""}),e(l,{label:"\u501F\u6B3E\u7533\u8BF7\u65E5\u671F",prop:"loan_date","show-overflow-tooltip":""}),e(l,{label:"\u501F\u6B3E\u91D1\u989D",prop:"loan_amount","show-overflow-tooltip":""}),e(l,{label:"\u6536\u6B3E\u4EBA\u59D3\u540D",prop:"payee_name","show-overflow-tooltip":""}),e(l,{label:"\u6536\u6B3E\u94F6\u884C",prop:"payee_bank","show-overflow-tooltip":""}),e(l,{label:"\u6536\u6B3E\u8D26\u53F7",prop:"payee_account","show-overflow-tooltip":""}),e(l,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:t})=>[f((s(),d(m,{type:"primary",link:"",onClick:R=>L(t)},{default:a(()=>[_e]),_:2},1032,["onClick"])),[[w,["project_loan_apply/edit"]]]),f((s(),d(m,{type:"danger",link:"",onClick:R=>b(t.id)},{default:a(()=>[ce]),_:2},1032,["onClick"])),[[w,["project_loan_apply/delete"]]])]),_:1})]),_:1},8,["data"])]),C("div",fe,[e(S,{modelValue:u(c),"onUpdate:modelValue":o[4]||(o[4]=t=>ue(c)?c.value=t:null),onChange:u(v)},null,8,["modelValue","onChange"])])]),_:1})),[[T,u(c).loading]]),E.value?(s(),d(oe,{key:0,ref_key:"editRef",ref:y,"dict-data":u(g),onSuccess:u(v),onClose:o[5]||(o[5]=t=>E.value=!1)},null,8,["dict-data","onSuccess"])):pe("",!0)])}}});export{uo as default};
|