index.de19013b.js 2.9 KB

1
  1. import{c as E,d as g}from"./index.f5e26b9f.js";import{af as y,aC as b,a8 as P,d as k,m as w,v as N,aX as v,r,o as i,E as p,B as l,j as c,u as a,I as A,L as R}from"./index.b2b87cd1.js";import{w as m,k as x}from"./status.7cff7b18.js";import{r as M}from"./columnRenderHelper.75250d33.js";import{u as S}from"./use-page-search.33590006.js";import Y from"./invoice-modal.f270249b.js";import"./index.c516ef4c.js";import"./invoice.8e2739c1.js";const H=[{label:"\u56DE\u7968\u89E3\u9664\u7F16\u7801",prop:"returnCode",width:150},{label:"\u5BF9\u8D26\u56DE\u7968\u7F16\u7801",prop:"orderCode",width:150},{label:"\u5BF9\u8D26\u7F16\u7801",prop:"payNo",width:150},{label:"\u4F9B\u5E94\u5546\u7AEF",prop:"has_account",width:80,...M(x,"has_account")},{label:"\u72B6\u6001",prop:"status",width:120,cellRenderer:({row:e,props:u})=>y(b,{size:u.size},{default:()=>{var t;return(t=m.find(o=>String(e.status)===o.value))==null?void 0:t.label}})},{label:"\u5356\u65B9\u516C\u53F8\u7F16\u7801",prop:"supplierNo",width:150},{label:"\u5356\u65B9\u516C\u53F8\u540D\u79F0",prop:"supplierName",minWidth:160},{label:"\u4E70\u65B9\u516C\u53F8\u7F16\u7801",prop:"companyNo",width:150},{label:"\u4E70\u65B9\u516C\u53F8\u540D\u79F0",prop:"companyName",minWidth:160},{label:"\u9000\u7968\u7406\u7531",prop:"reason"},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",width:80},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",width:140,formatter:({addtime:e})=>P(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",slot:"operation",width:110}],I={title:"\u91C7\u8D2D\u56DE\u7968",statusProp:"companyNo",columns:H,apis:{httpList:E,httpDelete:g,httpAdd:!0},deleteProp:"hpNo",superUserNoAction:!0,delTooltip:"\u662F\u5426\u64A4\u56DE\u91C7\u8D2D\u56DE\u7968\u7533\u8BF7",showDelete:({status:e})=>Number(e)!==6},d={formItems:[{field:"create_timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u65B0\u5EFA\u8D77\u59CB\u65F6\u95F4",endPlaceholder:"\u65B0\u5EFA\u7ED3\u675F\u65F6\u95F4"}},{field:"supplierNo",type:"supplier-query"},{field:"status",type:"select",placeholder:"\u5BA1\u6838\u72B6\u6001",options:m},{field:"returnCode",type:"input",placeholder:"\u56DE\u7968\u89E3\u9664\u7F16\u7801"}]},q=k({__name:"index",setup(e){const u="ticketReturnRelive",t="/purchase/ticketReturnReliveDetail",{push:o}=w(),n=N(null),{hasPermissionWithCode:h}=v(u),f={pageSearchHook:()=>S(void 0,void 0,d)},F={content:{preview:({returnCode:s})=>o(`${t}?id=${s}`),create:()=>o(t)}};return(s,O)=>{const C=r("ElButton"),_=r("PageContainer"),D=r("PageAuth");return i(),p(D,{pageName:u},{default:l(()=>[c(_,{hooks:f,events:F,contentConfig:a(I),"search-config":a(d)},{content_action:l(B=>[a(h)("020")?(i(),p(C,{key:0,link:"",type:"primary",icon:a(A)("scaletooriginal"),onClick:()=>n.value.onDisplay(B)},null,8,["icon","onClick"])):R("",!0)]),_:1},8,["contentConfig","search-config"]),c(Y,{ref_key:"invoiceModalRef",ref:n},null,512)]),_:1})}}});export{q as default};