12345 |
- import{_ as b,d as h,E as n,aI as k,a7 as _,x as f,aA as R,o as v,c as V,y as a,K as t,b as B,O as A,N as M,u as s,a as g,aK as O,L as q,W as D}from"./index.743f0c80.js";import{C as I}from"./tragelog.16ac9d74.js";import{h as L}from"./index.3e0ba0b3.js";import T from"./capital-modal.60b47aff.js";import{B as j}from"./basic-descriptions.e56bd542.js";const z={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"}]},H={flex:"","justify-end":"","w-full":"","mb-2":""},K=D("\u9009\u62E9"),S={flex:"","w-full":"","justify-end":""},U=D("\u4FDD\u5B58"),P=h({__name:"refund-form",emits:["create"],setup(W,{emit:y}){const p=n(null),i=n(null),c=n(null),F=k(),d=n(!1),C=_({...z}),o=_({logNo:"",type:"2",return_reason:""});async function E(u){d.value=!0;const{code:e,message:r,data:l}=await L({logNo:u});F({code:e,message:r,handler:function(){i.value=l,o.logNo=l.logNo,c.value.validateField("logNo")}}),d.value=!1}function N(){c.value.validate(async u=>{!u||y("create",s(o))})}return(u,e)=>{const r=f("el-button"),l=f("el-form-item"),w=f("el-input"),x=R("loading");return v(),V(q,null,[a(s(O),{rules:C,model:o,ref_key:"formRef",ref:c,size:"small","label-width":"100px"},{default:t(()=>[a(l,{label:"\u8D44\u91D1\u8BA4\u9886",prop:"logNo"},{default:t(()=>[B("div",H,[a(r,{size:"small",type:"primary",onClick:e[0]||(e[0]=()=>p.value.onDisplay())},{default:t(()=>[K]),_:1})]),i.value?A((v(),M(s(j),{key:0,"w-full":"",data:i.value,"col-number":2,columns:s(I)},null,8,["data","columns"])),[[x,d.value]]):g("v-if",!0)]),_:1}),g(` <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(l,{label:"\u9000\u6B3E\u539F\u56E0",prop:"return_reason","w-480px":""},{default:t(()=>[a(w,{modelValue:o.return_reason,"onUpdate:modelValue":e[1]||(e[1]=m=>o.return_reason=m),placeholder:"\u8BF7\u8F93\u5165\u9000\u6B3E\u539F\u56E0"},null,8,["modelValue"])]),_:1}),B("div",S,[a(r,{type:"primary",onClick:N},{default:t(()=>[U]),_:1})])]),_:1},8,["rules","model"]),a(T,{ref_key:"capitalModalRef",ref:p,onOnAddOrder:e[2]||(e[2]=({logNo:m})=>E(m))},null,512)],64)}}});var Z=b(P,[["__file","D:/work/accout-vue3-ui/src/views/InvoiceSales/refund/components/refund-form.vue"]]);export{Z as default};
|