1 |
- import{_ as x,d as D,E as u,b8 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 b,aE as F,W as h}from"./index.1417328f.js";import V from"./choose-modal.6b111523.js";import{c as j}from"./_rules.b6cc96d5.js";import{B as I}from"./basic-descriptions.cadaf928.js";import{t as M}from"./_details.af0a3d2a.js";import{b as T}from"./index.28d5e629.js";import"./_details.73c39e31.js";import"./tootip.8c37fa8a.js";import"./_opitons.a64c570c.js";import"./reconciliation.53461462.js";import"./_opitons.2a65e7c0.js";import"./status.727086c1.js";const U={"w-full":""},g={class:"w-full flex justify-end"},A=h("\u9009\u62E9"),H={class:"w-full"},K={class:"flex w-full justify-end"},O=h("\u4FDD\u5B58"),P=D({__name:"return-form",emits:["create"],setup(W,{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(T({hpNo:l}))),(l,s)=>{const f=i("ElButton"),r=i("ElFormItem"),E=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(f,{type:"primary",link:"",onClick:k},{default:a(()=>[A]),_:1})]),c("div",H,[Object.keys(t(d)).length>0?(_(),R(t(I),{key:0,columns:t(M),data:t(d)},null,8,["columns","data"])):b("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",K,[e(f,{type:"primary",onClick:C},{default:a(()=>[O]),_: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 te=x(P,[["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/supply/ticketReturnRelive/components/return-form.vue"]]);export{te as default};
|