detail.8abd65.js 2.3 KB

1
  1. import{_ as z,d as A,w as D,bn as H,x as L,r as n,aC as M,o as l,c as E,H as O,G as C,C as o,j as a,l as t,aq as S,F as g,a as i}from"./index.js";import{u as J}from"./useDetail.1ef9c113.js";import{h as K}from"./index.3c9dc929.js";import Q from"./grossForm.3ba0bc.js";import W from"./baseForm.a0bea7.js";import X from"./feedback.204973.js";import"./platform-query.44bd7119.js";import"./_options.b485149d.js";import"./ladderModal.ce0631.js";import"./productModal.9ef689.js";const Y={class:"p-[10px] bg-white"},Z=A({__name:"detail",setup($){const h="projectDetail",{id:b,isDetail:c,title:k,collapses:m}=J({baseName:"\u9879\u76EE",collapseLen:5}),d=D(!1),e=D(null),{permissions:j}=H(h);async function B(){d.value=!0;const{data:w}=await K({projectNo:b.value});d.value=!1;const{companyNo:r,khNo:u,ladder:p,platform_id:s,project_name:_,budget_total:f,use_desc:v,arrtime:y,endtime:N,status:F,low_rate:x,projectNo:V}=w;e.value={ladder:p.map(({good_img:P,good_name:T,good_type:q,num:G,cat_info:I,budget_price:R,pgNo:U})=>({good_img:P,good_name:T,good_type:q,budget_price:R,can:I,num:G,pgNo:U})),name:_,khNo:u,status:F,arrtime:y,endtime:N,use_desc:v,low_rate:x,platform:s,companyNo:r,projectNo:V,budget_total:f}}return L(async()=>{!c.value||await B()}),(w,r)=>{const u=n("ElCollapseItem"),p=n("ElCollapse"),s=n("ElTabPane"),_=n("ElTabs"),f=M("loading");return l(),E("div",Y,[O((l(),C(_,null,{default:o(()=>[a(s,{label:t(k)},{default:o(()=>[a(p,{modelValue:t(m),"onUpdate:modelValue":r[0]||(r[0]=v=>S(m)?m.value=v:null)},{default:o(()=>[a(u,{title:t(k),name:"1"},{default:o(()=>[a(W,{detail:e.value},null,8,["detail"])]),_:1},8,["title"]),t(c)&&e.value?(l(),E(g,{key:0},[t(j).includes("061")?(l(),C(u,{key:0,title:"\u8BBE\u7F6E\u9879\u76EE\u6BDB\u5229\u7387",name:"2"},{default:o(()=>[a(Q,{rate:e.value.low_rate,id:t(b),onRefresh:B},null,8,["rate","id"])]),_:1})):i("v-if",!0)],64)):i("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"]),t(c)&&e.value?(l(),E(g,{key:0},[a(s,{label:"\u5546\u54C1\u53CD\u9988\u8BE6\u60C5",lazy:""},{default:o(()=>[a(X,{detail:e.value},null,8,["detail"])]),_:1}),["3","4","5","6"].includes(String(e.value.status))?(l(),C(s,{key:0,label:"\u65B9\u6848\u5236\u4F5C"})):i("v-if",!0)],64)):i("v-if",!0)]),_:1})),[[f,d.value]])])}}});var ce=z(Z,[["__file","C:/Users/Administrator/Desktop/projects/purchase-vue3/src/views/sellOut/project/detail.vue"]]);export{ce as default};