import{_ as x,d as D,E as u,aZ as w,H as B,x as i,o as _,c as N,y as e,K as a,b as c,u as t,N as R,a as F,aK as V,W as h}from"./index.743f0c80.js";import b from"./choose-modal.402a3246.js";import{c as I}from"./_rules.b6cc96d5.js";import{B as j}from"./basic-descriptions.e56bd542.js";import{t as M}from"./_details.5d1563b3.js";import{b as K}from"./index.cb28f7dd.js";import"./_details.ea4caa1e.js";import"./tootip.48acd346.js";import"./_opitons.a64c570c.js";import"./reconciliation.d0aed753.js";import"./_opitons.2a65e7c0.js";import"./status.868e86c0.js";const T={"w-full":""},g={class:"w-full flex justify-end"},A=h("\u9009\u62E9"),H={class:"w-full"},O={class:"flex w-full justify-end"},U=h("\u4FDD\u5B58"),W=D({__name:"return-form",emits:["create"],setup(Z,{emit:v}){const m=u(null),p=u(null),o=u({hpNo:"",reason:""}),{run:y,data:d}=w({initalData:{}}),k=()=>p.value.onDisplay();function C(){m.value.validate(l=>l&&v("create",t(o)))}return B(()=>o.value.hpNo,l=>y(K({hpNo:l}))),(l,s)=>{const f=i("ElButton"),r=i("ElFormItem"),E=i("ElInput");return _(),N("div",T,[e(t(V),{ref_key:"formRef",ref:m,"label-width":"100px",model:o.value,rules:t(I)},{default:a(()=>[e(r,{label:"\u91C7\u8D2D\u5F00\u7968",prop:"hpNo"},{default:a(()=>[c("div",g,[e(f,{type:"primary",link:"",onClick:k},{default:a(()=>[A]),_:1})]),c("div",H,[Object.keys(t(d)).length>0?(_(),R(t(j),{key:0,columns:t(M),data:t(d)},null,8,["columns","data"])):F("v-if",!0)])]),_:1}),e(r,{label:"\u89E3\u9664\u539F\u56E0",prop:"reason"},{default:a(()=>[e(E,{style:{width:"350px"},type:"textarea",modelValue:o.value.reason,"onUpdate:modelValue":s[0]||(s[0]=n=>o.value.reason=n)},null,8,["modelValue"])]),_:1}),e(r,null,{default:a(()=>[c("div",O,[e(f,{type:"primary",onClick:C},{default:a(()=>[U]),_:1})])]),_:1})]),_:1},8,["model","rules"]),e(b,{ref_key:"chooseModalRef",ref:p,onChoose:s[1]||(s[1]=n=>o.value.hpNo=n)},null,512)])}}});var te=x(W,[["__file","D:/work/accout-vue3-ui/src/views/supply/ticketReturnRelive/components/return-form.vue"]]);export{te as default};