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