index.cdc73e55.js 2.9 KB

1
  1. import{aj as g,aL as E,ah as v,_ as y,d as b,A as N,E as k,bo as P,x as r,o as i,N as p,K as l,y as c,u as a,R as w,a as R}from"./index.743f0c80.js";import{c as A,d as x}from"./index.f68c617d.js";import{s as m}from"./_opitons.90d80463.js";import{u as M}from"./use-page-search.a895acdb.js";import Y from"./invoice-modal.88ea6faf.js";import"./index.5fbf2896.js";import"./invoice.7fa18a6d.js";import"./status.868e86c0.js";const H=[{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:"\u7533\u8BF7\u4EBA",prop:"apply_name"},{label:"\u5356\u65B9\u516C\u53F8\u7F16\u53F7",prop:"supplierNo",width:150},{label:"\u5356\u65B9\u516C\u53F8\u540D\u79F0",prop:"supplierName",minWidth:150},{label:"\u4E70\u65B9\u516C\u53F8\u7F16\u53F7",prop:"companyNo",width:150},{label:"\u4E70\u65B9\u516C\u53F8\u540D\u79F0",prop:"companyName",minWidth:150},{label:"\u72B6\u6001",prop:"status",width:130,cellRenderer:({row:e,props:u})=>g(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:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",width:160,formatter:({addtime:e})=>v(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:A,httpDelete:x,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:"supplierNo",type:"supplier-query"},{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"}}]},S=b({__name:"index",setup(e){const u="ticketReturnRelive",t="/purchase/ticketReturnReliveDetail",{push:o}=N(),n=k(null),{hasPermissionWithCode:h}=P(u),F={pageSearchHook:()=>M(void 0,void 0,d)},f={content:{preview:({returnCode:s})=>o(`${t}?id=${s}`),create:()=>o(t)}};return(s,W)=>{const _=r("ElButton"),C=r("PageContainer"),D=r("PageAuth");return i(),p(D,{pageName:u},{default:l(()=>[c(C,{hooks:F,events:f,contentConfig:a(I),"search-config":a(d)},{content_action:l(B=>[a(h)("020")?(i(),p(_,{key:0,link:"",type:"primary",icon:a(w)("scaletooriginal"),onClick:()=>n.value.onDisplay(B)},null,8,["icon","onClick"])):R("v-if",!0)]),_:1},8,["contentConfig","search-config"]),c(Y,{ref_key:"invoiceModalRef",ref:n},null,512)]),_:1})}}});var q=y(S,[["__file","D:/work/accout-vue3-ui/src/views/purchase/ticketReturnRelive/index.vue"]]);export{q as default};