detail.8f4963da.js 3.0 KB

1
  1. import{_ as S,d as U,aZ as j,A as w,E as L,ai as q,b8 as d,x as i,o,c as p,y as t,K as a,u as e,ao as K,a as s,N as _,L as B}from"./index.1417328f.js";import{u as W}from"./useDetail.1c3d5449.js";import{t as Z}from"./_details.019d6a4a.js";import{b as z,c as G,d as H}from"./index.28d5e629.js";import{B as J}from"./basic-descriptions.cadaf928.js";import{R as M}from"./index.38882c18.js";import O from"./return-form.ced8b9e1.js";import{I as Q}from"./index.82e2a776.js";import{D as k}from"./default.2af79f8c.js";/* empty css */import"./_opitons.689eae18.js";import"./status.727086c1.js";import"./index.08fe6875.js";import"./tootip.8c37fa8a.js";import"./status.0f757cb5.js";import"./choose-modal.983cc398.js";import"./reconciliation.53461462.js";import"./invoice-table.a911b28e.js";import"./invoice-form.370f49c6.js";import"./global.9ad647c8.js";import"./invoice.d2c04353.js";const X={class:"padding__container"},Y={key:0},$=U({__name:"detail",setup(ee){const y="ticketReturnDetail",{hasPermissionWithCode:v,permissions:te}=j(y),{push:b}=w(),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:u}=d({initalData:{}}),{run:R}=d({success:()=>b("/purchase/purchPay")}),{run:F}=d({success:()=>P()});function P(){h(),m.value&&m.value.refresh()}const h=()=>N(z({hpNo:C.value})),g=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"),x=i("ElCollapse"),I=i("ElTabPane"),T=i("ElTabs");return o(),p("div",X,[t(T,null,{default:a(()=>[t(I,{label:e(E)},{default:a(()=>[t(x,{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(()=>[s(" \u56DE\u7968\u8BE6\u60C5 "),e(c)?(o(),_(e(J),{key:0,columns:e(Z),data:e(u)},null,8,["columns","data"])):(o(),p(B,{key:1},[s(" \u521B\u5EFA\u56DE\u7968 "),t(O,{onCreate:g})],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(u).payNo},null,8,["id"])]),_:1}),t(r,{name:"3",title:"\u53D1\u7968\u8BE6\u60C5"},{default:a(()=>[t(e(Q),{type:"purchase","inv-number":e(u).invoiceNumber},null,8,["inv-number"])]),_:1}),s(" \u5BA1\u6279\u8282\u70B9 "),e(A)?s("v-if",!0):(o(),p(B,{key:0},[String(e(u).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})):s("v-if",!0),String(e(u).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})):s("v-if",!0)],64))])):s("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var ye=S($,[["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/purchase/ticketReturn/detail.vue"]]);export{ye as default};