import{G as Q,B as z,D as H,w as J,L as K,C as W,O as X,P as Z,Q as ee}from"./element-plus.76ad22d1.js";import{_ as oe}from"./index.2456a665.js";import{_ as te}from"./index.vue_vue_type_script_setup_true_lang.53484866.js";import{f as le,a as ae}from"./index.7dbdd523.js";import{u as ne}from"./usePaging.5a1a0ff2.js";import{u as ie}from"./useDictOptions.19212006.js";import{_ as se,a as ce,b as V,c as ue}from"./edit.vue_vue_type_script_setup_true_name_financialCollectionPlanEdit_lang.86847d32.js";import"./lodash.12303e67.js";import{d as P,s as re,r as h,a0 as me,ai as pe,o as i,c as de,V as o,M as t,O as _,u as s,L as c,S as x,a as A,k as _e,T as m,n as B}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.9bff6341.js";import"./dayjs.4e54c873.js";import"./axios.c27a9cd7.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.c145206a.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.ce2b95b7.js";import"./color.0b62cf11.js";import"./clone.b8d2a027.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./nprogress.026d6bda.js";import"./vue-clipboard3.1a74f940.js";import"./clipboard.80ee0599.js";import"./echarts.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.d693a0d8.js";import"./dialogTableConfig.1168ddc2.js";import"./cost_approved_project.87772dc0.js";import"./task_type.523a1d31.js";import"./subcontracting_contract.2ea27f74.js";import"./suppler_list.39e50042.js";import"./procurement_contract.d97ecdd9.js";import"./paymentplan.8cb97641.js";import"./bank_account.7dd11955.js";import"./financial_fee_application.30ee7cf5.js";import"./financial_borrow_money.768bab5d.js";import"./marketing_custom_return_visit_template.5fb4f637.js";import"./marketing_custom_return_visit.4572b4d1.js";import"./marketing_custom.c254a56a.js";import"./project_attendance_record.39160317.js";import"./marketing_contract.aacda360.js";import"./marketing_competitor.a5e5d9a6.js";import"./index.vue_vue_type_script_setup_true_lang.3b0be00d.js";const fe={title:"\u8D22\u52A1\u7BA1\u7406--\u5408\u540C\u6536\u6B3E\u8BA1\u5212",config:[{label:"\u5408\u540C\u540D\u79F0",value:"contract_name"},{label:"\u8BA1\u5212\u6536\u6B3E\u91D1\u989D",value:"collection_amount"},{label:"\u8BA1\u5212\u65E5\u671F",value:"collection_date"},{label:"\u8BA1\u5212\u4EBA",value:"collection_user"},{label:"\u5907\u6CE8",value:"remark",column:1},{label:"\u9644\u4EF6",value:"annex",column:1}]},ve=m("\u67E5\u8BE2"),Ce=m("\u91CD\u7F6E"),be=m(" \u65B0\u589E "),ke=m(" \u5220\u9664 "),he={class:"mt-4"},we=m(" \u7F16\u8F91 "),Ee=m(" \u5220\u9664 "),ge=m(" \u8BE6\u60C5 "),Be={class:"flex mt-4 justify-end"},De=P({name:"financialCollectionPlanLists"}),Vo=P({...De,setup(Fe){const C=re(),w=h(""),b=h(!1),E=h(!1),p=me({contract_id:"",collection_user:"",collection_date:""}),g=h([]),$=a=>{g.value=a.map(({id:e})=>e)},{dictData:L}=ie(""),{pager:f,getLists:k,resetParams:R,resetPage:S}=ne({fetchFun:ce,params:p}),T=async()=>{var a;b.value=!0,await B(),(a=C.value)==null||a.open("add")},N=async a=>{var u,n;let e=await V({id:a.id});b.value=!0,await B(),(u=C.value)==null||u.open("edit"),(n=C.value)==null||n.setFormData(e)},D=async a=>{await le.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ue({id:a}),k()},Y=async a=>{var u,n;let e=await V({id:a});E.value=!0,await B(),(u=w.value)==null||u.open(),(n=w.value)==null||n.setFormData(e)};return k(),(a,e)=>{const u=Q,n=z,M=H,r=J,U=K,F=W,I=ae,d=X,O=Z,j=te,q=oe,v=pe("perms"),G=ee;return i(),de("div",null,[o(F,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[o(U,{class:"mb-[-16px]",model:p,inline:""},{default:t(()=>[o(n,{label:"\u8BA1\u5212\u65E5\u671F",prop:"collection_user"},{default:t(()=>[o(u,{class:"flex-1 !flex",modelValue:p.collection_date,"onUpdate:modelValue":e[0]||(e[0]=l=>p.collection_date=l),clearable:"","value-format":"YYYY-MM-DD",placeholder:"\u9009\u62E9\u8BA1\u5212\u65E5\u671F"},null,8,["modelValue"])]),_:1}),o(n,{label:"\u8BA1\u5212\u4EBA",prop:"collection_user"},{default:t(()=>[o(M,{class:"w-[280px]",modelValue:p.collection_user,"onUpdate:modelValue":e[1]||(e[1]=l=>p.collection_user=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA1\u5212\u4EBA"},null,8,["modelValue"])]),_:1}),o(n,null,{default:t(()=>[o(r,{type:"primary",onClick:s(S)},{default:t(()=>[ve]),_:1},8,["onClick"]),o(r,{onClick:s(R)},{default:t(()=>[Ce]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((i(),c(F,{class:"!border-none",shadow:"never"},{default:t(()=>[_((i(),c(r,{type:"primary",onClick:T},{icon:t(()=>[o(I,{name:"el-icon-Plus"})]),default:t(()=>[be]),_:1})),[[v,["financial.financial_collection_plan/add"]]]),_((i(),c(r,{disabled:!g.value.length,onClick:e[2]||(e[2]=l=>D(g.value))},{default:t(()=>[ke]),_:1},8,["disabled"])),[[v,["financial.financial_collection_plan/delete"]]]),A("div",he,[o(O,{data:s(f).lists,onSelectionChange:$},{default:t(()=>[o(d,{type:"selection",width:"55"}),o(d,{label:"\u5408\u540C\u540D\u79F0",prop:"contract_name","show-overflow-tooltip":""}),o(d,{label:"\u8BA1\u5212\u6536\u6B3E\u91D1\u989D",prop:"collection_amount","show-overflow-tooltip":""}),o(d,{label:"\u8BA1\u5212\u65E5\u671F",prop:"collection_date","show-overflow-tooltip":""}),o(d,{label:"\u8BA1\u5212\u4EBA",prop:"collection_user","show-overflow-tooltip":""}),o(d,{label:"\u64CD\u4F5C",width:"170",fixed:"right"},{default:t(({row:l})=>[_((i(),c(r,{type:"primary",link:"",onClick:y=>N(l)},{default:t(()=>[we]),_:2},1032,["onClick"])),[[v,["financial.financial_collection_plan/edit"]]]),_((i(),c(r,{type:"danger",link:"",onClick:y=>D(l.id)},{default:t(()=>[Ee]),_:2},1032,["onClick"])),[[v,["financial.financial_collection_plan/delete"]]]),_((i(),c(r,{link:"",onClick:y=>Y(l.id)},{default:t(()=>[ge]),_:2},1032,["onClick"])),[[v,["financial.financial_collection_plan/detail"]]])]),_:1})]),_:1},8,["data"])]),A("div",Be,[o(j,{modelValue:s(f),"onUpdate:modelValue":e[3]||(e[3]=l=>_e(f)?f.value=l:null),onChange:s(k)},null,8,["modelValue","onChange"])])]),_:1})),[[G,s(f).loading]]),b.value?(i(),c(se,{key:0,ref_key:"editRef",ref:C,"dict-data":s(L),onSuccess:s(k),onClose:e[4]||(e[4]=l=>b.value=!1)},null,8,["dict-data","onSuccess"])):x("",!0),E.value?(i(),c(q,{key:1,ref_key:"detailRef",ref:w,onClose:e[5]||(e[5]=l=>E.value=!1),detailConfig:s(fe),width:"550px",column:1},null,8,["detailConfig"])):x("",!0)])}}});export{Vo as default};