index.1c7e859e.js 2.5 KB

1
  1. import{a9 as m,aE as h,aU as f,r as F,z as g,v as l,o as y,M as B,J as C,w as D,x as i}from"./index.b119192b.js";import{c as E,d as _}from"./index.da9ccb3b.js";import{s as o}from"./_options.c684faf5.js";import{u as P}from"./use-page-search.61ef9ea9.js";const b=[{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=>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=>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:b,deleteProp:"dzNo",showDelete:({dstatus:e})=>Number(e)!==3,companyProp:"companyNo",superUserNoAction:!0,apis:{httpList:E,httpDelete:_,httpAdd:!0}},p={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}]},w=F({__name:"index",setup(e){const u="supplyPurchPay",t="/supply/supplyPurchPayDetail",{push:a}=g(),s={pageSearchHook:()=>P(void 0,void 0,p)},r={content:{preview:({dzNo:n})=>a(`${t}?id=${n}`),create:()=>a(t)}};return(n,W)=>{const d=l("PageContainer"),c=l("PageAuth");return y(),B(c,{pageName:u},{default:C(()=>[D(d,{hooks:s,events:r,contentConfig:i(N),"search-config":i(p)},null,8,["contentConfig","search-config"])]),_:1})}}});export{w as default};