1 |
- import{_ as D,d as w,w as u,b3 as B,z as R,r as i,o as _,c as x,l as e,C as l,b as c,M as v,u as o,G as N,a as F,aR as V}from"./index.56c69f5a.js";import b from"./choose-modal.f8ff351b.js";import{c as I}from"./_rules.aa6432b7.js";import{B as j}from"./basic-descriptions.5f176484.js";import{t as M}from"./ticketReturn.1ed463e4.js";import"./porder.30193b2b.js";import{h as O}from"./index.d4057835.js";import"./_details.3df1a21f.js";import"./status.2df4810d.js";import"./date-range.c3f1dbd6.js";import"./tootip.fe6ea468.js";const T={"w-full":""},U={class:"w-full flex justify-end"},g={class:"w-full"},z={class:"flex w-full justify-end"},A=w({__name:"return-form",emits:["create"],setup(G,{emit:h}){const m=u(null),p=u(null),t=u({hpNo:"",reason:""}),{run:k,data:d}=B({initalData:{}}),C=()=>p.value.onDisplay();function y(){m.value.validate(a=>a&&h("create",o(t)))}return R(()=>t.value.hpNo,a=>k(O({hpNo:a}))),(a,s)=>{const f=i("ElButton"),r=i("ElFormItem"),E=i("ElInput");return _(),x("div",T,[e(o(V),{ref_key:"formRef",ref:m,"label-width":"100px",model:t.value,rules:o(I)},{default:l(()=>[e(r,{label:"\u8FD0\u5355\u56DE\u7968",prop:"hpNo"},{default:l(()=>[c("div",U,[e(f,{type:"primary",link:"",onClick:C},{default:l(()=>[v("\u9009\u62E9")]),_:1})]),c("div",g,[Object.keys(o(d)).length>0?(_(),N(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:l(()=>[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:l(()=>[c("div",z,[e(f,{type:"primary",onClick:y},{default:l(()=>[v("\u4FDD\u5B58")]),_: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 Z=D(A,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/postSupplierOrder/sendOrderInvoiceRelive/components/return-form.vue"]]);export{Z as default};
|