import{_ as w,d as x,x as u,bc as B,A as N,r as c,o as _,c as R,l as e,D as a,h as i,M as h,m as o,G as F,aN as V,a as b,aQ as I}from"./index.js";import j from"./choose-modal.3a7c0a.js";import{c as A}from"./_rules.aa11c031.js";import{t as M}from"./ticketReturn.8c918810.js";import"./porder.cb2a60e8.js";import{h as T}from"./index.b1b475a3.js";import"./_details.215a1c33.js";import"./index.ae4dabde.js";import"./date-range.019e953f.js";const U={"w-full":""},g={class:"w-full flex justify-end"},G={class:"w-full"},O={class:"flex w-full justify-end"},Q=x({__name:"return-form",emits:["create"],setup(q,{emit:v}){const m=u(null),p=u(null),t=u({hpNo:"",InvCode:"",reason:""}),{run:k,data:d}=B({initalData:{}}),C=()=>p.value.onDisplay();function y(){m.value.validate(l=>l&&v("create",o(t)))}return N(()=>t.value.hpNo,l=>k(T({hpNo:l}))),(l,s)=>{const f=c("ElButton"),n=c("ElFormItem"),D=c("ElInput");return _(),R("div",U,[e(o(I),{ref_key:"formRef",ref:m,"label-width":"100px",model:t.value,rules:o(A)},{default:a(()=>[e(n,{label:"\u5356\u51FA\u53D1\u7968\u5173\u8054\u7BA1\u7406",prop:"hpNo","label-width":"150px"},{default:a(()=>[i("div",g,[e(f,{type:"primary",link:"",onClick:C},{default:a(()=>[h(" \u9009\u62E9 ")]),_:1})]),i("div",G,[Object.keys(o(d)).length>0?(_(),F(o(V),{key:0,columns:o(M),data:o(d)},null,8,["columns","data"])):b("v-if",!0)])]),_:1}),e(n,{label:"\u89E3\u9664\u539F\u56E0",prop:"reason"},{default:a(()=>[e(D,{modelValue:t.value.reason,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value.reason=r)},null,8,["modelValue"])]),_:1}),e(n,null,{default:a(()=>[i("div",O,[e(f,{type:"primary",onClick:y},{default:a(()=>[h("\u4FDD\u5B58")]),_:1})])]),_:1})]),_:1},8,["model","rules"]),e(j,{ref_key:"chooseModalRef",ref:p,onChoose:s[1]||(s[1]=({hpNo:r,InvCode:E})=>t.value={hpNo:r,InvCode:E})},null,512)])}}});var Y=w(Q,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/purchaseNew/unInvoiceRelation/components/return-form.vue"]]);export{Y as default};
