import{d as I,h as P,r as d,o as i,v as n,w as l,a,x as w,f as _,Q as j,n as V,c as S,P as A,W as M,A as Q,D as T,C as W,I as q,_ as B,__tla as E}from"./index-04f8d540.js";import{_ as G,__tla as H}from"./Dialog-9afb5ba5.js";import{g as J,u as K,__tla as L}from"./index-53c40608.js";import N,{__tla as X}from"./OrderBaseInfo-58320635.js";import Y,{__tla as Z}from"./OrderProduct-c8b91d84.js";import{u as $,__tla as aa}from"./useMessage-9c37e840.js";import{__tla as ea}from"./SPuUploadImg-ee8ee9b5.js";import{__tla as ta}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-f655ad55.js";import{__tla as ra}from"./index-ef33124b.js";import{__tla as la}from"./el-image-viewer-5878bd7a.js";import{__tla as _a}from"./formatTime-81f0c591.js";import{__tla as oa}from"./dict-ef06f7f7.js";import{__tla as sa}from"./el-descriptions-item-acdf7c6c.js";import{__tla as ma}from"./DictTag-774e4f97.js";import"./color-6e929987.js";let b,da=Promise.all([(()=>{try{return E}catch{}})(),(()=>{try{return H}catch{}})(),(()=>{try{return L}catch{}})(),(()=>{try{return X}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"}},b=B(I({name:"OrderUpdateRemarkForm",__name:"OrderUpdateRemarkForm",emits:["success"],setup(ia,{expose:R,emit:g}){const{t:U}=P(),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 J(r);e||(p.error("\u4EA4\u6613\u8BA2\u5355\u4E0D\u5B58\u5728"),close()),t.value=e}};R({open:async(r,e)=>{C(),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 K(r),p.success(U("common.updateSuccess")),o.value=!1,F("success",!0)}finally{m.value=!1}},C=()=>{var r;t.value={id:0,remark:""},(r=u.value)==null||r.resetFields()};return(r,e)=>{const y=M,h=Q,v=T,k=W,z=G,x=q;return i(),n(z,{modelValue:a(o),"onUpdate:modelValue":e[3]||(e[3]=s=>A(o)?o.value=s:null),title:"\u5546\u5BB6\u5907\u6CE8",width:"70%"},{footer:l(()=>[a(c)?w((i(),n(v,{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)]]):j("",!0),_(k,{disabled:a(m),type:"primary",onClick:O},{default:l(()=>[V("\u786E \u5B9A")]),_:1},8,["disabled"]),_(k,{onClick:e[2]||(e[2]=s=>o.value=!1)},{default:l(()=>[V("\u53D6 \u6D88")]),_:1})]),default:l(()=>[a(c)?(i(),S("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(v,{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,b as default};
