1 |
- import{_ as x,d as B,w as E,aX as V,W as G,r as m,at as T,H as w,l as t,o as f,c as A,j as l,C as c,ah as U,G as g}from"./index.js";import{o as y,C as F}from"./ChildGoodEditModal.b8748c.js";import{u as I}from"./useDetail.6122bd7e.js";import{B as j}from"./basic-descriptions.fb5b2628.js";import M from"./index.563420.js";import{h as P}from"./index.00d6e041.js";import S from"./index.9319d0.js";import"./status.4e0ebdbc.js";import"./shared.e62a6d9e.js";import"./tootip.b8a37fe7.js";import"./use-page-search.0088a7fd.js";import"./index.01c9e0ad.js";import"./index.656b8f.js";import"./index.f515ddec.js";import"./columnRenderHelper.e53c11ea.js";import"./index.2e8788c0.js";const H={class:"padding__container"},L=B({__name:"detail",setup(O){const{title:_,collapses:p,id:b,isDetail:h}=I({baseName:"C\u7AEF\u65E0\u53D1\u7968\u8BA2\u5355\u51FA\u5E93",collapseLen:2}),C=E(!1),n=V(),d=G({editVisible:!1,index:-1,data:{}}),a=E({goods:[],month:""});function k(r){const e=a.value.goods.map(({id:o})=>o),i=r.filter(o=>!e.includes(o.id));a.value.goods=[...i,...a.value.goods]}function D(r,e){const{id:i}=a.value.goods[r];a.value.goods=a.value.goods.map(o=>{if(o.id===i){const u=e.goodNum,v=o.childNum?Number(o.childNum)*Number(u):void 0;return{...o,goodNum:u,childActionNum:v}}return o})}return b.value&&n.run(P({id:b.value})),(r,e)=>{const i=m("ElCollapseItem"),o=m("ElCollapse"),u=m("ElTabPane"),v=m("ElTabs"),N=T("loading");return w((f(),A("div",H,[l(v,null,{default:c(()=>[l(u,{label:t(_)},{default:c(()=>[l(o,{modelValue:t(p),"onUpdate:modelValue":e[0]||(e[0]=s=>U(p)?p.value=s:null)},{default:c(()=>[l(i,{title:t(_),name:"1"},{default:c(()=>[t(h)&&t(n).data?(f(),g(t(j),{key:0,columns:t(y),data:t(n).data},null,8,["columns","data"])):(f(),g(S,{key:1}))]),_:1},8,["title"])]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1}),l(M,{visible:C.value,"onUpdate:visible":e[1]||(e[1]=s=>C.value=s),onSubmit:k},null,8,["visible"]),l(F,{data:d.data,index:d.index,visible:d.editVisible,"onUpdate:visible":e[2]||(e[2]=s=>d.editVisible=s),onSubmit:D},null,8,["data","index","visible"])])),[[N,t(n).loading]])}}});var io=x(L,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/clientC/detail.vue"]]);export{io as default};
|