import{D as G,B as H,w as J,L as K,C as W,O as X,P as Y,Q as Z}from"./element-plus.c5968462.js";import{_ as ee}from"./index.e9056132.js";import{_ as ae}from"./index.vue_vue_type_script_setup_true_lang.963b6450.js";import{f as oe,a as te}from"./index.9aa949ed.js";import{u as le}from"./usePaging.5a1a0ff2.js";import{u as ie}from"./useDictOptions.65204acf.js";import{_ as ne,a as re,b as V,c as ue}from"./edit.vue_vue_type_script_setup_true_name_financialBidMarginEdit_lang.57436226.js";import{a as pe}from"./department.c67dc4f0.js";import{d as $,s as se,r as b,a0 as ce,ai as me,o as r,c as _e,V as e,M as o,O as d,u,L as s,S as L,a as R,k as de,T as m,n as E}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.9bff6341.js";import"./dayjs.920ed704.js";import"./axios.fd7895df.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.4450cf90.js";import"./lodash.f060c5ce.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.89a2cd6d.js";import"./color.f7f12e1b.js";import"./clone.3f99ce25.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.7ca60bdd.js";import"./ms.a9ae1d6d.js";import"./nprogress.2d805d1c.js";import"./vue-clipboard3.f9b015dd.js";import"./clipboard.84da4513.js";import"./echarts.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.d693a0d8.js";import"./index.vue_vue_type_style_index_0_lang.cda5de72.js";import"./common.dbc22d71.js";import"./dialogTableConfig.39c0aff5.js";import"./supervision_project.6b1210a3.js";import"./manage_project.9d7ac6d8.js";import"./cost_approved_project.d1646aac.js";import"./task_type.c1bd483f.js";import"./consult_project.6aa0bc96.js";import"./subcontracting_contract.06fd0a4a.js";import"./suppler_list.7f44b8ca.js";import"./procurement_contract.20d7590f.js";import"./paymentplan.be0b26b3.js";import"./bank_account.3765577e.js";import"./financial_fee_application.4a308c0e.js";import"./financial_borrow_money.fdcba2cf.js";import"./marketing_custom_return_visit_template.4310bc92.js";import"./marketing_custom_return_visit.b564e531.js";import"./marketing_custom.7ccd0379.js";import"./project_attendance_record.93303a4a.js";import"./marketing_contract.20350977.js";import"./marketing_competitor.47f2b8b7.js";import"./index.vue_vue_type_script_setup_true_name_createUserLable_lang.412b36c1.js";import"./index.vue_vue_type_script_setup_true_lang.fb3c6a1b.js";const ve={title:"\u8D22\u52A1\u7BA1\u7406--\u6295\u6807\u4FDD\u8BC1\u91D1\u56DE\u6536",config:[{label:"\u5408\u540C\u540D\u79F0",value:"project_name"},{label:"\u7532\u65B9\u5355\u4F4D",value:"part_a_name"},{label:"\u6536\u6B3E\u5355\u4F4D",value:"collection_company"},{label:"\u6536\u6B3E\u8D26\u53F7",value:"collection_account"},{label:"\u5F00\u6237\u7701\u4EFD",value:"province_name"},{label:"\u5F00\u6237\u57CE\u5E02",value:"city_name"},{label:"\u6536\u6B3E\u94F6\u884C",value:"collection_bank"},{label:"\u6536\u6B3E\u5F00\u6237\u884C",value:"collection_open_bank"},{label:"\u7ECF\u529E\u4EBA",value:"agent_name"},{label:"\u8D1F\u8D23\u90E8\u95E8",value:"head_dept_name"},{label:"\u6295\u6807\u4FDD\u8BC1\u91D1",value:"bid_margin"},{label:"\u652F\u4ED8\u65B9\u5F0F",value:"pay_type_text"},{label:"\u7F34\u7EB3\u622A\u6B62\u65E5\u671F",value:"end_date"},{label:"\u9884\u8BA1\u5F52\u8FD8\u65E5\u671F",value:"expected_return_date"},{label:"\u7F34\u7EB3\u622A\u6B62\u65E5\u671F",value:"end_date"},{label:"\u652F\u4ED8\u91D1\u989D",value:"pay_amount"},{label:"\u64CD\u4F5C\u4EBA",value:"operator"},{label:"\u64CD\u4F5C\u65E5\u671F",value:"operation_date"},{label:"\u56DE\u6536\u91D1\u989D",value:"recovery_amount"},{label:"\u56DE\u6536\u65E5\u671F",value:"recovery_date"},{label:"\u8BF4\u660E",value:"recovery_desc",column:1},{label:"\u5907\u6CE8",value:"remark",column:1},{label:"\u9644\u4EF6",value:"annex",column:1},{label:"\u7533\u8BF7\u4EBA",value:"create_user"},{label:"\u7533\u8BF7\u65F6\u95F4",value:"create_time"}]},fe=m("\u67E5\u8BE2"),be=m("\u91CD\u7F6E"),ye=m(" \u65B0\u589E "),we=m(" \u5220\u9664 "),ge={class:"mt-4"},Fe=m(" \u7F16\u8F91 "),De=m(" \u5220\u9664 "),Ce=m(" \u8BE6\u60C5 "),Ee={class:"flex mt-4 justify-end"},he=$({name:"financialBidMarginRecoveryLists"}),Ta=$({...he,setup(Be){const y=se(),F=b(""),w=b(!1),D=b(!1),_=ce({bid_info_id:"",business_opportunity_id:"",part_a:"",cooperate_company:"",agent:""}),C=b([]),A=l=>{C.value=l.map(({id:a})=>a)},{dictData:P}=ie("financial_pay_type"),{pager:v,getLists:g,resetParams:M,resetPage:S}=le({fetchFun:re,params:_}),T=async()=>{var l;w.value=!0,await E(),(l=y.value)==null||l.open("add")},N=async l=>{var p,n;let a=await V({id:l.id});w.value=!0,await E(),(p=y.value)==null||p.open("edit"),(n=y.value)==null||n.setFormData(a)},h=async l=>{await oe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ue({id:l}),g()},j=async l=>{var p,n;let a=await V({id:l});D.value=!0,await E(),(p=F.value)==null||p.open(),(n=F.value)==null||n.setFormData(a)},B=b([]);return(async()=>{let l=await pe();B.value=l.lists})(),g(),(l,a)=>{const p=G,n=H,c=J,U=K,k=W,I=te,t=X,O=Y,q=ae,Q=ee,f=me("perms"),z=Z;return r(),_e("div",null,[e(k,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(U,{class:"mb-[-16px]",model:_,inline:""},{default:o(()=>[e(n,{label:"\u7532\u65B9\u5355\u4F4D",prop:"part_a"},{default:o(()=>[e(p,{class:"w-[280px]",modelValue:_.part_a,"onUpdate:modelValue":a[0]||(a[0]=i=>_.part_a=i),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7532\u65B9\u5355\u4F4D"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u7ECF\u529E\u4EBA"},{default:o(()=>[e(p,{class:"w-[280px]",modelValue:_.agent,"onUpdate:modelValue":a[1]||(a[1]=i=>_.agent=i),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7ECF\u529E\u4EBA"},null,8,["modelValue"])]),_:1}),e(n,null,{default:o(()=>[e(c,{type:"primary",onClick:u(S)},{default:o(()=>[fe]),_:1},8,["onClick"]),e(c,{onClick:u(M)},{default:o(()=>[be]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),d((r(),s(k,{class:"!border-none",shadow:"never"},{default:o(()=>[d((r(),s(c,{type:"primary",onClick:T},{icon:o(()=>[e(I,{name:"el-icon-Plus"})]),default:o(()=>[ye]),_:1})),[[f,["financial.financial_bid_margin_recovery/add"]]]),d((r(),s(c,{disabled:!C.value.length,onClick:a[2]||(a[2]=i=>h(C.value))},{default:o(()=>[we]),_:1},8,["disabled"])),[[f,["financial.financial_bid_margin_recovery/delete"]]]),R("div",ge,[e(O,{data:u(v).lists,onSelectionChange:A},{default:o(()=>[e(t,{type:"selection",width:"55"}),e(t,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(t,{label:"\u7532\u65B9\u5355\u4F4D",prop:"part_a_name","show-overflow-tooltip":""}),e(t,{label:"\u7ECF\u529E\u4EBA",prop:"agent_name","show-overflow-tooltip":""}),e(t,{label:"\u914D\u5408\u5355\u4F4D",prop:"cooperate_company","show-overflow-tooltip":""}),e(t,{label:"\u6536\u6B3E\u5355\u4F4D",prop:"collection_company","show-overflow-tooltip":""}),e(t,{label:"\u6536\u6B3E\u8D26\u53F7",prop:"collection_account","show-overflow-tooltip":""}),e(t,{label:"\u6295\u6807\u4FDD\u8BC1\u91D1",prop:"bid_margin","show-overflow-tooltip":""}),e(t,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"pay_type_text","show-overflow-tooltip":""}),e(t,{label:"\u652F\u4ED8\u91D1\u989D",prop:"pay_amount","show-overflow-tooltip":""}),e(t,{label:"\u56DE\u6536\u91D1\u989D",prop:"recovery_amount","show-overflow-tooltip":""}),e(t,{label:"\u7F34\u7EB3\u622A\u6B62\u65E5\u671F",prop:"end_date","show-overflow-tooltip":""}),e(t,{label:"\u9884\u8BA1\u5F52\u8FD8\u65E5\u671F",prop:"expected_return_date","show-overflow-tooltip":""}),e(t,{label:"\u64CD\u4F5C",width:"170",fixed:"right"},{default:o(({row:i})=>[d((r(),s(c,{type:"primary",link:"",onClick:x=>N(i)},{default:o(()=>[Fe]),_:2},1032,["onClick"])),[[f,["financial.financial_bid_margin_recovery/edit"]]]),d((r(),s(c,{type:"danger",link:"",onClick:x=>h(i.id)},{default:o(()=>[De]),_:2},1032,["onClick"])),[[f,["financial.financial_bid_margin_recovery/delete"]]]),d((r(),s(c,{link:"",onClick:x=>j(i.id)},{default:o(()=>[Ce]),_:2},1032,["onClick"])),[[f,["financial.financial_bid_margin_recovery/detail"]]])]),_:1})]),_:1},8,["data"])]),R("div",Ee,[e(q,{modelValue:u(v),"onUpdate:modelValue":a[3]||(a[3]=i=>de(v)?v.value=i:null),onChange:u(g)},null,8,["modelValue","onChange"])])]),_:1})),[[z,u(v).loading]]),w.value?(r(),s(ne,{key:0,deptList:B.value,ref_key:"editRef",ref:y,"dict-data":u(P),onSuccess:u(g),onClose:a[4]||(a[4]=i=>w.value=!1)},null,8,["deptList","dict-data","onSuccess"])):L("",!0),D.value?(r(),s(Q,{key:1,ref_key:"detailRef",ref:F,onClose:a[5]||(a[5]=i=>D.value=!1),detailConfig:u(ve)},null,8,["detailConfig"])):L("",!0)])}}});export{Ta as default};