1 |
- import{_ as V,d as R,w as o,aL as M,n as O,Z as q,r as g,aC as I,o as x,c as U,l as t,C as l,b as p,M as D,H as j,G as y,u as d,a as F,aN as A,F as H}from"./index.0bc83371.js";import S from"./capital-modal.8b1f07b2.js";import{B as T}from"./basic-descriptions.10a27b1b.js";import{b as z}from"./index.0ac22995.js";import{d as L}from"./index.b39a4bf1.js";import{O as G}from"./inv-open.83dc6b1a.js";import{I as Z}from"./index.b2229991.js";import J from"./red-dialog.a48af3d2.js";import"./configs.ae46c65e.js";import"./tootip.d8389d77.js";import"./status.d6b2a53d.js";import"./invoice.f874e7b3.js";import"./index.11121e0e.js";const K=p("h1",{"text-xl":"","font-bold":"","mb-2":""},"\u521B\u5EFA\u9000\u7968\u7533\u8BF7",-1),P={flex:"","justify-end":"","w-full":"","mb-2":""},Q=p("div",{"mt-5":""},null,-1),W={flex:"","w-full":"","justify-end":""},X=R({__name:"index",setup(Y){const c=o(""),C=o(""),k=o(null),b=o(null),f=o(null),v=o(null),w=M(),{push:h}=O(),_=o(!1),a=q({invNo:"",return_reason:"",remark:""}),B={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 N({invNo:s,inv_number:e,open_date:r}){_.value=!0,c.value=e,C.value=r;const{code:u,message:i,data:m}=await L({invNo:s});w({code:u,message:i,handler:function(){f.value=m,a.invNo=m.invNo,v.value.validateField("logNo")}}),_.value=!1}function E(){v.value.validate(async s=>{if(!s)return;const{code:e,message:r}=await z(a);w({code:e,message:r,handler:()=>h("/InvoiceSales/returnTicket")})})}return(s,e)=>{const r=g("el-button"),u=g("el-form-item"),i=g("el-input"),m=I("loading");return x(),U(H,null,[K,t(d(A),{rules:B,model:a,ref_key:"formRef",ref:v,size:"small","label-width":"100px"},{default:l(()=>[t(u,{label:"\u53D1\u7968",prop:"invNo"},{default:l(()=>[p("div",P,[t(r,{size:"small",type:"primary",onClick:e[0]||(e[0]=()=>k.value.onDisplay())},{default:l(()=>[D("\u9009\u62E9")]),_:1})]),f.value?j((x(),y(d(T),{key:0,"w-full":"",data:f.value,"col-number":2,columns:d(G)},null,8,["data","columns"])),[[m,_.value]]):F("v-if",!0)]),_:1}),D(" n "),c.value?(x(),y(d(Z),{key:0,"mt-5":"","inv-number":c.value,type:"sale"},null,8,["inv-number"])):F("v-if",!0),Q,t(u,{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]=n=>a.return_reason=n),"show-word-limit":""},null,8,["modelValue"])]),_:1}),t(u,{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]=n=>a.remark=n),placeholder:"\u8BF7\u8F93\u5165\u53D1\u7968\u5907\u6CE8","show-word-limit":""},null,8,["modelValue"])]),_:1}),p("div",W,[t(r,{type:"primary",onClick:E},{default:l(()=>[D("\u4FDD\u5B58")]),_:1})])]),_:1},8,["model"]),t(S,{ref_key:"capitalModalRef",ref:k,onOnAddOrder:e[3]||(e[3]=n=>N(n))},null,512),t(J,{ref_key:"redDialog",ref:b},null,512)],64)}}});var pe=V(X,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSales/returnTicket/components/create-return-ticket/index.vue"]]);export{pe as default};
|