return-form.760716bf.js 2.0 KB

1
  1. import{_ as E,d as w,w as u,b2 as x,z as B,r as i,o as _,c as N,l as e,C as a,b as c,M as v,u as t,G as R,a as b,aN as F}from"./index.3f1ca816.js";import V from"./choose-modal.4800e443.js";import{c as j}from"./_rules.b6cc96d5.js";import{B as I}from"./basic-descriptions.78acbb1a.js";import{b as M}from"./index.e0c74124.js";import{t as T}from"./ticketReturn.214155c0.js";import"./porder.d16f24ea.js";import"./_details.8934beca.js";import"./status.d6b2a53d.js";import"./date-range.912a8f3e.js";import"./tootip.1805b3e1.js";const U={"w-full":""},g={class:"w-full flex justify-end"},z={class:"w-full"},A={class:"flex w-full justify-end"},G=w({__name:"return-form",emits:["create"],setup(O,{emit:h}){const m=u(null),p=u(null),o=u({hpNo:"",reason:""}),{run:y,data:f}=x({initalData:{}}),k=()=>p.value.onDisplay();function C(){m.value.validate(l=>l&&h("create",t(o)))}return B(()=>o.value.hpNo,l=>y(M({hpNo:l}))),(l,s)=>{const d=i("ElButton"),r=i("ElFormItem"),D=i("ElInput");return _(),N("div",U,[e(t(F),{ref_key:"formRef",ref:m,"label-width":"100px",model:o.value,rules:t(j)},{default:a(()=>[e(r,{label:"\u91C7\u8D2D\u5F00\u7968",prop:"hpNo"},{default:a(()=>[c("div",g,[e(d,{type:"primary",link:"",onClick:k},{default:a(()=>[v("\u9009\u62E9")]),_:1})]),c("div",z,[Object.keys(t(f)).length>0?(_(),R(t(I),{key:0,columns:t(T),data:t(f)},null,8,["columns","data"])):b("v-if",!0)])]),_:1}),e(r,{label:"\u89E3\u9664\u539F\u56E0",prop:"reason"},{default:a(()=>[e(D,{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",A,[e(d,{type:"primary",onClick:C},{default:a(()=>[v("\u4FDD\u5B58")]),_:1})])]),_:1})]),_:1},8,["model","rules"]),e(V,{ref_key:"chooseModalRef",ref:p,onChoose:s[1]||(s[1]=n=>o.value.hpNo=n)},null,512)])}}});var Z=E(G,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/supply/ticketReturnRelive/components/return-form.vue"]]);export{Z as default};