index.72ec6dc3.js 2.8 KB

1
  1. import{_ as N,d as V,F as i,aE as k,B as A,a7 as g,y as s,aw as R,o as y,c as M,z as o,L as l,a as f,P as O,O as U,u as m,V as j,aH as q,M as z,Z as D}from"./index.40211ca7.js";import{C as H}from"./tragelog.1148118c.js";import{c as I,b as L}from"./index.f8588b4e.js";import S from"./capital-modal.0a08be7f.js";import{B as T}from"./basic-descriptions.3a5682c3.js";const P={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"}]},Z=f("h1",{"text-xl":"","font-bold":"","mb-2":""},"\u521B\u5EFA\u9000\u6B3E\u7533\u8BF7",-1),G={flex:"","justify-end":"","w-full":"","mb-2":""},J=D("\u9009\u62E9"),K={flex:"","w-full":"","justify-end":""},Q=D("\u4FDD\u5B58"),W=V({__name:"index",setup(X){const _=i(null),d=i(null),c=i(null),B=k(),{push:F}=A(),p=i(!1),t=g({logNo:"",type:"",return_reason:""}),C=g({...P});async function E(r){p.value=!0;const{code:e,message:u,data:a}=await I({logNo:r});B({code:e,message:u,handler:function(){d.value=a,t.logNo=a.logNo,c.value.validateField("logNo")}}),p.value=!1}function x(){c.value.validate(async r=>{if(!r)return;const{code:e,message:u}=await L(t);B({code:e,message:u,handler:()=>F("/InvoiceSales/refund")})})}return(r,e)=>{const u=s("el-button"),a=s("el-form-item"),v=s("el-option"),b=s("el-select"),h=s("el-input"),w=R("loading");return y(),M(z,null,[Z,o(m(q),{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",G,[o(u,{size:"small",type:"primary",onClick:e[0]||(e[0]=()=>_.value.onDisplay())},{default:l(()=>[J]),_:1})]),d.value?O((y(),U(m(T),{key:0,"w-full":"",data:d.value,"col-number":2,columns:m(H)},null,8,["data","columns"])),[[w,p.value]]):j("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(v,{value:"1",label:"\u9000\u6B3E"}),o(v,{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(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",K,[o(u,{type:"primary",onClick:x},{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(W,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSales/refund/components/create-refund/index.vue"]]);export{le as default};