return-form.73a095.js 1.7 KB

1
  1. import{_ as y,d as C,x as s,r as p,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.1e9b02.js";import w from"./invoice-table.b0380e.js";import{c as T}from"./invoice-form.0766d0.js";import"./orderRecord.4d98a397.js";import"./porder.9a85976d.js";import"./_details.fe0966e2.js";import"./date-range.4010f801.js";import"./global.9ad647c8.js";const g={"w-full":""},b={class:"flex w-full justify-end"},I=C({__name:"return-form",emits:["create"],setup(M,{emit:m}){const c=s(null),f=s(null),d=s(null),o=s({payNo:"",invArr:[]}),_=()=>f.value.onDisplay();function v(){c.value.validate(r=>r&&m("create",i(o)))}const h=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=p("ElFormItem"),n=p("ElButton");return R(),k("div",g,[e(i(D),{ref_key:"formRef",ref:c,"label-width":"100px",model:o.value,rules:i(T)},{default:l(()=>[e(t,{label:"\u8BA2\u5355\u5BF9\u8D26",prop:"payNo"},{default:l(()=>[e(i(E),{ref_key:"reconciliationRef",ref:d,showTicketColumn:!0,"is-purch-pay":!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:h})]),_: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 J=y(I,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/InvoiceSales/supplierTicketReturn/components/return-form.vue"]]);export{J as default};