2 lines
7.3 KiB
JavaScript
2 lines
7.3 KiB
JavaScript
import{y as X,A as Y,B as Z,w as ee,N as te,C as oe,P as ae,Q as ie,R as le}from"./element-plus.9aef85e6.js";import{_ as ne}from"./index.vue_vue_type_script_setup_true_lang.3858ee22.js";import{_ as ue}from"./index.vue_vue_type_script_setup_true_lang.23d19169.js";import{f as se,a as de}from"./index.5d64105b.js";import{u as re}from"./usePaging.160b82b8.js";import{u as pe}from"./useDictOptions.7eefc7b1.js";import{d as _e,a as j,e as me}from"./bid_document_examination.3abc444e.js";import"./lodash.8ea2174a.js";import{d as ce}from"./bid_buy_bidding_document.b3ae65cd.js";import{_ as fe}from"./edit.vue_vue_type_script_setup_true_name_bidDocumentExaminationEdit_lang.f1d5a3e5.js";import{_ as ve}from"./detail.vue_vue_type_style_index_0_lang.433b3f5d.js";import{d as U,s as A,r as F,$ as be,af as De,o as n,c as k,U as e,L as o,M as f,u,K as s,R as P,V as S,a7 as N,a as T,k as we,S as _,n as x}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.92e7f918.js";import"./dayjs.fc5568d8.js";import"./axios.5b893b79.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.4cbccc26.js";import"./color.033abf8c.js";import"./clone.a6258514.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.7eedf28f.js";import"./ms.a9ae1d6d.js";import"./nprogress.93182424.js";import"./vue-clipboard3.6a55d49e.js";import"./clipboard.2986c82d.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./index.fbc368c4.js";import"./index.vue_vue_type_script_setup_true_lang.934089a0.js";import"./department.41716e87.js";import"./organization.8cc91524.js";import"./custom.ee8be5f0.js";const he=_("\u67E5\u8BE2"),Ee=_("\u91CD\u7F6E"),Fe=_(" \u65B0\u589E "),Ce=_(" \u5220\u9664 "),ye={class:"mt-4"},Be=_(" \u7F16\u8F91 "),ge=_(" \u5220\u9664 "),ke=_(" \u8BE6\u60C5 "),xe={class:"flex mt-4 justify-end"},Ve=U({name:"bidDocumentExaminationLists"}),yt=U({...Ve,setup($e){const C=A(),w=A(),h=F(!1),y=F(!1),V=F([]),m=be({buy_bidding_document_id:"",is_need_deposit:""}),B=F([]),I=l=>{B.value=l.map(({id:a})=>a)},{dictData:v}=pe("whether_status,tax_rate,pay_type,construction_funds_sources,bidding_method"),{pager:b,getLists:E,resetParams:q,resetPage:z}=re({fetchFun:_e,params:m}),K=async()=>{var l;h.value=!0,await x(),(l=w.value)==null||l.open("add")},M=async l=>{var d,r;let a=await j({id:l.id});h.value=!0,await x(),(d=w.value)==null||d.open("edit"),(r=w.value)==null||r.setFormData(a)},$=async l=>{await se.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await me({id:l}),E()},O=async l=>{var d,r;let a=await j({id:l.id});y.value=!0,await x(),(d=C.value)==null||d.open(),(r=C.value)==null||r.setFormData(a)};return(async()=>{let l=await ce({page_no:1,page_size:9999});V.value=l.lists})(),E(),(l,a)=>{const d=X,r=Y,g=Z,p=ee,Q=te,L=oe,G=de,i=ae,R=ue,H=ie,J=ne,D=De("perms"),W=le;return n(),k("div",null,[e(L,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(Q,{class:"mb-[-16px]",model:m,inline:""},{default:o(()=>[e(g,{label:"\u8D2D\u4E70\u6807\u4E66",prop:"buy_bidding_document_id"},{default:o(()=>[e(r,{modelValue:m.buy_bidding_document_id,"onUpdate:modelValue":a[0]||(a[0]=t=>m.buy_bidding_document_id=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u8D2D\u4E70\u6807\u4E66"},{default:o(()=>[(n(!0),k(S,null,N(V.value,(t,c)=>(n(),s(d,{key:c,label:t.name,value:parseInt(t.id)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(g,{label:"\u662F\u5426\u9700\u8981\u4FDD\u8BC1\u91D1",prop:"is_need_deposit"},{default:o(()=>[e(r,{modelValue:m.is_need_deposit,"onUpdate:modelValue":a[1]||(a[1]=t=>m.is_need_deposit=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u9700\u8981\u4FDD\u8BC1\u91D1"},{default:o(()=>[(n(!0),k(S,null,N(u(v).whether_status,(t,c)=>(n(),s(d,{key:c,label:t.name,value:parseInt(t.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(g,null,{default:o(()=>[e(p,{type:"primary",onClick:u(z)},{default:o(()=>[he]),_:1},8,["onClick"]),e(p,{onClick:u(q)},{default:o(()=>[Ee]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((n(),s(L,{class:"!border-none",shadow:"never"},{default:o(()=>[f((n(),s(p,{type:"primary",onClick:K},{icon:o(()=>[e(G,{name:"el-icon-Plus"})]),default:o(()=>[Fe]),_:1})),[[D,["bid.bid_document_examination/add"]]]),f((n(),s(p,{disabled:!B.value.length,onClick:a[2]||(a[2]=t=>$(B.value))},{default:o(()=>[Ce]),_:1},8,["disabled"])),[[D,["bid.bid_document_examination/delete"]]]),T("div",ye,[e(H,{data:u(b).lists,onSelectionChange:I},{default:o(()=>[e(i,{type:"selection",width:"55"}),e(i,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(i,{label:"\u5904\u7406\u6D41\u7A0B",prop:"project_id","show-overflow-tooltip":""}),e(i,{label:"\u5BA1\u6279\u72B6\u6001",prop:"project_id","show-overflow-tooltip":""}),e(i,{label:"\u6D41\u7A0B\u7F16\u53F7",prop:"approve_id","show-overflow-tooltip":""}),e(i,{label:"\u6807\u4E66\u7F16\u53F7",prop:"approve_id","show-overflow-tooltip":""}),e(i,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(i,{label:"\u62DB\u6807\u516C\u53F8\u540D\u79F0",prop:"invite_tenders_company_name","show-overflow-tooltip":""}),e(i,{label:"\u6295\u6807\u516C\u53F8\u540D\u79F0",prop:"bid_company_name","show-overflow-tooltip":""}),e(i,{label:"\u62DB\u6807\u9879\u76EE\u8D44\u91D1\u6765\u6E90",width:"150",prop:"project_fund_source"},{default:o(({row:t})=>[e(R,{options:u(v).construction_funds_sources,value:t.project_fund_source},null,8,["options","value"])]),_:1}),e(i,{label:"\u6295\u6807\u5730\u5740",prop:"bid_address","show-overflow-tooltip":""}),e(i,{label:"\u662F\u5426\u9700\u8981\u4FDD\u8BC1\u91D1",prop:"is_need_deposit"},{default:o(({row:t})=>[e(R,{options:u(v).whether_status,value:t.is_need_deposit},null,8,["options","value"])]),_:1}),e(i,{label:"\u4FDD\u8BC1\u91D1\u91D1\u989D ",prop:"margin_amount","show-overflow-tooltip":""}),e(i,{label:"\u5F00\u6807\u65E5\u671F",prop:"bid_opening_date","show-overflow-tooltip":""}),e(i,{label:"\u603B\u91D1\u989D",prop:"business_review_total_amount","show-overflow-tooltip":""}),e(i,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:o(({row:t})=>[f((n(),s(p,{type:"primary",link:"",onClick:c=>M(t)},{default:o(()=>[Be]),_:2},1032,["onClick"])),[[D,["bid.bid_document_examination/edit"]]]),f((n(),s(p,{type:"danger",link:"",onClick:c=>$(t.id)},{default:o(()=>[ge]),_:2},1032,["onClick"])),[[D,["bid.bid_document_examination/delete"]]]),f((n(),s(p,{link:"",onClick:c=>O(t)},{default:o(()=>[ke]),_:2},1032,["onClick"])),[[D,["bid.bid_document_examination/detail"]]])]),_:1})]),_:1},8,["data"])]),T("div",xe,[e(J,{modelValue:u(b),"onUpdate:modelValue":a[3]||(a[3]=t=>we(b)?b.value=t:null),onChange:u(E)},null,8,["modelValue","onChange"])])]),_:1})),[[W,u(b).loading]]),y.value?(n(),s(ve,{key:0,ref_key:"detailRef",ref:C,"dict-data":u(v),onClose:a[4]||(a[4]=t=>y.value=!1)},null,8,["dict-data"])):P("",!0),h.value?(n(),s(fe,{key:1,ref_key:"editRef",ref:w,"dict-data":u(v),onSuccess:u(E),onClose:a[5]||(a[5]=t=>h.value=!1)},null,8,["dict-data","onSuccess"])):P("",!0)])}}});export{yt as default};
|