feedback.204973.js 5.4 KB

1
  1. import{_ as P,d as $,aU as G,w as H,ag as J,Z,x as K,r as n,aC as Q,o as r,c as w,F,D as k,j as e,l as g,aq as W,G as b,C as a,h as x,L as p,M as C,a as B,J as N,H as X,b4 as Y,aN as ee}from"./index.js";import{c as oe,d as te}from"./index.3c9dc929.js";import{g as le}from"./_options.b485149d.js";import ae from"./productModal.9ef689.js";import"./platform-query.44bd7119.js";const ue={class:"flex flex-col"},ne={class:"mb-[10px]"},ie={class:"mb-[10px] flex justify-between"},se=x("span",null,"\u5546\u54C1\u53CD\u9988\u60C5\u51B5",-1),re={key:0},pe=$({__name:"feedback",props:{detail:{type:null,required:!0}},setup(T){const m=T,h=G(!1),s=H([]),j=J(()=>({...v.item,companyNo:m.detail.companyNo,platform:m.detail.platform,khNo:m.detail.khNo})),v=Z({index:-1,item:{}});function A(t,i){v.index=i,v.item=t,h.value=!0}function M(t,i){s.value[i],Y.confirm("\u786E\u5B9A\u8981\u5220\u9664?",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(async()=>{const{code:f,message:d}=await te({id:[t.id],spuCode:t.skuCode,pgNo:t.pgNo});Number(f)===0?E(i):ee.warning(d)})}async function E(t,i=1){s.value[t]||(s.value[t]=m.detail.ladder[t]),s.value[t].page=i,s.value[t].loading=!0;const{data:f}=await oe({pgNo:s.value[t].pgNo,projectNo:m.detail.projectNo,page:s.value[t].page,size:10});s.value[t].loading=!1,s.value[t].feedlist=f.list||[]}return K(async()=>{for(const t in m.detail.ladder)await E(t)}),(t,i)=>{const f=n("ElTag"),d=n("ElTableColumn"),z=n("ElImage"),D=n("ElTable"),I=n("ElButton"),L=n("ElTooltip"),u=n("el-table-column"),R=n("el-image"),V=n("el-tag"),q=n("el-button"),S=n("el-tooltip"),U=n("ElCard"),O=Q("loading");return r(),w("div",ue,[(r(!0),w(F,null,k(s.value,(c,y)=>(r(),b(U,{class:"mb-[10px]"},{default:a(()=>[x("h1",ne,"\u5546\u54C1\u8981\u6C42 "+p(y+1),1),e(D,{class:"mb-[10px]",data:[c],size:"small",border:""},{default:a(()=>[e(d,{label:"\u5546\u54C1\u7C7B\u578B",width:"70px"},{default:a(o=>[e(f,null,{default:a(()=>{var l;return[C(p(((l=g(le).find(({value:_})=>_===o.row.good_type))==null?void 0:l.label)||"--"),1)]}),_:2},1024)]),_:1}),e(d,{label:"\u9884\u7B97\u5355\u4EF7",prop:"budget_price",width:"70px"}),e(d,{label:"\u8D2D\u4E70\u6570\u91CF",prop:"num",width:"70px"}),e(d,{label:"\u5546\u54C1\u5206\u7C7B","min-width":"180px"},{default:a(o=>[C(p(o.row.can.length===3?o.row.can.map(({name:l})=>l).join("/"):""),1)]),_:1}),e(d,{label:"\u56FE\u7247",width:"70px"},{default:a(o=>[o.row.good_img?(r(),b(z,{key:0,style:{width:"20px",height:"20px"},src:o.row.good_img,previewTeleported:"",previewSrcList:[o.row.good_img]},null,8,["src","previewSrcList"])):B("v-if",!0)]),_:1}),e(d,{label:"\u5546\u54C1\u540D\u79F0",prop:"good_name","min-width":"180px"})]),_:2},1032,["data"]),x("h1",ie,[se,e(L,{content:"\u6DFB\u52A0\u7EBF\u4E0A\u5546\u54C1",placement:"top"},{default:a(()=>[e(I,{link:"",type:"primary",icon:g(N)("add"),onClick:o=>A(c,y)},null,8,["icon","onClick"])]),_:2},1024)]),X((r(),b(D,{border:"",size:"small",data:c.feedlist},{default:a(()=>[e(u,{prop:"pgNo",label:"\u5546\u54C1\u8981\u6C42\u7F16\u7801","min-width":"156px","show-overflow-tooltip":""}),e(u,{prop:"sale_price",label:"\u9500\u552E\u5355\u4EF7","min-width":"110px","show-overflow-tooltip":""}),e(u,{prop:"num",label:"\u8D2D\u4E70\u6570\u91CF","min-width":"90px","show-overflow-tooltip":""}),e(u,{prop:"good_img",label:"\u5546\u54C1\u56FE\u7247","min-width":"242px","show-overflow-tooltip":""},{default:a(o=>[o.row.good_img&&o.row.good_img.length>0?(r(),w("div",re,[(r(!0),w(F,null,k(o.row.good_img.split(","),(l,_)=>(r(),b(R,{key:l+_,src:l,class:"hover fl","preview-src-list":[l],style:{display:"inline-block",width:"20px",height:"20px",margin:"0 2px 0 0"},alt:""},null,8,["src","preview-src-list"]))),128))])):B("v-if",!0)]),_:1}),e(u,{prop:"good_name",label:"\u5546\u54C1\u540D\u79F0","min-width":"200px","show-overflow-tooltip":""},{default:a(o=>[x("span",null,p(o.row.good_name),1),(r(!0),w(F,null,k(o.row.specinfo,(l,_)=>(r(),w("span",{key:l.id+_},p(_===0?"_":"-")+p(l.spec_name)+"["+p(l.spec_value_name)+"] ",1))),128))]),_:1}),e(u,{label:"\u5546\u54C1\u5206\u7C7B","min-width":"110px","show-overflow-tooltip":""},{default:a(({row:o})=>[C(p(o.can.map(({name:l})=>l).join("-")),1)]),_:1}),e(u,{prop:"source",label:"\u5546\u54C1\u7C7B\u578B","min-width":"90px","show-overflow-tooltip":""},{default:a(o=>[e(V,{size:"mini",type:o.row.data_source+""=="1"?"success":""},{default:a(()=>[C(p(o.row.data_source+""=="1"?"\u5E73\u53F0\u5546\u54C1":"\u91C7\u53CD\u5546\u54C1"),1)]),_:2},1032,["type"])]),_:1}),e(u,{prop:"expire_day",label:"\u4FE1\u606F\u6709\u6548\u671F","min-width":"85px","show-overflow-tooltip":""}),e(u,{prop:"work_day",label:"\u5236\u4F5C\u5DE5\u671F","min-width":"70px","show-overflow-tooltip":""}),e(u,{prop:"delivery_day",label:"\u7269\u6D41\u65F6\u95F4","min-width":"70px","show-overflow-tooltip":""}),e(u,{prop:"creater",label:"\u8D1F\u8D23\u4EBA","min-width":"60px","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",width:"60",fixed:"right"},{default:a(({row:o})=>[e(S,{content:"\u5220\u9664",placement:"top"},{default:a(()=>[e(q,{onClick:l=>M(o,y),type:"danger",link:"",icon:g(N)("delete")},null,8,["onClick","icon"])]),_:2},1024)]),_:2},1024)]),_:2},1032,["data"])),[[O,c.loading]])]),_:2},1024))),256)),e(ae,{visible:g(h),"onUpdate:visible":i[0]||(i[0]=c=>W(h)?h.value=c:null),index:v.index,item:g(j),onRefresh:i[1]||(i[1]=c=>E(c))},null,8,["visible","index","item"])])}}});var fe=P(pe,[["__file","C:/Users/Administrator/Desktop/projects/purchase-vue3/src/views/sellOut/project/components/feedback.vue"]]);export{fe as default};