import{ah as y,bf as b,aN as k,q as v,B as N,x as W,C as R,aD as w,r as c,o as d,n as P,L as m,M as f,p as A,t as r,v as a,H as h,K as x,P as S,S as M}from"./index.10c3f8e5.js";import{P as H}from"./page-content.6b548a2d.js";import{u as T,_ as V}from"./use-page-search.f38b29a1.js";import{h as Y,f as q}from"./index.44c8546a.js";import{s as _}from"./configs.051126a9.js";import"./index.1c15f518.js";import"./responseHandle.3a46a31b.js";import"./hooks.5f77ce90.js";import"./use-response-handle.23bba72b.js";const z=[{type:"selection",minWidth:55,align:"left",hide:({checkList:e})=>!e.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",minWidth:60,align:"left",hide:({checkList:e})=>!e.includes("\u5E8F\u53F7\u5217")},{label:"\u5BF9\u8D26\u7F16\u53F7",prop:"payNo",minWidth:180,align:"left"},{label:"\u4F9B\u5E94\u5546\u7F16\u53F7",prop:"supplierNo",minWidth:180,align:"left"},{label:"\u4F9B\u5E94\u5546\u540D\u79F0",prop:"supplierName",minWidth:180,align:"left"},{label:"\u7533\u8BF7\u4EBA\u7F16\u53F7",prop:"apply_name",minWidth:180,align:"left"},{label:"\u603B\u989D\u6B3E",prop:"total_fee",minWidth:180,align:"total_fee"},{label:"\u5DF2\u4ED8\u6B3E\u91D1\u989D",prop:"apay_fee",minWidth:180,align:"left"},{label:"\u4ED8\u6B3E\u4E2D\u91D1\u989D",prop:"pay_fee",minWidth:180,align:"left"},{label:"\u672A\u4ED8\u6B3E\u91D1\u989D",prop:"wpay_fee",minWidth:180,align:"left"},{label:"\u5DF2\u56DE\u7968\u91D1\u989D",prop:"ainv_fee",minWidth:180,align:"left"},{label:"\u672A\u56DE\u7968\u91D1\u989D",prop:"winv_fee",minWidth:180,align:"left"},{label:"\u72B6\u6001",prop:"status",minWidth:120,cellRenderer:({row:e,props:o})=>y(b,{size:o.size},{default:()=>{var n;return(n=_.find(l=>e.status===l.value))==null?void 0:n.label}})},{label:"\u7533\u8BF7\u65F6\u95F4",minWidth:180,prop:"addtime",formatter:({addtime:e})=>k(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:60,slot:"operation"}],F={title:"\u8BA2\u5355\u5BF9\u8D26",columns:z,deleteProp:"payNo",apis:{httpList:Y,httpDelete:q},powers:["001","002","003","004","005","006","007","008"]},L={formItems:[{field:"supplierNo",type:"input",placeholder:"\u4F9B\u5E94\u5546\u7F16\u53F7"},{field:"payNo",type:"input",placeholder:"\u5BF9\u8D26\u7F16\u53F7"},{field:"timer",type:"date_picker",otherOptions:{type:"daterange",startPlaceholder:"\u5F00\u59CB\u65E5\u671F",endPlaceholder:"\u7ED3\u675F\u65E5\u671F"}},{field:"status",type:"select",placeholder:"\u5BA1\u6838\u72B6\u6001",options:_}]},O={class:"main orderRecord"},j=M("\u65B0\u5EFA"),I={name:"orderRecord"},te=v({...I,setup(e){const o=N([]),n=({timer:t})=>{const[p,i]=t;return{result:{startTime:p,endTime:i},deleteProps:["timer"]}},{pageContentRef:l,handleSearchClick:D,handleResetClick:B}=T(n),{push:s}=W(),g=()=>s("/purchase/orderRecordDetail");function C(t){s({path:"/purchase/orderRecordDetail",query:{id:t.payNo}})}return R(()=>{const t=w().getMenuActions("orderRecord");o.value=[].concat(...t),F.powers=[].concat(...t)}),(t,p)=>{const i=c("el-button"),E=c("NoAuth");return d(),P("div",O,[m(A("div",null,[r(a(V),{ref_key:"pageContentRef",ref:l,"form-config":a(L),onSearchBtnClick:a(D),onResetBtnClick:a(B)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),r(a(H),{ref_key:"pageContentRef",ref:l,"content-config":a(F),onPreviewBtnClick:C},{create:h(()=>[o.value.some(u=>u=="002")?(d(),x(i,{key:0,type:"primary",onClick:g},{default:h(()=>[j]),_:1})):S("",!0)]),_:1},8,["content-config"])],512),[[f,o.value.some(u=>u=="001")]]),m(r(E,null,null,512),[[f,!o.value.some(u=>u=="001")]])])}}});export{te as default};
