edit-order.2feedf.js 2.0 KB

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