1 |
- import{c as g,d as E}from"./index.1d8e83c5.js";import{af as b,aI as y,aX as P,d as N,B as k,F as v,bn as w,y as n,o as i,O as p,L as l,z as c,u as a,T as A,V as R}from"./index.a584ddad.js";import{s as m}from"./_opitons.035e1f41.js";import{u as x}from"./use-page-search.5ed9bf1b.js";import M from"./invoice-modal.ca6552fb.js";import"./index.e9b581b3.js";import"./invoice.f79e33fd.js";import"./status.25ea5e43.js";const Y=[{label:"\u56DE\u7968\u89E3\u9664\u7F16\u53F7",prop:"returnCode",width:160},{label:"\u5BF9\u8D26\u56DE\u7968\u7F16\u53F7",prop:"orderCode",width:160},{label:"\u5BF9\u8D26\u7F16\u53F7",prop:"payNo",width:160},{label:"\u72B6\u6001",prop:"status",width:100,cellRenderer:({row:e,props:o})=>b(y,{size:o.size},{default:()=>{var t;return(t=m.find(u=>String(e.status)===u.value))==null?void 0:t.label}})},{label:"\u5356\u65B9\u516C\u53F8\u7F16\u53F7",prop:"supplierNo",width:160},{label:"\u5356\u65B9\u516C\u53F8\u540D\u79F0",prop:"supplierName",minWidth:160},{label:"\u4E70\u65B9\u516C\u53F8\u7F16\u53F7",prop:"companyNo",width:160},{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"},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",width:160,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:E,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:"\u56DE\u7968\u89E3\u9664\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"}}]},U=N({__name:"index",setup(e){const o="ticketReturnRelive",t="/purchase/ticketReturnReliveDetail",{push:u}=k(),r=v(null),{hasPermissionWithCode:h}=w(o),F={pageSearchHook:()=>x(void 0,void 0,d)},f={content:{preview:({returnCode:s})=>u(`${t}?id=${s}`),create:()=>u(t)}};return(s,H)=>{const C=n("ElButton"),D=n("PageContainer"),_=n("PageAuth");return i(),p(_,{pageName:o},{default:l(()=>[c(D,{hooks:F,events:f,contentConfig:a(z),"search-config":a(d)},{content_action:l(B=>[a(h)("020")?(i(),p(C,{key:0,link:"",type:"primary",icon:a(A)("scaletooriginal"),onClick:()=>r.value.onDisplay(B)},null,8,["icon","onClick"])):R("",!0)]),_:1},8,["contentConfig","search-config"]),c(M,{ref_key:"invoiceModalRef",ref:r},null,512)]),_:1})}}});export{U as default};
|