import{d as C,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 P,U as A,H as E,K as G,J,N as K,_ as N,__tla as S}from"./index-2c56227b.js";import{_ as g,__tla as q}from"./Dialog-1050d437.js";import{u as z,__tla as B}from"./index-16ac73b5.js";import{u as D,__tla as I}from"./useMessage-96878a4a.js";let p,L=Promise.all([(()=>{try{return S}catch{}})(),(()=>{try{return q}catch{}})(),(()=>{try{return B}catch{}})(),(()=>{try{return I}catch{}})()]).then(async()=>{p=N(C({name:"OrderUpdateRemarkForm",__name:"OrderUpdateRemarkForm",emits:["success"],setup(M,{expose:y,emit:v}){const{t:k}=j(),h=D(),l=m(!1),o=m(!1),a=m({id:0,remark:""}),_=m();y({open:async e=>{V(),a.value.id=e.id,a.value.remark=e.remark,l.value=!0}});const w=v,U=async()=>{o.value=!0;try{const e=r(a);await z(e),h.success(k("common.updateSuccess")),l.value=!1,w("success",!0)}finally{o.value=!1}},V=()=>{var e;a.value={id:0,remark:""},(e=_.value)==null||e.resetFields()};return(e,t)=>{const x=A,b=E,F=G,n=J,O=g,R=K;return c(),i(O,{modelValue:r(l),"onUpdate:modelValue":t[2]||(t[2]=u=>P(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(F,{ref_key:"formRef",ref:_,model:r(a),"label-width":"80px"},{default:s(()=>[d(b,{label:"\u5907\u6CE8"},{default:s(()=>[d(x,{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"])),[[R,r(o)]])]),_:1},8,["modelValue"])}}}),[["__file","E:/GAOHP_2023/mall/newfeifan-front/yudao-ui-admin-vue3/src/views/mall/trade/order/form/OrderUpdateRemarkForm.vue"]])});export{L as __tla,p as default};
