return-form.312219bc.js 1.9 KB

1
  1. import{_ as E,d as w,w as u,b3 as R,z as B,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.dcaf9f46.js";import{c as I}from"./_rules.da2e4e6a.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 T}from"./index.3ab8ac20.js";import"./_details.05947f76.js";import"./status.2df4810d.js";import"./date-range.b361462b.js";import"./tootip.514b092e.js";const g={"w-full":""},z={class:"w-full flex justify-end"},A={class:"w-full"},G={class:"flex w-full justify-end"},O=w({__name:"return-form",emits:["create"],setup(S,{emit:h}){const c=u(null),p=u(null),t=u({hpNo:"",reason:""}),{run:k,data:f}=R({initalData:{}}),C=()=>p.value.onDisplay();function y(){c.value.validate(a=>a&&h("create",o(t)))}return B(()=>t.value.hpNo,a=>k(T({hpNo:a}))),(a,s)=>{const d=i("ElButton"),r=i("ElFormItem"),D=i("ElInput");return _(),x("div",g,[e(o(V),{ref_key:"formRef",ref:c,"label-width":"100px",model:t.value,rules:o(I)},{default:l(()=>[e(r,{label:"\u91C7\u8D2D\u5F00\u7968",prop:"hpNo"},{default:l(()=>[m("div",z,[e(d,{type:"primary",link:"",onClick:C},{default:l(()=>[v("\u9009\u62E9")]),_:1})]),m("div",A,[Object.keys(o(f)).length>0?(_(),N(o(M),{key:0,columns:o(j),data:o(f)},null,8,["columns","data"])):F("v-if",!0)])]),_:1}),e(r,{label:"\u89E3\u9664\u539F\u56E0",prop:"reason"},{default:l(()=>[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:l(()=>[m("div",G,[e(d,{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=E(O,[["__file","D:/work/accout-vue3-ui2/settle-vue3/src/views/InvoiceSales/supplierReturnRelive/components/return-form.vue"]]);export{Z as default};