import{G as Q,H as X,y as Y,w as Z,D as ee,C as oe,L as te,M as ae,N as le}from"./element-plus.258bf9e7.js";import{_ as ie}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{a as ue}from"./index.ec401e3b.js";import{u as ne}from"./usePaging.f6660143.js";import{u as se}from"./useDictOptions.c644f395.js";import{a as re,d as de}from"./bid_document_examination.3ecf1ccf.js";import{c as me}from"./bid_buy_bidding_document.b63574f0.js";import{_ as pe}from"./edit.vue_vue_type_script_setup_true_name_bidDocumentExaminationEdit_lang.81780650.js";import _e from"./detail.ec0f2449.js";import{u as ce}from"./vue-router.87ebc608.js";import{d as j,s as P,r as f,a0 as fe,ai as be,o as i,c as C,V as e,M as t,O as F,u,L as s,S,n as $,W as I,a8 as N,a as T,k as ve,T as b}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"./lodash.1d82ee7c.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";import"./index.vue_vue_type_script_setup_true_lang.56061058.js";import"./material_list.9f618924.js";import"./index.vue_vue_type_script_setup_true_lang.8e2e1716.js";import"./index.a91b9a2c.js";import"./approve.4bfa22cd.js";import"./flow.825559ec.js";import"./bid_document_examination_detail.7c75ca6e.js";const De=b("\u67E5\u8BE2"),we=b("\u91CD\u7F6E"),he=b(" \u65B0\u589E "),Ee={class:"mt-4"},ye=b(" \u8BE6\u60C5 "),Ce={class:"flex justify-end mt-4"},Fe=j({name:"bidDocumentExaminationLists"}),Eo=j({...Fe,setup(ge){var V;const v=P(),g=P(),D=f(!1),w=f(!1),B=f([]),r=fe({buy_bidding_document_id:"",is_need_deposit:""}),q=f([]),U=n=>{q.value=n.map(({id:a})=>a)},{dictData:h}=se("whether_status,tax_rate,pay_type,construction_funds_sources,bidding_method"),{pager:d,getLists:E,resetParams:A,resetPage:M}=ne({fetchFun:de,params:r}),O=async()=>{var n;D.value=!0,await $(),(n=g.value)==null||n.open("add")},k=async n=>{var m,p;let a=await re({id:n.id});w.value=!0,await $(),(m=v.value)==null||m.open(),(p=v.value)==null||p.setFormData(a)},z=async()=>{let n=await me({page_no:1,page_size:9999});B.value=n.lists},x=ce();return(V=x.query)!=null&&V.listId&&k({id:x.query.listId}),z(),E(),(n,a)=>{const m=Q,p=X,y=Y,_=Z,G=ee,L=oe,H=ue,l=te,W=ae,J=ie,R=be("perms"),K=le;return i(),C("div",null,[e(L,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(G,{class:"mb-[-16px]",model:r,inline:""},{default:t(()=>[e(y,{label:"\u8D2D\u4E70\u6807\u4E66",prop:"buy_bidding_document_id"},{default:t(()=>[e(p,{modelValue:r.buy_bidding_document_id,"onUpdate:modelValue":a[0]||(a[0]=o=>r.buy_bidding_document_id=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u8D2D\u4E70\u6807\u4E66"},{default:t(()=>[(i(!0),C(I,null,N(B.value,(o,c)=>(i(),s(m,{key:c,label:o.name,value:parseInt(o.id)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(y,{label:"\u662F\u5426\u9700\u8981\u4FDD\u8BC1\u91D1",prop:"is_need_deposit"},{default:t(()=>[e(p,{modelValue:r.is_need_deposit,"onUpdate:modelValue":a[1]||(a[1]=o=>r.is_need_deposit=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u9700\u8981\u4FDD\u8BC1\u91D1"},{default:t(()=>[(i(!0),C(I,null,N(u(h).whether_status,(o,c)=>(i(),s(m,{key:c,label:o.name,value:parseInt(o.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(y,null,{default:t(()=>[e(_,{type:"primary",onClick:u(M)},{default:t(()=>[De]),_:1},8,["onClick"]),e(_,{onClick:u(A)},{default:t(()=>[we]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),F((i(),s(L,{class:"!border-none",shadow:"never"},{default:t(()=>[F((i(),s(_,{type:"primary",onClick:O},{icon:t(()=>[e(H,{name:"el-icon-Plus"})]),default:t(()=>[he]),_:1})),[[R,["bid.bid_document_examination/add"]]]),T("div",Ee,[e(W,{data:u(d).lists,onSelectionChange:U},{default:t(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(l,{label:"\u5BA1\u67E5\u7F16\u53F7",prop:"code","show-overflow-tooltip":""}),e(l,{label:"\u6807\u4E66\u7F16\u53F7",prop:"bid_document_no","show-overflow-tooltip":""}),e(l,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(l,{label:"\u62DB\u6807\u516C\u53F8\u540D\u79F0",prop:"invite_tenders_company_name","show-overflow-tooltip":""}),e(l,{label:"\u6295\u6807\u516C\u53F8\u540D\u79F0",prop:"bid_company_name","show-overflow-tooltip":""}),e(l,{label:"\u62DB\u6807\u9879\u76EE\u8D44\u91D1\u6765\u6E90",width:"150",prop:"bidding_project_fund_source","show-overflow-tooltip":""}),e(l,{label:"\u662F\u5426\u9700\u8981\u4FDD\u8BC1\u91D1",prop:"is_margin","show-overflow-tooltip":""}),e(l,{label:"\u4FDD\u8BC1\u91D1\u91D1\u989D ",prop:"margin_amount","show-overflow-tooltip":""}),e(l,{label:"\u5F00\u6807\u65E5\u671F",prop:"bid_opening_date","show-overflow-tooltip":""}),e(l,{label:"\u603B\u91D1\u989D",prop:"total_amount","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:t(({row:o})=>[F((i(),s(_,{link:"",onClick:c=>k(o)},{default:t(()=>[ye]),_:2},1032,["onClick"])),[[R,["bid.bid_document_examination/detail"]]])]),_:1})]),_:1},8,["data"])]),T("div",Ce,[e(J,{modelValue:u(d),"onUpdate:modelValue":a[2]||(a[2]=o=>ve(d)?d.value=o:null),onChange:u(E)},null,8,["modelValue","onChange"])])]),_:1})),[[K,u(d).loading]]),w.value?(i(),s(_e,{key:0,ref_key:"detailRef",ref:v,"dict-data":u(h),onClose:a[3]||(a[3]=o=>w.value=!1)},null,8,["dict-data"])):S("",!0),D.value?(i(),s(pe,{key:1,ref_key:"editRef",ref:g,"dict-data":u(h),onSuccess:u(E),onClose:a[4]||(a[4]=o=>D.value=!1)},null,8,["dict-data","onSuccess"])):S("",!0)])}}});export{Eo as default};