index.b878729e.js 3.0 KB

1
  1. import{al as g,aO as v,ae as y,_ as b,d as N,n as k,w as P,bs as w,r,o as i,G as p,C as l,l as c,u as a,J as A,a as R}from"./index.3f1ca816.js";import{c as x,d as M}from"./index.28f8024c.js";import{w as h,m as I}from"./status.d6b2a53d.js";import{a as O,r as d}from"./columnRenderHelper.c7097252.js";import{u as S}from"./use-page-search.fa6a742a.js";import W from"./invoice-modal.fad71095.js";import"./index.4ee41641.js";import"./invoice.225c047c.js";const Y=[{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,...O(I,"has_account")},{label:"\u72B6\u6001",prop:"status",width:120,cellRenderer:({row:e,props:u})=>g(v,{size:u.size},{default:()=>{var t;return(t=h.find(o=>String(e.status)===o.value))==null?void 0:t.label}})},{label:"\u5356\u51FA\u65B9\u516C\u53F8",prop:"supplierName",minWidth:160,...d("supplierNo","supplierName","\u5356\u51FA\u65B9\u516C\u53F8\u7F16\u7801:")},{label:"\u4E70\u5165\u65B9\u516C\u53F8",prop:"companyNo",minWidth:160,...d("companyNo","companyName","\u4E70\u5165\u65B9\u516C\u53F8\u7F16\u7801:")},{label:"\u9000\u7968\u7406\u7531",prop:"reason",minWidth:160},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",width:80},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",width:140,formatter:({addtime:e})=>y(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",slot:"operation",width:110}],H={title:"\u91C7\u8D2D\u56DE\u7968",statusProp:"companyNo",columns:Y,apis:{httpList:x,httpDelete:M,httpAdd:!0},deleteProp:"hpNo",superUserNoAction:!0,delTooltip:"\u662F\u5426\u64A4\u56DE\u91C7\u8D2D\u56DE\u7968\u7533\u8BF7",showDelete:({status:e})=>Number(e)!==6},m={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:h},{field:"returnCode",type:"input",placeholder:"\u56DE\u7968\u89E3\u9664\u7F16\u7801"}]},L=N({__name:"index",setup(e){const u="ticketReturnRelive",t="/purchase/ticketReturnReliveDetail",{push:o}=k(),n=P(null),{hasPermissionWithCode:f}=w(u),F={pageSearchHook:()=>S(void 0,void 0,m)},_={content:{preview:({returnCode:s})=>o(`${t}?id=${s}`),create:()=>o(t)}};return(s,U)=>{const C=r("ElButton"),D=r("PageContainer"),B=r("PageAuth");return i(),p(B,{pageName:u},{default:l(()=>[c(D,{hooks:F,events:_,contentConfig:a(H),"search-config":a(m)},{content_action:l(E=>[a(f)("020")?(i(),p(C,{key:0,link:"",type:"primary",icon:a(A)("scaletooriginal"),onClick:()=>n.value.onDisplay(E)},null,8,["icon","onClick"])):R("v-if",!0)]),_:1},8,["contentConfig","search-config"]),c(W,{ref_key:"invoiceModalRef",ref:n},null,512)]),_:1})}}});var K=b(L,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/purchase/ticketReturnRelive/index.vue"]]);export{K as default};