1 |
- import{_ as z,d as G,A as H,aZ as M,E as Q,ai as X,b8 as y,af as C,x as b,aA as Y,o as a,c as E,y as s,K as o,u as e,ao as ee,O as I,N as l,a as r,L as F}from"./index.1417328f.js";import{u as te}from"./useDetail.1c3d5449.js";import ne from"./return-form.b4e58e4f.js";import{B as ae}from"./basic-descriptions.cadaf928.js";import oe from"./approval-pending.5648cb74.js";import{I as V}from"./index.68c806ba.js";import{i as se}from"./capital-modal.331cc5c5.js";import ie from"./index.271968bd.js";import{h as A,a as ue,b as le}from"./index.658c28c0.js";import{d as re}from"./index.cc00443d.js";import"./inv-open.516190c3.js";import"./tootip.8c37fa8a.js";import"./status.727086c1.js";import"./invoice.d2c04353.js";const ce={class:"padding__container"},me=G({__name:"detail",setup(pe){const{push:S}=H(),T="returnTicketDetail",{hasPermissionWithCode:P}=M(T),B=Q(["0","1","2"]),{id:k,isDetail:m,collapses:h,title:g}=te({baseName:"\u9000\u7968\u7533\u8BF7",collapseLen:5}),{isSuperUser:x}=X(),{data:n,run:N,loading:R}=y({initalData:{},success:({invNo:t})=>{K(re({invNo:t}))}}),{run:U}=y({success:()=>S("/InvoiceSales/returnTicket")}),{run:j}=y({success:()=>{N(A({returnCode:k.value}))}}),w=C(()=>{const{inv_type:t}=n.value;return t==="2"||t==="3"}),L=C(()=>{const{open_type:t}=n.value;return String(t)==="1"}),O=C(()=>{const{is_out_month:t}=n.value;return t}),J=C(()=>{const{inv_type:t}=n.value;return t}),{data:p,run:K,loading:W}=y({initalData:{}});function Z(t,c=!1){const{invinfo:u}=p.value,{inv_number:v,inv_subtotal:d,inv_code:D,open_date:_,check_code:i}=u||{},f={checkCode:i,invCode:D,invNum:v,open_date:_,subtotal_fee:d},q={returnCode:k.value,...t,...c?f:{}};j(ue(q))}const $=t=>{U(le(t))};return m.value&&N(A({returnCode:k.value})),(t,c)=>{const u=b("ElCollapseItem"),v=b("ElCollapse"),d=b("ElTabPane"),D=b("ElTabs"),_=Y("loading");return a(),E("div",ce,[s(D,null,{default:o(()=>[s(d,{label:e(g)},{default:o(()=>[s(v,{modelValue:e(h),"onUpdate:modelValue":c[0]||(c[0]=i=>ee(h)?h.value=i:null)},{default:o(()=>[s(u,{name:"1",title:e(g)},{default:o(()=>[e(m)?I((a(),l(e(ae),{key:0,columns:e(se),data:e(n)},null,8,["columns","data"])),[[_,e(R)]]):(a(),l(ne,{key:1,onCreate:$}))]),_:1},8,["title"]),e(n).inv_number?(a(),l(u,{key:0,name:"2",title:"\u9000\u7968\u7968\u9762\u8BE6\u60C5"},{default:o(()=>[s(e(V),{type:"sale","inv-number":e(n).inv_number},null,8,["inv-number"])]),_:1})):r("v-if",!0),e(m)?(a(),E(F,{key:1},[e(x)?r("v-if",!0):(a(),E(F,{key:0},[String(e(n).status)==="0"&&e(P)("025")?(a(),l(u,{key:0,name:"4",title:"\u5F85\u5BA1\u6838"},{default:o(()=>[s(oe,{isNormal:e(w),"is-js":e(L),"is-out-month":e(O),"inv-type":e(J),"company-no":e(n).companyNo,onApproval:Z},null,8,["isNormal","is-js","is-out-month","inv-type","company-no"])]),_:1})):r("v-if",!0)],64))],64)):r("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"]),e(m)?(a(),l(d,{key:0,label:"\u5F00\u7968\u7533\u8BF7\u8BE6\u60C5"},{default:o(()=>[s(v,{modelValue:B.value,"onUpdate:modelValue":c[1]||(c[1]=i=>B.value=i)},{default:o(()=>{var i;return[e(n).invNo?(a(),l(u,{key:0,name:"0",title:"\u5F00\u7968\u7533\u8BF7\u8BE6\u60C5"},{default:o(()=>[I(s(ie,{detail:e(p)},null,8,["detail"]),[[_,e(W)]])]),_:1})):r("v-if",!0),(i=e(p).invinfo)!=null&&i.inv_number?(a(),l(u,{key:1,name:"1",title:"\u5F00\u7968\u7968\u9762\u8BE6\u60C5"},{default:o(()=>{var f;return[s(e(V),{type:"sale","inv-number":(f=e(p).invinfo)==null?void 0:f.inv_number},null,8,["inv-number"])]}),_:1})):r("v-if",!0)]}),_:1},8,["modelValue"])]),_:1})):r("v-if",!0)]),_:1})])}}});var Ie=z(me,[["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/InvoiceSales/returnTicket/detail.vue"]]);export{Ie as default};
|