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