import{_ as E,d as v,w as t,r as p,o as B,c as h,l as o,C as a,u as l,b as F,M as C,aR as N,aY as R}from"./index.56c69f5a.js";import{R as g}from"./index.e077b65d.js";import k from"./choose-modal.cf212f12.js";import"./index.2e257471.js";import"./basic-descriptions.5f176484.js";import"./orderRecord.9d7001b8.js";import"./tootip.fe6ea468.js";import"./porder.30193b2b.js";import"./status.2df4810d.js";import"./calc.850c7422.js";import"./date-range.c3f1dbd6.js";const w={pay_fee:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u4ED8\u6B3E\u91D1\u989D"}],payNo:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u4ED8\u6B3E\u8BA2\u5355"}]},x={"w-full":""},V={class:"flex w-full justify-end"},b=v({__name:"choose-form",emits:["create"],setup(M,{emit:i}){const c=t(null),m=t(null),f=t(null),e=t({payNo:"",pay_fee:""}),d=()=>m.value.onDisplay();function _(){const{detail:r}=f.value;if(Number(e.value.pay_fee)>Number(r==null?void 0:r.wpay_fee))return R.error("\u4ED8\u6B3E\u91D1\u989D\u4E0D\u80FD\u8D85\u8FC7\u672A\u4ED8\u6B3E\u91D1\u989D");c.value.validate(u=>u&&i("create",l(e)))}return(r,u)=>{const s=p("ElFormItem"),y=p("ElInput"),D=p("ElButton");return B(),h("div",x,[o(l(N),{ref_key:"formRef",ref:c,model:e.value,rules:l(w)},{default:a(()=>[o(s,{label:"\u8BA2\u5355\u5BF9\u8D26",prop:"payNo"},{default:a(()=>[o(l(g),{ref_key:"reconciliationRef",ref:f,isPurchPay:"",id:e.value.payNo,readonly:!!e.value.payNo,onChoose:d},null,8,["id","readonly"])]),_:1}),o(s,{label:"\u4ED8\u6B3E\u91D1\u989D",prop:"pay_fee"},{default:a(()=>[o(y,{modelValue:e.value.pay_fee,"onUpdate:modelValue":u[0]||(u[0]=n=>e.value.pay_fee=n),placeholder:"\u8BF7\u8F93\u5165\u4ED8\u6B3E\u91D1\u989D"},null,8,["modelValue"])]),_:1}),o(s,null,{default:a(()=>[F("div",V,[o(D,{type:"primary",onClick:_},{default:a(()=>[C("\u4FDD\u5B58")]),_:1})])]),_:1})]),_:1},8,["model","rules"]),o(k,{ref_key:"chooseModalRef",ref:m,onChoose:u[1]||(u[1]=n=>e.value.payNo=n)},null,512)])}}});var J=E(b,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/supply/purchPay/component/choose-form.vue"]]);export{J as default};
