1 |
- import{_ as $,d as z,n as K,w as M,aL as Q,ah as X,b3 as v,ag as c,r as d,aC as Y,o as i,c as h,l as s,C as l,u as e,aq as Z,H as N,G as m,F as B,a as p}from"./index.88f7d256.js";import{u as ee}from"./useDetail.60c209b5.js";import te from"./return-form.e42c8293.js";import{B as ne}from"./basic-descriptions.5c20357d.js";import oe from"./approval-pending.e9d38edb.js";import{I as ae}from"./index.b705b794.js";import{i as ie}from"./capital-modal.edfa62a1.js";import se from"./index.44321226.js";import{d as le}from"./index.3cc65789.js";import{h as S,a as re,b as ue}from"./index.6470b284.js";import"./inv-open.1238e839.js";import"./tootip.514b092e.js";import"./status.2df4810d.js";import"./invoice.95f96151.js";const ce={class:"padding__container"},me=z({__name:"detail",setup(pe){const{push:T}=K(),A="returnTicketDetail",g=M({}),{hasPermissionWithCode:F}=Q(A),{id:_,isDetail:f,collapses:C,title:b}=ee({baseName:"\u9000\u7968\u7533\u8BF7",collapseLen:5}),{isSuperUser:V}=X(),{data:n,run:k,loading:w}=v({initalData:{},success:({invNo:t})=>{O(le({invNo:t}))}}),{run:P}=v({success:()=>T("/InvoiceSales/returnTicket")}),{run:R}=v({success:()=>{k(S({returnCode:_.value}))}}),x=c(()=>{const{inv_type:t}=n.value;return t==="2"||t==="3"}),U=c(()=>{const{open_type:t}=n.value;return String(t)==="1"}),j=c(()=>{const{is_out_month:t}=n.value;return t}),G=c(()=>{const{open_type:t}=r.value;return["2","3"].includes(String(t))}),L=c(()=>{const{inv_type:t}=n.value;return t}),{data:r,run:O,loading:q}=v({initalData:{}});function I(){const{inv_code:t,inv_number:o,open_date:a,inv_subtotal:u,check_code:y}=g.value;return{invCode:t,invNum:o,open_date:a,subtotal_fee:u,checkCode:y}}function H(t,o=!1){const a=I(),u={returnCode:_.value,...t,...o?a:{}};R(re(u))}const J=t=>{P(ue(t))};return f.value&&k(S({returnCode:_.value})),(t,o)=>{const a=d("ElCollapseItem"),u=d("ElCollapse"),y=d("ElTabPane"),W=d("ElTabs"),E=Y("loading");return i(),h("div",ce,[s(W,null,{default:l(()=>[s(y,{label:e(b)},{default:l(()=>[s(u,{modelValue:e(C),"onUpdate:modelValue":o[1]||(o[1]=D=>Z(C)?C.value=D:null)},{default:l(()=>[s(a,{name:"1",title:e(b)},{default:l(()=>[e(f)?N((i(),m(e(ne),{key:0,columns:e(ie),data:e(n)},null,8,["columns","data"])),[[E,e(w)]]):(i(),m(te,{key:1,onCreate:J}))]),_:1},8,["title"]),e(f)?(i(),h(B,{key:0},[e(n).invNo?(i(),m(a,{key:0,name:"2",title:"\u53D1\u7968\u7533\u8BF7\u8BE6\u60C5"},{default:l(()=>[N(s(se,{detail:e(r)},null,8,["detail"]),[[E,e(q)]])]),_:1})):p("v-if",!0),e(r)&&e(r).invinfo&&e(r).invinfo.inv_number?(i(),m(a,{key:1,name:"3",title:"\u84DD\u7968\u8BE6\u60C5"},{default:l(()=>[s(e(ae),{type:"sale","inv-number":e(r).invinfo.inv_number,onGetInvoiceData:o[0]||(o[0]=D=>g.value=D)},null,8,["inv-number"])]),_:1})):p("v-if",!0),e(V)?p("v-if",!0):(i(),h(B,{key:2},[String(e(n).status)==="0"&&e(F)("025")?(i(),m(a,{key:0,name:"4",title:"\u5F85\u5BA1\u6838"},{default:l(()=>[s(oe,{isNormal:e(x),"is-js":e(U),"is-out-month":e(j),"is-normal-open":e(G),"inv-type":e(L),"company-no":e(n).companyNo,onApproval:H,getOriginInvoice:I},null,8,["isNormal","is-js","is-out-month","is-normal-open","inv-type","company-no"])]),_:1})):p("v-if",!0)],64))],64)):p("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var Be=$(me,[["__file","D:/work/accout-vue3-ui2/settle-vue3/src/views/InvoiceSales/returnTicket/detail.vue"]]);export{Be as default};
|