import{c as C,_ as c,g as E}from"./goodDetail.config.df7d45a7.js";import{h as R}from"./exchangeOrder.1c840d9f.js";import{O as h,a as w}from"./status.2b37e8be.js";import{u as x}from"./userDetail.config.0ab63777.js";import{a as y,r as i,b as r,a7 as A,Z as O,c as k,j as T,h as l,f as e,u as a,am as V,Y as N}from"./index.4d061c66.js";const P=[{field:"orderCode",label:"\u8BA2\u5355\u7F16\u53F7",span:8},{label:"\u8BA2\u5355\u72B6\u6001",field:"status",span:8,render:t=>C(h,t)},{label:"\u8BA2\u5355\u7C7B\u578B",field:"type",span:8,render:t=>C(w,t)},{label:"\u521B\u5EFA\u65F6\u95F4",field:"addtime",span:8},{field:"num",label:"\u6570\u91CF",span:8},{field:"num1",label:"\u5355\u4EF7",span:8},{label:"\u7269\u6D41\u516C\u53F8",field:"post_name",span:8},{label:"\u7269\u6D41\u7F16\u7801",field:"post_code",span:8},{label:"\u6536\u8D27\u8054\u7CFB\u4EBA",field:"contactor",span:8},{field:"mobile",label:"\u8054\u7CFB\u7535\u8BDD",span:8},{field:"addr",label:"\u6536\u8D27\u5730\u5740",span:16,render:(t,{addr_name:d,addr:n})=>d+n},{field:"addr",label:"\u5907\u6CE8",span:24}],S={columns:P,apis:{httpDetail:R}},I=S,Z=y({__name:"edit-dialog",setup(t,{expose:d}){const n=i(!1),p=i(null),_=i(null),m=i(null),f=i(!1);function D(g){n.value=!0,f.value=!0;const{id:s,account_id:o,good_id:u}=g;N(()=>{s&&p.value.reload({id:s}),o&&m.value.reload({id:o}),u&&_.value.reload({id:u})}),f.value=!1}return d({show:D}),(g,s)=>{const o=r("el-form-item"),u=r("el-col"),F=r("el-row"),b=r("el-dialog"),B=A("loading");return O((k(),T(b,{modelValue:n.value,"onUpdate:modelValue":s[0]||(s[0]=v=>n.value=v),"close-on-press-escape":!1,center:"","append-to-body":"","destroy-on-close":"",width:"1040px",title:"\u8BA2\u5355\u8BE6\u60C5"},{default:l(()=>[e(a(V),{ref:"formRef","label-width":"100px",style:{"margin-top":"-10px"},class:"demo-ruleForm","status-icon":""},{default:l(()=>[e(F,null,{default:l(()=>[e(u,{span:24},{default:l(()=>[e(o,{label:"\u8BA2\u5355\u4FE1\u606F"},{default:l(()=>[e(a(c),{ref_key:"orderDetailRef",ref:p,contentConfig:a(I)},null,8,["contentConfig"])]),_:1})]),_:1}),e(u,{span:24},{default:l(()=>[e(o,{label:"\u8D26\u53F7\u4FE1\u606F"},{default:l(()=>[e(a(c),{ref_key:"userDetailRef",ref:m,contentConfig:a(x)},null,8,["contentConfig"])]),_:1})]),_:1}),e(u,{span:24},{default:l(()=>[e(o,{label:"\u5546\u54C1\u4FE1\u606F"},{default:l(()=>[e(a(c),{ref_key:"goodDetailRef",ref:_,contentConfig:a(E)},null,8,["contentConfig"])]),_:1})]),_:1})]),_:1})]),_:1},512)]),_:1},8,["modelValue"])),[[B,f.value]])}}});export{Z as _};
