1 |
- import{_ as A,d as V,aM as g,x as u,p as w,ai as F,bc as p,z as R,r as c,o as m,c as b,l as s,D as i,m as o,ar as Y,a as D,G as M,aN as U,F as j,ae as O}from"./index.js";import{u as S}from"./useDetail.d77f98f9.js";import{b as q,c as z,a as G}from"./index.2fb9f37c.js";import L from"./return-form.7dc4e8.js";import{i as H}from"./ticketReturn.6df30604.js";import"./porder.9a85976d.js";import"./invoice-table.a7122b.js";import"./invoice-form.b6a27e.js";import"./global.9ad647c8.js";const J={class:"padding__container"},K=V({__name:"detail",setup(Q){g("inputInvoicePoolDetail"),u(null);const{push:y}=w(),_=u(null);F();const d=u(!0),{id:h,isDetail:f,title:v,collapses:r}=S({baseName:"\u53D1\u7968",collapseLen:14}),E=u(!1),{run:k,data:N}=p({initalData:{},success:async(l={})=>{var n;const{supplierName:t}=l,a=await q({name:t}),[e={}]=((n=a==null?void 0:a.data)==null?void 0:n.list)||[];E.value=e.has_account}}),{run:T}=p({success:()=>y("/supply/outputInvoicePool")});p({success:()=>x()});function x(){C(),_.value&&_.value.refresh(),d.value=!1,R(()=>d.value=!0)}const C=()=>k(z({InvCode:h.value})),I=l=>{const{invArr:t}=l,a=t.map(e=>({invoice_subtotal:e.invoiceType.indexOf("fully")!==-1?"0":e.subtotal_amount,invoice_total:e.invoiceType.indexOf("fully")!==-1?e.subtotal_amount:"0",invoice_type:e.invoiceType||"",invoice_number:e.invNumber||"",check_code:e.checkNumber||"",invoice_code:e.invCode||"",open_date:O(e.open_time).format("YYYY-MM-DD")}));T(G({list:a}))};return f.value&&C(),(l,t)=>{const a=c("ElCollapseItem"),e=c("ElCollapse"),n=c("ElTabPane"),P=c("ElTabs");return m(),b("div",J,[s(P,null,{default:i(()=>[s(n,{label:o(v)},{default:i(()=>[s(e,{modelValue:o(r),"onUpdate:modelValue":t[0]||(t[0]=B=>Y(r)?r.value=B:null)},{default:i(()=>[s(a,{name:"1",title:o(v)},{default:i(()=>[D(" \u53D1\u7968\u8BE6\u60C5 "),o(f)?(m(),M(o(U),{key:0,data:o(N),columns:o(H)},null,8,["data","columns"])):(m(),b(j,{key:1},[D(" \u521B\u5EFA\u56DE\u7968 "),s(L,{onCreate:I})],2112))]),_:1},8,["title"])]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var ne=A(K,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/supply/outputInvoicePool/detail.vue"]]);export{ne as default};
|