import{aU as d,ac as m,al as h,aS as F,d as f,n as B,aL as y,l as a,bC as b,aW as A,M as _,bD as E,_ as C}from"./index.5189e628.js";import{h as g}from"./status.0f05917e.js";import{a as D,r as s}from"./columnRenderHelper.d735f900.js";import{t as v}from"./_options.cdd82887.js";import{u as N}from"./useRender.7e52917c.js";import{u as x}from"./use-page-search.0493da09.js";const n=[{value:"1",label:"\u4E70\u65B9\u516C\u53F8\u4E1A\u52A1\u5BA1\u6838"},{value:"2",label:"\u5BA1\u6838\u6210\u529F"},{value:"3",label:"\u4E70\u65B9\u9A73\u56DE"},{value:"4",label:"\u5DF2\u64A4\u9500\u5BF9\u8D26"}],{VITE_PROXY_USER_REAL:P}=m(),R=`${P}/admin/`,O=u=>d.request("post",`${R}paylist`,{data:u}),w=[{label:"\u5BF9\u8D26\u7F16\u53F7",prop:"payNo",fixed:"left",minWidth:"150px"},{label:"\u5BF9\u8D26\u5355\u603B\u91D1\u989D",prop:"dzTotalAmount",width:"100px"},{label:"\u72B6\u6001",prop:"status",width:"120px",cellRenderer({row:u}){return h(F,null,{default:()=>{var e;return((e=n.find(({value:t})=>t===String(u.status)))==null?void 0:e.label)||"--"}})}},{label:"\u4F9B\u5E94\u5546\u7AEF",prop:"has_account",width:80,...D(g,"has_account")},{label:"\u5356\u51FA\u65B9\u516C\u53F8",prop:"supplierName",minWidth:175,...s("supplierNo","supplierName","\u5356\u51FA\u65B9\u516C\u53F8\u7F16\u7801:")},{label:"\u4E70\u5165\u65B9\u516C\u53F8",prop:"companyName",minWidth:175,...s("companyNo","companyName","\u4E70\u5165\u65B9\u516C\u53F8\u7F16\u7801:")},{label:"\u521B\u5EFA\u4EBA",prop:"apply_name",minWidth:"100px"},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",width:"145px"},{label:"\u64CD\u4F5C",fixed:"right",width:60,slot:"operation"}],S={title:"\u901A\u7528\u8BA2\u5355\u5BF9\u8D26\u7BA1\u7406",columns:w,apis:{httpList:O}},r={formItems:[{field:"timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u7ED3\u675F\u65F6\u95F4"}},{field:"supplierNo",type:"supplier-query"},{field:"companyNo",type:"business-query"},{field:"payNo",type:"input",placeholder:"\u5BF9\u8D26\u7F16\u53F7"},{field:"tag_status",type:"select",span:"4",placeholder:"\u6807\u7B7E\u72B6\u6001",options:v},{field:"status",type:"select",placeholder:"\u72B6\u6001",span:"4",options:n}]};var k=f({__name:"index",setup(u){const{push:e}=B(),t="currentcyOrderRecord",{hasPermissionWithCode:p}=y(t),o="/InvoiceSales/currentcyOrderRecordDetail",l={pageSearchHook:()=>x(void 0,void 0,r)},i={content:{preview:({payNo:c})=>e(`${o}?id=${c}`)}};return N(()=>a(E,{pageName:t},{default:()=>[a(b,{hooks:l,events:i,contentConfig:S,searchConfig:r},{content_header:()=>p("002")&&a(A,{type:"primary",onClick:()=>e(o)},{default:()=>[_("\u6DFB\u52A0")]})})]})),()=>{}}}),q=C(k,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSales/currentcyOrderRecord/index.vue"]]);export{q as default};