1 |
- import{d as j,r as d,o as i,j as n,w as l,a,D as V,i as _,l as B,m as w,c as M,R as P,B as S,X as q,I as J,J as T,q as X,M as z,__tla as A}from"./index-1e808f2e.js";import{_ as E,__tla as G}from"./Dialog-f44f9d78.js";import{g as H,u as K,__tla as L}from"./index-b776b94b.js";import N,{__tla as Q}from"./OrderBaseInfo-2d922922.js";import W,{__tla as Y}from"./OrderProduct-23a794a7.js";import{u as Z,__tla as $}from"./useMessage-5f9e8917.js";import{_ as aa}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as ta}from"./SPuUploadImg-f0bd750f.js";import{__tla as ea}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-b3df4382.js";import{__tla as ra}from"./index-b59955b6.js";import{__tla as la}from"./el-image-viewer-dddb6285.js";import{__tla as _a}from"./formatTime-a348c3be.js";import{__tla as oa}from"./dict-a31cb4ba.js";import{__tla as sa}from"./el-descriptions-item-8d4be2e8.js";import{__tla as ma}from"./DictTag.vue_vue_type_script_lang-5c02ebfe.js";import"./color-6e929987.js";let R,da=Promise.all([(()=>{try{return A}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return L}catch{}})(),(()=>{try{return Q}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"}},R=aa(j({name:"OrderUpdateRemarkForm",__name:"OrderUpdateRemarkForm",emits:["success"],setup(ia,{expose:b,emit:g}){const{t:U}=S(),p=Z(),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}};b({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 K(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=q,h=J,k=T,v=X,I=E,x=z;return i(),n(I,{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)]]):B("",!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(),M("div",f,[_(N,{ref:"infoRef","is-detail":!0,id:a(e).id,style:{"margin-bottom":"30px"}},null,8,["id"]),_(W,{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,R as default};
|