import y from"./order-record.2a7d4d55.js";import{c as E}from"./configs.fe3c2395.js";import{I as B}from"./global.9ad647c8.js";import{q as F,B as s,a4 as N,r as n,o as v,n as C,t as e,H as t,aY as b,v as m,aD as h,I as x,p as P,S as V,aM as g}from"./index.d8ce26ef.js";import"./index.79955875.js";import"./add-order-modal.9bdc6228.js";import"./use-response-handle.e6cae34f.js";import"./reconciliation.0978f225.js";import"./basic-purchase.ba1d31fb.js";import"./status.fad06285.js";import"./basic-descriptions.43c3a1ff.js";const k=P("h1",{"text-xl":"","font-bold":"","py-2":""},"\u65B0\u5EFA\u91C7\u8D2D\u4ED8\u6B3E\u7533\u8BF7",-1),A=V("\u4FDD\u5B58"),Y=F({__name:"index",emits:["createPayment"],setup(I,{emit:_}){const r=s(null),p=s("0"),a=N({payNo:"",pay_fee:""});function i({payNo:o,wpay_fee:u}){a.payNo=o,p.value=u,r.value.validateField("payNo")}function f(){if(Number(a.pay_fee)>Number(p.value))return g.error("\u4ED8\u6B3E\u91D1\u989D\u4E0D\u80FD\u8D85\u8FC7\u672A\u4ED8\u6B3E\u91D1\u989D");r.value.validate(o=>o&&_("createPayment",a))}return(o,u)=>{const l=n("el-form-item"),c=n("el-input"),d=n("el-button");return v(),C(x,null,[k,e(m(h),{ref_key:"formRef",ref:r,model:a,rules:m(E)},{default:t(()=>[e(l,{label:"\u8BA2\u5355\u5BF9\u8D26",prop:"payNo"},{default:t(()=>[e(y,{onChangePaymentDetail:i})]),_:1}),e(l,{label:"\u4ED8\u6B3E\u91D1\u989D",prop:"pay_fee"},{default:t(()=>[e(c,b({placeholder:"\u8BF7\u8F93\u5165\u4ED8\u6B3E\u91D1\u989D",modelValue:a.pay_fee,"onUpdate:modelValue":u[0]||(u[0]=D=>a.pay_fee=D)},m(B)),null,16,["modelValue"])]),_:1}),e(l,{"pl-20":""},{default:t(()=>[e(d,{type:"primary",onClick:f},{default:t(()=>[A]),_:1})]),_:1})]),_:1},8,["model","rules"])],64)}}});export{Y as default};
