engineering/public/admin/assets/index.5ed727fd.js
shengchanzhe a2653dcd36 提交pc
2024-01-27 11:43:47 +08:00

2 lines
5.9 KiB
JavaScript

import{J as G,y as H,I as K,w as Q,D as W,C as X,L as Z,M as ee,N as te}from"./element-plus.4ff6f47d.js";import{_ as oe}from"./index.vue_vue_type_script_setup_true_lang.7dabd2cb.js";import{f as ae,a as le}from"./index.aaca920c.js";import{u as ne}from"./usePaging.f6660143.js";import{u as ue}from"./useDictOptions.c83e2497.js";import{b as ie,a as x,e as re}from"./refundbidDeposit.7c4fa97d.js";import"./lodash.8ea2174a.js";import{_ as se}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.6b59a699.js";import de from"./detail.f9534948.js";import{d as N,a0 as $,s as P,r as F,ai as pe,o as i,c as ce,V as e,M as o,O as _,u as r,L as s,S as L,a as R,k as me,T as c,n as D}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"./bidbbond.a5e0c877.js";import"./index.vue_vue_type_script_setup_true_lang.f6128439.js";import"./bank_account.bfd9beef.js";import"./projecttype.6db09bf7.js";import"./custom.01004c04.js";const _e=c("\u67E5\u8BE2"),fe=c("\u91CD\u7F6E"),ve=c(" \u65B0\u589E "),be=c(" \u5220\u9664 "),we={class:"mt-4"},ke=c(" \u7F16\u8F91 "),Ce=c(" \u5220\u9664 "),he=c(" \u8BE6\u60C5 "),Ee={class:"flex justify-end mt-4"},Fe=N({name:"projectLists"}),vt=N({...Fe,setup(De){$([]);const C=P(),b=P(),w=F(!1),h=F(!1),m=$({bank_account_id:"",refund_date:""}),E=F([]),S=a=>{E.value=a.map(({id:t})=>t)},{dictData:y}=ue("refund_type,isaccrued,contract_type"),{pager:f,getLists:k,resetParams:T,resetPage:j}=ne({fetchFun:ie,params:m}),M=async()=>{var a;w.value=!0,await D(),(a=b.value)==null||a.open("add")},Y=async a=>{var d,u;console.log(a.id);let t=await x({id:a.id});w.value=!0,await D(),(d=b.value)==null||d.open("edit"),(u=b.value)==null||u.setFormData(t)},g=async a=>{await ae.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await re({id:a}),k()},A=async a=>{var d,u;let t=await x({id:a.id});h.value=!0,await D(),(d=C.value)==null||d.open(),(u=C.value)==null||u.setFormData(t)};return k(),(a,t)=>{const d=G,u=H,I=K,p=Q,U=W,B=X,q=le,n=Z,J=ee,O=oe,v=pe("perms"),z=te;return i(),ce("div",null,[e(B,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(U,{class:"mb-[-16px]",model:m,inline:""},{default:o(()=>[e(u,{label:"\u9000\u6B3E\u65E5\u671F",prop:"refund_date"},{default:o(()=>[e(d,{class:"flex-1 !flex",modelValue:m.refund_date,"onUpdate:modelValue":t[0]||(t[0]=l=>m.refund_date=l),clearable:"","value-format":"YYYY-MM-DD ",placeholder:"\u9009\u62E9\u65E5\u671F"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u94F6\u884C\u8D26\u53F7",prop:"bank_account_id"},{default:o(()=>[e(I,{class:"w-[280px]",modelValue:m.bank_account_id,"onUpdate:modelValue":t[1]||(t[1]=l=>m.bank_account_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7"},null,8,["modelValue"])]),_:1}),e(u,null,{default:o(()=>[e(p,{type:"primary",onClick:r(j)},{default:o(()=>[_e]),_:1},8,["onClick"]),e(p,{onClick:r(T)},{default:o(()=>[fe]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((i(),s(B,{class:"!border-none",shadow:"never"},{default:o(()=>[_((i(),s(p,{type:"primary",onClick:M},{icon:o(()=>[e(q,{name:"el-icon-Plus"})]),default:o(()=>[ve]),_:1})),[[v,["refund.refund/add"]]]),_((i(),s(p,{disabled:!E.value.length,onClick:t[2]||(t[2]=l=>g(E.value))},{default:o(()=>[be]),_:1},8,["disabled"])),[[v,["refund.refund/delete"]]]),R("div",we,[e(J,{data:r(f).lists,onSelectionChange:S},{default:o(()=>[e(n,{type:"selection",width:"55"}),e(n,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(n,{label:"\u6295\u6807\u7F16\u53F7",prop:"bidding_decision_code","show-overflow-tooltip":""}),e(n,{label:"\u5BA2\u6237\u540D\u79F0",prop:"custom_name","show-overflow-tooltip":""}),e(n,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),e(n,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(n,{label:"\u6295\u6807\u65F6\u95F4",prop:"refund_date","show-overflow-tooltip":""}),e(n,{label:"\u9000\u6B3E\u91D1\u989D",prop:"refund_amount","show-overflow-tooltip":""}),e(n,{label:"\u9000\u6B3E\u65E5\u671F",prop:"refund_date","show-overflow-tooltip":""}),e(n,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(n,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:o(({row:l})=>[_((i(),s(p,{type:"primary",link:"",onClick:V=>Y(l)},{default:o(()=>[ke]),_:2},1032,["onClick"])),[[v,["refund.refund/edit"]]]),_((i(),s(p,{type:"danger",link:"",onClick:V=>g(l.id)},{default:o(()=>[Ce]),_:2},1032,["onClick"])),[[v,["refund.refund/delete"]]]),_((i(),s(p,{link:"",onClick:V=>A(l)},{default:o(()=>[he]),_:2},1032,["onClick"])),[[v,["refund.refund/detail"]]])]),_:1})]),_:1},8,["data"])]),R("div",Ee,[e(O,{modelValue:r(f),"onUpdate:modelValue":t[3]||(t[3]=l=>me(f)?f.value=l:null),onChange:r(k)},null,8,["modelValue","onChange"])])]),_:1})),[[z,r(f).loading]]),w.value?(i(),s(se,{key:0,ref_key:"editRef",ref:b,"dict-data":r(y),onSuccess:r(k),onClose:t[4]||(t[4]=l=>w.value=!1)},null,8,["dict-data","onSuccess"])):L("",!0),h.value?(i(),s(de,{key:1,ref_key:"detailRef",ref:C,"dict-data":r(y),onClose:t[5]||(t[5]=l=>h.value=!1)},null,8,["dict-data"])):L("",!0)])}}});export{vt as default};