index.969e7178.js 2.8 KB

1
  1. import{c as g,d as y}from"./index.6c1253ff.js";import{af as b,aI as E,aX as P,r as N,z as k,D as v,bn as w,v as n,o as i,M as l,J as p,w as c,x as a,Q as A,T as R}from"./index.06d23016.js";import{s as m}from"./_opitons.6d2b0780.js";import{u as x}from"./use-page-search.4012436b.js";import M from"./invoice-modal.b909c731.js";import"./index.c74a2b20.js";import"./invoice.1dfc98d4.js";import"./status.3351df60.js";const Y=[{type:"selection",width:55,hide:({checkList:e})=>!e.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:e})=>!e.includes("\u5E8F\u53F7\u5217")},{label:"\u9000\u7968\u7533\u8BF7\u7F16\u53F7",prop:"returnCode",width:180},{label:"\u5BF9\u8D26\u7F16\u53F7",prop:"payNo",width:180},{label:"\u5356\u65B9\u516C\u53F8\u540D\u79F0",prop:"supplierName"},{label:"\u5356\u65B9\u516C\u53F8\u7F16\u53F7",prop:"supplierNo"},{label:"\u4E70\u65B9\u516C\u53F8\u540D\u79F0",prop:"companyName"},{label:"\u4E70\u65B9\u516C\u53F8\u7F16\u53F7",prop:"companyNo"},{label:"\u72B6\u6001",prop:"status",width:160,cellRenderer:({row:e,props:u})=>b(E,{size:u.size},{default:()=>{var t;return(t=m.find(o=>String(e.status)===o.value))==null?void 0:t.label}})},{label:"\u9000\u7968\u7406\u7531",prop:"reason"},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name"},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",width:180,formatter:({addtime:e})=>P(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",slot:"operation",width:110}],z={title:"\u91C7\u8D2D\u56DE\u7968",statusProp:"companyNo",columns:Y,apis:{httpList:g,httpDelete:y,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:"status",type:"select",placeholder:"\u5BA1\u6838\u72B6\u6001",options:m},{field:"returnCode",type:"input",placeholder:"\u9000\u7968\u7533\u8BF7\u7F16\u53F7"},{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"}}]},J=N({__name:"index",setup(e){const u="ticketReturnRelive",t="/purchase/ticketReturnReliveDetail",{push:o}=k(),r=v(null),{hasPermissionWithCode:F}=w(u),h={pageSearchHook:()=>x(void 0,void 0,d)},f={content:{preview:({returnCode:s})=>o(`${t}?id=${s}`),create:()=>o(t)}};return(s,H)=>{const C=n("ElButton"),_=n("PageContainer"),B=n("PageAuth");return i(),l(B,{pageName:u},{default:p(()=>[c(_,{hooks:h,events:f,contentConfig:a(z),"search-config":a(d)},{content_action:p(D=>[a(F)("020")?(i(),l(C,{key:0,link:"",type:"primary",icon:a(A)("scaletooriginal"),onClick:()=>r.value.onDisplay(D)},null,8,["icon","onClick"])):R("",!0)]),_:1},8,["contentConfig","search-config"]),c(M,{ref_key:"invoiceModalRef",ref:r},null,512)]),_:1})}}});export{J as default};