import{_ as y,d as N,x as p,ah as V,a0 as F,r as _,o as C,G as k,D as v,l as f,m as c,aN as B,h as l,L as S,M as E}from"./index.js";import{order_detail_columns as U}from"./columns.88d730.js";const j={class:"col-item",style:{width:"247px"}},z=l("p",{class:"col-label"},"\u5F00\u7968\u6570\u91CF",-1),A={class:"col-value"},I={class:"col-item",style:{width:"248px"}},M=l("p",{class:"col-label"},"\u5F00\u7968\u91D1\u989D",-1),T={class:"col-value"},G={flex:"","w-full":"","justify-end":"","mt-2":""},L=N({__name:"edit-order",emits:["save-btn-click"],setup(O,{expose:h,emit:b}){const i=p(!1),o=p({}),r=p(0),d=p(0);function w(){i.value=!1,b("save-btn-click",{row:c(o),inv_fee:c(d),num:c(r)})}const x=V(()=>{const{winv_num:e}=o.value;return e});function D(e,t){var a=e.toString(),n=t.toString(),m,u,s=arguments[2];return m=(n.split(".")[1]?n.split(".")[1].length:0)-(a.split(".")[1]?a.split(".")[1].length:0),u=Number(a.replace(".",""))/Number(n.replace(".",""))*Math.pow(10,m),Number(typeof s!="number"?u:u.toFixed(parseInt(s)))}function g(e){const{goodPrice:t}=o.value;r.value=Number(D(e,t)).toFixed(8)}return F(()=>{r.value=x.value}),h({onDisplay({row:e}){i.value=!0,o.value=e,d.value=o.value.winv_fee}}),(e,t)=>{const a=_("el-input-number"),n=_("el-row"),m=_("el-button"),u=_("el-dialog");return C(),k(u,{modelValue:i.value,"onUpdate:modelValue":t[1]||(t[1]=s=>i.value=s),title:"\u7F16\u8F91\u9500\u552E\u8BA2\u5355",center:"",width:"1040px","close-on-click-modal":!1,"close-on-press-escape":!1},{default:v(()=>[f(c(B),{data:o.value,"col-number":2,columns:c(U)},{custom:v(()=>[f(n,null,{default:v(()=>[l("div",j,[z,l("p",A,S(r.value),1)]),l("div",I,[M,l("p",T,[f(a,{placeholder:"\u5F00\u7968\u91D1\u989D",precision:2,min:.1,size:"small",style:{width:"100%"},modelValue:d.value,"onUpdate:modelValue":t[0]||(t[0]=s=>d.value=s),onChange:g},null,8,["min","modelValue"])])])]),_:1})]),_:1},8,["data","columns"]),l("div",G,[f(m,{size:"small",type:"primary",onClick:w},{default:v(()=>[E("\u4FDD\u5B58")]),_:1})])]),_:1},8,["modelValue"])}}});var H=y(L,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/InvoiceSales/invoiceApply/components/currentcy-form/edit-order.vue"]]);export{H as default};
