import{_ as D,d as F,n as c,aa as k,S as B,r as m,o as C,A as h,y as r,h as s,i as a,ca as N,e as l,H as z}from"./index.js";import{order_detail_columns as A}from"./columns.d95d092.js";const S={class:"col-item",style:{width:"247px"}},U={class:"col-value"},g={class:"col-item",style:{width:"248px"}},j={class:"col-value"},E={flex:"","w-full":"","justify-end":"","mt-2":""},H=F({__name:"edit-order",emits:["save-btn-click"],setup(I,{expose:_,emit:f}){const u=c(!1),o=c({}),w=f,n=c(0),i=c(0);function x(){u.value=!1,w("save-btn-click",{row:a(o),inv_fee:a(i),num:a(n)})}const p=k(()=>{const{winv_num:d}=o.value;return d});return B(()=>{n.value=p.value}),_({onDisplay({row:d}){u.value=!0,o.value=d,i.value=o.value.winv_fee}}),(d,e)=>{const v=m("el-input-number"),V=m("el-row"),y=m("el-button"),b=m("el-dialog");return C(),h(b,{modelValue:u.value,"onUpdate:modelValue":e[2]||(e[2]=t=>u.value=t),title:"\u7F16\u8F91\u9500\u552E\u8BA2\u5355",center:"",width:"1040px","close-on-click-modal":!1,"close-on-press-escape":!1},{default:r(()=>[s(a(N),{data:o.value,"col-number":2,columns:a(A)},{custom:r(()=>[s(V,null,{default:r(()=>[l("div",S,[e[3]||(e[3]=l("p",{class:"col-label"},"\u5F00\u7968\u6570\u91CF",-1)),l("p",U,[s(v,{size:"small",placeholder:"\u5F00\u7968\u6570\u91CF",min:.1,style:{width:"100%"},max:p.value,modelValue:n.value,"onUpdate:modelValue":e[0]||(e[0]=t=>n.value=t)},null,8,["max","modelValue"])])]),l("div",g,[e[4]||(e[4]=l("p",{class:"col-label"},"\u5F00\u7968\u91D1\u989D",-1)),l("p",j,[s(v,{placeholder:"\u5F00\u7968\u91D1\u989D",precision:2,min:.1,size:"small",style:{width:"100%"},modelValue:i.value,"onUpdate:modelValue":e[1]||(e[1]=t=>i.value=t)},null,8,["modelValue"])])])]),_:1})]),_:1},8,["data","columns"]),l("div",E,[s(y,{size:"small",type:"primary",onClick:x},{default:r(()=>e[5]||(e[5]=[z("\u4FDD\u5B58")])),_:1})])]),_:1},8,["modelValue"])}}});var q=D(H,[["__file","D:/work/jiesuan/settle-vue3/src/views/InvoiceSales/invoiceApply/components/form-copy/edit-order.vue"]]);export{q as default};
