detail.a9d661.js 2.2 KB

1
  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.f80a8b25.js";import{B as w}from"./basic-descriptions.c79c2d96.js";import{u as I}from"./useDetail.4d3c165e.js";import N from"./BaseForm.4b5981.js";import{h as P,a as j}from"./index.c69c629a.js";import{P as z}from"./index.00d5b68b.js";import"./index.3df46f90.js";import"./shared.4f9e44f6.js";import"./index.ff51ce.js";import"./use-page-search.ccdda2cc.js";import"./status.b7512d56.js";import"./columnRenderHelper.e2cf0def.js";import"./columns.f9aa8f9a.js";import"./tootip.4c68c02b.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:"\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};