import{aa as F,aX as h,_ as E,d as b,aW as f,r as _,ar as y,H as g,l as e,o as t,c as V,j as C,C as d,G as u,a as i,af as x}from"./index.js";import{t as T}from"./shared.f80a8b25.js";import{B as w}from"./basic-descriptions.65a76ad2.js";import{u as I}from"./useDetail.9b72801b.js";import N from"./BaseForm.4b5981.js";import{h as P,a as j}from"./index.0bffb9a0.js";import{P as z}from"./index.bd488e97.js";import"./index.d2fead55.js";import"./shared.4f9e44f6.js";import"./index.ff51ce.js";import"./use-page-search.15129a46.js";import"./status.b7512d56.js";import"./columnRenderHelper.c38ed50d.js";import"./columns.6ae6573b.js";import"./tootip.236f17fc.js";const A=[{span:6,label:"\u76D8\u70B9\u7F16\u53F7",field:"checkCode"},{span:6,label:"\u76D8\u70B9\u7C7B\u578B",render(D,l){return F(h,{size:"small"},{default:()=>{var s;return(s=T.find(({value:a})=>a==l.check_type))==null?void 0:s.label}})}},{span:6,label:"\u64CD\u4F5C\u4EBA",field:"apply_name"},{span:6,label:"\u521B\u5EFA\u65F6\u95F4",field:"create_time"},{span:6,label:"\u8C03\u6574\u5355\u5165\u8D26\u6708\u4EFD",field:"fz_date"},{span:6,label:"\u8D26\u9762\u6570\u91CF",field:"stock_num"},{span:6,label:"\u76D8\u70B9\u6570\u91CF",field:"check_num"},{span:6,label:"\u76D8\u4E8F\u6570\u91CF",field:"diff_num"}],O={class:"padding__container"},U=b({__name:"detail",setup(D){const{id:l,title:s,isDetail:a,collapses:n}=I({baseName:"\u76D8\u70B9",collapseLen:2}),r=f(),o=f({success(p){r.run(P({id:p.product.id}))}});return l.value&&o.run(j({id:l.value})),(p,c)=>{const m=_("ElCollapseItem"),v=_("ElCollapse"),k=y("loading");return g((t(),V("div",O,[C(v,{modelValue:e(n),"onUpdate:modelValue":c[0]||(c[0]=B=>x(n)?n.value=B:null)},{default:d(()=>[C(m,{title:e(s),name:"1"},{default:d(()=>[e(a)?i("v-if",!0):(t(),u(N,{key:0})),e(a)&&e(o).data?(t(),u(e(w),{key:1,columns:e(A),data:e(o).data},null,8,["columns","data"])):i("v-if",!0)]),_:1},8,["title"]),e(a)?(t(),u(m,{key:0,title:"\u5546\u54C1\u8BE6\u60C5",name:"2"},{default:d(()=>[e(r).data?(t(),u(z,{key:0,data:e(r).data},null,8,["data"])):i("v-if",!0)]),_:1})):i("v-if",!0)]),_:1},8,["modelValue"])])),[[k,e(o).loading]])}}});var ee=E(U,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/inventoryCheck/detail.vue"]]);export{ee as default};
