detail.70331aeb.js 4.8 KB

1
  1. import{aN as ee,aO as te,_ as U,d as q,D as ae,E as D,H as ne,x as d,o as n,N as r,K as o,c as V,M as oe,y as c,b as L,T as P,L as H,bi as se,z as ie,aI as le,ai as ue,bo as ce,af as l,A as re,br as N,F as pe,aA as me,O,u as e,a as y,Q as de,ao as ve}from"./index.743f0c80.js";import{I as _e}from"./index.5fbf2896.js";import fe from"./upload-invoice.47362c71.js";import ye from"./financial-review.ec79f1f3.js";import he from"./index.66075224.js";import De from"./add-edit-form.68162a25.js";import{a as ge,b as be,c as Ae,h as Ce,d as ke}from"./index.8212cab4.js";import"./invoice.7fa18a6d.js";import"./status.868e86c0.js";import"./status.4c13d767.js";import"./configs.7245f7c8.js";import"./inv-open.a0819b58.js";import"./tootip.48acd346.js";import"./basic-descriptions.e56bd542.js";import"./index.e866db4a.js";import"./order-dialog.3aa43f14.js";import"./use-page-search.a895acdb.js";import"./columns.e5addeb3.js";import"./edit-order.145034cb.js";import"./invoice-title.71b23da9.js";const{VITE_PROXY_DOMAIN_REAL:et,VITE_PROXY_USER_REAL:xe}=te(),Se=xe+"/admin/",Ee=g=>ee.request("post",`${Se}rolelist`,{data:g}),Ie={examCode:{type:String,required:!0}},Re=q({__name:"exam-record",props:Ie,setup(g,{expose:k}){const x=g,{logout:S}=ae(),E=D(""),b=D([]);k({code:E});async function A(v){const{code:_,data:u,message:s}=await Ee({examCode:v});se({code:_,message:s,logout:S,handler:()=>{b.value=u!=null?u:[]}})}return ne(()=>x.examCode,v=>{A(v)}),(v,_)=>{const u=d("el-card"),s=d("el-timeline-item"),p=d("el-timeline");return n(),r(p,null,{default:o(()=>[(n(!0),V(H,null,oe(b.value,(f,C)=>(n(),r(s,{key:"examItem"+f.addtime+C,timestamp:f.addtime,placement:"top"},{default:o(()=>[c(u,null,{default:o(()=>[L("h4",null,P(f.action_name),1),L("p",null,P(f.re),1)]),_:2},1024)]),_:2},1032,["timestamp"]))),128))]),_:1})}}});var we=U(Re,[["__file","D:/work/accout-vue3-ui/src/components/examRecord/src/exam-record.vue"]]);const Be={1:{component:ye,title:"\u5F85\u8D22\u52A1\u5BA1\u6838"},2:{component:fe,title:"\u5F85\u4E0A\u4F20\u53D1\u7968"}};const Ne={class:"main bg-white"},Ve=q({__name:"detail",setup(g){const{query:k}=ie(),x=le(),{isSuperUser:S}=ue(),E="invoiceApplyDetail",{hasPermissionWithCode:b}=ce(E),A=D(!1),v=D(""),_=l(()=>p.value?"0":"1"),u=D(["0","1","2","3","4"]),s=l(()=>k.id),p=l(()=>!s.value),{push:f}=re(),{loading:C,data:a,run:T}=N({initalData:{},success:()=>a.value&&X(ge({companyNo:a.value.inv_out}))}),{data:I,run:M}=N({isList:!0,initalData:[]}),{data:$,run:X}=N({isList:!0,initalData:[],success:()=>{const[t]=$.value||[];if(!t)return;const{input_ticket:i}=t;A.value=i==="1"}}),Y=l(()=>String(a.value.status)==="1"&&b("025")||String(a.value.status)==="2"),j=l(()=>{const{status:t}=a.value;return["4","6"].includes(String(t))}),z=l(()=>{const{inv_type:t}=a.value;return t==="3"||t==="4"}),K=l(()=>{const{inv_type:t}=a.value;return t==="4"}),Q=l(()=>{const{inv_type:t}=a.value;return t==="2"||t==="3"}),R=l(()=>{const{status:t}=a.value;return Be[String(t)]||{}});async function W({status:t,...i}){let m;t?m=await Ae({invNo:s.value,status:t,...i}):m=await be({invNo:s.value,...i});const{code:h,message:w}=m;x({code:h,message:w,handler:()=>f("/InvoiceSales/invoiceApply")})}const G=()=>{M(Ce({invNo:s.value}))},J=()=>{T(ke({invNo:s.value}))};return pe(()=>{p.value||(J(),G())}),(t,i)=>{const m=d("el-tab-pane"),h=d("el-collapse-item"),w=d("el-collapse"),Z=d("el-tabs"),F=me("loading");return O((n(),V("div",Ne,[c(Z,{modelValue:e(_),"onUpdate:modelValue":i[1]||(i[1]=B=>ve(_)?_.value=B:null),type:"border-card"},{default:o(()=>[e(p)?(n(),r(m,{key:0,label:"\u65B0\u5EFA\u53D1\u7968\u7533\u8BF7",name:"0"},{default:o(()=>[c(De)]),_:1})):y("v-if",!0),e(p)?y("v-if",!0):(n(),r(m,{key:1,label:"\u4E1A\u52A1\u8BE6\u60C5",name:"1"},{default:o(()=>[c(w,{modelValue:u.value,"onUpdate:modelValue":i[0]||(i[0]=B=>u.value=B)},{default:o(()=>[c(h,{title:"\u53D1\u7968\u7533\u8BF7\u8BE6\u60C5",name:"2"},{default:o(()=>[O(c(he,{detail:e(a)},null,8,["detail"]),[[F,e(C)]])]),_:1}),e(I).length>0&&e(I)[0].inv_number&&e(j)?(n(),r(h,{key:0,name:"3",title:"\u53D1\u7968\u8BE6\u60C5"},{default:o(()=>[c(e(_e),{"inv-number":e(I)[0].inv_number,type:"sale"},null,8,["inv-number"])]),_:1})):y("v-if",!0),e(S)?y("v-if",!0):(n(),V(H,{key:1},[Object.keys(e(R)).length&&e(Y)?(n(),r(h,{key:0,title:e(R).title,name:"4"},{default:o(()=>[(n(),r(de(e(R).component),{"is-electronic":e(z),"is-support":A.value,"is-special-ticket":e(K),"is-plain":e(Q),"inv-type":e(a).inv_type,onChangeStatus:W},null,40,["is-electronic","is-support","is-special-ticket","is-plain","inv-type"]))]),_:1},8,["title"])):y("v-if",!0)],64))]),_:1},8,["modelValue"])]),_:1})),e(p)?y("v-if",!0):(n(),r(m,{key:2,label:"\u5BA1\u6279\u8BB0\u5F55",name:"2"},{default:o(()=>[c(e(we),{examCode:v.value},null,8,["examCode"])]),_:1}))]),_:1},8,["modelValue"])])),[[F,e(C)]])}}});var tt=U(Ve,[["__scopeId","data-v-471f3669"],["__file","D:/work/accout-vue3-ui/src/views/InvoiceSales/invoiceApply/detail.vue"]]);export{tt as default};