1 |
- import{P as F}from"./page-content.a55ffe9f.js";import{u as C,_ as B}from"./use-page-search.a19578c9.js";import{ah as y,aE as g,aW as E,q as D,a2 as P,x as b,C as k,aP as N,r as w,o as W,n as S,t as n,H as i,p as v,v as t,by as R,S as A}from"./index.8a0e85a4.js";import{c as T,d as x}from"./index.b2c33e0c.js";import{P as d}from"./purchPay.5686866b.js";import"./index.0e23983d.js";import"./responseHandle.6c6477ad.js";import"./hooks.49d3d7ef.js";import"./use-response-handle.a60ed4d0.js";import"./basic-form.a71cd486.js";import"./global.9ad647c8.js";const M=[{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,cellRenderer:({row:e,props:o})=>y(g,{size:o.size},{default:()=>{var a;return(a=d.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:"createTime",formatter:({addtime:e})=>E(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:100,slot:"operation"}],p={title:"\u91C7\u8D2D\u4ED8\u6B3E",columns:M,deleteProp:"dzNo",apis:{httpList:T,httpDelete:x},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:d}]},Y={class:"main role"},z={"w-full":""},H=A("\u65B0\u5EFA"),V={name:"purchPay"},Z=D({...V,setup(e){const{pageContentRef:o,handleSearchClick:a,handleResetClick:u}=C(void 0,void 0,c),l=P(()=>p),{push:r}=b();function m(){r("/purchase/purchPayDetail")}function f(s){r({path:"/purchase/purchPayDetail",query:{id:s.dzNo}})}return k(()=>p.powers=N().getMenuActions("purchPay")),(s,q)=>{const h=w("el-button");return W(),S("div",Y,[n(R,{isShow:t(l).powers.some(_=>_==="001")},{default:i(()=>[v("div",z,[n(t(B),{ref_key:"pageContentRef",ref:o,"form-config":t(c),onSearchBtnClick:t(a),onResetBtnClick:t(u)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),n(t(F),{ref_key:"pageContentRef",ref:o,"content-config":t(l),onPreviewBtnClick:f},{create:i(()=>[n(h,{type:"primary",onClick:m},{default:i(()=>[H]),_:1})]),_:1},8,["content-config"])])]),_:1},8,["isShow"])])}}});export{Z as default};
|