import{_ as h,d as v,aO as D,m as C,w as E,aj as F,H as g,l as e,o as y,c as B,j as l,C as a,az as V,aA as k,a6 as T,aB as z,aC as x,aM as N,aL as _,aD as f,aU as I,aZ as L,aE as P,aF as o,M as w,L as m,aK as j}from"./index.js";import{u as O}from"./useDetail.ccfb0513.js";import{h as R}from"./index.17a053df.js";const U={class:"padding__container"},A=v({__name:"detail",setup(M){const p=D(),b=C(),{title:c,collapses:i}=O({baseName:"\u6536\u53D1\u5B58\u6C47\u603B",collapseLen:2}),n=E({fz_date:"",company_code:"",company_name:""});return(()=>{var d;try{const u=(d=JSON.parse(b.query.data))!=null?d:{},{fz_date:s,company_code:t,company_name:r}=u;n.value={fz_date:s,company_code:t,company_name:r},s&&t&&p.run(R({fz_date:s,company_code:t}))}catch(u){console.error("\u521D\u59CB\u5316\u6570\u636E\u5931\u8D25:",u)}})(),(d,u)=>{const s=F("loading");return g((y(),B("div",U,[l(e(j),null,{default:a(()=>[l(e(V),{label:e(c)},{default:a(()=>[l(e(k),{modelValue:e(i),"onUpdate:modelValue":u[0]||(u[0]=t=>T(i)?i.value=t:null)},{default:a(()=>[l(e(z),{title:e(c),name:"1"},{default:a(()=>[l(e(x),null,{default:a(()=>[l(e(N),{gutter:10},{default:a(()=>[l(e(_),{span:12},{default:a(()=>[l(e(f),{label:"\u8BB0\u8D26\u6708\u4EFD"},{default:a(()=>[l(e(I),{disabled:"",type:"month",style:{width:"100%"},modelValue:n.value.fz_date},null,8,["modelValue"])]),_:1})]),_:1}),l(e(_),{span:12},{default:a(()=>[l(e(f),{label:"\u516C\u53F8\u540D\u79F0"},{default:a(()=>[l(e(L),{modelValue:n.value.company_name,disabled:""},null,8,["modelValue"])]),_:1})]),_:1}),l(e(_),{span:24},{default:a(()=>{var t;return[l(e(P),{size:"small",data:(t=e(p).data)==null?void 0:t.list,border:"",stripe:""},{default:a(()=>[l(e(o),{label:"\u5B58\u8D27",align:"center"},{default:a(()=>[l(e(o),{prop:"skuCode",label:"\u7F16\u7801",width:"120","show-overflow-tooltip":""}),l(e(o),{prop:"goodName",label:"\u540D\u79F0",width:"150","show-overflow-tooltip":""}),l(e(o),{prop:"spec",label:"\u89C4\u683C",width:"60","show-overflow-tooltip":""}),l(e(o),{prop:"unit",label:"\u5355\u4F4D",width:"60","show-overflow-tooltip":""}),l(e(o),{prop:"weight",label:"\u91CD\u91CF",width:"100","show-overflow-tooltip":""},{default:a(({row:r})=>[w(m(r.Porduct.unit_weight),1)]),_:1}),l(e(o),{prop:"light",label:"\u5206\u5149",width:"80","show-overflow-tooltip":""},{default:a(({row:r})=>[w(m(r.Porduct.spectral),1)]),_:1})]),_:1}),l(e(o),{label:"\u671F\u521D",align:"center"},{default:a(()=>[l(e(o),{prop:"begin_num",label:"\u6570\u91CF","show-overflow-tooltip":""}),l(e(o),{prop:"unit_price",label:"\u5355\u4EF7","show-overflow-tooltip":""}),l(e(o),{prop:"begin_total_price",label:"\u91D1\u989D","show-overflow-tooltip":""})]),_:1}),l(e(o),{label:"\u6536\u5165",align:"center"},{default:a(()=>[l(e(o),{prop:"in_num",label:"\u6570\u91CF","show-overflow-tooltip":""}),l(e(o),{prop:"unit_price",label:"\u5355\u4EF7","show-overflow-tooltip":""}),l(e(o),{prop:"in_total_price",label:"\u91D1\u989D","show-overflow-tooltip":""})]),_:1}),l(e(o),{label:"\u53D1\u51FA",align:"center"},{default:a(()=>[l(e(o),{prop:"out_num",label:"\u6570\u91CF","show-overflow-tooltip":""}),l(e(o),{prop:"unit_price",label:"\u5355\u4EF7","show-overflow-tooltip":""}),l(e(o),{prop:"out_total_price",label:"\u91D1\u989D","show-overflow-tooltip":""})]),_:1}),l(e(o),{label:"\u7ED3\u5B58",align:"center"},{default:a(()=>[l(e(o),{prop:"balance_num",label:"\u6570\u91CF","show-overflow-tooltip":""}),l(e(o),{prop:"unit_price",label:"\u5355\u4EF7","show-overflow-tooltip":""}),l(e(o),{prop:"balance_total_price",label:"\u91D1\u989D","show-overflow-tooltip":""})]),_:1})]),_:1},8,["data"])]}),_:1})]),_:1})]),_:1})]),_:1},8,["title"])]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])),[[s,e(p).loading]])}}});var J=h(A,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/summary/detail.vue"]]);export{J as default};
