1 |
- import{d as j,i as B,r as d,o as i,x as n,w as l,a,y as w,g as _,R as I,q as V,c as P,Q as S,X as q,B as G,G as J,D as Q,J as T,_ as X,__tla as A}from"./index-12a7743c.js";import{_ as E,__tla as H}from"./Dialog-639a3ed8.js";import{g as K,u as L,__tla as M}from"./index-e33858f8.js";import N,{__tla as W}from"./OrderBaseInfo-0c4d1825.js";import Y,{__tla as Z}from"./OrderProduct-8112e0ef.js";import{u as $,__tla as aa}from"./useMessage-9e9b1c85.js";import{__tla as ea}from"./SPuUploadImg-3ec76248.js";import{__tla as ta}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-2c11e28b.js";import{__tla as ra}from"./index-c6aa9762.js";import{__tla as la}from"./el-image-viewer-900c7087.js";import{__tla as _a}from"./formatTime-adaaebb7.js";import{__tla as oa}from"./dict-0bfe78a3.js";import{__tla as sa}from"./el-descriptions-item-ad90c045.js";import{__tla as ma}from"./DictTag-25cb5422.js";import"./color-6e929987.js";let b,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"}},b=X(j({name:"OrderUpdateRemarkForm",__name:"OrderUpdateRemarkForm",emits:["success"],setup(ia,{expose:R,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}};R({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=q,h=G,k=J,v=Q,C=E,x=T;return i(),n(C,{modelValue:a(o),"onUpdate:modelValue":e[3]||(e[3]=s=>S(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)]]):I("",!0),_(v,{disabled:a(m),type:"primary",onClick:O},{default:l(()=>[V("\u786E \u5B9A")]),_:1},8,["disabled"]),_(v,{onClick:e[2]||(e[2]=s=>o.value=!1)},{default:l(()=>[V("\u53D6 \u6D88")]),_:1})]),default:l(()=>[a(c)?(i(),P("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,b as default};
|