choose-form.f830ea.js 2.1 KB

1234567
  1. import{_ as E,d as h,x as l,r as s,o as v,c as B,l as o,D as u,a as N,h as C,M as F,m as p,aQ as g,aZ as R}from"./index.js";import k from"./index.f6be26.js";import x from"./choose-modal.360a21.js";import"./orderRecord.4d98a397.js";import"./index.46b8bf10.js";import"./date-range.4010f801.js";const V={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":""},M={class:"flex w-full justify-end"},P=h({__name:"choose-form",emits:["create"],setup(b,{emit:i}){const c=l(null),f=l(null),m=l(null),e=l({payNo:"",pay_fee:""}),d=()=>f.value.onDisplay();function _(){const{detail:r}=m.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(a=>a&&i("create",p(e)))}return(r,a)=>{const t=s("ElFormItem"),y=s("ElInput"),D=s("ElButton");return v(),B("div",w,[o(p(g),{ref_key:"formRef",ref:c,model:e.value,rules:p(V)},{default:u(()=>[o(t,{label:"\u8BA2\u5355\u5BF9\u8D26",prop:"payNo"},{default:u(()=>[N(` <ReconciliationForm\r
  2. ref="reconciliationRef"\r
  3. isPurchPay\r
  4. :id="formData.payNo"\r
  5. :readonly="!!formData.payNo"\r
  6. @choose="handleChoose"\r
  7. /> `),o(k,{ref_key:"reconciliationRef",ref:m,isPurchPay:"",payNo:e.value.payNo,readonly:!!e.value.payNo,request:"",choose:"",onChoose:d},null,8,["payNo","readonly"])]),_:1}),o(t,{label:"\u4ED8\u6B3E\u91D1\u989D",prop:"pay_fee"},{default:u(()=>[o(y,{modelValue:e.value.pay_fee,"onUpdate:modelValue":a[0]||(a[0]=n=>e.value.pay_fee=n),placeholder:"\u8BF7\u8F93\u5165\u4ED8\u6B3E\u91D1\u989D"},null,8,["modelValue"])]),_:1}),o(t,null,{default:u(()=>[C("div",M,[o(D,{type:"primary",onClick:_},{default:u(()=>[F("\u4FDD\u5B58")]),_:1})])]),_:1})]),_:1},8,["model","rules"]),o(x,{ref_key:"chooseModalRef",ref:f,onChoose:a[1]||(a[1]=n=>e.value.payNo=n)},null,512)])}}});var Q=E(P,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/supplierOrder/sendOrderPay/component/choose-form.vue"]]);export{Q as default};