return-form.8c32f7f1.js 1.9 KB

1
  1. import{_ as E,d as R,w as u,b3 as w,z as B,r as c,o as _,c as x,l as e,C as a,b as i,M as v,u as o,G as N,a as b,aR as F}from"./index.fd765376.js";import V from"./choose-modal.60110f71.js";import{c as j}from"./_rules.1a544eb3.js";import{B as I}from"./basic-descriptions.6db97105.js";import{t as M}from"./ticketReturn.7ac5aec9.js";import"./porder.24af2c44.js";import{b as T}from"./index.06a6dd44.js";import"./_details.12185eef.js";import"./status.0f05917e.js";import"./date-range.03e0d64c.js";import"./tootip.99c35844.js";const U={"w-full":""},g={class:"w-full flex justify-end"},z={class:"w-full"},A={class:"flex w-full justify-end"},G=R({__name:"return-form",emits:["create"],setup(O,{emit:h}){const m=u(null),p=u(null),t=u({hpNo:"",reason:""}),{run:k,data:f}=w({initalData:{}}),C=()=>p.value.onDisplay();function y(){m.value.validate(l=>l&&h("create",o(t)))}return B(()=>t.value.hpNo,l=>k(T({hpNo:l}))),(l,s)=>{const d=c("ElButton"),r=c("ElFormItem"),D=c("ElInput");return _(),x("div",U,[e(o(F),{ref_key:"formRef",ref:m,"label-width":"100px",model:t.value,rules:o(j)},{default:a(()=>[e(r,{label:"\u91C7\u8D2D\u5F00\u7968",prop:"hpNo"},{default:a(()=>[i("div",g,[e(d,{type:"primary",link:"",onClick:C},{default:a(()=>[v("\u9009\u62E9")]),_:1})]),i("div",z,[Object.keys(o(f)).length>0?(_(),N(o(I),{key:0,columns:o(M),data:o(f)},null,8,["columns","data"])):b("v-if",!0)])]),_:1}),e(r,{label:"\u89E3\u9664\u539F\u56E0",prop:"reason"},{default:a(()=>[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:a(()=>[i("div",A,[e(d,{type:"primary",onClick:y},{default:a(()=>[v("\u4FDD\u5B58")]),_:1})])]),_:1})]),_:1},8,["model","rules"]),e(V,{ref_key:"chooseModalRef",ref:p,onChoose:s[1]||(s[1]=n=>t.value.hpNo=n)},null,512)])}}});var Z=E(G,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/purchase/ticketReturnRelive/components/return-form.vue"]]);export{Z as default};