return-form.0a435b.js 1.7 KB

1
  1. import{_ as h,d as C,x as s,r as m,o as R,c as k,l as e,D as l,m as i,h as x,M as B,aQ as D,df as N}from"./index.js";import{R as E}from"./index.8ad79f80.js";import F from"./choose-modal.6bb55a.js";import w from"./invoice-table.f91ee7.js";import{c as g}from"./invoice-form.2e8999.js";import"./orderRecord.4d98a397.js";import"./porder.9a85976d.js";import"./_details.1548b92f.js";import"./date-range.4010f801.js";import"./_options.31f08d77.js";import"./global.9ad647c8.js";const T={"w-full":""},b={class:"flex w-full justify-end"},M=C({__name:"return-form",emits:["create"],setup(A,{emit:p}){const c=s(null),f=s(null),d=s(null),o=s({payNo:"",invArr:[]}),_=()=>f.value.onDisplay();function v(){c.value.validate(r=>r&&p("create",i(o)))}const y=r=>{r.forEach(a=>{const t=a.invoiceType;if(!t)return;const n=N.find(({scanValue:u})=>u===t);n&&(a.invoiceType=n.value)}),o.value.invArr=r};return(r,a)=>{const t=m("ElFormItem"),n=m("ElButton");return R(),k("div",T,[e(i(D),{ref_key:"formRef",ref:c,"label-width":"100px",model:o.value,rules:i(g)},{default:l(()=>[e(t,{label:"\u8BA2\u5355\u5BF9\u8D26",prop:"payNo"},{default:l(()=>[e(i(E),{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(w,{onChange:y})]),_:1}),e(t,null,{default:l(()=>[x("div",b,[e(n,{type:"primary",onClick:v},{default:l(()=>[B("\u4FDD\u5B58")]),_:1})])]),_:1})]),_:1},8,["model","rules"]),e(F,{ref_key:"chooseModalRef",ref:f,onChoose:a[0]||(a[0]=u=>o.value.payNo=u)},null,512)])}}});var K=h(M,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/supply/ticketReturn/components/return-form.vue"]]);export{K as default};