import{d as B,r as d,o as i,A as n,B as l,a,k as V,f as _,D as I,E as w,c as K,a2 as P,Q as S,a8 as j,V as E,W as Q,K as W,Z,__tla as q}from"./index-92ad187a.js";import{_ as z,__tla as G}from"./Dialog-44c9fa34.js";import{g as H,u as J,__tla as L}from"./index-656f5b93.js";import M,{__tla as N}from"./OrderBaseInfo-ecc94f96.js";import T,{__tla as X}from"./OrderProduct-d57cc3da.js";import{u as Y,__tla as $}from"./useMessage-d9788660.js";import{_ as aa}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as ta}from"./SPuUploadImg-10110c57.js";import{__tla as ea}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-0edf31cd.js";import{__tla as ra}from"./index-d9067f1c.js";import{__tla as la}from"./el-image-viewer-d472c5a2.js";import{__tla as _a}from"./formatTime-c7f253d6.js";import{__tla as oa}from"./dict-221f3e01.js";import{__tla as sa}from"./el-descriptions-item-809b8296.js";import{__tla as ma}from"./DictTag.vue_vue_type_script_lang-96bcb962.js";import"./color-6e929987.js";let b,da=Promise.all([(()=>{try{return q}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return L}catch{}})(),(()=>{try{return N}catch{}})(),(()=>{try{return X}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return ea}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=aa(B({name:"OrderUpdateRemarkForm",__name:"OrderUpdateRemarkForm",emits:["success"],setup(ia,{expose:R,emit:g}){const{t:U}=S(),p=Y(),o=d(!1),m=d(!1),e=d({id:0,remark:""}),u=d(),c=d(!0),D=async r=>{if(r){const t=await H(r);t||(p.error("\u4EA4\u6613\u8BA2\u5355\u4E0D\u5B58\u5728"),close()),e.value=t}};R({open:async(r,t)=>{C(),e.value.id=r,D(r),o.value=!0,t=="DetailOpen"&&(c.value=!1)}});const F=g,O=async()=>{m.value=!0;try{const r=a(e);await J(r),p.success(U("common.updateSuccess")),o.value=!1,F("success",!0)}finally{m.value=!1}},C=()=>{var r;e.value={id:0,remark:""},(r=u.value)==null||r.resetFields()};return(r,t)=>{const y=j,h=E,k=Q,v=W,A=z,x=Z;return i(),n(A,{modelValue:a(o),"onUpdate:modelValue":t[3]||(t[3]=s=>P(o)?o.value=s:null),title:"\u5546\u5BB6\u5907\u6CE8",width:"70%"},{footer:l(()=>[a(c)?V((i(),n(k,{key:0,ref_key:"formRef",ref:u,model:a(e),"label-width":"80px"},{default:l(()=>[_(h,{label:"\u5907\u6CE8"},{default:l(()=>[_(y,{modelValue:a(e).remark,"onUpdate:modelValue":t[1]||(t[1]=s=>a(e).remark=s),rows:3,placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u5907\u6CE8",type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[x,a(m)]]):I("",!0),_(v,{disabled:a(m),type:"primary",onClick:O},{default:l(()=>[w("\u786E \u5B9A")]),_:1},8,["disabled"]),_(v,{onClick:t[2]||(t[2]=s=>o.value=!1)},{default:l(()=>[w("\u53D6 \u6D88")]),_:1})]),default:l(()=>[a(c)?(i(),K("div",f,[_(M,{ref:"infoRef","is-detail":!0,id:a(e).id,style:{"margin-bottom":"30px"}},null,8,["id"]),_(T,{ref:"infoRef","is-detail":r.isDetail,id:a(e).id},null,8,["is-detail","id"])])):V((i(),n(k,{key:1,ref_key:"formRef",ref:u,model:a(e),"label-width":"80px",style:{padding:"10px"}},{default:l(()=>[_(h,{label:"\u5907\u6CE8"},{default:l(()=>[_(y,{modelValue:a(e).remark,"onUpdate:modelValue":t[0]||(t[0]=s=>a(e).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-10153f30"]])});export{da as __tla,b as default};
