import{d as q,i as B,r as d,o as i,x as n,w as l,a,y as w,g as _,R as C,q as b,c as I,Q as P,X as S,B as G,G as J,D as Q,J as T,_ as X,__tla as A}from"./index-7d5b26d3.js";import{_ as E,__tla as H}from"./Dialog-2be588df.js";import{g as K,u as L,__tla as M}from"./index-71a331ec.js";import N,{__tla as W}from"./OrderBaseInfo-aba73d11.js";import Y,{__tla as Z}from"./OrderProduct-83b2c7a2.js";import{u as $,__tla as aa}from"./useMessage-c81eaa5b.js";import{__tla as ea}from"./SPuUploadImg-85710321.js";import{__tla as ta}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-a1c2c60d.js";import{__tla as ra}from"./index-ac2a9b6d.js";import{__tla as la}from"./el-image-viewer-2f0c9a58.js";import{__tla as _a}from"./formatTime-5152c108.js";import{__tla as oa}from"./dict-37d1dfe8.js";import{__tla as sa}from"./el-descriptions-item-bfa341f2.js";import{__tla as ma}from"./DictTag-89bfbd38.js";import"./color-6e929987.js";let R,da=Promise.all([(()=>{try{return A}catch{}})(),(()=>{try{return H}catch{}})(),(()=>{try{return M}catch{}})(),(()=>{try{return W}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return ma}catch{}})()]).then(async()=>{let f;f={key:0,style:{"max-height":"500px","overflow-y":"auto",padding:"10px"}},R=X(q({name:"OrderUpdateRemarkForm",__name:"OrderUpdateRemarkForm",emits:["success"],setup(ia,{expose:V,emit:g}){const{t:U}=B(),p=$(),o=d(!1),m=d(!1),t=d({id:0,remark:""}),u=d(),c=d(!0),D=async r=>{if(r){const e=await K(r);e||(p.error("\u4EA4\u6613\u8BA2\u5355\u4E0D\u5B58\u5728"),close()),t.value=e}};V({open:async(r,e)=>{z(),t.value.id=r,D(r),o.value=!0,e=="DetailOpen"&&(c.value=!1)}});const F=g,O=async()=>{m.value=!0;try{const r=a(t);await L(r),p.success(U("common.updateSuccess")),o.value=!1,F("success",!0)}finally{m.value=!1}},z=()=>{var r;t.value={id:0,remark:""},(r=u.value)==null||r.resetFields()};return(r,e)=>{const y=S,h=G,k=J,v=Q,j=E,x=T;return i(),n(j,{modelValue:a(o),"onUpdate:modelValue":e[3]||(e[3]=s=>P(o)?o.value=s:null),title:"\u5546\u5BB6\u5907\u6CE8",width:"70%"},{footer:l(()=>[a(c)?w((i(),n(k,{key:0,ref_key:"formRef",ref:u,model:a(t),"label-width":"80px"},{default:l(()=>[_(h,{label:"\u5907\u6CE8"},{default:l(()=>[_(y,{modelValue:a(t).remark,"onUpdate:modelValue":e[1]||(e[1]=s=>a(t).remark=s),rows:3,placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u5907\u6CE8",type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[x,a(m)]]):C("",!0),_(v,{disabled:a(m),type:"primary",onClick:O},{default:l(()=>[b("\u786E \u5B9A")]),_:1},8,["disabled"]),_(v,{onClick:e[2]||(e[2]=s=>o.value=!1)},{default:l(()=>[b("\u53D6 \u6D88")]),_:1})]),default:l(()=>[a(c)?(i(),I("div",f,[_(N,{ref:"infoRef","is-detail":!0,id:a(t).id,style:{"margin-bottom":"30px"}},null,8,["id"]),_(Y,{ref:"infoRef","is-detail":r.isDetail,id:a(t).id},null,8,["is-detail","id"])])):w((i(),n(k,{key:1,ref_key:"formRef",ref:u,model:a(t),"label-width":"80px",style:{padding:"10px"}},{default:l(()=>[_(h,{label:"\u5907\u6CE8"},{default:l(()=>[_(y,{modelValue:a(t).remark,"onUpdate:modelValue":e[0]||(e[0]=s=>a(t).remark=s),rows:3,placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u5907\u6CE8",type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[x,a(m)]])]),_:1},8,["modelValue"])}}}),[["__scopeId","data-v-8f6ba07c"],["__file","D:/zx/mall-newfeifan-zx-business/src/views/mall/trade/order/form/OrderUpdateRemarkForm.vue"]])});export{da as __tla,R as default};
