OrderUpdateRemarkForm-ce9d1287.js 3.5 KB

1
  1. import{d as B,r as d,o as i,q as n,w as l,a,v as w,f as _,O as I,m as V,c as P,N as S,h as j,U as z,z as H,C as N,B as T,H as A,__tla as E}from"./index-2eab2d23.js";import{_ as G,__tla as J}from"./Dialog-c2716df6.js";import{g as K,u as L,__tla as M}from"./index-3562b2a3.js";import Q,{__tla as W}from"./OrderBaseInfo-68af99b9.js";import X,{__tla as Y}from"./OrderProduct-c85eb4ea.js";import{u as Z,__tla as $}from"./useMessage-171aa63e.js";import{_ as aa}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as ta}from"./SPuUploadImg-4b5016f1.js";import{__tla as ea}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-4db00aa5.js";import{__tla as ra}from"./index-d3f876ab.js";import{__tla as la}from"./el-image-viewer-5d14bc77.js";import{__tla as _a}from"./formatTime-41155543.js";import{__tla as oa}from"./dict-1ad71b6f.js";import{__tla as sa}from"./el-descriptions-item-fd42286f.js";import{__tla as ma}from"./DictTag.vue_vue_type_script_lang-cb1e47ff.js";import"./color-6e929987.js";let b,da=Promise.all([(()=>{try{return E}catch{}})(),(()=>{try{return J}catch{}})(),(()=>{try{return M}catch{}})(),(()=>{try{return W}catch{}})(),(()=>{try{return Y}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:U,emit:g}){const{t:R}=j(),p=Z(),o=d(!1),m=d(!1),e=d({id:0,remark:""}),u=d(),c=d(!0),O=async r=>{if(r){const t=await K(r);t||(p.error("\u4EA4\u6613\u8BA2\u5355\u4E0D\u5B58\u5728"),close()),e.value=t}};U({open:async(r,t)=>{D(),e.value.id=r,O(r),o.value=!0,t=="DetailOpen"&&(c.value=!1)}});const C=g,F=async()=>{m.value=!0;try{const r=a(e);await L(r),p.success(R("common.updateSuccess")),o.value=!1,C("success",!0)}finally{m.value=!1}},D=()=>{var r;e.value={id:0,remark:""},(r=u.value)==null||r.resetFields()};return(r,t)=>{const y=z,h=H,k=N,v=T,q=G,x=A;return i(),n(q,{modelValue:a(o),"onUpdate:modelValue":t[3]||(t[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(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:F},{default:l(()=>[V("\u786E \u5B9A")]),_:1},8,["disabled"]),_(v,{onClick:t[2]||(t[2]=s=>o.value=!1)},{default:l(()=>[V("\u53D6 \u6D88")]),_:1})]),default:l(()=>[a(c)?(i(),P("div",f,[_(Q,{ref:"infoRef","is-detail":!0,id:a(e).id,style:{"margin-bottom":"30px"}},null,8,["id"]),_(X,{ref:"infoRef","is-detail":r.isDetail,id:a(e).id},null,8,["is-detail","id"])])):w((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};