index.00bc39.js 2.6 KB

1
  1. import{al as m,a$ as b,_ as f,d as B,bs as F,w as v,r as p,o as x,G as _,C as r,h,j as i,M as w,l as n,bp as C,aq as g,aN as A}from"./index.js";import{i as D}from"./index.3c9dc929.js";const N=[{value:"1",label:"\u5F85\u5546\u54C1\u53CD\u9988"},{value:"2",label:"\u5F85\u5BA2\u6237\u9009\u62E9\u5546\u54C1"},{value:"3",label:"\u5F85\u9879\u76EE\u65B9\u6848\u5236\u5B9A"},{value:"4",label:"\u5F85\u65B9\u6848\u9009\u62E9"},{value:"5",label:"\u9879\u76EE\u5F85\u4E0B\u5355"},{value:"6",label:"\u9879\u76EE\u5DF2\u7ED3\u675F"}],j=[{type:"selection",width:"40",fixed:"left"},{prop:"projectNo",label:"\u9879\u76EE\u5355\u53F7",width:"170px"},{prop:"project_name",label:"\u9879\u76EE\u540D\u79F0","min-width":"120px"},{prop:"low_rate",label:"\u9879\u76EE\u6BDB\u5229\u7387",_slot_:"low_rate",width:"85px"},{prop:"status",label:"\u72B6\u6001",width:"130px",cellRenderer({row:a}){return m(b,null,{default:()=>{var e;return((e=N.find(s=>Number(s.value)===Number(a.status)))==null?void 0:e.label)||"--"}})}},{prop:"khNo",label:"\u5BA2\u6237\u516C\u53F8\u7F16\u7801",width:"125px"},{prop:"khName",label:"\u5BA2\u6237\u516C\u53F8\u540D\u79F0","min-width":"158px"},{prop:"platform_name",label:"\u5E73\u53F0\u540D\u79F0",width:"100px"},{prop:"budget_total",label:"\u9879\u76EE\u603B\u9884\u7B97",width:"130px"},{prop:"company",label:"\u4E1A\u52A1\u516C\u53F8","min-width":"130px"},{prop:"company_name",label:"\u7533\u8BF7\u4EBA\u90E8\u95E8",minWidth:"150px"},{prop:"creater",label:"\u7533\u8BF7\u4EBA",width:"60px"},{prop:"addtime",label:"\u521B\u5EFA\u65F6\u95F4",width:"140px"}],y={title:"\u9879\u76EE\u7BA1\u7406",columns:j,apis:{httpList:D}},V={class:"flex justify-end mb-[10px]"},k=B({__name:"index",props:{visible:{type:Boolean,required:!0}},emits:["confirm"],setup(a,{emit:e}){const l=F(a,"visible"),u=v([]);function E(){if(u.value.length===0||u.value.length>1){A.warning(u.value.length===0?"\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u9879\u76EE":"\u53EA\u80FD\u9009\u62E9\u4E00\u4E2A\u9879\u76EE");return}l.value=!1,e("confirm",u.value[0].projectNo)}return(M,t)=>{const c=p("ElButton"),d=p("ElDialog");return x(),_(d,{modelValue:n(l),"onUpdate:modelValue":t[1]||(t[1]=o=>g(l)?l.value=o:null),title:"\u9879\u76EE\u9009\u62E9",center:""},{default:r(()=>[h("div",V,[i(c,{type:"primary",size:"small",onClick:E},{default:r(()=>[w("\u4FDD\u5B58")]),_:1})]),i(n(C),{"content-config":n(y),onSelectionChange:t[0]||(t[0]=o=>u.value=o)},null,8,["content-config"])]),_:1},8,["modelValue"])}}});var z=f(k,[["__file","C:/Users/Administrator/Desktop/projects/purchase-vue3/src/views/sellOut/zixunOrder/components/projectModal/index.vue"]]);export{z as default};