return-form.89194e77.js 1.9 KB

1
  1. import{_ as h,d as C,w as i,r as p,o as R,c as k,l as e,C as l,u as s,b as w,M as B,aR as N}from"./index.88f7d256.js";import{R as x}from"./index.9fa951c4.js";import D from"./choose-modal.3f5bf4fc.js";import E from"./invoice-table.7bfdfb35.js";import{c as F}from"./invoice-form.4e401015.js";import{C as b}from"./status.2df4810d.js";import"./index.69815c3e.js";import"./basic-descriptions.5c20357d.js";import"./orderRecord.c9c18fd5.js";import"./tootip.514b092e.js";import"./porder.b626a198.js";import"./calc.850c7422.js";import"./_details.930f66d0.js";import"./date-range.b361462b.js";import"./_options.31f08d77.js";import"./global.9ad647c8.js";const g={"w-full":""},T={class:"flex w-full justify-end"},M=C({__name:"return-form",emits:["create"],setup(A,{emit:f}){const c=i(null),m=i(null),d=i(null),o=i({payNo:"",invArr:[]}),_=()=>m.value.onDisplay();function v(){c.value.validate(r=>r&&f("create",s(o)))}const y=r=>{r.forEach(a=>{const t=a.invoiceType;if(!t)return;const n=b.find(({scanValue:u})=>u===t);n&&(a.invoiceType=n.value)}),o.value.invArr=r};return(r,a)=>{const t=p("ElFormItem"),n=p("ElButton");return R(),k("div",g,[e(s(N),{ref_key:"formRef",ref:c,"label-width":"100px",model:o.value,rules:s(F)},{default:l(()=>[e(t,{label:"\u8BA2\u5355\u5BF9\u8D26",prop:"payNo"},{default:l(()=>[e(s(x),{ref_key:"reconciliationRef",ref:d,isPurchPay:!0,"show-ticket-column":!0,id:o.value.payNo,readonly:!!o.value.payNo,onChoose:_},null,8,["id","readonly"])]),_:1}),e(t,{label:"\u53D1\u7968",prop:"invArr"},{default:l(()=>[e(E,{onChange:y})]),_:1}),e(t,null,{default:l(()=>[w("div",T,[e(n,{type:"primary",onClick:v},{default:l(()=>[B("\u4FDD\u5B58")]),_:1})])]),_:1})]),_:1},8,["model","rules"]),e(D,{ref_key:"chooseModalRef",ref:m,onChoose:a[0]||(a[0]=u=>o.value.payNo=u)},null,512)])}}});var X=h(M,[["__file","D:/work/accout-vue3-ui2/settle-vue3/src/views/supply/ticketReturn/components/return-form.vue"]]);export{X as default};