import{w as M,y as q,D as I,C as O,L as U,M as G,N as H}from"./element-plus.258bf9e7.js";import{_ as J}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as K,a as Q}from"./index.ec401e3b.js";import{_ as W}from"./index.vue_vue_type_style_index_0_lang.e91ff55f.js";import{u as X}from"./usePaging.f6660143.js";import{u as Y}from"./useDictOptions.c644f395.js";import{_ as Z,a as B,b as oo}from"./edit.vue_vue_type_script_setup_true_name_projectProgressPaymentDetailEdit_lang.33f41685.js";import"./lodash.1d82ee7c.js";import{d as g,s as eo,r as b,a0 as to,ai as ao,o as s,c as lo,V as o,M as t,O as m,u as l,L as p,S as uo,a as C,k as ro,T as c,n as D}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"./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.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.9492d03b.js";const so=c("\u67E5\u8BE2"),io=c("\u91CD\u7F6E"),no=c(" \u65B0\u589E "),po=c(" \u5220\u9664 "),co={class:"mt-4"},mo=c(" \u7F16\u8F91 "),_o=c(" \u5220\u9664 "),fo={class:"flex justify-end mt-4"},wo=g({name:"projectProgressPaymentDetailLists"}),ae=g({...wo,setup(ho){const _=eo(),d=b(!1),h=to({}),v=b([]),y=u=>{v.value=u.map(({id:a})=>a)},{dictData:A}=Y(""),{pager:i,getLists:f,resetParams:j,resetPage:k}=X({fetchFun:B,params:h}),P=async()=>{var u;d.value=!0,await D(),(u=_.value)==null||u.open("add")},x=async u=>{var a,r;d.value=!0,await D(),(a=_.value)==null||a.open("edit"),(r=_.value)==null||r.setFormData(u)},E=async u=>{await K.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await oo({id:u}),f()};return f(),(u,a)=>{const r=M,V=W,$=q,z=I,F=O,L=Q,e=U,N=G,S=J,w=ao("perms"),T=H;return s(),lo("div",null,[o(F,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[o(z,{class:"mb-[-16px]",model:h,inline:""},{default:t(()=>[o($,null,{default:t(()=>[o(r,{type:"primary",onClick:l(k)},{default:t(()=>[so]),_:1},8,["onClick"]),o(r,{onClick:l(j)},{default:t(()=>[io]),_:1},8,["onClick"]),o(V,{class:"ml-2.5","fetch-fun":l(B),params:h,"page-size":l(i).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),m((s(),p(F,{class:"!border-none",shadow:"never"},{default:t(()=>[m((s(),p(r,{type:"primary",onClick:P},{icon:t(()=>[o(L,{name:"el-icon-Plus"})]),default:t(()=>[no]),_:1})),[[w,["project_process_management.project_progress_payment_detail/add"]]]),m((s(),p(r,{disabled:!v.value.length,onClick:a[0]||(a[0]=n=>E(v.value))},{default:t(()=>[po]),_:1},8,["disabled"])),[[w,["project_process_management.project_progress_payment_detail/delete"]]]),C("div",co,[o(N,{data:l(i).lists,onSelectionChange:y},{default:t(()=>[o(e,{type:"selection",width:"55"}),o(e,{label:"\u6240\u5728\u76EE\u5F55",prop:"directory","show-overflow-tooltip":""}),o(e,{label:"\u5355\u4F4D\u5DE5\u7A0B\u540D\u79F0",prop:"unit_project_name","show-overflow-tooltip":""}),o(e,{label:"\u65F6\u95F4",prop:"time","show-overflow-tooltip":""}),o(e,{label:"\u5F62\u8C61\u8FDB\u5EA6",prop:"image_progress","show-overflow-tooltip":""}),o(e,{label:"\u7533\u62A5\u9020\u4EF7(\u571F\u5EFA)",prop:"declared_cost_tj","show-overflow-tooltip":""}),o(e,{label:"\u7533\u62A5\u9020\u4EF7(\u5B89\u88C5)",prop:"declared_cost_az","show-overflow-tooltip":""}),o(e,{label:"\u7533\u62A5\u9020\u4EF7(\u5176\u4ED6)",prop:"declared_cost_other","show-overflow-tooltip":""}),o(e,{label:"\u8FDB\u5EA6\u7533\u62A5\u9020\u4EF7\u5C0F\u8BA1",prop:"jdsbzj_xiaoji","show-overflow-tooltip":""}),o(e,{label:"\u5BA1\u6838\u9020\u4EF7(\u571F\u5EFA)",prop:"audit_cost_tj","show-overflow-tooltip":""}),o(e,{label:"\u5BA1\u6838\u9020\u4EF7(\u5B89\u88C5)",prop:"audit_cost_az","show-overflow-tooltip":""}),o(e,{label:"\u5BA1\u6838\u9020\u4EF7(\u5176\u4ED6)",prop:"audit_cost_other","show-overflow-tooltip":""}),o(e,{label:"\u8FDB\u5EA6\u5BA1\u6838\u9020\u4EF7\u5C0F\u8BA1",prop:"jdshzj_xiaoji","show-overflow-tooltip":""}),o(e,{label:"\u5BA1\u51CF\u989D(\u5143)",prop:"deduction_amount","show-overflow-tooltip":""}),o(e,{label:"\u5B8C\u6210\u4EA7\u503C\u6BD4\u4F8B(%)",prop:"completed_rate","show-overflow-tooltip":""}),o(e,{label:"\u5408\u540C\u5DE5\u7A0B\u6B3E\u603B\u989D",prop:"contract_total_amount","show-overflow-tooltip":""}),o(e,{label:"\u7D2F\u8BA1\u5B8C\u6210\u5DE5\u7A0B\u6B3E",prop:"ljwc_funds","show-overflow-tooltip":""}),o(e,{label:"\u5F53\u671F\u5E94\u4ED8\u5DE5\u7A0B\u6B3E(\u5143)",prop:"current_payable_funds","show-overflow-tooltip":""}),o(e,{label:"\u4ED8\u6B3E\u6BD4\u4F8B(%)",prop:"payment_rate","show-overflow-tooltip":""}),o(e,{label:"\u5408\u540C\u4ED8\u6B3E\u6BD4\u4F8B(%)",prop:"dcntract_payment_rate","show-overflow-tooltip":""}),o(e,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),o(e,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:n})=>[m((s(),p(r,{type:"primary",link:"",onClick:R=>x(n)},{default:t(()=>[mo]),_:2},1032,["onClick"])),[[w,["project_process_management.project_progress_payment_detail/edit"]]]),m((s(),p(r,{type:"danger",link:"",onClick:R=>E(n.id)},{default:t(()=>[_o]),_:2},1032,["onClick"])),[[w,["project_process_management.project_progress_payment_detail/delete"]]])]),_:1})]),_:1},8,["data"])]),C("div",fo,[o(S,{modelValue:l(i),"onUpdate:modelValue":a[1]||(a[1]=n=>ro(i)?i.value=n:null),onChange:l(f)},null,8,["modelValue","onChange"])])]),_:1})),[[T,l(i).loading]]),d.value?(s(),p(Z,{key:0,ref_key:"editRef",ref:_,"dict-data":l(A),onSuccess:l(f),onClose:a[2]||(a[2]=n=>d.value=!1)},null,8,["dict-data","onSuccess"])):uo("",!0)])}}});export{ae as default};