2 lines
7.4 KiB
JavaScript
2 lines
7.4 KiB
JavaScript
import{I as X,y as Y,G as Z,H as ee,w as oe,D as te,C as le,L as ae,M as ue,N as ie}from"./element-plus.517d4382.js";import{_ as ne}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{a as se}from"./index.8b1962e9.js";import{_ as re}from"./index.vue_vue_type_style_index_0_lang.9f4b6930.js";import{u as de}from"./usePaging.f6660143.js";import{u as pe}from"./useDictOptions.b5854a9e.js";import{a as me,d as I}from"./bid_bidding_decision.8473b8d0.js";import"./lodash.1d82ee7c.js";import{_ as ce}from"./edit.vue_vue_type_script_setup_true_name_bidBiddingDecisionEdit_lang.88e80e2b.js";import _e from"./detail.d46d5ba2.js";import{u as fe}from"./vue-router.87ebc608.js";import{d as N,s as L,r as B,a0 as be,ai as we,o as n,c as D,V as e,M as l,O as E,u as i,L as d,S as R,n as $,W as P,a8 as S,a as U,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"./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";import"./index.b17dae19.js";import"./index.fc916ebb.js";/* empty css */import"./index.vue_vue_type_script_setup_true_lang.ed719f67.js";import"./project.a81dff6c.js";import"./index.011c79f0.js";import"./approve.bbbe5096.js";import"./flow.34e13ba8.js";import"./flowSet.6da79e1c.js";const he=b("\u67E5\u8BE2"),Fe=b("\u91CD\u7F6E"),Be=b(" \u65B0\u589E "),De={class:"mt-4"},Ee=b(" \u8BE6\u60C5 "),ge={class:"flex justify-end mt-4"},Ce=N({name:"bidBiddingDecisionLists"}),Eo=N({...Ce,setup(ye){var V;const w=L(),g=L(),v=B(!1),h=B(!1),u=be({bidding_project_fund_source:"",bid_type:"",project_name:"",code:"",custom_name:""}),T=B([]),q=r=>{T.value=r.map(({id:t})=>t)},{dictData:c}=pe("construction_funds_sources,bidding_method,whether_status,project_assurance"),{pager:p,getLists:F,resetParams:z,resetPage:M}=de({fetchFun:I,params:u}),O=async()=>{var r;v.value=!0,await $(),(r=g.value)==null||r.open("add")},C=async r=>{var m,s;let t=await me({id:r.id});h.value=!0,await $(),(m=w.value)==null||m.open(),(s=w.value)==null||s.setFormData(t)};F();const y=fe();return(V=y.query)!=null&&V.listId&&C({id:y.query.listId}),(r,t)=>{const m=X,s=Y,k=Z,x=ee,_=oe,G=re,H=te,j=le,W=se,a=ae,J=ue,K=ne,A=we("perms"),Q=ie;return n(),D("div",null,[e(j,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(H,{class:"mb-[-16px]",model:u,"label-width":"auto",inline:""},{default:l(()=>[e(s,{label:"\u51B3\u7B56\u7F16\u7801",prop:"code"},{default:l(()=>[e(m,{class:"w-[280px]",modelValue:u.code,"onUpdate:modelValue":t[0]||(t[0]=o=>u.code=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u51B3\u7B56\u7F16\u7801"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name"},{default:l(()=>[e(m,{class:"w-[280px]",modelValue:u.project_name,"onUpdate:modelValue":t[1]||(t[1]=o=>u.project_name=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u5BA2\u6237\u540D\u79F0",prop:"custom_name"},{default:l(()=>[e(m,{class:"w-[280px]",modelValue:u.custom_name,"onUpdate:modelValue":t[2]||(t[2]=o=>u.custom_name=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BA2\u6237\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u8D44\u91D1\u6765\u6E90",prop:"bidding_project_fund_source"},{default:l(()=>[e(x,{class:"w-[280px]",modelValue:u.bidding_project_fund_source,"onUpdate:modelValue":t[3]||(t[3]=o=>u.bidding_project_fund_source=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B"},{default:l(()=>[(n(!0),D(P,null,S(i(c).construction_funds_sources,(o,f)=>(n(),d(k,{key:f,label:o.name,value:parseInt(o.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(s,{label:"\u62DB\u6807\u65B9\u5F0F",prop:"bid_type"},{default:l(()=>[e(x,{class:"w-[280px]",modelValue:u.bid_type,"onUpdate:modelValue":t[4]||(t[4]=o=>u.bid_type=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B"},{default:l(()=>[(n(!0),D(P,null,S(i(c).bidding_method,(o,f)=>(n(),d(k,{key:f,label:o.name,value:parseInt(o.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(s,null,{default:l(()=>[e(_,{type:"primary",onClick:i(M)},{default:l(()=>[he]),_:1},8,["onClick"]),e(_,{onClick:i(z)},{default:l(()=>[Fe]),_:1},8,["onClick"]),e(G,{class:"ml-2.5","fetch-fun":i(I),params:u,"page-size":i(p).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),E((n(),d(j,{class:"!border-none",shadow:"never"},{default:l(()=>[E((n(),d(_,{type:"primary",onClick:O},{icon:l(()=>[e(W,{name:"el-icon-Plus"})]),default:l(()=>[Be]),_:1})),[[A,["bid.bid_bidding_decision/add"]]]),U("div",De,[e(J,{data:i(p).lists,onSelectionChange:q},{default:l(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(a,{label:"\u51B3\u7B56\u7F16\u7801",prop:"code","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:"\u9879\u76EE\u4F30\u7B97",width:"125",prop:"project_estimation","show-overflow-tooltip":""}),e(a,{label:"\u8D44\u91D1\u6765\u6E90",width:"155",prop:"bidding_project_fund_source","show-overflow-tooltip":""}),e(a,{label:"\u6295\u6807\u65F6\u95F4",prop:"bidding_time",width:"155","show-overflow-tooltip":""}),e(a,{label:"\u62DB\u6807\u65B9\u5F0F",prop:"bid_type","show-overflow-tooltip":""}),e(a,{label:"\u7ADE\u4E89\u5BF9\u624B",prop:"competitor","show-overflow-tooltip":""}),e(a,{label:"\u4FDD\u8BC1\u91D1\u91D1\u989D",prop:"margin_amount",width:"125","show-overflow-tooltip":""}),e(a,{label:"\u5F00\u6807\u65E5\u671F",prop:"bid_opening_date","show-overflow-tooltip":""}),e(a,{label:"\u4FDD\u8BC1\u91D1\u9000\u8FD8\u65F6\u95F4",width:"155",prop:"margin_amount_return_date","show-overflow-tooltip":""}),e(a,{label:"\u6709\u65E0\u5185\u90E8\u8D44\u6E90",width:"155",prop:"is_internal_resources","show-overflow-tooltip":""}),e(a,{label:"\u9879\u76EE\u628A\u63E1\u5EA6",width:"85",prop:"project_assurance","show-overflow-tooltip":""}),e(a,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:l(({row:o})=>[E((n(),d(_,{link:"",onClick:f=>C(o)},{default:l(()=>[Ee]),_:2},1032,["onClick"])),[[A,["bid.bid_bidding_decision/detail"]]])]),_:1})]),_:1},8,["data"])]),U("div",ge,[e(K,{modelValue:i(p),"onUpdate:modelValue":t[5]||(t[5]=o=>ve(p)?p.value=o:null),onChange:i(F)},null,8,["modelValue","onChange"])])]),_:1})),[[Q,i(p).loading]]),h.value?(n(),d(_e,{key:0,ref_key:"detailRef",ref:w,"dict-data":i(c),onClose:t[6]||(t[6]=o=>h.value=!1)},null,8,["dict-data"])):R("",!0),v.value?(n(),d(ce,{key:1,ref_key:"editRef",ref:g,"dict-data":i(c),onSuccess:i(F),onClose:t[7]||(t[7]=o=>v.value=!1)},null,8,["dict-data","onSuccess"])):R("",!0)])}}});export{Eo as default};
|