1 |
- import{_ as C,d as _,w as u,ag as w,r as x,aC as b,o as B,G as D,C as T,H as E,j as O,l as m,al as o,bT as l,bp as g}from"./index.js";import{B as F}from"./basic-descriptions.6e535249.js";import{p as W,a as h}from"./porder.1a87bfef.js";import{a as N}from"./index.27abfb34.js";import{b as k}from"./index.ccde3fdb.js";import"./tootip.c3a9b0a1.js";import"./status.642bba24.js";const I=_({__name:"purchase-modal",setup(P,{expose:v}){const s=u(!1),i=u(!1),n=u(!1),p=u([]);w(()=>p.value.length===0?W:h);const t=u({}),f={label:"\u5B50\u5546\u54C1\u4FE1\u606F",span:24,render(r,{child:e}){return o(g,{data:e,border:!0,size:"small",width:"100%"},{default:()=>[o(l,{prop:"childCode",label:"\u5B50\u5546\u54C1\u7F16\u7801",minWidth:"150px",showOverflowTooltip:!0}),o(l,{prop:"child_name",label:"\u5B50\u5546\u54C1\u540D\u79F0",minWidth:"150px",showOverflowTooltip:!0}),o(l,{prop:"child_num",label:"\u7EC4\u5408\u6BD4\u4F8B",minWidth:"80px",showOverflowTooltip:!0}),o(l,{prop:"in_tax_merge",label:"\u7C7B\u76EE\u7F16\u7801",minWidth:"150px",showOverflowTooltip:!0}),o(l,{prop:"in_tax_name",label:"\u8D27\u7269\u548C\u52B3\u52A1\u540D\u79F0",minWidth:"130px",showOverflowTooltip:!0}),o(l,{prop:"in_tax_short",label:"\u5546\u54C1\u548C\u670D\u52A1\u5206\u7C7B\u7B80\u79F0",minWidth:"130px",showOverflowTooltip:!0}),o(l,{prop:"in_tax",label:"\u7A0E\u70B9",minWidth:"60px",showOverflowTooltip:!0},{default:({row:a})=>a.in_tax?a.in_tax+"%":""})]})}};return v({onDisplay:async r=>{i.value=!0,t.value=r,n.value=!0;const e=await N({sequenceNo:r.sequenceNo});t.value.orderTax=e.data.orderTax;const{goodNo:a}=e.data;if(s.value=a.indexOf("SSU")!==-1,s.value){const d=await k({spuCode:a});p.value=d.data||[]}n.value=!1}}),(r,e)=>{const a=x("ElDialog"),d=b("loading");return B(),D(a,{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=c=>i.value=c),title:"\u91C7\u8D2D\u5355\u8BE6\u60C5",width:"1100px",center:"","close-on-click-modal":!1,onClose:e[1]||(e[1]=c=>t.value={})},{default:T(()=>[E(O(m(F),{columns:[...m(h),...s.value?[f]:[]],data:{...t.value,child:p.value}},null,8,["columns","data"]),[[d,n.value]])]),_:1},8,["modelValue"])}}});var z=C(I,[["__file","C:/Users/63107/Desktop/projects/settle-vue3/src/views/purchase/porder/components/purchase-modal.vue"]]);export{z as default};
|