import{_ as b,d as y,E as d,af as D,a9 as F,x as m,o as B,N as C,K as r,y as a,b as e,u as o,W as k}from"./index.1417328f.js";import{B as N}from"./basic-descriptions.cadaf928.js";import{order_detail_columns as E}from"./columns.db7de4f0.js";import"./status.727086c1.js";const U={class:"col-item",style:{width:"247px"}},z=e("p",{class:"col-label"},"\u5F00\u7968\u6570\u91CF",-1),g={class:"col-value"},j={class:"col-item",style:{width:"248px"}},A=e("p",{class:"col-label"},"\u5F00\u7968\u91D1\u989D",-1),S={class:"col-value"},I={flex:"","w-full":"","justify-end":"","mt-2":""},K=k("\u4FDD\u5B58"),O=y({__name:"edit-order",emits:["save-btn-click"],setup(P,{expose:v,emit:f}){const u=d(!1),t=d({}),n=d(0),i=d(0);function w(){f("save-btn-click",{row:o(t),inv_fee:o(i),num:o(n)}),u.value=!1}const _=D(()=>{const{winv_num:c}=t.value;return c});return F(()=>{n.value=_.value}),v({onDisplay({row:c}){u.value=!0,t.value=c,i.value=t.value.winv_fee}}),(c,l)=>{const p=m("el-input-number"),h=m("el-row"),x=m("el-button"),V=m("el-dialog");return B(),C(V,{modelValue:u.value,"onUpdate:modelValue":l[2]||(l[2]=s=>u.value=s),title:"\u7F16\u8F91\u9500\u552E\u8BA2\u5355",center:"",width:"1040px"},{default:r(()=>[a(o(N),{data:t.value,"col-number":2,columns:o(E)},{custom:r(()=>[a(h,null,{default:r(()=>[e("div",U,[z,e("p",g,[a(p,{size:"small",placeholder:"\u5F00\u7968\u6570\u91CF",precision:2,min:.01,style:{width:"100%"},max:o(_),modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=s=>n.value=s)},null,8,["min","max","modelValue"])])]),e("div",j,[A,e("p",S,[a(p,{placeholder:"\u5F00\u7968\u91D1\u989D",precision:2,min:.01,size:"small",style:{width:"100%"},modelValue:i.value,"onUpdate:modelValue":l[1]||(l[1]=s=>i.value=s)},null,8,["min","modelValue"])])])]),_:1})]),_:1},8,["data","columns"]),e("div",I,[a(x,{size:"small",type:"primary",onClick:w},{default:r(()=>[K]),_:1})])]),_:1},8,["modelValue"])}}});var H=b(O,[["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/InvoiceSales/invoiceApply/components/add-edit-form/edit-order.vue"]]);export{H as default};