index.eb678ca9.js 3.4 KB

1
  1. import{ah as E,bo as b,aM as k,q as v,B as N,x as R,C as W,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.307d1dca.js";import{P as H}from"./page-content.26cec3f3.js";import{u as T,_ as V}from"./use-page-search.ef2d650b.js";import{h as Y,f as q}from"./index.a472b465.js";import{s as _}from"./configs.ac3e0c04.js";import"./index.43bf6170.js";import"./responseHandle.d2003523.js";import"./hooks.d804685b.js";import"./use-response-handle.a7ab3a70.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:"\u5F85\u4ED8\u6B3E\u91D1\u989D",prop:"pay_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})=>E(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:100,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:B,handleResetClick:D}=T(n),{push:s}=R(),g=()=>s("/purchase/orderRecordDetail");function C(t){s({path:"/purchase/orderRecordDetail",query:{id:t.payNo}})}return W(()=>{const t=w().getMenuActions("orderRecord");o.value=[].concat(...t),F.powers=[].concat(...t)}),(t,p)=>{const i=c("el-button"),y=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(B),onResetBtnClick:a(D)},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(y,null,null,512),[[f,!o.value.some(u=>u=="001")]])])}}});export{te as default};