detail.37acfb.js 4.7 KB

1
  1. import{_ as $,d as ee,n as te,aO as oe,ai as ae,aP as k,ah as n,aM as ne,x as ie,p as se,bG as B,y as ue,r as c,aD as le,H as V,m as e,o as i,c as F,l as s,D as u,G as l,ar as I,a as d,F as re,I as ce,cw as pe,cx as me,cy as ve,cz as de,cA as _e}from"./index.js";import{I as fe}from"./index.7965b8dc.js";import ye from"./upload-invoice.c927a6.js";import Ae from"./financial-review.cd9811.js";import De from"./index.a2e24b.js";import be from"./add-edit-form.859676.js";import he from"./add-edit-form.7721f5.js";import ke from"./add-edit-form.50e890.js";import"./status.4c13d767.js";import"./configs.eb9018e2.js";import"./inv-open.75600633.js";import"./index.30e8f4b4.js";import"./order-dialog.c587e0.js";import"./search-check.acb1d4.js";import"./columns.17ba95.js";import"./search-batch.e00c68.js";import"./search-batch-main.fe6edd.js";import"./edit-order.38fafc.js";import"./invoice-title.4839ed.js";import"./order-dialog.2d89b4.js";import"./search-check.95f003.js";import"./columns.88d730.js";import"./search-batch.c7b24b.js";import"./search-batch-main.3b5d41.js";import"./edit-order.6282bf.js";import"./invoice-title.36f200.js";import"./columns.d95d09.js";import"./choose-form.e9c201.js";import"./index.7790dc58.js";import"./orderRecord.0960622e.js";import"./porder.875b1218.js";import"./choose-modal.cfdfa6.js";import"./date-range.68e19ca1.js";import"./invoice-title.e72a2a.js";const Be={1:{component:Ae,title:"\u5F85\u8D22\u52A1\u5BA1\u6838"},2:{component:ye,title:"\u5F85\u4E0A\u4F20\u53D1\u7968"}};const ge={class:"main bg-white"},Ce=ee({__name:"detail",setup(Ee){const{query:w}=te(),N=oe(),{isSuperUser:x}=ae(),p=k("\u9500\u552E\u8BA2\u5355"),P=n(()=>p.value==="\u9500\u552E\u8BA2\u5355"),U=n(()=>p.value==="\u901A\u7528\u8BA2\u5355"),G="invoiceApplyDetail",{hasPermissionWithCode:g}=ne(G),C=k(!1);k("");const y=n(()=>_.value?"0":"1"),E=ie(["0","1","2","3","4"]),m=n(()=>w.id),_=n(()=>!m.value),{push:L}=se(),{loading:S,data:o,run:O}=B({initalData:{},success:()=>o.value&&W(pe({companyNo:o.value.inv_out}))}),{data:A,run:q}=B({isList:!0,initalData:[]}),{data:H,run:W}=B({isList:!0,initalData:[],success:()=>{const[t]=H.value||[];if(!t)return;const{input_ticket:a}=t;C.value=a==="1"}}),M=n(()=>String(o.value.status)==="1"&&g("025")||String(o.value.status)==="2"&&g("058")),j=n(()=>{const{status:t}=o.value;return["4","6"].includes(String(t))}),z=n(()=>{const{inv_type:t}=o.value;return t==="3"||t==="4"}),T=n(()=>{const{inv_type:t}=o.value;return t==="4"}),J=n(()=>{const{inv_type:t}=o.value;return t==="2"||t==="3"}),D=n(()=>{const{status:t}=o.value;return Be[String(t)]||{}});async function K({status:t,...a}){let r;t?r=await ve({invNo:m.value,status:t,...a}):r=await me({invNo:m.value,...a});const{code:b,message:f}=r;N({code:b,message:f,handler:()=>L("/InvoiceSales/invoiceApply")})}const Q=()=>{q(de({invNo:m.value}))},X=()=>{O(_e({invNo:m.value}))};return ue(()=>{_.value||(X(),Q())}),(t,a)=>{const r=c("ElRadio"),b=c("ElRadioGroup"),f=c("el-tab-pane"),h=c("el-collapse-item"),Y=c("el-collapse"),Z=c("el-tabs"),R=le("loading");return V((i(),F("div",ge,[s(Z,{modelValue:e(y),"onUpdate:modelValue":a[2]||(a[2]=v=>I(y)?y.value=v:null),type:"border-card"},{default:u(()=>[e(_)?(i(),l(f,{key:0,label:"\u65B0\u5EFA\u53D1\u7968\u7533\u8BF7",name:"0"},{default:u(()=>[s(b,{modelValue:e(p),"onUpdate:modelValue":a[0]||(a[0]=v=>I(p)?p.value=v:null)},{default:u(()=>[s(r,{label:"\u9500\u552E\u8BA2\u5355"}),s(r,{label:"\u901A\u7528\u8BA2\u5355(\u5143\u9686\u5B9A\u5236)"}),s(r,{label:"\u901A\u7528\u8BA2\u5355"})]),_:1},8,["modelValue"]),e(P)?(i(),l(be,{key:0})):e(U)?(i(),l(ke,{key:1})):(i(),l(he,{key:2}))]),_:1})):d("v-if",!0),e(_)?d("v-if",!0):(i(),l(f,{key:1,label:"\u4E1A\u52A1\u8BE6\u60C5",name:"1"},{default:u(()=>[s(Y,{modelValue:E.value,"onUpdate:modelValue":a[1]||(a[1]=v=>E.value=v)},{default:u(()=>[s(h,{title:"\u53D1\u7968\u7533\u8BF7\u8BE6\u60C5",name:"2"},{default:u(()=>[V(s(De,{detail:e(o)},null,8,["detail"]),[[R,e(S)]])]),_:1}),e(A).length>0&&e(A)[0].inv_number&&e(j)?(i(),l(h,{key:0,name:"3",title:"\u53D1\u7968\u8BE6\u60C5"},{default:u(()=>[s(e(fe),{"inv-number":e(A)[0].inv_number,type:"sale"},null,8,["inv-number"])]),_:1})):d("v-if",!0),e(x)?d("v-if",!0):(i(),F(re,{key:1},[Object.keys(e(D)).length&&e(M)?(i(),l(h,{key:0,name:"4",title:e(D).title},{default:u(()=>[(i(),l(ce(e(D).component),{"is-electronic":e(z),"is-support":e(C),"is-special-ticket":e(T),"is-plain":e(J),"inv-type":e(o).inv_type,onChangeStatus:K},null,40,["is-electronic","is-support","is-special-ticket","is-plain","inv-type"]))]),_:1},8,["title"])):d("v-if",!0)],64))]),_:1},8,["modelValue"])]),_:1}))]),_:1},8,["modelValue"])])),[[R,e(S)]])}}});var ut=$(Ce,[["__scopeId","data-v-471f3669"],["__file","C:/Users/63107/Desktop/mine/settle-vue3/src/views/InvoiceSales/invoiceApply/detail.vue"]]);export{ut as default};