index.ecec8982.js 2.4 KB

1
  1. import{aa as a,aF as o,aW as m,r as h,z as _,v as l,o as g,M as B,J as C,w as b,x as s}from"./index.8a948a1a.js";import{c as y}from"./index.2608ba41.js";import{R as i,a as v}from"./inv-return.9e10439b.js";import{b as P}from"./inv-open.25e53bae.js";import{u as E}from"./use-page-search.2df26bd0.js";import"./tootip.63c6cc56.js";const N=[{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\u7F16\u53F7",prop:"returnCode"},{label:"\u53D1\u7968\u7F16\u53F7",prop:"invNo"},{label:"\u72B6\u6001",prop:"status",cellRenderer:({row:e})=>a(o,null,{default:()=>{var t;return(t=i.find(u=>u.value===e.status))==null?void 0:t.label}})},{label:"\u53D1\u7968\u7C7B\u578B",prop:"status",cellRenderer:({row:e})=>a(o,null,{default:()=>{var t;return((t=P.find(u=>u.value===e.status))==null?void 0:t.label)||"--"}})},{label:"\u9000\u7968\u65B9\u5F0F",prop:"return_type",cellRenderer:({row:e})=>a(o,null,{default:()=>{var t;return((t=v.find(u=>u.value===e.return_type))==null?void 0:t.label)||"--"}})},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name"},{label:"\u7533\u8BF7\u65F6\u95F4",prop:"addtime",formatter:({addtime:e})=>m(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:80,slot:"operation"}],R={title:"\u9000\u7968\u7533\u8BF7\u7BA1\u7406",superUserNoAction:!0,columns:N,apis:{httpList:y,httpAdd:!0}},p={formItems:[{field:"returnCode",type:"input",placeholder:"\u9000\u7968\u7F16\u53F7"},{field:"invNo",type:"input",placeholder:"\u53D1\u7968\u7F16\u53F7"},{field:"apply_name",type:"input",placeholder:"\u7533\u8BF7\u4EBA"},{field:"status",type:"select",placeholder:"\u9000\u7968\u72B6\u6001",options:i},{field:"timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u7533\u8BF7\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u7533\u8BF7\u7ED3\u675F\u65F6\u95F4"}}]},S=h({__name:"index",setup(e){const t="returnTicket",u="/InvoiceSales/returnTicketDetail",{push:r}=_(),c={pageSearchHook:()=>E(void 0,void 0,p)},d={content:{create:()=>r(u),preview:({returnCode:n})=>r(`${u}?id=${n}`)}};return(n,T)=>{const F=l("PageContainer"),f=l("PageAuth");return g(),B(f,{pageName:t},{default:C(()=>[b(F,{hooks:c,events:d,contentConfig:s(R),"search-config":s(p)},null,8,["contentConfig","search-config"])]),_:1})}}});export{S as default};