1 |
- import{P as h}from"./page-content.b704528a.js";import{u as F,_}from"./use-page-search.bec6fb0d.js";import{V as B,ap as C,aI as g,e as y,U as D,m as E,v as P,aA as b,o as k,c as w,h as i,A as N,a as A,j as o,bp as W}from"./index.e7c72e95.js";import{c as v,d as R}from"./index.972e1c5f.js";import{P as n}from"./purchPay.a1be815d.js";import"./index.e6c308d2.js";import"./responseHandle.c92eeb9c.js";import"./hooks.93e407ab.js";import"./use-response-handle.0e27bb38.js";import"./export.c7be1f75.js";import"./xlsx.ed122d16.js";import"./basic-form.82727b1d.js";import"./global.9ad647c8.js";import"./tootip.f60d2cd8.js";const S=[{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:"\u4E1A\u52A1\u516C\u53F8\u540D\u79F0",prop:"companyName",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 t;return(t=n.find(a=>e===a.value))==null?void 0:t.label},cellRenderer:({row:e,props:t})=>B(C,{size:t.size},{default:()=>{var a;return(a=n.find(u=>e.dstatus===u.value))==null?void 0:a.label}})},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",minWidth:90,align:"left"},{label:"\u7533\u8BF7\u65F6\u95F4",minWidth:180,prop:"addtime",formatter:({addtime:e})=>g(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:100,slot:"operation"}],p={title:"\u91C7\u8D2D\u4ED8\u6B3E",columns:S,deleteProp:"dzNo",apis:{httpList:v,httpDelete:R,httpAdd:!0},showDelete:({dstatus:e})=>Number(e)!==3,powers:["001","002","003","004","005","006","007","008"]},c={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",startProp:"startTime",endProp:"endTime",startPlaceholder:"\u5F00\u59CB\u65E5\u671F",endPlaceholder:"\u7ED3\u675F\u65E5\u671F"}},{field:"status",type:"select",placeholder:"\u5BA1\u6838\u72B6\u6001",options:n}]},T={class:"main role"},x={"w-full":""},M={name:"purchPay"},X=y({...M,setup(e){const{pageContentRef:t,handleSearchClick:a,handleResetClick:u}=F(void 0,void 0,c),l=D(()=>p),{push:r}=E();function d(){r("/purchase/purchPayDetail")}function m(s){r({path:"/purchase/purchPayDetail",query:{id:s.dzNo}})}return P(()=>p.powers=b().getMenuActions("purchPay")),(s,Y)=>(k(),w("div",T,[i(W,{isShow:o(l).powers.some(f=>f==="001")},{default:N(()=>[A("div",x,[i(o(_),{ref_key:"pageContentRef",ref:t,"form-config":o(c),onSearchBtnClick:o(a),onResetBtnClick:o(u)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),i(o(h),{ref_key:"pageContentRef",ref:t,"content-config":o(l),onPreviewBtnClick:m,onCreateBtnClick:d},null,8,["content-config"])])]),_:1},8,["isShow"])]))}});export{X as default};
|