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