import{_ as C,d as _,aZ as x,w as V,z as y,r as B,o as i,G as d,C as n,l as a,a as b,h as u,j as r,aM as w,M as D,af as F,a_ as N}from"./index.js";import{g as h}from"./columns.d86b21e1.js";import{B as k}from"./basic-descriptions.65a76ad2.js";import"./status.b7512d56.js";import"./shared.a743a5f7.js";import"./tootip.236f17fc.js";const E={class:"flex justify-between mt-[10px]"},M={class:"flex items-center"},g=_({__name:"ChildGoodEditModal",props:{visible:{type:Boolean,required:!0},index:{type:null,required:!0},data:{type:null,required:!0}},emits:["submit"],setup(m,{emit:p}){const t=m,c=p,o=x(t,"visible"),l=V(0);y(()=>o.value,()=>{!o.value||(l.value=t.data.goodNum)});function f(){c("submit",t.index,{...t.data,goodNum:l.value}),o.value=!1}return(G,e)=>{const v=B("ElButton");return i(),d(a(N),{modelValue:a(o),"onUpdate:modelValue":e[1]||(e[1]=s=>F(o)?o.value=s:null),title:"\u7F16\u8F91\u5546\u54C1",center:""},{default:n(()=>[t.data?(i(),d(a(k),{key:0,style:{overflow:"hidden"},data:t.data,columns:a(h)},null,8,["data","columns"])):b("v-if",!0),u("div",E,[u("div",M,[e[2]||(e[2]=u("p",{style:{width:"110px"}},"\u64CD\u4F5C\u6570\u91CF:",-1)),r(a(w),{modelValue:l.value,"onUpdate:modelValue":e[0]||(e[0]=s=>l.value=s),placeholder:"\u64CD\u4F5C\u6570\u91CF"},null,8,["modelValue"])]),r(v,{type:"primary",onClick:f},{default:n(()=>e[3]||(e[3]=[D("\u4FDD\u5B58")])),_:1})])]),_:1},8,["modelValue"])}}});var R=C(g,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/clientC/components/ChildGoodEditModal.vue"]]);export{R as default};
