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