import{_ as D,d as O,n as d,cB as b,r as E,aw as T,o as h,A as F,y as g,B as p,c as S,h as f,i as t,ca as v,e as W,af as o,dQ as a,cY as A}from"./index.js";import{O as k,G as y}from"./sale.3efcc247.js";import{a as L,h as N}from"./index.904472d8.js";const V=O({__name:"sheet-modal",setup(R,{expose:_}){const s=d(!1),i=d(!1),c=d([]),x={label:"\u5B50\u5546\u54C1\u4FE1\u606F",span:24,render(l,{childList:e}){return o(A,{data:e,border:!0,size:"small",width:"100%"},{default:()=>[o(a,{prop:"childCode",label:"\u5B50\u5546\u54C1\u7F16\u7801",minWidth:"150px",showOverflowTooltip:!0}),o(a,{prop:"child_name",label:"\u5B50\u5546\u54C1\u540D\u79F0",minWidth:"150px",showOverflowTooltip:!0}),o(a,{prop:"child_num",label:"\u7EC4\u5408\u6BD4\u4F8B",minWidth:"80px",showOverflowTooltip:!0}),o(a,{prop:"out_tax_merge",label:"\u7C7B\u76EE\u7F16\u7801",minWidth:"150px",showOverflowTooltip:!0}),o(a,{prop:"out_tax_name",label:"\u8D27\u7269\u548C\u52B3\u52A1\u540D\u79F0",minWidth:"130px",showOverflowTooltip:!0}),o(a,{prop:"out_tax_short",label:"\u5546\u54C1\u548C\u670D\u52A1\u5206\u7C7B\u7B80\u79F0",minWidth:"130px",showOverflowTooltip:!0}),o(a,{prop:"out_tax",label:"\u7A0E\u70B9",minWidth:"60px",showOverflowTooltip:!0},{default:({row:u})=>u.out_tax})]})}},{data:m,run:w,loading:r}=b({initalData:{},async success(l){const{goodNo:e}=l;if(s.value=e.indexOf("SSU")!==-1,s.value){const u=await L({spuCode:e});c.value=u.data||[]}}}),C=l=>w(N({sequenceNo:l}));return _({onDisplay(l){i.value=!0,C(l)}}),(l,e)=>{const u=E("ElDialog"),n=T("loading");return h(),F(u,{center:"",title:"\u9500\u552E\u8BA2\u5355\u8BE6\u60C5",modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=B=>i.value=B),width:"1100px","close-on-click-modal":!1,"close-on-press-escape":!1},{default:g(()=>[p((h(),S("div",null,[p(f(t(v),{columns:t(k),ref:"defaultRef","col-number":3,data:t(m)},null,8,["columns","data"]),[[n,t(r)]]),e[1]||(e[1]=W("h1",{"text-18px":"","my-2":"","text-center":"",text:"#303133"},"\u5546\u54C1\u8BE6\u60C5",-1)),p(f(t(v),{columns:[...t(y),...s.value?[x]:[]],ref:"defaultRef","col-number":3,data:{...t(m),childList:c.value}},null,8,["columns","data"]),[[n,t(r)]])])),[[n,t(r)]])]),_:1},8,["modelValue"])}}});var I=D(V,[["__file","D:/work/jiesuan/settle-vue3/src/views/InvoiceSales/sheetOrderPool/components/sheet-modal.vue"]]);export{I as default};
