1 |
- import{_ as E,d as v,E as r,x as p,o as B,c as h,y as o,K as a,u as l,b as F,aE as C,W as N,aS as g}from"./index.1417328f.js";import{R}from"./index.38882c18.js";import k from"./choose-modal.4250606e.js";import"./index.08fe6875.js";import"./basic-descriptions.cadaf928.js";import"./tootip.8c37fa8a.js";import"./status.0f757cb5.js";import"./status.727086c1.js";import"./_details.6aeb3f85.js";import"./_options.0a7f2a8c.js";import"./reconciliation.53461462.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"}]},V={"w-full":""},b={class:"flex w-full justify-end"},w=N("\u4FDD\u5B58"),I=v({__name:"choose-form",emits:["create"],setup(M,{emit:i}){const c=r(null),m=r(null),f=r(null),e=r({payNo:"",pay_fee:""}),_=()=>m.value.onDisplay();function d(){const{detail:t}=f.value;if(Number(e.value.pay_fee)>Number(t==null?void 0:t.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(t,u)=>{const s=p("ElFormItem"),y=p("ElInput"),D=p("ElButton");return B(),h("div",V,[o(l(C),{ref_key:"formRef",ref:c,model:e.value,rules:l(x)},{default:a(()=>[o(s,{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(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",b,[o(D,{type:"primary",onClick:d},{default:a(()=>[w]),_: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 H=E(I,[["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/supply/purchPay/component/choose-form.vue"]]);export{H as default};
|