detail.7c7748.js 2.5 KB

1
  1. import{_ as P,d as U,p as w,aM as S,x as j,ai as q,bc as n,r,o,c as p,l as t,D as s,m as e,ar as G,a as l,G as m,aN as C,F as L}from"./index.js";import{u as M}from"./useDetail.d77f98f9.js";import W from"./return-form.0c63fa.js";import{D as z}from"./default.86fd4980.js";/* empty css */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.3a7c0a.js";import"./_details.215a1c33.js";import"./index.ff7eb665.js";import"./date-range.4010f801.js";import"./_rules.aa11c031.js";import"./global.9ad647c8.js";const Y={class:"padding__container"},Z={key:1},$=U({__name:"detail",setup(ee){const{push:h}=w(),E="unInvoiceRelationDetail",{hasPermissionWithCode:k}=S(E);j(null);const{isSuperUser:b}=q(),{id:d,isDetail:u,title:_,collapses:i}=M({baseName:"\u53D1\u7968\u89E3\u9664\u5173\u8054",collapseLen:5}),{run:R,data:f}=n({initalData:{},success:({orderCode:a})=>B(H({hpNo:a}))}),{run:B,data:A}=n({initalData:{}}),{run:I}=n({success:()=>v()}),{run:N}=n({success:()=>h("/purchase/purchaseCollection?tab=unInvoiceRelation_collection")}),g=a=>I(K({returnCode:d.value,...a})),v=()=>R(J({returnCode:d.value})),y=a=>N(O(a));return u.value&&v(),(a,D)=>{const c=r("ElCollapseItem"),x=r("ElCollapse"),F=r("ElTabPane"),T=r("ElTabs");return o(),p("div",Y,[t(T,null,{default:s(()=>[t(F,{label:e(_)},{default:s(()=>[t(x,{modelValue:e(i),"onUpdate:modelValue":D[0]||(D[0]=V=>G(i)?i.value=V:null)},{default:s(()=>[t(c,{name:"1",title:e(_)},{default:s(()=>[l(" \u56DE\u7968\u8BE6\u60C5 "),e(u)?(o(),m(e(C),{key:0,columns:e(X),data:e(f)},null,8,["columns","data"])):(o(),p(L,{key:1},[l(" \u521B\u5EFA\u56DE\u7968\u9000\u7968 "),t(W,{onCreate:y})],2112))]),_:1},8,["title"]),e(u)?(o(),m(c,{key:0,name:"4",title:"\u91C7\u8D2D\u56DE\u7968\u8BE6\u60C5"},{default:s(()=>[t(e(C),{columns:e(Q),data:e(A)},null,8,["columns","data"])]),_:1})):l("v-if",!0),e(u)?(o(),p("div",Z,[!e(b)&&String(e(f).status)==="1"&&e(k)("020")?(o(),m(c,{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:g})]),_: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/purchaseNew/unInvoiceRelation/detail.vue"]]);export{ve as default};