1 |
- import{_ as y,d as C,x as s,r as p,o as R,c as k,l as e,D as n,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.c35b78.js";import w from"./invoice-table.7e7b22.js";import{c as T}from"./invoice-form.9ac8e9.js";import"./orderRecord.4d98a397.js";import"./porder.9a85976d.js";import"./_details.7b315419.js";import"./date-range.4010f801.js";import"./_options.b664a184.js";import"./global.9ad647c8.js";const g={"w-full":""},b={class:"flex w-full justify-end"},M=C({__name:"return-form",emits:["create"],setup(A,{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 l=N.find(({scanValue:u})=>u===t);l&&(a.invoiceType=l.value)}),o.value.invArr=r};return(r,a)=>{const t=p("ElFormItem"),l=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:n(()=>[e(t,{label:"\u8BA2\u5355\u5BF9\u8D26",prop:"payNo"},{default:n(()=>[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:n(()=>[e(w,{onChange:h})]),_:1}),e(t,null,{default:n(()=>[x("div",b,[e(l,{type:"primary",onClick:v},{default:n(()=>[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 L=y(M,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/purchase/ticketReturn/components/return-form.vue"]]);export{L as default};
|