return-form.58fdb056.js 1.9 KB

1
  1. import{_ as D,d as w,E as u,aZ as x,H as B,x as i,o as _,c as N,y as e,K as a,b as c,u as o,N as R,a as F,aK as V,W as h}from"./index.743f0c80.js";import b from"./choose-modal.abbf8e96.js";import{c as I}from"./_rules.1a544eb3.js";import{B as j}from"./basic-descriptions.e56bd542.js";import{t as M}from"./_details.0b0c213b.js";import{b as K}from"./index.cb28f7dd.js";import"./_details.7ed0eccb.js";import"./_opitons.90d80463.js";import"./status.868e86c0.js";import"./reconciliation.d0aed753.js";import"./tootip.48acd346.js";import"./_opitons.689eae18.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=w({__name:"return-form",emits:["create"],setup(Z,{emit:v}){const m=u(null),p=u(null),t=u({hpNo:"",reason:""}),{run:k,data:d}=x({initalData:{}}),y=()=>p.value.onDisplay();function C(){m.value.validate(l=>l&&v("create",o(t)))}return B(()=>t.value.hpNo,l=>k(K({hpNo:l}))),(l,s)=>{const f=i("ElButton"),r=i("ElFormItem"),E=i("ElInput");return _(),N("div",T,[e(o(V),{ref_key:"formRef",ref:m,"label-width":"100px",model:t.value,rules:o(I)},{default:a(()=>[e(r,{label:"\u91C7\u8D2D\u5F00\u7968",prop:"hpNo"},{default:a(()=>[c("div",g,[e(f,{type:"primary",link:"",onClick:y},{default:a(()=>[A]),_:1})]),c("div",H,[Object.keys(o(d)).length>0?(_(),R(o(j),{key:0,columns:o(M),data:o(d)},null,8,["columns","data"])):F("v-if",!0)])]),_:1}),e(r,{label:"\u89E3\u9664\u539F\u56E0",prop:"reason"},{default:a(()=>[e(E,{modelValue:t.value.reason,"onUpdate:modelValue":s[0]||(s[0]=n=>t.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=>t.value.hpNo=n)},null,512)])}}});var oe=D(W,[["__file","D:/work/accout-vue3-ui/src/views/purchase/ticketReturnRelive/components/return-form.vue"]]);export{oe as default};