detail.69f915.js 2.6 KB

123
  1. import{_ as P,d as U,p as S,aM as j,x as w,ai as q,bc as n,r,o,c,l as t,D as s,m as e,ar as G,a as l,G as m,aN as D,F as L}from"./index.js";import{u as M}from"./useDetail.d77f98f9.js";import W from"./return-form.a66da9.js";import{R as z}from"./receipt.2e6f7d0d.js";import{h as H,a as J,b as K,c as O}from"./index.f590779a.js";import{t as Q}from"./ticketReturn.6df30604.js";import{t as X}from"./ticketReturnRelive.1783d6bb.js";import"./porder.9a85976d.js";import"./choose-modal.f4d17a.js";import"./_details.cf1fada8.js";import"./index.ff7eb665.js";import"./date-range.4010f801.js";import"./_rules.9be4d7d4.js";import"./index.e075def9.js";/* empty css */const Y={class:"padding__container"},Z={key:1},$=U({__name:"detail",setup(ee){const{push:E}=S(),h="supplierInvoiceRelationDetail",{hasPermissionWithCode:R}=j(h);w(null);const{isSuperUser:k}=q(),{id:d,isDetail:u,title:_,collapses:i}=M({baseName:"\u91C7\u8D2D\u56DE\u7968\u89E3\u9664",collapseLen:5}),{run:B,data:f}=n({initalData:{},success:({orderCode:a})=>y(H({hpNo:a}))}),{run:y,data:I}=n({initalData:{}}),{run:b}=n({success:()=>v()}),{run:A}=n({success:()=>E("/supply/supplierInvoiceRelation")}),N=a=>b(K({returnCode:d.value,...a})),v=()=>B(J({returnCode:d.value})),F=a=>A(O(a));return u.value&&v(),(a,C)=>{const p=r("ElCollapseItem"),g=r("ElCollapse"),x=r("ElTabPane"),T=r("ElTabs");return o(),c("div",Y,[t(T,null,{default:s(()=>[t(x,{label:e(_)},{default:s(()=>[t(g,{modelValue:e(i),"onUpdate:modelValue":C[0]||(C[0]=V=>G(i)?i.value=V:null)},{default:s(()=>[t(p,{name:"1",title:e(_)},{default:s(()=>[l(" \u56DE\u7968\u8BE6\u60C5 "),e(u)?(o(),m(e(D),{key:0,columns:e(X),data:e(f)},null,8,["columns","data"])):(o(),c(L,{key:1},[l(" \u521B\u5EFA\u56DE\u7968\u9000\u7968 "),t(W,{onCreate:F})],2112))]),_:1},8,["title"]),e(u)?(o(),m(p,{key:0,name:"4",title:"\u91C7\u8D2D\u56DE\u7968\u8BE6\u60C5"},{default:s(()=>[t(e(D),{columns:e(Q),data:e(I)},null,8,["columns","data"])]),_:1})):l("v-if",!0),e(u)?(o(),c("div",Z,[l(` <ElCollapseItem name="2" title="\u5BF9\u8D26\u8BE6\u60C5">\r
  2. <ReconciliationForm ref="formRef" readonly :id="data.payNo" />\r
  3. </ElCollapseItem> `),!e(k)&&String(e(f).status)==="1"&&e(R)("020")?(o(),m(p,{key:0,name:"3",title:"\u4E70\u65B9\u516C\u53F8\u8D22\u52A1\u5BA1\u6838"},{default:s(()=>[t(e(z),{"no-time":"","has-remark":"","approve-value":"2","reject-value":"3","img-prop":"returnImg",onApproval:N})]),_:1})):l("v-if",!0)])):l("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var ve=P($,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/supply/unInvoiceRelation/detail.vue"]]);export{ve as default};