1 |
- import{ac as h,aZ as F,_ as E,d as b,aY as f,r as _,at 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,ah as x}from"./index.js";import{t as T}from"./shared.bee363da.js";import{B as w}from"./basic-descriptions.17783a41.js";import{u as I}from"./useDetail.2f487ca5.js";import N from"./BaseForm.c2f142.js";import{h as P,a as j}from"./index.e00d25a5.js";import{P as z}from"./index.183c593f.js";import"./index.3e4a56da.js";import"./shared.80186348.js";import"./index.bb93f8.js";import"./use-page-search.496e3eda.js";import"./status.0f771e9a.js";import"./tootip.c29898b9.js";import"./columns.eaa2d03d.js";const A=[{span:6,label:"\u76D8\u70B9\u7F16\u53F7",field:"checkCode"},{span:6,label:"\u76D8\u70B9\u7C7B\u578B",render(D,l){return h(F,{size:"small"},{default:()=>{var s;return(s=T.find(({value:a})=>a==l.check_type))==null?void 0:s.label}})}},{span:6,label:"\u521B\u5EFA\u65F6\u95F4",field:"create_time"},{span:6,label:"\u64CD\u4F5C\u4EBA",field:"apply_name"},{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(c){r.run(P({id:c.product.id}))}});return l.value&&o.run(j({id:l.value})),(c,p)=>{const m=_("ElCollapseItem"),v=_("ElCollapse"),k=y("loading");return g((t(),V("div",O,[C(v,{modelValue:e(n),"onUpdate:modelValue":p[0]||(p[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 $=E(U,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/inventoryCheck/detail.vue"]]);export{$ as default};
|