ChildGoodEditModal.d0c9e8.js 1.5 KB

1
  1. import{_ as C,d as _,bs as x,m as b,w as V,r as y,o as i,A as d,x as n,h as a,a as B,e as u,f as r,bu as w,H as D,ac as F,bt as N}from"./index.js";import{g as h}from"./columns.633d859e.js";import{B as k}from"./basic-descriptions.e6b0a528.js";import"./status.b7512d56.js";import"./shared.e8e6f3b6.js";import"./tootip.c6ca5db9.js";const E={class:"flex justify-between mt-[10px]"},g={class:"flex items-center"},M=_({__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=b(0);V(()=>o.value,()=>{!o.value||(l.value=t.data.goodNum)});function f(){c("submit",t.index,{...t.data,goodNum:l.value}),o.value=!1}return(q,e)=>{const v=y("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",g,[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 O=C(M,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/clientC/components/ChildGoodEditModal.vue"]]);export{O as default};