1 |
- import{_ as U,d as q,w as k,bv as E,ah as L,aL as M,x as j,r,aC as G,o as t,c as x,l,C as o,u as e,G as s,H,aq as T,a as i,M as B}from"./index.88f7d256.js";import W from"./form.ac3d58df.js";import{u as $}from"./useDetail.60c209b5.js";import z from"./index.4c32c2c6.js";import{D as J}from"./default.aa36b191.js";/* empty css */import{h as b,a as K}from"./index.942b383b.js";import{P as Q}from"./index.99207903.js";import{h as X}from"./export.0b02da0f.js";import"./constants.42afb0d7.js";import"./modal.4727aed1.js";import"./qr.700840f3.js";import"./cg.d02e6b40.js";import"./single.564bdf3a.js";import"./calc.850c7422.js";import"./basic-descriptions.5c20357d.js";import"./tootip.514b092e.js";import"./orderRecord.c9c18fd5.js";import"./global.9ad647c8.js";import"./print-style.0cc9588c.js";import"./xlsx.ed122d16.js";const Y={class:"bg-white",style:{padding:"10px"}},Z={key:0,style:{position:"absolute",top:"15px",right:"15px"}},ee=q({__name:"detail",setup(te){const h="sendOrderRecordDetail",f=k(null),{id:n,title:_,isDetail:p,collapses:d}=$({baseName:"\u53D1\u8D27\u8FD0\u5355\u5BF9\u8D26",collapseLen:3}),{run:v,data:m,loading:A}=E({initalData:{}}),{isSuperUser:F}=L(),{hasPermissionWithCode:c}=M(h),{run:N,loading:R}=E({success:()=>v(b({payNo:n.value}))}),w=y=>N(K({payNo:n.value,...y}));j(()=>p.value&&v(b({payNo:n.value})));const u=k(!1);async function V(){await X({url:"paytrackxport",name:"\u5BF9\u8D26\u5355\u660E\u7EC6\u8868",onStart:()=>u.value=!0,onSuccess:()=>u.value=!1,onFail:()=>u.value=!1,params:{payNo:n.value}})}return(y,a)=>{const D=r("ElCollapseItem"),P=r("ElCollapse"),O=r("el-tab-pane"),S=r("el-tabs"),C=r("ElButton"),I=G("loading");return t(),x("div",Y,[l(S,null,{default:o(()=>[l(O,{label:e(_)},{default:o(()=>[e(p)?H((t(),s(P,{key:1,modelValue:e(d),"onUpdate:modelValue":a[0]||(a[0]=g=>T(d)?d.value=g:null)},{default:o(()=>[l(D,{title:e(_),name:"1"},{default:o(()=>[l(z,{data:e(m),readonly:""},null,8,["data"])]),_:1},8,["title"]),String(e(m).status)==="1"&&e(c)("052")&&!e(F)?(t(),s(D,{key:0,name:"2",title:"\u4E1A\u52A1\u516C\u53F8\u4E1A\u52A1\u5BA1\u6838"},{default:o(()=>[l(e(J),{approveValue:"2",rejectValue:"3",onApproval:w})]),_:1})):i("v-if",!0)]),_:1},8,["modelValue"])),[[I,e(A)||e(R)]]):(t(),s(W,{key:0}))]),_:1},8,["label"])]),_:1}),e(p)?(t(),x("div",Z,[e(c)("046")?(t(),s(C,{key:0,onClick:a[1]||(a[1]=g=>f.value.print())},{default:o(()=>[B(" \u6253\u5370\u5BF9\u8D26\u5355 ")]),_:1})):i("v-if",!0),e(c)("038")?(t(),s(C,{key:1,loading:u.value,type:"primary",onClick:a[2]||(a[2]=()=>V())},{default:o(()=>[B(" \u5BF9\u8D26\u5355\u660E\u7EC6\u5BFC\u51FA ")]),_:1},8,["loading"])):i("v-if",!0)])):i("v-if",!0),l(e(Q),{record:e(m),ref_key:"PrintOrderRecordRef",ref:f},null,8,["record"])])}}});var xe=U(ee,[["__file","D:/work/accout-vue3-ui2/settle-vue3/src/views/postSupplierOrder/sendOrderRecord/detail.vue"]]);export{xe as default};
|