2 lines
6.1 KiB
JavaScript
2 lines
6.1 KiB
JavaScript
import{J as K,y as Q,I as W,w as X,D as Z,C as ee,L as te,M as oe,N as ae}from"./element-plus.83b6d1e4.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.1a11503d.js";import{f as ne,a as ie}from"./index.9310b86c.js";import{_ as ue}from"./index.vue_vue_type_style_index_0_lang.caf2c437.js";import{u as se}from"./usePaging.f6660143.js";import{u as re}from"./useDictOptions.0ef81ed8.js";import{b as x,c as $,a as de}from"./refundbidDeposit.4d359341.js";import"./lodash.1d82ee7c.js";import{_ as pe}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.8d2f1d68.js";import ce from"./detail.37be4206.js";import{d as S,a0 as P,s as L,r as F,ai as me,o as s,c as _e,V as e,M as o,O as f,u as i,L as r,S as R,a as N,k as fe,T as m,n as D}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.8497a500.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.33a9eeb3.js";import"./bidbbond.7440feab.js";import"./index.vue_vue_type_script_setup_true_lang.82c4b424.js";import"./bank_account.115822a8.js";import"./projecttype.bb4f19fe.js";import"./custom.96bc565f.js";const ve=m("\u67E5\u8BE2"),be=m("\u91CD\u7F6E"),we=m(" \u65B0\u589E "),he=m(" \u5220\u9664 "),ke={class:"mt-4"},Ce=m(" \u7F16\u8F91 "),Ee=m(" \u5220\u9664 "),Fe=m(" \u8BE6\u60C5 "),De={class:"flex justify-end mt-4"},ye=S({name:"projectLists"}),ht=S({...ye,setup(ge){P([]);const k=L(),b=L(),w=F(!1),C=F(!1),d=P({bank_account_id:"",refund_date:""}),E=F([]),T=a=>{E.value=a.map(({id:t})=>t)},{dictData:y}=re("refund_type,isaccrued,contract_type"),{pager:_,getLists:h,resetParams:j,resetPage:M}=se({fetchFun:x,params:d}),Y=async()=>{var a;w.value=!0,await D(),(a=b.value)==null||a.open("add")},z=async a=>{var p,u;console.log(a.id);let t=await $({id:a.id});w.value=!0,await D(),(p=b.value)==null||p.open("edit"),(u=b.value)==null||u.setFormData(t)},g=async a=>{await ne.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await de({id:a}),h()},A=async a=>{var p,u;let t=await $({id:a.id});C.value=!0,await D(),(p=k.value)==null||p.open(),(u=k.value)==null||u.setFormData(t)};return h(),(a,t)=>{const p=K,u=Q,I=W,c=X,U=ue,q=Z,B=ee,J=ie,n=te,O=oe,G=le,v=me("perms"),H=ae;return s(),_e("div",null,[e(B,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(q,{class:"mb-[-16px]",model:d,inline:""},{default:o(()=>[e(u,{label:"\u9000\u6B3E\u65E5\u671F",prop:"refund_date"},{default:o(()=>[e(p,{class:"flex-1 !flex",modelValue:d.refund_date,"onUpdate:modelValue":t[0]||(t[0]=l=>d.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:d.bank_account_id,"onUpdate:modelValue":t[1]||(t[1]=l=>d.bank_account_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7"},null,8,["modelValue"])]),_:1}),e(u,null,{default:o(()=>[e(c,{type:"primary",onClick:i(M)},{default:o(()=>[ve]),_:1},8,["onClick"]),e(c,{onClick:i(j)},{default:o(()=>[be]),_:1},8,["onClick"]),e(U,{class:"ml-2.5","fetch-fun":i(x),params:d,"page-size":i(_).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),f((s(),r(B,{class:"!border-none",shadow:"never"},{default:o(()=>[f((s(),r(c,{type:"primary",onClick:Y},{icon:o(()=>[e(J,{name:"el-icon-Plus"})]),default:o(()=>[we]),_:1})),[[v,["refund.refund/add"]]]),f((s(),r(c,{disabled:!E.value.length,onClick:t[2]||(t[2]=l=>g(E.value))},{default:o(()=>[he]),_:1},8,["disabled"])),[[v,["refund.refund/delete"]]]),N("div",ke,[e(O,{data:i(_).lists,onSelectionChange:T},{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:"bidding_time","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})=>[f((s(),r(c,{type:"primary",link:"",onClick:V=>z(l)},{default:o(()=>[Ce]),_:2},1032,["onClick"])),[[v,["refund.refund/edit"]]]),f((s(),r(c,{type:"danger",link:"",onClick:V=>g(l.id)},{default:o(()=>[Ee]),_:2},1032,["onClick"])),[[v,["refund.refund/delete"]]]),f((s(),r(c,{link:"",onClick:V=>A(l)},{default:o(()=>[Fe]),_:2},1032,["onClick"])),[[v,["refund.refund/detail"]]])]),_:1})]),_:1},8,["data"])]),N("div",De,[e(G,{modelValue:i(_),"onUpdate:modelValue":t[3]||(t[3]=l=>fe(_)?_.value=l:null),onChange:i(h)},null,8,["modelValue","onChange"])])]),_:1})),[[H,i(_).loading]]),w.value?(s(),r(pe,{key:0,ref_key:"editRef",ref:b,"dict-data":i(y),onSuccess:i(h),onClose:t[4]||(t[4]=l=>w.value=!1)},null,8,["dict-data","onSuccess"])):R("",!0),C.value?(s(),r(ce,{key:1,ref_key:"detailRef",ref:k,"dict-data":i(y),onClose:t[5]||(t[5]=l=>C.value=!1)},null,8,["dict-data"])):R("",!0)])}}});export{ht as default};
|