import{aG as k,aH as N,ah as s,aE as c,aX as P,q as W,x as A,r as d,o as f,n as w,L as m,M as E,v as t,p as S,t as r,H as h,K as T,P as x,S as V}from"./index.d8ce26ef.js";import{u as Y}from"./use-permission.314b29b7.js";import{P as I}from"./page-content.c90a59ec.js";import{u as H,_ as L}from"./use-page-search.665e4825.js";import{I as D,P as B}from"./purchase.3e9c8933.js";import"./index.4ed99b91.js";import"./responseHandle.f073653a.js";import"./hooks.3def80f5.js";import"./use-response-handle.e6cae34f.js";import"./basic-form.147ada95.js";import"./global.9ad647c8.js";import"./status.fad06285.js";const{VITE_PROXY_DOMAIN_REAL:re,VITE_PROXY_USER_REAL:M}=N(),O=M+"/admin/",q=e=>k.request("post",`${O}paylist`,{data:{status:"3",...e}}),U=[{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:"\u603B\u989D\u6B3E",prop:"total_fee",minWidth:120,align:"total_fee"},{label:"\u56DE\u7968\u72B6\u6001",width:110,cellRenderer:({row:e})=>s(c,null,{default:()=>{var u;return(u=D.find(a=>a.value===e.inv_status))==null?void 0:u.label}})},{label:"\u5DF2\u56DE\u7968\u91D1\u989D",prop:"ainv_fee",minWidth:110,align:"left"},{label:"\u56DE\u7968\u4E2D",prop:"inv_fee",minWidth:110},{label:"\u56DE\u7968\u6807\u7B7E\u91D1\u989D",prop:"inv_tag_fee",minWidth:110,align:"left"},{label:"\u672A\u56DE\u7968\u91D1\u989D",prop:"winv_fee",minWidth:110,align:"left"},{label:"\u4ED8\u6B3E\u72B6\u6001",width:110,cellRenderer:({row:e})=>s(c,null,{default:()=>{var u;return(u=B.find(a=>a.value===e.pay_status))==null?void 0:u.label}})},{label:"\u5DF2\u4ED8\u6B3E\u91D1\u989D",prop:"apay_fee",minWidth:110,align:"left"},{label:"\u4ED8\u6B3E\u4E2D\u91D1\u989D",prop:"pay_fee",minWidth:110,align:"left"},{label:"\u4ED8\u6B3E\u6807\u7B7E\u91D1\u989D",prop:"pay_tag_fee",minWidth:110,align:"left"},{label:"\u672A\u4ED8\u6B3E\u91D1\u989D",prop:"wpay_fee",minWidth:110,align:"left"},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",minWidth:80,align:"left"},{label:"\u7533\u8BF7\u65F6\u95F4",minWidth:160,prop:"addtime",formatter:({addtime:e})=>P(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:120,slot:"operation"}],_={title:"\u8BA2\u5355\u5BF9\u8D26\u67E5\u8BE2",columns:U,deleteProp:"payNo",apis:{httpList:q},payProps:{prop:"payNo",type:"1"},returnProps:{prop:"payNo",type:"2"},powers:["001","002","003","004","005","006","007","008"]},X=[{value:"1",label:"\u56DE\u7968\u6807\u7B7E"},{value:"2",label:"\u4ED8\u6B3E\u6807\u7B7E"},{value:"3",label:"\u4ED8\u6B3E\u56DE\u7968\u6700\u5C11\u6709\u4E00\u4E2A"},{value:"4",label:"\u4ED8\u6B3E\u56DE\u7968\u90FD\u6709"}],$={formItems:[{field:"supplierNo",type:"input",placeholder:"\u4F9B\u5E94\u5546\u7F16\u53F7"},{field:"payNo",type:"input",placeholder:"\u5BF9\u8D26\u7F16\u53F7"},{field:"tag_id",type:"select",placeholder:"\u6807\u7B7E\u7C7B\u578B",options:X},{field:"inv_status",type:"select",placeholder:"\u56DE\u7968\u72B6\u6001",options:D},{field:"pay_status",type:"select",placeholder:"\u4ED8\u6B3E\u72B6\u6001",options:B},{field:"timer",type:"date_picker",otherOptions:{type:"daterange",startPlaceholder:"\u5F00\u59CB\u65E5\u671F",endPlaceholder:"\u7ED3\u675F\u65E5\u671F"}}]},j={class:"main orderRecord"},G=V("\u65B0\u5EFA"),K={name:"orderRecord"},pe=W({...K,setup(e){const u=({timer:l})=>{const[o,i]=l;return{result:{startTime:o,endTime:i},deleteProps:["timer"]}},{pageContentRef:a,handleSearchClick:g,handleResetClick:y}=H(u),{push:p}=A(),F=()=>p("/purchase/orderRecordDetail");function b(l){p({path:"/purchase/orderRecordDetail",query:{id:l}})}const{permission:n,contentConfigRef:C}=Y({pageName:"orderRecord",contentConfig:_,callback:l=>_.powers=l});return(l,o)=>{const i=d("el-button"),v=d("NoAuth");return f(),w("div",j,[m(S("div",null,[r(t(L),{ref_key:"pageContentRef",ref:a,"form-config":t($),onSearchBtnClick:t(g),onResetBtnClick:t(y)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),r(t(I),{ref_key:"pageContentRef",ref:a,"content-config":t(C),onPreviewBtnClick:o[0]||(o[0]=({payNo:R})=>b(R))},{create:h(()=>[t(n).create?(f(),T(i,{key:0,type:"primary",onClick:F},{default:h(()=>[G]),_:1})):x("",!0)]),_:1},8,["content-config"])],512),[[E,t(n).list]]),m(r(v,null,null,512),[[E,!t(n).list]])])}}});export{pe as default};
