12345 |
- import{_ as x,d as k,w as n,aL as h,Z as _,r as f,aC as R,o as v,c as V,l as a,C as t,b as B,M as g,H as A,G as M,u as s,a as C,aN as j,F as q}from"./index.3f1ca816.js";import{C as H}from"./tragelog.2a260772.js";import{h as L}from"./index.ce5b6768.js";import O from"./capital-modal.fddcd47b.js";import{B as T}from"./basic-descriptions.78acbb1a.js";const U={logNo:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u4E00\u7B14\u8D44\u91D1"}],return_reason:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u9000\u6B3E\u539F\u56E0"}]},z={flex:"","justify-end":"","w-full":"","mb-2":""},I={flex:"","w-full":"","justify-end":""},S=k({__name:"refund-form",emits:["create"],setup(G,{emit:D}){const p=n(null),i=n(null),c=n(null),F=h(),m=n(!1),y=_({...U}),l=_({logNo:"",type:"2",return_reason:""});async function E(u){m.value=!0;const{code:e,message:r,data:o}=await L({logNo:u});F({code:e,message:r,handler:function(){i.value=o,l.logNo=o.logNo,c.value.validateField("logNo")}}),m.value=!1}function N(){c.value.validate(async u=>{!u||D("create",s(l))})}return(u,e)=>{const r=f("el-button"),o=f("el-form-item"),w=f("el-input"),b=R("loading");return v(),V(q,null,[a(s(j),{rules:y,model:l,ref_key:"formRef",ref:c,size:"small","label-width":"100px"},{default:t(()=>[a(o,{label:"\u8D44\u91D1\u8BA4\u9886",prop:"logNo"},{default:t(()=>[B("div",z,[a(r,{size:"small",type:"primary",onClick:e[0]||(e[0]=()=>p.value.onDisplay())},{default:t(()=>[g("\u9009\u62E9")]),_:1})]),i.value?A((v(),M(s(T),{key:0,"w-full":"",data:i.value,"col-number":2,columns:s(H)},null,8,["data","columns"])),[[b,m.value]]):C("v-if",!0)]),_:1}),C(` <el-form-item label="\u7533\u8BF7\u7C7B\u578B" prop="type">\r
- <el-select v-model="formData.type" placeholder="\u8BF7\u9009\u62E9\u7533\u8BF7\u7C7B\u578B" w-380px>\r
- <el-option value="2" label="\u89E3\u9664\u8D44\u91D1\u8BA4\u9886" />\r
- </el-select>\r
- </el-form-item> `),a(o,{label:"\u9000\u6B3E\u539F\u56E0",prop:"return_reason","w-480px":""},{default:t(()=>[a(w,{modelValue:l.return_reason,"onUpdate:modelValue":e[1]||(e[1]=d=>l.return_reason=d),placeholder:"\u8BF7\u8F93\u5165\u9000\u6B3E\u539F\u56E0"},null,8,["modelValue"])]),_:1}),B("div",I,[a(r,{type:"primary",onClick:N},{default:t(()=>[g("\u4FDD\u5B58")]),_:1})])]),_:1},8,["rules","model"]),a(O,{ref_key:"capitalModalRef",ref:p,onOnAddOrder:e[2]||(e[2]=({logNo:d})=>E(d))},null,512)],64)}}});var W=x(S,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSales/refund/components/refund-form.vue"]]);export{W as default};
|