index.178b8277.js 3.5 KB

1
  1. import{aX as b,_ as D,d as E,B as N,F as P,aY as k,y as a,o as p,O as c,L as l,z as d,u as s,T as A,V as W}from"./index.8fc9dcce.js";import{d as x,e as R,h as S}from"./index.a82cf0d4.js";import{r as T}from"./columnRenderHelper.961c1ff7.js";import{u as w}from"./use-page-search.e8718996.js";const r=[{value:"1",label:"\u5F85\u4E70\u65B9\u5BA1\u6838"},{value:"2",label:"\u5BA1\u6838\u6210\u529F"},{value:"3",label:"\u4E70\u5BB6\u9A73\u56DE"},{value:"4",label:"\u5DF2\u64A4\u9500\u7533\u8BF7"}],O=[{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:"\u72B6\u6001",prop:"status",minWidth:120,transform:e=>{var t;return((t=r.find(n=>e===n.value))==null?void 0:t.label)||"--"},...T(r)},{label:"\u603B\u989D\u6B3E",prop:"total_fee",minWidth:110,align:"total_fee"},{label:"\u5356\u65B9\u516C\u53F8\u7F16\u53F7",prop:"supplierNo",minWidth:180,align:"left"},{label:"\u5356\u65B9\u516C\u53F8\u540D\u79F0",prop:"supplierName",minWidth:180,align:"left"},{label:"\u4E70\u65B9\u516C\u53F8\u7F16\u53F7",prop:"companyNo",minWidth:180,align:"left"},{label:"\u4E70\u65B9\u516C\u53F8\u540D\u79F0",prop:"companyName",minWidth:180,align:"left"},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",minWidth:70,align:"left"},{label:"\u7533\u8BF7\u65F6\u95F4",minWidth:180,prop:"addtime",formatter:({addtime:e})=>b(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:160,slot:"operation"}],Y={title:"\u8BA2\u5355\u5BF9\u8D26",columns:O,apis:{httpList:x,httpDelete:R},showDelete:()=>!1,payProps:{prop:"payNo",type:"1"},returnProps:{prop:"payNo",type:"2"},showPayTagFn:({status:e},t)=>String(e)==="2"&&t.includes("013"),showReturnTagFn:({status:e},t)=>String(e)==="2"&&t.includes("014")},m={formItems:[{field:"group",type_field:"group_type",type:"input_group",otherOptions:{inputGroupOptions:[{value:"sequenceNo",label:"\u91C7\u8D2D\u5355\u7F16\u53F7"},{value:"supplierNo",label:"\u5356\u65B9\u516C\u53F8\u7F16\u53F7"},{value:"supplierName",label:"\u5356\u65B9\u516C\u53F8\u540D\u79F0"},{value:"payNo",label:"\u5BF9\u8D26\u7F16\u53F7"}]}},{field:"status",type:"select",placeholder:"\u5BA1\u6838\u72B6\u6001",options:r},{field:"timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"startTime",endProp:"endTime",startPlaceholder:"\u5F00\u59CB\u65E5\u671F",endPlaceholder:"\u7ED3\u675F\u65E5\u671F"}}]},H=E({__name:"index",setup(e){const t="orderRecord",n="/purchase/orderRecordDetail",{push:F}=N(),i=P(null),{run:f}=k({success:()=>i.value.onSearch()}),h={pageSearchHook:()=>w(void 0,void 0,m)},g=u=>{f(S({payNo:u,status:"4"}))},B={content:{preview:({payNo:u})=>F(`${n}?id=${u}`)}};return(u,V)=>{const _=a("ElButton"),y=a("ElTooltip"),v=a("PageContainer"),C=a("PageAuth");return p(),c(C,{pageName:t},{default:l(()=>[d(v,{hooks:h,events:B,contentConfig:s(Y),"search-config":s(m),"get-content-ref":o=>i.value=o},{content_action:l(o=>[d(y,{placement:"top",content:"\u64A4\u9500\u5BF9\u8D26\u7533\u8BF7"},{default:l(()=>[String(o.status)==="2"?(p(),c(_,{key:0,type:"primary",link:"",text:"",icon:s(A)("refresh-right"),onClick:()=>g(o.payNo)},null,8,["icon","onClick"])):W("v-if",!0)]),_:2},1024)]),_:1},8,["contentConfig","search-config","get-content-ref"])]),_:1})}}});var U=D(H,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/purchase/orderRecord/index.vue"]]);export{U as default};