engineering/public/admin/assets/index.debe7b9c.js
2024-02-27 10:28:16 +08:00

2 lines
6.4 KiB
JavaScript

import{I as J,y as K,w as Q,D as W,C as X,L as Y,M as Z,N as ee}from"./element-plus.517d4382.js";import{_ as oe}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as ae,a as te}from"./index.8b1962e9.js";import{u as le}from"./usePaging.f6660143.js";import{u as ne}from"./useDictOptions.b5854a9e.js";import{b as L,a as ue,e as pe}from"./project_loan_apply.46fbc61c.js";import"./lodash.1d82ee7c.js";import{_ as ie}from"./edit.vue_vue_type_script_setup_true_name_projectLoanApplyEdit_lang.e41f51f1.js";import se from"./detail.ed505f39.js";import{u as re}from"./vue-router.87ebc608.js";import{d as I,s as P,r as k,a0 as de,ai as me,o as i,c as ce,V as e,M as a,O as _,u as s,L as d,S as $,n as C,a as R,k as _e,T as c}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"./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.ed719f67.js";import"./project.a81dff6c.js";import"./index.vue_vue_type_script_setup_true_lang.80968ed7.js";import"./bank_account.ef6a10d2.js";import"./index.011c79f0.js";import"./approve.bbbe5096.js";import"./flow.34e13ba8.js";import"./flowSet.6da79e1c.js";const fe=c("\u67E5\u8BE2"),ye=c("\u91CD\u7F6E"),ve=c(" \u65B0\u589E "),Ee=c(" \u5220\u9664 "),we={class:"mt-4"},Fe=c(" \u7F16\u8F91 "),be=c(" \u5220\u9664 "),Be=c(" \u8BE6\u60C5 "),ke={class:"flex justify-end mt-4"},Ce=I({name:"projectLoanApplyLists"}),bo=I({...Ce,setup(he){var j;const F=P(),v=P(),E=k(!1),b=k(!1),r=de({loan_apply_code:"",project_id:"",apply_user:"",loan_date:"",loan_amount:"",payee_name:"",payee_bank:"",payee_account:"",remark:"",annex:"",bank_account_id:""}),B=k([]),N=l=>{B.value=l.map(({id:o})=>o)},{dictData:h}=ne(""),{pager:f,getLists:w,resetParams:S,resetPage:T}=le({fetchFun:ue,params:r}),U=async()=>{var l;E.value=!0,await C(),(l=v.value)==null||l.open("add")},q=async l=>{var p,u;let o=await L({id:l.id});E.value=!0,await C(),(p=v.value)==null||p.open("edit"),(u=v.value)==null||u.setFormData(o)},D=async l=>{await ae.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await pe({id:l}),w()},V=async l=>{var p,u;let o=await L({id:l.id});b.value=!0,await C(),(p=F.value)==null||p.open(),(u=F.value)==null||u.setFormData(o)},g=re();return(j=g.query)!=null&&j.listId&&V({id:g.query.listId}),w(),(l,o)=>{const p=J,u=K,m=Q,M=W,x=X,O=te,n=Y,z=Z,G=oe,y=me("perms"),H=ee;return i(),ce("div",null,[e(x,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(M,{class:"mb-[-16px]",model:r,inline:""},{default:a(()=>[e(u,{label:"\u501F\u6B3E\u5355\u53F7",prop:"loan_apply_code"},{default:a(()=>[e(p,{class:"w-[280px]",modelValue:r.loan_apply_code,"onUpdate:modelValue":o[0]||(o[0]=t=>r.loan_apply_code=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u501F\u6B3E\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u501F\u6B3E\u4EBA",prop:"apply_user"},{default:a(()=>[e(p,{class:"w-[280px]",modelValue:r.apply_user,"onUpdate:modelValue":o[1]||(o[1]=t=>r.apply_user=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u501F\u6B3E\u4EBA"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u6536\u6B3E\u4EBA\u59D3\u540D",prop:"payee_name"},{default:a(()=>[e(p,{class:"w-[280px]",modelValue:r.payee_name,"onUpdate:modelValue":o[2]||(o[2]=t=>r.payee_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6536\u6B3E\u4EBA\u59D3\u540D"},null,8,["modelValue"])]),_:1}),e(u,null,{default:a(()=>[e(m,{type:"primary",onClick:s(T)},{default:a(()=>[fe]),_:1},8,["onClick"]),e(m,{onClick:s(S)},{default:a(()=>[ye]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((i(),d(x,{class:"!border-none",shadow:"never"},{default:a(()=>[_((i(),d(m,{type:"primary",onClick:U},{icon:a(()=>[e(O,{name:"el-icon-Plus"})]),default:a(()=>[ve]),_:1})),[[y,["project_loan_apply/add"]]]),_((i(),d(m,{disabled:!B.value.length,onClick:o[3]||(o[3]=t=>D(B.value))},{default:a(()=>[Ee]),_:1},8,["disabled"])),[[y,["project_loan_apply/delete"]]]),R("div",we,[e(z,{data:s(f).lists,onSelectionChange:N},{default:a(()=>[e(n,{type:"selection",width:"55"}),e(n,{label:"\u501F\u6B3E\u5355\u53F7",prop:"loan_apply_code","show-overflow-tooltip":""}),e(n,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(n,{label:"\u501F\u6B3E\u4EBA",prop:"apply_user","show-overflow-tooltip":""}),e(n,{label:"\u501F\u6B3E\u7533\u8BF7\u65E5\u671F",prop:"loan_date","show-overflow-tooltip":""}),e(n,{label:"\u501F\u6B3E\u91D1\u989D",prop:"loan_amount","show-overflow-tooltip":""}),e(n,{label:"\u6536\u6B3E\u4EBA\u59D3\u540D",prop:"payee_name","show-overflow-tooltip":""}),e(n,{label:"\u6536\u6B3E\u94F6\u884C",prop:"payee_bank","show-overflow-tooltip":""}),e(n,{label:"\u6536\u6B3E\u8D26\u53F7",prop:"payee_account","show-overflow-tooltip":""}),e(n,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(n,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:t})=>[_((i(),d(m,{type:"primary",link:"",onClick:A=>q(t)},{default:a(()=>[Fe]),_:2},1032,["onClick"])),[[y,["project_loan_apply/edit"]]]),_((i(),d(m,{type:"danger",link:"",onClick:A=>D(t.id)},{default:a(()=>[be]),_:2},1032,["onClick"])),[[y,["project_loan_apply/delete"]]]),_((i(),d(m,{link:"",onClick:A=>V(t)},{default:a(()=>[Be]),_:2},1032,["onClick"])),[[y,["project_loan_apply/detail"]]])]),_:1})]),_:1},8,["data"])]),R("div",ke,[e(G,{modelValue:s(f),"onUpdate:modelValue":o[4]||(o[4]=t=>_e(f)?f.value=t:null),onChange:s(w)},null,8,["modelValue","onChange"])])]),_:1})),[[H,s(f).loading]]),E.value?(i(),d(ie,{key:0,ref_key:"editRef",ref:v,"dict-data":s(h),onSuccess:s(w),onClose:o[5]||(o[5]=t=>E.value=!1)},null,8,["dict-data","onSuccess"])):$("",!0),b.value?(i(),d(se,{key:1,ref_key:"detailRef",ref:F,"dict-data":s(h),onClose:o[6]||(o[6]=t=>b.value=!1)},null,8,["dict-data"])):$("",!0)])}}});export{bo as default};