detail.0eccad.js 2.2 KB

1
  1. import{_ as x,d as B,w as E,aO as V,ab as G,r as m,aj as T,H as w,l as t,o as f,c as A,j as l,C as c,a6 as U,G as g}from"./index.js";import{o as j,C as y}from"./ChildGoodEditModal.b8748c.js";import{u as F}from"./useDetail.68a84ae7.js";import{B as I}from"./basic-descriptions.f8ae61bf.js";import M from"./index.563420.js";import{h as O}from"./index.b1238b82.js";import P from"./index.7d46a5.js";import"./status.d3ab78fb.js";import"./shared.e62a6d9e.js";import"./tootip.06479404.js";import"./use-page-search.d8b430d6.js";import"./index.85aafec4.js";import"./index.656b8f.js";import"./index.33044560.js";import"./columnRenderHelper.e61d905c.js";import"./index.faf7951b.js";const S={class:"padding__container"},H=B({__name:"detail",setup(L){const{title:_,collapses:p,id:b,isDetail:k}=F({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 D(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 N(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(O({id:b.value})),(r,e)=>{const i=m("ElCollapseItem"),o=m("ElCollapse"),u=m("ElTabPane"),v=m("ElTabs"),h=T("loading");return w((f(),A("div",S,[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(k)&&t(n).data?(f(),g(t(I),{key:0,columns:t(j),data:t(n).data},null,8,["columns","data"])):(f(),g(P,{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:D},null,8,["visible"]),l(y,{data:d.data,index:d.index,visible:d.editVisible,"onUpdate:visible":e[2]||(e[2]=s=>d.editVisible=s),onSubmit:N},null,8,["data","index","visible"])])),[[h,t(n).loading]])}}});var io=x(H,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/clientC/detail.vue"]]);export{io as default};