edit-order.ce9675.js 2.2 KB

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