1 |
- import{aj as g,aF as y,ah as E,_ as v,d as b,A as N,E as P,aZ as k,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.1417328f.js";import{c as A,d as x}from"./index.22bc54be.js";import{s as m}from"./_opitons.90d80463.js";import{u as M}from"./use-page-search.7e7b4728.js";import Y from"./invoice-modal.cffca606.js";import"./index.68c806ba.js";import"./invoice.d2c04353.js";import"./status.727086c1.js";const j=[{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:o})=>g(y,{size:o.size},{default:()=>{var t;return(t=m.find(u=>String(e.status)===u.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})=>E(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:j,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"}}]},I=b({__name:"index",setup(e){const o="ticketReturnRelive",t="/purchase/ticketReturnReliveDetail",{push:u}=N(),n=P(null),{hasPermissionWithCode:h}=k(o),F={pageSearchHook:()=>M(void 0,void 0,d)},f={content:{preview:({returnCode:s})=>u(`${t}?id=${s}`),create:()=>u(t)}};return(s,S)=>{const C=r("ElButton"),_=r("PageContainer"),D=r("PageAuth");return i(),p(D,{pageName:o},{default:l(()=>[c(_,{hooks:F,events:f,contentConfig:a(H),"search-config":a(d)},{content_action:l(B=>[a(h)("020")?(i(),p(C,{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 K=v(I,[["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/purchase/ticketReturnRelive/index.vue"]]);export{K as default};
|