engineering/public/admin/assets/index.f5064182.js
2024-02-27 10:28:16 +08:00

2 lines
7.6 KiB
JavaScript

import{G as K,H as Q,y as X,I as Y,w as Z,D as ee,C as oe,L as te,M as le,N as ae}from"./element-plus.517d4382.js";import{_ as ue}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{a as ne}from"./index.8b1962e9.js";import{u as ie}from"./usePaging.f6660143.js";import{u as se}from"./useDictOptions.b5854a9e.js";import{a as re,c as de}from"./bid_buy_bidding_document.4f5b0fae.js";import"./lodash.1d82ee7c.js";import{a as pe}from"./project.a81dff6c.js";import{_ as me}from"./edit.vue_vue_type_script_setup_true_name_bidBuyBiddingDocumentEdit_lang.28115be8.js";import _e from"./detail.a9937b92.js";import{u as ce}from"./vue-router.87ebc608.js";import{d as $,s as P,r as b,a0 as fe,ai as be,o as s,c as R,V as e,M as l,O as h,u as i,L as d,S as U,n as I,W as we,a8 as Fe,a as S,k as ve,T as w}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"./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.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";/* empty css */import"./index.b17dae19.js";import"./index.vue_vue_type_style_index_0_lang.c7aef442.js";import"./common.9d529cba.js";import"./index.vue_vue_type_script_setup_true_lang.edaf11ee.js";import"./bid_bidding_decision.8473b8d0.js";import"./index.011c79f0.js";import"./approve.bbbe5096.js";import"./flow.34e13ba8.js";import"./custom.99349afc.js";import"./flowSet.6da79e1c.js";const De=w("\u67E5\u8BE2"),Ee=w("\u91CD\u7F6E"),he=w(" \u65B0\u589E "),ye={class:"mt-4"},Be=w(" \u8BE6\u60C5 "),Ce={class:"flex justify-end mt-4"},Ve=$({name:"bidBuyBiddingDocumentLists"}),Vo=$({...Ve,setup(ge){var k;const F=P(),y=P(),v=b(!1),D=b(!1),B=b([]),u=fe({project_id:"",bid_document_no:"",invite_tenders_company_name:"",bid_company_name:"",code:"",project_name:"",custom_name:""}),A=b([]),N=n=>{A.value=n.map(({id:o})=>o)},{dictData:C}=se("construction_funds_sources,bidding_method,whether_status"),{pager:p,getLists:E,resetParams:T,resetPage:q}=ie({fetchFun:de,params:u}),M=async()=>{var n;v.value=!0,await I(),(n=y.value)==null||n.open("add")},V=async n=>{var _,c;let o=await re({id:n.id});D.value=!0,await I(),(_=F.value)==null||_.open(),(c=F.value)==null||c.setFormData(o)},O=async()=>{let n=await pe({page_no:1,page_size:15});B.value=n.lists},g=ce();return(k=g.query)!=null&&k.listId&&V({id:g.query.listId}),O(),E(),(n,o)=>{const _=K,c=Q,r=X,m=Y,f=Z,z=ee,x=oe,G=ne,a=te,H=le,W=ue,j=be("perms"),J=ae;return s(),R("div",null,[e(x,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(z,{class:"mb-[-16px]",model:u,"label-width":"auto",inline:""},{default:l(()=>[e(r,{label:"\u9879\u76EE",prop:"project_id"},{default:l(()=>[e(c,{class:"w-[250px]",modelValue:u.project_id,"onUpdate:modelValue":o[0]||(o[0]=t=>u.project_id=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u9879\u76EE"},{default:l(()=>[(s(!0),R(we,null,Fe(B.value,(t,L)=>(s(),d(_,{key:L,label:t.name,value:parseInt(t.id)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(r,{label:"\u6807\u4E66\u7F16\u53F7",prop:"bid_document_no"},{default:l(()=>[e(m,{class:"w-[250px]",modelValue:u.bid_document_no,"onUpdate:modelValue":o[1]||(o[1]=t=>u.bid_document_no=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6807\u4E66\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u62DB\u6807\u516C\u53F8\u540D\u79F0",prop:"invite_tenders_company_name"},{default:l(()=>[e(m,{class:"w-[250px]",modelValue:u.invite_tenders_company_name,"onUpdate:modelValue":o[2]||(o[2]=t=>u.invite_tenders_company_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u62DB\u6807\u516C\u53F8\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u6295\u6807\u516C\u53F8\u540D\u79F0",prop:"bid_company_name"},{default:l(()=>[e(m,{class:"w-[250px]",modelValue:u.bid_company_name,"onUpdate:modelValue":o[3]||(o[3]=t=>u.bid_company_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u62DB\u6807\u516C\u53F8\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name"},{default:l(()=>[e(m,{class:"w-[250px]",modelValue:u.project_name,"onUpdate:modelValue":o[4]||(o[4]=t=>u.project_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u5BA2\u6237\u540D\u79F0",prop:"custom_name"},{default:l(()=>[e(m,{class:"w-[250px]",modelValue:u.custom_name,"onUpdate:modelValue":o[5]||(o[5]=t=>u.custom_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BA2\u6237\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(r,null,{default:l(()=>[e(f,{type:"primary",onClick:i(q)},{default:l(()=>[De]),_:1},8,["onClick"]),e(f,{onClick:i(T)},{default:l(()=>[Ee]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),h((s(),d(x,{class:"!border-none",shadow:"never"},{default:l(()=>[h((s(),d(f,{type:"primary",onClick:M},{icon:l(()=>[e(G,{name:"el-icon-Plus"})]),default:l(()=>[he]),_:1})),[[j,["bid.bid_buy_bidding_document/add"]]]),S("div",ye,[e(H,{data:i(p).lists,onSelectionChange:N},{default:l(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(a,{label:"\u6295\u6807\u51B3\u7B56\u7F16\u53F7",prop:"bid_decision_code",width:"210","show-overflow-tooltip":""}),e(a,{label:"\u5BA2\u6237\u540D\u79F0",prop:"custom_name","show-overflow-tooltip":""}),e(a,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(a,{label:"\u6807\u4E66\u7F16\u53F7",prop:"bid_document_no",width:"180","show-overflow-tooltip":""}),e(a,{label:"\u62DB\u6807\u516C\u53F8\u540D\u79F0",width:"120",prop:"invite_tenders_company_name","show-overflow-tooltip":""}),e(a,{label:"\u6295\u6807\u516C\u53F8\u540D\u79F0",width:"120",prop:"bid_company_name","show-overflow-tooltip":""}),e(a,{label:"\u8D2D\u4E70\u4EBA\u5458",prop:"buyer","show-overflow-tooltip":""}),e(a,{label:"\u8D2D\u4E70\u6807\u4E66\u91D1\u989D",width:"120",prop:"amount","show-overflow-tooltip":""}),e(a,{label:"\u62DB\u6807\u9879\u76EE\u8D44\u91D1\u6765\u6E90",width:"150",prop:"bidding_project_fund_source","show-overflow-tooltip":""}),e(a,{label:" \u6295\u6807\u65F6\u95F4",prop:"bidding_time","show-overflow-tooltip":""}),e(a,{label:"\u8D2D\u4E70\u6807\u4E66\u65F6\u95F4",prop:"buy_date",width:"120","show-overflow-tooltip":""}),e(a,{label:"\u62DB\u6807\u65B9\u5F0F",prop:"bid_type","show-overflow-tooltip":""}),e(a,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:l(({row:t})=>[h((s(),d(f,{link:"",onClick:L=>V(t)},{default:l(()=>[Be]),_:2},1032,["onClick"])),[[j,["bid.bid_buy_bidding_document/detail"]]])]),_:1})]),_:1},8,["data"])]),S("div",Ce,[e(W,{modelValue:i(p),"onUpdate:modelValue":o[6]||(o[6]=t=>ve(p)?p.value=t:null),onChange:i(E)},null,8,["modelValue","onChange"])])]),_:1})),[[J,i(p).loading]]),D.value?(s(),d(_e,{key:0,ref_key:"detailRef",ref:F,"dict-data":i(C),onClose:o[7]||(o[7]=t=>D.value=!1)},null,8,["dict-data"])):U("",!0),v.value?(s(),d(me,{key:1,ref_key:"editRef",ref:y,"dict-data":i(C),onSuccess:i(E),onClose:o[8]||(o[8]=t=>v.value=!1)},null,8,["dict-data","onSuccess"])):U("",!0)])}}});export{Vo as default};