index.b771769d.js 3.2 KB

1
  1. import{P as _}from"./page-content.28283dd3.js";import{u as F,_ as D}from"./use-page-search.f69d0651.js";import{ah as g,aE as C,aX as B,q as E,a2 as y,x as b,C as P,aQ as k,r as W,o as w,n as N,t as a,H as i,p as S,v as t,bo as v,S as R}from"./index.f1f72fab.js";import{c as A,d as x}from"./index.5cc16ec6.js";import{P as c}from"./purchPay.8cea50c2.js";import"./index.e06d2700.js";import"./responseHandle.e1b4a6cf.js";import"./hooks.56104ccd.js";import"./use-response-handle.848983a0.js";import"./basic-form.3fcecd34.js";import"./global.9ad647c8.js";const T=[{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:180},{label:"\u672C\u6B21\u4ED8\u6B3E\u91D1\u989D",prop:"dpay_fee",minWidth:180,align:"left"},{label:"\u5DF2\u4ED8\u6B3E\u91D1\u989D",prop:"apay_fee",minWidth:180,align:"left"},{label:"\u5F85\u4ED8\u6B3E\u91D1\u989D",prop:"wpay_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:"dstatus",minWidth:120,cellRenderer:({row:e,props:o})=>g(C,{size:o.size},{default:()=>{var u;return(u=c.find(n=>e.dstatus===n.value))==null?void 0:u.label}})},{label:"\u7533\u8BF7\u65F6\u95F4",minWidth:180,prop:"createTime",formatter:({addtime:e})=>B(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:100,slot:"operation"}],s={title:"\u91C7\u8D2D\u4ED8\u6B3E",columns:T,deleteProp:"dzNo",apis:{httpList:A,httpDelete:x},tagProps:{type:"1",prop:"dzNo"},powers:["001","002","003","004","005","006","007","008"]},z={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:c}]},M={class:"main role"},Y={"w-full":""},H=R("\u65B0\u5EFA"),V={name:"purchPay"},Z=E({...V,setup(e){const{pageContentRef:o,handleSearchClick:u,handleResetClick:n}=F(),l=y(()=>s),{push:r}=b();function d(){r("/purchase/purchPayDetail")}function f(p){r({path:"/purchase/purchPayDetail",query:{id:p.dzNo}})}return P(()=>s.powers=k().getMenuActions("purchPay")),(p,q)=>{const m=W("el-button");return w(),N("div",M,[a(v,{isShow:t(l).powers.some(h=>h==="001")},{default:i(()=>[S("div",Y,[a(t(D),{ref_key:"pageContentRef",ref:o,"form-config":t(z),onSearchBtnClick:t(u),onResetBtnClick:t(n)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),a(t(_),{ref_key:"pageContentRef",ref:o,"content-config":t(l),onPreviewBtnClick:f},{create:i(()=>[a(m,{type:"primary",onClick:d},{default:i(()=>[H]),_:1})]),_:1},8,["content-config"])])]),_:1},8,["isShow"])])}}});export{Z as default};