import{o as O,b as S}from"./configs.ef9479ae.js";import j from"./sales-modal.b2ccff2c.js";import{q as A,B as _,r as l,o as n,n as y,p,t as c,H as s,I as k,J as E,v,S as m,K as i,O as M,P as q}from"./index.7a111e62.js";import"./index.694cd68a.js";import"./use-response-handle.f995d678.js";const w={flex:"","justify-between":"","items-center":""},z=p("h1",{"my-4":""},"\u5173\u8054\u8BA2\u5355:",-1),L=m("\u6DFB\u52A0"),R={flex:"","justify-end":"","mt-3":""},U=m("\u4FDD\u5B58"),$=A({__name:"related-order",emits:["create-btn-click"],setup(H,{emit:B}){const f=_([]),t=_({}),b=_(null);function h(e){f.value=e,e.forEach(({sequenceNo:a})=>t.value[a]="0")}function C(){const e=[];Object.keys(t.value).forEach(o=>e.push({sequenceNo:o,trad_fee:t.value[o]})),B("create-btn-click",e)}return(e,a)=>{const o=l("el-button"),V=l("el-input"),D=l("el-tag"),x=l("el-table-column"),N=l("el-table");return n(),y(k,null,[p("div",w,[z,c(o,{type:"primary",onClick:a[0]||(a[0]=()=>b.value.onDisplay())},{default:s(()=>[L]),_:1})]),c(N,{data:f.value,size:"small"},{default:s(()=>[(n(!0),y(k,null,E(v(O),(u,g)=>(n(),i(x,{key:g,label:u.label,prop:u.prop,"show-overflow-tooltip":""},{default:s(({row:d})=>[u.label==="\u6B64\u6B21\u6838\u9500"?(n(),i(V,{key:0,size:"small",placeholder:"\u6B64\u6B21\u6838\u9500\u91D1\u989D",modelValue:t.value[d.sequenceNo],"onUpdate:modelValue":r=>t.value[d.sequenceNo]=r},null,8,["modelValue","onUpdate:modelValue"])):u.prop==="status"?(n(),i(D,{key:1},{default:s(()=>{var r;return[m(M((r=v(S).find(F=>d.status===F.value))==null?void 0:r.label),1)]}),_:2},1024)):q("",!0)]),_:2},1032,["label","prop"]))),128))]),_:1},8,["data"]),p("div",R,[c(o,{type:"primary",onClick:C},{default:s(()=>[U]),_:1})]),c(j,{ref_key:"saleModalRef",ref:b,onSaveClickButton:h},null,512)],64)}}});export{$ as default};
