1 |
- import{_ as V,d as P,aM as U,p as j,x as w,ai as q,bc as f,r as i,o as s,c as p,l as t,D as a,m as e,ar as G,a as o,G as v,aN as L,F as A}from"./index.js";import{u as M}from"./useDetail.d77f98f9.js";import{h as W,d as z,e as H}from"./index.26d6ac45.js";import J from"./index.f6be26.js";import K from"./return-form.3b6d10.js";import{I as Q}from"./index.767adb83.js";import{D as y}from"./default.86fd4980.js";/* empty css */import{s as X}from"./ticketReturn.6df30604.js";import"./porder.9a85976d.js";import"./orderRecord.4d98a397.js";import"./index.46b8bf10.js";import"./choose-modal.e73e5e.js";import"./_details.7e8f00e4.js";import"./date-range.4010f801.js";import"./invoice-table.0d7489.js";import"./invoice-form.d4b616.js";import"./global.9ad647c8.js";const Y={class:"padding__container bg-white"},Z={key:0},$=P({__name:"detail",setup(ee){const B="sendOrderInvoiceDetail",{hasPermissionWithCode:_}=U(B),{push:b}=j(),c=w(null),{isSuperUser:k}=q(),{id:C,isDetail:m,title:E,collapses:d}=M({baseName:"\u8FD0\u5355\u56DE\u7968",collapseLen:5}),{run:N,data:r}=f({initalData:{}}),{run:F}=f({success:()=>b("/supplierOrder/supplierOrderCollection?tab=supSendOrderInvoice_collection")}),{run:I}=f({success:()=>R()});function R(){D(),c.value&&c.value.refresh()}const D=()=>N(W({hpNo:C.value})),g=l=>F(z(l));function h(l){const n={...l,hpNo:C.value};I(H(n))}return m.value&&D(),(l,n)=>{const u=i("ElCollapseItem"),O=i("ElCollapse"),T=i("ElTabPane"),x=i("ElTabs");return s(),p("div",Y,[t(x,null,{default:a(()=>[t(T,{label:e(E)},{default:a(()=>[t(O,{modelValue:e(d),"onUpdate:modelValue":n[0]||(n[0]=S=>G(d)?d.value=S:null)},{default:a(()=>[t(u,{name:"1",title:e(E)},{default:a(()=>[o(" \u56DE\u7968\u8BE6\u60C5 "),e(m)?(s(),v(e(L),{key:0,columns:e(X),data:e(r)},null,8,["columns","data"])):(s(),p(A,{key:1},[o(" \u521B\u5EFA\u56DE\u7968 "),t(K,{onCreate:g})],2112))]),_:1},8,["title"]),e(m)?(s(),p("div",Z,[t(u,{name:"2",title:"\u5BF9\u8D26\u8BE6\u60C5"},{default:a(()=>[o(' <ReconciliationForm ref="formRef" readonly :id="data.payNo" /> '),t(J,{ref_key:"formRef",ref:c,request:"",readonly:"",payNo:e(r).payNo},null,8,["payNo"])]),_:1}),t(u,{name:"3",title:"\u53D1\u7968\u8BE6\u60C5"},{default:a(()=>[t(e(Q),{type:"purchase","inv-number":e(r).invoiceNumber},null,8,["inv-number"])]),_:1}),o(" \u5BA1\u6279\u8282\u70B9 "),e(k)?o("v-if",!0):(s(),p(A,{key:0},[String(e(r).status)==="2"&&e(_)("053")?(s(),v(u,{key:0,title:"\u4E1A\u52A1\u516C\u53F8\u4E1A\u52A1\u5BA1\u6838",name:"4"},{default:a(()=>[t(e(y),{"approve-value":"3","reject-value":"6",onApproval:h})]),_:1})):o("v-if",!0),String(e(r).status)==="3"&&e(_)("054")?(s(),v(u,{key:1,name:"5",title:"\u4E1A\u52A1\u516C\u53F8\u8BA4\u8BC1"},{default:a(()=>[t(e(y),{"approve-value":"4","reject-value":"7",onApproval:h})]),_:1})):o("v-if",!0)],64))])):o("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var De=V($,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/supplierOrder/sendOrderInvoice/detail.vue"]]);export{De as default};
|