1 |
- import{_ as S,d as w,bo as U,A as j,E as L,ai as q,aZ as d,x as i,o,c as p,y as t,K as a,u as e,ao as K,a as u,N as _,L as B}from"./index.743f0c80.js";import{u as W}from"./useDetail.50c7b89c.js";import{t as Z}from"./_details.0b0c213b.js";import{b as z,c as G,d as H}from"./index.cb28f7dd.js";import{B as J}from"./basic-descriptions.e56bd542.js";import{R as M}from"./index.eb1db4ef.js";import O from"./return-form.6a143038.js";import{I as Q}from"./index.5ce4d23e.js";import{D as k}from"./default.ef251c3c.js";/* empty css */import"./_opitons.689eae18.js";import"./status.868e86c0.js";import"./index.88e5dbb1.js";import"./tootip.48acd346.js";import"./status.0f757cb5.js";import"./choose-modal.806c4066.js";import"./reconciliation.d0aed753.js";import"./invoice-table.bef15380.js";import"./invoice-form.aeb43475.js";import"./global.9ad647c8.js";import"./invoice.7fa18a6d.js";const X={class:"padding__container"},Y={key:0},$=w({__name:"detail",setup(ee){const y="ticketReturnDetail",{hasPermissionWithCode:v,permissions:te}=U(y),{push:b}=j(),m=L(null),{isSuperUser:A}=q(),{id:C,isDetail:c,title:E,collapses:f}=W({baseName:"\u91C7\u8D2D\u56DE\u7968",collapseLen:5}),{run:N,data:s}=d({initalData:{}}),{run:R}=d({success:()=>b("/purchase/purchPay")}),{run:F}=d({success:()=>g()});function g(){h(),m.value&&m.value.refresh()}const h=()=>N(z({hpNo:C.value})),x=l=>R(G(l));function D(l){const n={...l,hpNo:C.value};F(H(n))}return c.value&&h(),(l,n)=>{const r=i("ElCollapseItem"),I=i("ElCollapse"),P=i("ElTabPane"),T=i("ElTabs");return o(),p("div",X,[t(T,null,{default:a(()=>[t(P,{label:e(E)},{default:a(()=>[t(I,{modelValue:e(f),"onUpdate:modelValue":n[0]||(n[0]=V=>K(f)?f.value=V:null)},{default:a(()=>[t(r,{name:"1",title:e(E)},{default:a(()=>[u(" \u56DE\u7968\u8BE6\u60C5 "),e(c)?(o(),_(e(J),{key:0,columns:e(Z),data:e(s)},null,8,["columns","data"])):(o(),p(B,{key:1},[u(" \u521B\u5EFA\u56DE\u7968 "),t(O,{onCreate:x})],2112))]),_:1},8,["title"]),e(c)?(o(),p("div",Y,[t(r,{name:"2",title:"\u5BF9\u8D26\u8BE6\u60C5"},{default:a(()=>[t(e(M),{ref_key:"formRef",ref:m,readonly:"",id:e(s).payNo},null,8,["id"])]),_:1}),t(r,{name:"3",title:"\u53D1\u7968\u8BE6\u60C5"},{default:a(()=>[t(e(Q),{type:"purchase","inv-number":e(s).invoiceNumber},null,8,["inv-number"])]),_:1}),u(" \u5BA1\u6279\u8282\u70B9 "),e(A)?u("v-if",!0):(o(),p(B,{key:0},[String(e(s).status)==="2"&&e(v)("020")?(o(),_(r,{key:0,title:"\u4E70\u65B9\u516C\u53F8\u8D22\u52A1\u5BA1\u6838",name:"4"},{default:a(()=>[t(e(k),{"approve-value":"3","reject-value":"6",onApproval:D})]),_:1})):u("v-if",!0),String(e(s).status)==="3"&&e(v)("021")?(o(),_(r,{key:1,name:"5",title:"\u4E70\u65B9\u516C\u53F8\u8BA4\u8BC1"},{default:a(()=>[t(e(k),{"approve-value":"4","reject-value":"7",onApproval:D})]),_:1})):u("v-if",!0)],64))])):u("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var ye=S($,[["__file","D:/work/accout-vue3-ui/src/views/purchase/ticketReturn/detail.vue"]]);export{ye as default};
|