12345 |
- import{_ as D,d as v,aH as C,i as z,Q as F,m as y,ao as E,B as _,h as e,o as f,c as B,f as a,x as t,aO as T,a as k,aN as w,A as x,a0 as N,a1 as o,H as b,G as h,e as P,bL as S,bv as V}from"./index.js";import{u as L}from"./useDetail.33ec7a53.js";import{h as O}from"./index.4b1879ca.js";import{B as U}from"./basic-descriptions.e6b0a528.js";const j={class:"padding__container"},q={class:"w-full flex justify-end mt-[10px]"},A=v({__name:"detail",setup(H){const p=C({success(u){n.total=(u==null?void 0:u.count)||0}}),g=z();L({baseName:"\u6536\u53D1\u5B58\u6C47\u603B",collapseLen:2});const n=F({total:0,size:15,page:1,background:!0}),d=y({fz_date:"",company_code:"",company_name:""});function c(){const{fz_date:u,company_code:l}=d.value;p.run(O({fz_date:u,company_code:l,size:n.size,page:n.page}))}return(()=>{var u;try{const l=(u=JSON.parse(g.query.data))!=null?u:{},{fz_date:s,company_code:r,company_name:i}=l;d.value={fz_date:s,company_code:r,company_name:i},s&&r&&c()}catch(l){console.error("\u521D\u59CB\u5316\u6570\u636E\u5931\u8D25:",l)}})(),(u,l)=>{const s=E("loading");return _((f(),B("div",j,[a(e(V),null,{default:t(()=>[a(e(T),{gutter:10},{default:t(()=>[k(` <ElTable border size="small" class="mb-[10px]"\r
- :data="[{ fz_date: formData.fz_date, company_name: formData.company_name }]">\r
- <ElTableColumn label="\u8BB0\u8D26\u6708\u4EFD" prop="fz_date"></ElTableColumn>\r
- <ElTableColumn label="\u516C\u53F8\u540D\u79F0" prop="company_name"></ElTableColumn>\r
- </ElTable> `),a(e(w),{span:24},{default:t(()=>[a(e(U),{columns:[{label:"\u8BB0\u8D26\u6708\u4EFD",field:"fz_date",span:12},{label:"\u516C\u53F8\u540D\u79F0",field:"company_name",span:12}],data:{fz_date:d.value.fz_date,company_name:d.value.company_name}},null,8,["data"])]),_:1}),_((f(),x(e(w),{span:24},{default:t(()=>{var r;return[a(e(N),{size:"small",data:(r=e(p).data)==null?void 0:r.list,border:"",stripe:""},{default:t(()=>[a(e(o),{label:"\u5B58\u8D27",align:"center"},{default:t(()=>[a(e(o),{prop:"product_id",label:"\u5546\u54C1ID",width:"60","show-overflow-tooltip":""}),a(e(o),{prop:"skuCode",label:"\u7F16\u7801",width:"150","show-overflow-tooltip":""}),a(e(o),{prop:"goodName",label:"\u540D\u79F0",width:"150","show-overflow-tooltip":""}),a(e(o),{prop:"spec",label:"\u89C4\u683C","min-width":"60","show-overflow-tooltip":""}),a(e(o),{prop:"unit",label:"\u5355\u4F4D","min-width":"60","show-overflow-tooltip":""}),a(e(o),{prop:"weight",label:"\u91CD\u91CF","min-width":"60","show-overflow-tooltip":""},{default:t(({row:i})=>[b(h(i.Porduct.unit_weight),1)]),_:1}),a(e(o),{prop:"unit_price",label:"\u5355\u4EF7","show-overflow-tooltip":"","min-width":"60"},{default:t(({row:i})=>{var m;return[b(h((m=i.Porduct)==null?void 0:m.subunit_price),1)]}),_:1})]),_:1}),a(e(o),{label:"\u671F\u521D",align:"center"},{default:t(()=>[a(e(o),{prop:"begin_num",label:"\u6570\u91CF","min-width":"60","show-overflow-tooltip":""}),a(e(o),{prop:"begin_total_price",label:"\u91D1\u989D","min-width":"60","show-overflow-tooltip":""})]),_:1}),a(e(o),{label:"\u6536\u5165",align:"center"},{default:t(()=>[a(e(o),{prop:"in_num",label:"\u6570\u91CF","min-width":"60","show-overflow-tooltip":""}),a(e(o),{prop:"in_total_price",label:"\u91D1\u989D","min-width":"60","show-overflow-tooltip":""})]),_:1}),a(e(o),{label:"\u53D1\u51FA",align:"center"},{default:t(()=>[a(e(o),{prop:"out_num",label:"\u6570\u91CF","min-width":"60","show-overflow-tooltip":""}),a(e(o),{prop:"out_total_price",label:"\u91D1\u989D","min-width":"60","show-overflow-tooltip":""})]),_:1}),a(e(o),{label:"\u7ED3\u5B58",align:"center"},{default:t(()=>[a(e(o),{prop:"balance_num",label:"\u6570\u91CF","min-width":"60","show-overflow-tooltip":""}),a(e(o),{prop:"balance_total_price",label:"\u91D1\u989D","min-width":"60","show-overflow-tooltip":""})]),_:1})]),_:1},8,["data"]),P("div",q,[a(e(S),{background:"","current-page":n.page,"onUpdate:currentPage":l[0]||(l[0]=i=>n.page=i),"page-size":n.size,"onUpdate:pageSize":l[1]||(l[1]=i=>n.size=i),total:n.total,"page-sizes":[15,50,100],layout:"total,sizes, prev, pager, next",onCurrentChange:c,onSizeChange:c},null,8,["current-page","page-size","total"])])]}),_:1})),[[s,e(p).loading]])]),_:1})]),_:1})])),[[s,e(p).loading]])}}});var Q=D(A,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/summary/detail.vue"]]);export{Q as default};
|