import{B as F}from"./basic-descriptions.43c3a1ff.js";import{order_detail_columns as w}from"./columns.1ca7940c.js";import{q as x,B as d,a2 as C,aC as k,r as u,o as y,K as N,H as n,t as l,v as t,p as g,S as z}from"./index.d8ce26ef.js";import"./status.fad06285.js";const U={flex:"","w-full":"","justify-end":"","mt-2":""},E=z("\u4FDD\u5B58"),H=x({__name:"edit-order",emits:["save-btn-click"],setup(S,{expose:p,emit:v}){const s=d(!1),o=d({}),i=d(0),m=d(0);function f(){v("save-btn-click",{row:t(o),inv_fee:t(m),num:t(i)}),s.value=!1}const c=C(()=>{const{winv_fee:r,goodPrice:e}=o.value;return r/e});return k(()=>{i.value=c.value}),p({onDisplay({row:r}){s.value=!0,o.value=r,m.value=o.value.winv_fee}}),(r,e)=>{const V=u("el-input-number"),_=u("el-descriptions-item"),b=u("el-input"),B=u("el-button"),D=u("el-dialog");return y(),N(D,{modelValue:s.value,"onUpdate:modelValue":e[2]||(e[2]=a=>s.value=a),title:"\u7F16\u8F91\u9500\u552E\u8BA2\u5355",center:""},{default:n(()=>[l(t(F),{data:o.value,"col-number":2,columns:t(w)},{custom:n(()=>[l(_,{label:"\u6570\u91CF"},{default:n(()=>[l(V,{size:"small",min:1,max:t(c),modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=a=>i.value=a)},null,8,["max","modelValue"])]),_:1}),l(_,{label:"\u5F00\u7968\u91D1\u989D"},{default:n(()=>[l(b,{placeholder:"\u8BF7\u8F93\u5165\u5F00\u7968\u91D1\u989D",size:"small",modelValue:m.value,"onUpdate:modelValue":e[1]||(e[1]=a=>m.value=a)},null,8,["modelValue"])]),_:1})]),_:1},8,["data","columns"]),g("div",U,[l(B,{size:"small",type:"primary",onClick:f},{default:n(()=>[E]),_:1})])]),_:1},8,["modelValue"])}}});export{H as default};
