import{dS as y,dT as B,af as g,f1 as f,ce as A,cA as s,a7 as N,_ as b,d as P,k,n as w,c9 as R,r as n,o as i,A as p,y as l,h as c,i as o,D as x,a as O,cC as I}from"./index.js";import{c as S,d as M}from"./index.dd3bcd78.js";import L from"./invoice-modal.4bd666.js";import"./index.c443965f.js";const T=[{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,...y(B,"has_account")},{label:"\u72B6\u6001",prop:"status",width:120,cellRenderer:({row:e,props:u})=>g(A,{size:u.size},{default:()=>{var t;return(t=f.find(a=>String(e.status)===a.value))==null?void 0:t.label}})},{label:"\u7269\u6D41\u4F9B\u5E94\u5546",prop:"supplierName",minWidth:160,...s("supplierNo","supplierName","\u7269\u6D41\u4F9B\u5E94\u5546\u7F16\u7801:")},{label:"\u4E1A\u52A1\u516C\u53F8",prop:"companyNo",minWidth:160,...s("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})=>N(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",slot:"operation",width:110}],W={title:"\u91C7\u8D2D\u56DE\u7968",statusProp:"companyNo",columns:T,apis:{httpList:e=>S({...e,pay_type:"2"}),httpDelete:M,httpAdd:!0},deleteProp:"hpNo",superUserNoAction:!0,delTooltip:"\u662F\u5426\u64A4\u56DE\u91C7\u8D2D\u56DE\u7968\u7533\u8BF7",showDelete:({status:e})=>Number(e)!==6},d={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:f},{field:"returnCode",type:"input",placeholder:"\u56DE\u7968\u89E3\u9664\u7F16\u7801"}]},m="sendOrderInvoiceRelive",h="/postSupplierOrder/sendOrderInvoiceReliveDetail",Y=P({__name:"index",setup(e){const{push:u}=k(),t=w(null),{hasPermissionWithCode:a}=R(m),F={pageSearchHook:()=>I(void 0,void 0,d)},_={content:{preview:({returnCode:r})=>u(`${h}?id=${r}`),create:()=>u(h)}};return(r,H)=>{const D=n("ElButton"),C=n("PageContainer"),E=n("PageAuth");return i(),p(E,{pageName:m},{default:l(()=>[c(C,{hooks:F,events:_,contentConfig:o(W),"search-config":o(d)},{content_action:l(v=>[o(a)("020")?(i(),p(D,{key:0,link:"",type:"primary",icon:o(x)("scaletooriginal"),onClick:()=>t.value.onDisplay(v)},null,8,["icon","onClick"])):O("v-if",!0)]),_:1},8,["contentConfig","search-config"]),c(L,{ref_key:"invoiceModalRef",ref:t},null,512)]),_:1})}}});var $=b(Y,[["__file","D:/work/jiesuan/settle-vue3/src/views/postSupplierOrder/sendOrderInvoiceRelive/index.vue"]]);export{$ as default};
