1 |
- import{_ as E,d as v,E as t,x as p,o as B,c as h,y as o,K as a,u as l,b as F,aK as C,W as N,aS as g}from"./index.743f0c80.js";import{R}from"./index.eb1db4ef.js";import k from"./choose-modal.590ccc96.js";import"./index.88e5dbb1.js";import"./basic-descriptions.e56bd542.js";import"./tootip.48acd346.js";import"./status.0f757cb5.js";import"./status.868e86c0.js";import"./_details.8c6ddd79.js";import"./_options.0a7f2a8c.js";import"./reconciliation.d0aed753.js";const x={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"}]},w={"w-full":""},V={class:"flex w-full justify-end"},b=N("\u4FDD\u5B58"),I=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:""}),_=()=>m.value.onDisplay();function d(){const{detail:r}=f.value;if(Number(e.value.pay_fee)>Number(r==null?void 0:r.wpay_fee))return g.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 n=p("ElFormItem"),y=p("ElInput"),D=p("ElButton");return B(),h("div",w,[o(l(C),{ref_key:"formRef",ref:c,model:e.value,rules:l(x)},{default:a(()=>[o(n,{label:"\u8BA2\u5355\u5BF9\u8D26",prop:"payNo"},{default:a(()=>[o(l(R),{ref_key:"reconciliationRef",ref:f,isPurchPay:"",id:e.value.payNo,readonly:!!e.value.payNo,onChoose:_},null,8,["id","readonly"])]),_:1}),o(n,{label:"\u4ED8\u6B3E\u91D1\u989D",prop:"pay_fee"},{default:a(()=>[o(y,{modelValue:e.value.pay_fee,"onUpdate:modelValue":u[0]||(u[0]=s=>e.value.pay_fee=s),placeholder:"\u8BF7\u8F93\u5165\u4ED8\u6B3E\u91D1\u989D"},null,8,["modelValue"])]),_:1}),o(n,null,{default:a(()=>[F("div",V,[o(D,{type:"primary",onClick:d},{default:a(()=>[b]),_:1})])]),_:1})]),_:1},8,["model","rules"]),o(k,{ref_key:"chooseModalRef",ref:m,onChoose:u[1]||(u[1]=s=>e.value.payNo=s)},null,512)])}}});var H=E(I,[["__file","D:/work/accout-vue3-ui/src/views/supply/purchPay/component/choose-form.vue"]]);export{H as default};
|