edit-order.bb23ccbd.js 2.0 KB

1
  1. import{_ as x,d as y,w as d,ag as D,a0 as F,r as m,o as C,G as k,C as r,l as s,u as o,b as e,M as B}from"./index.42bf163d.js";import{B as N}from"./basic-descriptions.bd1e983e.js";import{order_detail_columns as U}from"./columns.2e7df1a9.js";import"./status.d6b2a53d.js";const g={class:"col-item",style:{width:"247px"}},z=e("p",{class:"col-label"},"\u5F00\u7968\u6570\u91CF",-1),E={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"},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),i=d(0);function w(){u.value=!1,f("save-btn-click",{row:o(t),inv_fee:o(i),num:o(n)})}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"),V=m("el-button"),b=m("el-dialog");return C(),k(b,{modelValue:u.value,"onUpdate:modelValue":l[2]||(l[2]=a=>u.value=a),title:"\u7F16\u8F91\u9500\u552E\u8BA2\u5355",center:"",width:"1040px","close-on-click-modal":!1},{default:r(()=>[s(o(N),{data:t.value,"col-number":2,columns:o(U)},{custom:r(()=>[s(h,null,{default:r(()=>[e("div",g,[z,e("p",E,[s(p,{size:"small",placeholder:"\u5F00\u7968\u6570\u91CF",min:.1,style:{width:"100%"},max:o(_),modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=a=>n.value=a)},null,8,["min","max","modelValue"])])]),e("div",j,[A,e("p",S,[s(p,{placeholder:"\u5F00\u7968\u91D1\u989D",precision:2,min:.1,size:"small",style:{width:"100%"},modelValue:i.value,"onUpdate:modelValue":l[1]||(l[1]=a=>i.value=a)},null,8,["min","modelValue"])])])]),_:1})]),_:1},8,["data","columns"]),e("div",G,[s(V,{size:"small",type:"primary",onClick:w},{default:r(()=>[B("\u4FDD\u5B58")]),_:1})])]),_:1},8,["modelValue"])}}});var J=x(I,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSales/invoiceApply/components/add-edit-form/edit-order.vue"]]);export{J as default};