sheet-modal.5006f9.js 2.3 KB

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