import{al as y,aS as B,ae as g,_ as A,d as N,n as b,w as P,aL as w,r,o as i,G as p,C as l,l as c,u as a,J as k,a as R}from"./index.56c69f5a.js";import{c as x,d as O}from"./index.db9049bd.js";import{D as h,h as I}from"./status.2df4810d.js";import{a as S,r as d}from"./columnRenderHelper.6c05b86e.js";import{u as L}from"./use-page-search.27df6d7f.js";import M from"./invoice-modal.a07ba772.js";import"./index.211aa9d2.js";import"./invoice.3cbb6342.js";const W=[{label:"\u56DE\u7968\u89E3\u9664\u7F16\u7801",prop:"returnCode",width:150},{label:"\u5BF9\u8D26\u56DE\u7968\u7F16\u7801",prop:"orderCode",width:150},{label:"\u5BF9\u8D26\u7F16\u7801",prop:"payNo",width:150},{label:"\u4F9B\u5E94\u5546\u7AEF",prop:"has_account",width:80,...S(I,"has_account")},{label:"\u72B6\u6001",prop:"status",width:120,cellRenderer:({row:e,props:t})=>y(B,{size:t.size},{default:()=>{var o;return(o=h.find(u=>String(e.status)===u.value))==null?void 0:o.label}})},{label:"\u7269\u6D41\u4F9B\u5E94\u5546",prop:"supplierName",minWidth:160,...d("supplierNo","supplierName","\u7269\u6D41\u4F9B\u5E94\u5546\u7F16\u7801:")},{label:"\u4E1A\u52A1\u516C\u53F8",prop:"companyNo",minWidth:160,...d("companyNo","companyName","\u4E1A\u52A1\u516C\u53F8\u7F16\u7801:")},{label:"\u9000\u7968\u7406\u7531",prop:"reason",minWidth:160},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",width:80},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",width:140,formatter:({addtime:e})=>g(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",slot:"operation",width:110}],Y={title:"\u91C7\u8D2D\u56DE\u7968",statusProp:"companyNo",columns:W,apis:{httpList:e=>x({...e,pay_type:"2"}),httpDelete:O,httpAdd:!0},deleteProp:"hpNo",superUserNoAction:!0,delTooltip:"\u662F\u5426\u64A4\u56DE\u91C7\u8D2D\u56DE\u7968\u7533\u8BF7",showDelete:({status:e})=>Number(e)!==6},m={formItems:[{field:"create_timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u65B0\u5EFA\u8D77\u59CB\u65F6\u95F4",endPlaceholder:"\u65B0\u5EFA\u7ED3\u675F\u65F6\u95F4"}},{field:"supplierNo",type:"supplier-query",placeholder:"\u7269\u6D41\u4F9B\u5E94\u5546"},{field:"status",type:"select",placeholder:"\u5BA1\u6838\u72B6\u6001",options:h},{field:"returnCode",type:"input",placeholder:"\u56DE\u7968\u89E3\u9664\u7F16\u7801"}]},H=N({__name:"index",setup(e){const t="sendOrderInvoiceRelive",o="/postSupplierOrder/sendOrderInvoiceReliveDetail",{push:u}=b(),n=P(null),{hasPermissionWithCode:f}=w(t),F={pageSearchHook:()=>L(void 0,void 0,m)},_={content:{preview:({returnCode:s})=>u(`${o}?id=${s}`),create:()=>u(o)}};return(s,T)=>{const D=r("ElButton"),C=r("PageContainer"),E=r("PageAuth");return i(),p(E,{pageName:t},{default:l(()=>[c(C,{hooks:F,events:_,contentConfig:a(Y),"search-config":a(m)},{content_action:l(v=>[a(f)("020")?(i(),p(D,{key:0,link:"",type:"primary",icon:a(k)("scaletooriginal"),onClick:()=>n.value.onDisplay(v)},null,8,["icon","onClick"])):R("v-if",!0)]),_:1},8,["contentConfig","search-config"]),c(M,{ref_key:"invoiceModalRef",ref:n},null,512)]),_:1})}}});var K=A(H,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/postSupplierOrder/sendOrderInvoiceRelive/index.vue"]]);export{K as default};
