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

2 lines
6.6 KiB
JavaScript

import{G as Z,H as ee,y as te,I as oe,w as ae,D as le,C as ne,L as ue,M as re,N as se}from"./element-plus.517d4382.js";import{_ as ie}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as pe,a as de}from"./index.8b1962e9.js";import{_ as me}from"./index.vue_vue_type_style_index_0_lang.9f4b6930.js";import{u as ce}from"./usePaging.f6660143.js";import{u as fe}from"./useDictOptions.b5854a9e.js";import{c as A,a as I,b as _e}from"./refund.06f79b56.js";import"./lodash.1d82ee7c.js";import{_ as ve}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.fc2829f3.js";import we from"./detail.12833e2d.js";import{u as Ee}from"./vue-router.87ebc608.js";import{d as q,a0 as P,s as S,r as g,ai as he,o as r,c as N,V as e,M as o,O as _,u,L as s,S as T,n as D,W as ye,a8 as be,a as j,k as Fe,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.80968ed7.js";import"./bank_account.ef6a10d2.js";import"./index.vue_vue_type_script_setup_true_lang.b3047aa5.js";import"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import"./contract.2d0c2079.js";import"./projecttype.80aa89f5.js";import"./index.011c79f0.js";import"./approve.bbbe5096.js";import"./flow.34e13ba8.js";import"./custom.99349afc.js";import"./flowSet.6da79e1c.js";const Ce=c("\u67E5\u8BE2"),Be=c("\u91CD\u7F6E"),ke=c(" \u65B0\u589E "),ge=c(" \u5220\u9664 "),De={class:"mt-4"},Ve=c(" \u7F16\u8F91 "),xe=c(" \u5220\u9664 "),$e=c(" \u8BE6\u60C5 "),Le={class:"flex justify-end mt-4"},Re=q({name:"projectLists"}),Rt=q({...Re,setup(Ae){var L;P([]);const b=S(),w=S(),E=g(!1),F=g(!1),i=P({refund_type:"",refund_user:""}),C=g([]),z=n=>{C.value=n.map(({id:t})=>t)},{dictData:B}=fe("refund_type"),{pager:f,getLists:h,resetParams:U,resetPage:M}=ce({fetchFun:I,params:i}),O=async()=>{var n;E.value=!0,await D(),(n=w.value)==null||n.open("add")},G=async n=>{var p,d;console.log(n.id);let t=await A({id:n.id});E.value=!0,await D(),(p=w.value)==null||p.open("edit"),(d=w.value)==null||d.setFormData(t)},V=async n=>{await pe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await _e({id:n}),h()},x=async n=>{var p,d;let t=await A({id:n.id});F.value=!0,await D(),(p=b.value)==null||p.open(),(d=b.value)==null||d.setFormData(t)},$=Ee();return(L=$.query)!=null&&L.listId&&x({id:$.query.listId}),h(),(n,t)=>{const p=Z,d=ee,k=te,H=oe,m=ae,W=me,J=le,R=ne,K=de,l=ue,Q=re,X=ie,v=he("perms"),Y=se;return r(),N("div",null,[e(R,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(J,{class:"mb-[-16px]",model:i,inline:""},{default:o(()=>[e(k,{label:"\u9000\u6B3E\u65B9\u5F0F",prop:"refund_type"},{default:o(()=>[e(d,{class:"w-[280px]",modelValue:i.refund_type,"onUpdate:modelValue":t[0]||(t[0]=a=>i.refund_type=a),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u9000\u6B3E\u65B9\u5F0F"},{default:o(()=>[(r(!0),N(ye,null,be(u(B).refund_type,(a,y)=>(r(),s(p,{key:y,label:a.name,value:parseInt(a.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(k,{label:"\u9000\u6B3E\u4EBA",prop:"refund_user"},{default:o(()=>[e(H,{class:"w-[280px]",modelValue:i.refund_user,"onUpdate:modelValue":t[1]||(t[1]=a=>i.refund_user=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9000\u6B3E\u4EBA"},null,8,["modelValue"])]),_:1}),e(k,null,{default:o(()=>[e(m,{type:"primary",onClick:u(M)},{default:o(()=>[Ce]),_:1},8,["onClick"]),e(m,{onClick:u(U)},{default:o(()=>[Be]),_:1},8,["onClick"]),e(W,{class:"ml-2.5","fetch-fun":u(I),params:i,"page-size":u(f).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),_((r(),s(R,{class:"!border-none",shadow:"never"},{default:o(()=>[_((r(),s(m,{type:"primary",onClick:O},{icon:o(()=>[e(K,{name:"el-icon-Plus"})]),default:o(()=>[ke]),_:1})),[[v,["refund.refund/add"]]]),_((r(),s(m,{disabled:!C.value.length,onClick:t[2]||(t[2]=a=>V(C.value))},{default:o(()=>[ge]),_:1},8,["disabled"])),[[v,["refund.refund/delete"]]]),j("div",De,[e(Q,{data:u(f).lists,onSelectionChange:z},{default:o(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(l,{label:"\u9000\u6B3E\u5355\u53F7",prop:"refund_code","show-overflow-tooltip":""}),e(l,{label:"\u5BA2\u6237\u540D\u79F0",prop:"custom_name","show-overflow-tooltip":""}),e(l,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(l,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_code","show-overflow-tooltip":""}),e(l,{label:"\u9000\u6B3E\u539F\u56E0",prop:"reason","show-overflow-tooltip":""}),e(l,{label:"\u9000\u6B3E\u65E5\u671F",prop:"refund_date","show-overflow-tooltip":""}),e(l,{label:"\u9000\u6B3E\u91D1\u989D",prop:"amount","show-overflow-tooltip":""}),e(l,{label:"\u9000\u6B3E\u65B9\u5F0F",prop:"refund_type","show-overflow-tooltip":""}),e(l,{label:"\u9000\u6B3E\u4EBA",prop:"refund_user","show-overflow-tooltip":""}),e(l,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:o(({row:a})=>[_((r(),s(m,{type:"primary",link:"",onClick:y=>G(a)},{default:o(()=>[Ve]),_:2},1032,["onClick"])),[[v,["refund.refund/edit"]]]),_((r(),s(m,{type:"danger",link:"",onClick:y=>V(a.id)},{default:o(()=>[xe]),_:2},1032,["onClick"])),[[v,["refund.refund/delete"]]]),_((r(),s(m,{link:"",onClick:y=>x(a)},{default:o(()=>[$e]),_:2},1032,["onClick"])),[[v,["refund.refund/detail"]]])]),_:1})]),_:1},8,["data"])]),j("div",Le,[e(X,{modelValue:u(f),"onUpdate:modelValue":t[3]||(t[3]=a=>Fe(f)?f.value=a:null),onChange:u(h)},null,8,["modelValue","onChange"])])]),_:1})),[[Y,u(f).loading]]),E.value?(r(),s(ve,{key:0,ref_key:"editRef",ref:w,"dict-data":u(B),onSuccess:u(h),onClose:t[4]||(t[4]=a=>E.value=!1)},null,8,["dict-data","onSuccess"])):T("",!0),F.value?(r(),s(we,{key:1,ref_key:"detailRef",ref:b,"dict-data":u(B),onClose:t[5]||(t[5]=a=>F.value=!1)},null,8,["dict-data"])):T("",!0)])}}});export{Rt as default};