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 m,M as v,u as o,G as N,a as F,aR as V}from"./index.88f7d256.js";import b from"./choose-modal.2e31ec02.js";import{c as I}from"./_rules.1ebcf188.js";import{B as M}from"./basic-descriptions.5c20357d.js";import{t as j}from"./ticketReturn.99b2e36c.js";import"./porder.b626a198.js";import{h as O}from"./index.3ab8ac20.js";import"./_details.7c6ddbaa.js";import"./status.2df4810d.js";import"./date-range.b361462b.js";import"./tootip.514b092e.js";const T={"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(U,{emit:h}){const c=u(null),p=u(null),t=u({hpNo:"",reason:""}),{run:k,data:d}=B({initalData:{}}),y=()=>p.value.onDisplay();function C(){c.value.validate(a=>a&&h("create",o(t)))}return R(()=>t.value.hpNo,a=>k(O({hpNo:a}))),(a,r)=>{const f=i("ElButton"),s=i("ElFormItem"),E=i("ElInput");return _(),x("div",T,[e(o(V),{ref_key:"formRef",ref:c,"label-width":"100px",model:t.value,rules:o(I)},{default:l(()=>[e(s,{label:"\u8FD0\u5355\u56DE\u7968",prop:"hpNo"},{default:l(()=>[m("div",g,[e(f,{type:"primary",link:"",onClick:y},{default:l(()=>[v("\u9009\u62E9")]),_:1})]),m("div",z,[Object.keys(o(d)).length>0?(_(),N(o(M),{key:0,columns:o(j),data:o(d)},null,8,["columns","data"])):F("v-if",!0)])]),_:1}),e(s,{label:"\u89E3\u9664\u539F\u56E0",prop:"reason"},{default:l(()=>[e(E,{modelValue:t.value.reason,"onUpdate:modelValue":r[0]||(r[0]=n=>t.value.reason=n)},null,8,["modelValue"])]),_:1}),e(s,null,{default:l(()=>[m("div",A,[e(f,{type:"primary",onClick:C},{default:l(()=>[v("\u4FDD\u5B58")]),_:1})])]),_:1})]),_:1},8,["model","rules"]),e(b,{ref_key:"chooseModalRef",ref:p,onChoose:r[1]||(r[1]=n=>t.value.hpNo=n)},null,512)])}}});var Z=D(G,[["__file","D:/work/accout-vue3-ui2/settle-vue3/src/views/supplierOrder/sendOrderInvoiceRelive/components/return-form.vue"]]);export{Z as default};
|