import{d as O,h as z,r as m,o as n,x as i,w as s,f as d,a as r,y as f,z as H,l as j,R as D,C as G,H as K,G as P,K as S,_ as X,__tla as g}from"./index-8dc1e40a.js";import{_ as q,__tla as A}from"./Dialog-41802231.js";import{u as B,__tla as E}from"./index-cfc487d8.js";import{u as I,__tla as J}from"./useMessage-7a27dd80.js";let p,L=Promise.all([(()=>{try{return g}catch{}})(),(()=>{try{return A}catch{}})(),(()=>{try{return E}catch{}})(),(()=>{try{return J}catch{}})()]).then(async()=>{p=X(O({name:"OrderUpdateRemarkForm",__name:"OrderUpdateRemarkForm",emits:["success"],setup(M,{expose:y,emit:k}){const{t:v}=z(),h=I(),l=m(!1),o=m(!1),a=m({id:0,remark:""}),_=m();y({open:async e=>{R(),a.value.id=e.id,a.value.remark=e.remark,l.value=!0}});const w=k,x=async()=>{o.value=!0;try{const e=r(a);await B(e),h.success(v("common.updateSuccess")),l.value=!1,w("success",!0)}finally{o.value=!1}},R=()=>{var e;a.value={id:0,remark:""},(e=_.value)==null||e.resetFields()};return(e,t)=>{const U=D,V=G,b=K,c=P,F=q,C=S;return n(),i(F,{modelValue:r(l),"onUpdate:modelValue":t[2]||(t[2]=u=>j(l)?l.value=u:null),title:"\u5546\u5BB6\u5907\u6CE8",width:"45%"},{footer:s(()=>[d(c,{disabled:r(o),type:"primary",onClick:x},{default:s(()=>[f("\u786E \u5B9A")]),_:1},8,["disabled"]),d(c,{onClick:t[1]||(t[1]=u=>l.value=!1)},{default:s(()=>[f("\u53D6 \u6D88")]),_:1})]),default:s(()=>[H((n(),i(b,{ref_key:"formRef",ref:_,model:r(a),"label-width":"80px"},{default:s(()=>[d(V,{label:"\u5907\u6CE8"},{default:s(()=>[d(U,{modelValue:r(a).remark,"onUpdate:modelValue":t[0]||(t[0]=u=>r(a).remark=u),rows:3,placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u5907\u6CE8",type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[C,r(o)]])]),_:1},8,["modelValue"])}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mall/trade/order/form/OrderUpdateRemarkForm.vue"]])});export{L as __tla,p as default};
