index.74dceaa0.js 3.3 KB

1
  1. import{_ as V,d as R,E as o,aC as O,A,a7 as q,x as g,aA as I,o as x,c as M,y as t,K as l,b as c,O as U,N as h,u as d,a as w,aE as j,L as S,W as D}from"./index.1417328f.js";import T from"./capital-modal.e69e88d3.js";import{B as z}from"./basic-descriptions.cadaf928.js";import{b as H}from"./index.658c28c0.js";import{d as L}from"./index.cc00443d.js";import{O as K}from"./inv-open.516190c3.js";import{I as P}from"./index.68c806ba.js";import W from"./red-dialog.d639b2b1.js";import"./configs.80dd5359.js";import"./tootip.8c37fa8a.js";import"./status.727086c1.js";import"./invoice.d2c04353.js";import"./index.bc9c1b35.js";const G=c("h1",{"text-xl":"","font-bold":"","mb-2":""},"\u521B\u5EFA\u9000\u7968\u7533\u8BF7",-1),J={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=o(""),F=o(""),k=o(null),b=o(null),f=o(null),_=o(null),y=O(),{push:C}=A(),v=o(!1),a=q({invNo:"",return_reason:"",remark:""}),E={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 B({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 L({invNo:s});y({code:n,message:i,handler:function(){f.value=m,a.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(a);y({code:e,message:r,handler:()=>C("/InvoiceSales/returnTicket")})})}return(s,e)=>{const r=g("el-button"),n=g("el-form-item"),i=g("el-input"),m=I("loading");return x(),M(S,null,[G,t(d(j),{rules:E,model:a,ref_key:"formRef",ref:_,size:"small","label-width":"100px"},{default:l(()=>[t(n,{label:"\u53D1\u7968",prop:"invNo"},{default:l(()=>[c("div",J,[t(r,{size:"small",type:"primary",onClick:e[0]||(e[0]=()=>k.value.onDisplay())},{default:l(()=>[Q]),_:1})]),f.value?U((x(),h(d(z),{key:0,"w-full":"",data:f.value,"col-number":2,columns:d(K)},null,8,["data","columns"])),[[m,v.value]]):w("v-if",!0)]),_:1}),X,p.value?(x(),h(d(P),{key:0,"mt-5":"","inv-number":p.value,type:"sale"},null,8,["inv-number"])):w("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:a.return_reason,"onUpdate:modelValue":e[1]||(e[1]=u=>a.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:a.remark,"onUpdate:modelValue":e[2]||(e[2]=u=>a.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(T,{ref_key:"capitalModalRef",ref:k,onOnAddOrder:e[3]||(e[3]=u=>B(u))},null,512),t(W,{ref_key:"redDialog",ref:b},null,512)],64)}}});var _e=V(ee,[["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/InvoiceSales/returnTicket/components/create-return-ticket/index.vue"]]);export{_e as default};