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