1 |
- import{_ as E,d as v,x as r,r as p,o as B,c as h,l as o,D as a,m as t,h as F,M as C,aQ as N,aZ as g}from"./index.js";import{R}from"./index.8ad79f80.js";import k from"./choose-modal.6c8fdc.js";import"./orderRecord.4d98a397.js";import"./porder.9a85976d.js";import"./date-range.4010f801.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":""},w={class:"flex w-full justify-end"},I=v({__name:"choose-form",emits:["create"],setup(M,{emit:i}){const f=r(null),c=r(null),m=r(null),e=r({payNo:"",pay_fee:""}),d=()=>c.value.onDisplay();function _(){const{detail:l}=m.value;if(Number(e.value.pay_fee)>Number(l==null?void 0:l.wpay_fee))return g.error("\u4ED8\u6B3E\u91D1\u989D\u4E0D\u80FD\u8D85\u8FC7\u672A\u4ED8\u6B3E\u91D1\u989D");f.value.validate(u=>u&&i("create",t(e)))}return(l,u)=>{const s=p("ElFormItem"),D=p("ElInput"),y=p("ElButton");return B(),h("div",V,[o(t(N),{ref_key:"formRef",ref:f,model:e.value,rules:t(x)},{default:a(()=>[o(s,{label:"\u8BA2\u5355\u5BF9\u8D26",prop:"payNo"},{default:a(()=>[o(t(R),{ref_key:"reconciliationRef",ref:m,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(D,{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",w,[o(y,{type:"primary",onClick:_},{default:a(()=>[C("\u4FDD\u5B58")]),_:1})])]),_:1})]),_:1},8,["model","rules"]),o(k,{ref_key:"chooseModalRef",ref:c,onChoose:u[1]||(u[1]=n=>e.value.payNo=n)},null,512)])}}});var Q=E(I,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/InvoiceSales/supplierPay/component/choose-form.vue"]]);export{Q as default};
|