import{d as O,n as j,r as m,o as c,l as i,w as s,i as d,a as r,j as f,C as H,y as z,U as D,H as J,K,J as N,N as P,_ as S,__tla as X}from"./index-b2b3c6c4.js";import{_ as g,__tla as q}from"./Dialog-70b24cbf.js";import{u as A,__tla as B}from"./index-f184ae9d.js";import{u as E,__tla as G}from"./useMessage-a5edbb0f.js";let p,I=Promise.all([(()=>{try{return X}catch{}})(),(()=>{try{return q}catch{}})(),(()=>{try{return B}catch{}})(),(()=>{try{return G}catch{}})()]).then(async()=>{p=S(O({name:"OrderUpdateRemarkForm",__name:"OrderUpdateRemarkForm",emits:["success"],setup(L,{expose:y,emit:k}){const{t:v}=j(),h=E(),l=m(!1),o=m(!1),a=m({id:0,remark:""}),_=m();y({open:async e=>{x(),a.value.id=e.id,a.value.remark=e.remark,l.value=!0}});const w=k,U=async()=>{o.value=!0;try{const e=r(a);await A(e),h.success(v("common.updateSuccess")),l.value=!1,w("success",!0)}finally{o.value=!1}},x=()=>{var e;a.value={id:0,remark:""},(e=_.value)==null||e.resetFields()};return(e,t)=>{const V=D,R=J,b=K,n=N,F=g,C=P;return c(),i(F,{modelValue:r(l),"onUpdate:modelValue":t[2]||(t[2]=u=>z(l)?l.value=u:null),title:"\u5546\u5BB6\u5907\u6CE8",width:"45%"},{footer:s(()=>[d(n,{disabled:r(o),type:"primary",onClick:U},{default:s(()=>[f("\u786E \u5B9A")]),_:1},8,["disabled"]),d(n,{onClick:t[1]||(t[1]=u=>l.value=!1)},{default:s(()=>[f("\u53D6 \u6D88")]),_:1})]),default:s(()=>[H((c(),i(b,{ref_key:"formRef",ref:_,model:r(a),"label-width":"80px"},{default:s(()=>[d(R,{label:"\u5907\u6CE8"},{default:s(()=>[d(V,{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{I as __tla,p as default};
