detail.b2a7d2.js 2.4 KB

1
  1. import{a7 as F,bq as h,_ as E,d as b,aH as f,r as _,ao as y,B as g,h as e,o as t,c as x,A as o,a as s,f as C,x as d,ac as V}from"./index.js";import{t as w}from"./shared.f80a8b25.js";import{B as T}from"./basic-descriptions.e6b0a528.js";import{u as A}from"./useDetail.33ec7a53.js";import I from"./BaseForm.4b5981.js";import{h as N,a as O}from"./index.4109350c.js";import{P}from"./index.0949abb2.js";import{M as z,F as H}from"./index.cc66ea4e.js";import"./index.0d3e4f3d.js";import"./shared.4f9e44f6.js";import"./index.ff51ce.js";import"./use-page-search.dfa27a70.js";import"./status.b7512d56.js";import"./columnRenderHelper.8411add2.js";import"./columns.74c15f1e.js";import"./tootip.c6ca5db9.js";import"./find.5020d717.js";const M=[{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 i;return(i=w.find(({value:a})=>a==l.check_type))==null?void 0:i.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"}],U={class:"padding__container"},j=b({__name:"detail",setup(D){const{id:l,title:i,isDetail:a,collapses:r}=A({baseName:"\u76D8\u70B9",collapseLen:2}),n=f(),u=f({success(p){n.run(N({id:p.product.id}))}});return l.value&&u.run(O({id:l.value})),(p,m)=>{const c=_("ElCollapseItem"),v=_("ElCollapse"),k=y("loading");return g((t(),x("div",U,[e(a)?(t(),o(H,{key:0,id:e(l),mode:e(z).CHECK},null,8,["id","mode"])):s("v-if",!0),C(v,{modelValue:e(r),"onUpdate:modelValue":m[0]||(m[0]=B=>V(r)?r.value=B:null)},{default:d(()=>[C(c,{title:e(i),name:"1"},{default:d(()=>[e(a)?s("v-if",!0):(t(),o(I,{key:0})),e(a)&&e(u).data?(t(),o(e(T),{key:1,columns:e(M),data:e(u).data},null,8,["columns","data"])):s("v-if",!0)]),_:1},8,["title"]),e(a)?(t(),o(c,{key:0,title:"\u5546\u54C1\u8BE6\u60C5",name:"2"},{default:d(()=>[e(n).data?(t(),o(P,{key:0,data:e(n).data},null,8,["data"])):s("v-if",!0)]),_:1})):s("v-if",!0)]),_:1},8,["modelValue"])])),[[k,e(u).loading]])}}});var oe=E(j,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/inventoryCheck/detail.vue"]]);export{oe as default};