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