1 |
- import{af as m,aI as h,aX as f,r as F,z as g,v as i,o as B,M as C,J as y,w as D,x as l}from"./index.06d23016.js";import{c as _,d as E}from"./index.e3215e3f.js";import{s as o}from"./_options.75c311fb.js";import{u as b}from"./use-page-search.4012436b.js";const P=[{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:"\u5356\u65B9\u516C\u53F8\u7F16\u53F7",prop:"supplierNo",minWidth:180,align:"left"},{label:"\u4E70\u65B9\u516C\u53F8\u540D\u79F0",prop:"companyName",minWidth:180},{label:"\u4E70\u65B9\u516C\u53F8\u7F16\u53F7",prop:"companyNo",minWidth:180},{label:"\u603B\u989D\u6B3E",prop:"total_fee",minWidth:110},{label:"\u672C\u6B21\u4ED8\u6B3E\u91D1\u989D",prop:"dpay_fee",minWidth:110,align:"left"},{label:"\u72B6\u6001",prop:"dstatus",minWidth:120,transform:e=>{var u;return(u=o.find(t=>String(e)===t.value))==null?void 0:u.label},cellRenderer:({row:e,props:u})=>m(h,{size:u.size},{default:()=>{var t;return(t=o.find(a=>String(e.dstatus)===a.value))==null?void 0:t.label}})},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",minWidth:90,align:"left"},{label:"\u7533\u8BF7\u65F6\u95F4",minWidth:180,prop:"addtime",formatter:({addtime:e})=>f(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:100,slot:"operation"}],N={title:"\u91C7\u8D2D\u4ED8\u6B3E",columns:P,deleteProp:"dzNo",showDelete:({dstatus:e})=>Number(e)===1,apis:{httpList:_,httpDelete:E,httpAdd:!0}},r={formItems:[{field:"companyNo",type:"input",placeholder:"\u4E70\u65B9\u516C\u53F8\u7F16\u53F7"},{field:"payNo",type:"input",placeholder:"\u5BF9\u8D26\u7F16\u53F7"},{field:"timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"startTime",endProp:"endTime",startPlaceholder:"\u5F00\u59CB\u65E5\u671F",endPlaceholder:"\u7ED3\u675F\u65E5\u671F"}},{field:"status",type:"select",placeholder:"\u5BA1\u6838\u72B6\u6001",options:o}]},A=F({__name:"index",setup(e){const u="purchPay",t="/purchase/purchPayDetail",{push:a}=g(),s={pageSearchHook:()=>b(void 0,void 0,r)},p={content:{preview:({dzNo:n})=>a(`${t}?id=${n}`),create:()=>a(t)}};return(n,W)=>{const d=i("PageContainer"),c=i("PageAuth");return B(),C(c,{pageName:u},{default:y(()=>[D(d,{hooks:s,events:p,contentConfig:l(N),"search-config":l(r)},null,8,["contentConfig","search-config"])]),_:1})}}});export{A as default};
|