1 |
- import{_ as w,d as x,aL as P,n as U,w as j,ah as q,b3 as v,r as i,o as r,c as p,l as t,C as o,u as e,aq as L,a,G as _,F as y}from"./index.56c69f5a.js";import{u as G}from"./useDetail.acb31522.js";import{h as W,d as z,e as H}from"./index.d4057835.js";import{B as J}from"./basic-descriptions.5f176484.js";import K from"./index.acb65478.js";import M from"./return-form.728daf4f.js";import{I as Q}from"./index.ce613775.js";import{D as B}from"./default.30f69f92.js";/* empty css */import{s as X}from"./ticketReturn.1ed463e4.js";import"./porder.30193b2b.js";import"./tootip.fe6ea468.js";import"./orderRecord.9d7001b8.js";import"./calc.850c7422.js";import"./index.5ce46a74.js";import"./choose-modal.17380f29.js";import"./_details.810a642a.js";import"./index.2e257471.js";import"./status.2df4810d.js";import"./date-range.c3f1dbd6.js";import"./invoice-table.f5f29bc4.js";import"./invoice-form.e1212221.js";import"./global.9ad647c8.js";import"./invoice.3cbb6342.js";const Y={class:"padding__container bg-white"},Z={key:0},$=x({__name:"detail",setup(ee){const k="sendOrderInvoiceDetail",{hasPermissionWithCode:C}=P(k),{push:b}=U(),m=j(null),{isSuperUser:c}=q(),{id:E,isDetail:d,title:h,collapses:f}=G({baseName:"\u8FD0\u5355\u56DE\u7968",collapseLen:5}),{run:N,data:s}=v({initalData:{}}),{run:F}=v({success:()=>b("/postSupplierOrder/sendOrderInvoice")}),{run:I}=v({success:()=>R()});function R(){D(),m.value&&m.value.refresh()}const D=()=>N(W({hpNo:E.value})),g=n=>F(z(n));function A(n){const l={...n,hpNo:E.value};I(H(l))}return d.value&&D(),(n,l)=>{const u=i("ElCollapseItem"),S=i("ElCollapse"),T=i("ElTabPane"),O=i("ElTabs");return r(),p("div",Y,[t(O,null,{default:o(()=>[t(T,{label:e(h)},{default:o(()=>[t(S,{modelValue:e(f),"onUpdate:modelValue":l[0]||(l[0]=V=>L(f)?f.value=V:null)},{default:o(()=>[t(u,{name:"1",title:e(h)},{default:o(()=>[a(" \u56DE\u7968\u8BE6\u60C5 "),e(d)?(r(),_(e(J),{key:0,columns:e(X),data:e(s)},null,8,["columns","data"])):(r(),p(y,{key:1},[a(" \u521B\u5EFA\u56DE\u7968 "),t(M,{onCreate:g})],2112))]),_:1},8,["title"]),e(d)?(r(),p("div",Z,[t(u,{name:"2",title:"\u5BF9\u8D26\u8BE6\u60C5"},{default:o(()=>[a(' <ReconciliationForm ref="formRef" readonly :id="data.payNo" /> '),t(K,{ref_key:"formRef",ref:m,request:"",readonly:"",payNo:e(s).payNo},null,8,["payNo"])]),_:1}),t(u,{name:"3",title:"\u53D1\u7968\u8BE6\u60C5"},{default:o(()=>[t(e(Q),{type:"purchase","inv-number":e(s).invoiceNumber},null,8,["inv-number"])]),_:1}),a(" \u5BA1\u6279\u8282\u70B9 "),e(c)?a("v-if",!0):(r(),p(y,{key:0},[String(e(s).status)==="2"&&e(C)("053")&&!e(c)?(r(),_(u,{key:0,title:"\u4E1A\u52A1\u516C\u53F8\u4E1A\u52A1\u5BA1\u6838",name:"4"},{default:o(()=>[t(e(B),{"approve-value":"3","reject-value":"6",onApproval:A})]),_:1})):a("v-if",!0),String(e(s).status)==="3"&&e(C)("054")&&!e(c)?(r(),_(u,{key:1,name:"5",title:"\u4E1A\u52A1\u516C\u53F8\u8BA4\u8BC1"},{default:o(()=>[t(e(B),{"approve-value":"4","reject-value":"7",onApproval:A})]),_:1})):a("v-if",!0)],64))])):a("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var be=w($,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/postSupplierOrder/sendOrderInvoice/detail.vue"]]);export{be as default};
|