index.10fdda3c.js 3.3 KB

1
  1. import{_ as V,r as R,D as a,aB as q,z as M,ak as O,v as g,as as I,o as x,p as T,w as t,J as l,q as c,N as U,M as h,x as d,T as y,aE as j,K as z,W as D}from"./index.36f49050.js";import A from"./capital-modal.b6fb6a7f.js";import{B as S}from"./basic-descriptions.37173f78.js";import{b as H}from"./index.b1f2aa45.js";import{c as J}from"./index.3f60b99b.js";import{O as K}from"./inv-open.23e63779.js";import{I as L}from"./index.73659ad3.js";import W from"./red-dialog.4687b67e.js";import"./configs.80dd5359.js";import"./tootip.6b638d63.js";import"./invoice.01edd781.js";import"./status.4f7e5409.js";import"./index.73c14b59.js";const G=c("h1",{"text-xl":"","font-bold":"","mb-2":""},"\u521B\u5EFA\u9000\u7968\u7533\u8BF7",-1),P={flex:"","justify-end":"","w-full":"","mb-2":""},Q=D("\u9009\u62E9"),X=D(" n "),Y=c("div",{"mt-5":""},null,-1),Z={flex:"","w-full":"","justify-end":""},$=D("\u4FDD\u5B58"),ee=R({__name:"index",setup(te){const p=a(""),F=a(""),k=a(null),b=a(null),f=a(null),_=a(null),w=q(),{push:B}=M(),v=a(!1),o=O({invNo:"",return_reason:"",remark:""}),C={invNo:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u4E00\u5F20\u53D1\u7968"}],return_reason:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u9000\u8D27\u539F\u56E0"}],remark:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u5907\u6CE8"}]};async function E({invNo:s,inv_number:e,open_date:r}){v.value=!0,p.value=e,F.value=r;const{code:n,message:i,data:m}=await J({invNo:s});w({code:n,message:i,handler:function(){f.value=m,o.invNo=m.invNo,_.value.validateField("logNo")}}),v.value=!1}function N(){_.value.validate(async s=>{if(!s)return;const{code:e,message:r}=await H(o);w({code:e,message:r,handler:()=>B("/InvoiceSales/returnTicket")})})}return(s,e)=>{const r=g("el-button"),n=g("el-form-item"),i=g("el-input"),m=I("loading");return x(),T(z,null,[G,t(d(j),{rules:C,model:o,ref_key:"formRef",ref:_,size:"small","label-width":"100px"},{default:l(()=>[t(n,{label:"\u53D1\u7968",prop:"invNo"},{default:l(()=>[c("div",P,[t(r,{size:"small",type:"primary",onClick:e[0]||(e[0]=()=>k.value.onDisplay())},{default:l(()=>[Q]),_:1})]),f.value?U((x(),h(d(S),{key:0,"w-full":"",data:f.value,"col-number":2,columns:d(K)},null,8,["data","columns"])),[[m,v.value]]):y("v-if",!0)]),_:1}),X,p.value?(x(),h(d(L),{key:0,"mt-5":"","inv-number":p.value,type:"sale"},null,8,["inv-number"])):y("v-if",!0),Y,t(n,{label:"\u9000\u7968\u539F\u56E0",prop:"return_reason","w-480px":""},{default:l(()=>[t(i,{type:"textarea",rows:6,maxlength:"2000",max:"","w-300px":"",modelValue:o.return_reason,"onUpdate:modelValue":e[1]||(e[1]=u=>o.return_reason=u),"show-word-limit":""},null,8,["modelValue"])]),_:1}),t(n,{label:"\u5907\u6CE8",prop:"remark","w-480px":""},{default:l(()=>[t(i,{type:"textarea",rows:6,maxlength:"2000",modelValue:o.remark,"onUpdate:modelValue":e[2]||(e[2]=u=>o.remark=u),placeholder:"\u8BF7\u8F93\u5165\u53D1\u7968\u5907\u6CE8","show-word-limit":""},null,8,["modelValue"])]),_:1}),c("div",Z,[t(r,{type:"primary",onClick:N},{default:l(()=>[$]),_:1})])]),_:1},8,["model"]),t(A,{ref_key:"capitalModalRef",ref:k,onOnAddOrder:e[3]||(e[3]=u=>E(u))},null,512),t(W,{ref_key:"redDialog",ref:b},null,512)],64)}}});var _e=V(ee,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSales/returnTicket/components/create-return-ticket/index.vue"]]);export{_e as default};