index.c0ee5e67.js 2.5 KB

1
  1. import{aj as n,aF as o,_ as h,d as F,A as _,x as i,o as v,N as g,K as B,y as C,u as l}from"./index.1417328f.js";import{c as y}from"./index.658c28c0.js";import{R as s,a as b}from"./inv-return.a56c9e92.js";import{i as P}from"./status.727086c1.js";import{u as D}from"./use-page-search.7e7b4728.js";import"./tootip.8c37fa8a.js";const T=[{label:"\u9000\u7968\u7F16\u53F7",prop:"returnCode",minWidth:160},{label:"\u53D1\u7968\u7533\u8BF7\u7F16\u53F7",prop:"invNo",minWidth:160},{label:"\u53D1\u7968\u91D1\u989D",prop:"inv_value",minWidth:110},{label:"\u9000\u7968\u72B6\u6001",prop:"status",minWidth:100,cellRenderer:({row:u})=>n(o,null,{default:()=>{var e;return(e=s.find(t=>t.value===String(u.status)))==null?void 0:e.label}})},{label:"\u53D1\u7968\u7C7B\u578B",prop:"inv_type",minWidth:160,cellRenderer:({row:u})=>n(o,null,{default:()=>{var e;return((e=P.find(t=>t.value===String(u.inv_type)))==null?void 0:e.label)||"--"}})},{label:"\u9000\u7968\u65B9\u5F0F",prop:"return_type",minWidth:130,cellRenderer:({row:u})=>n(o,null,{default:()=>{var e;return((e=b.find(t=>t.value===String(u.return_type)))==null?void 0:e.label)||"--"}})},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",minWidth:70},{label:"\u7533\u8BF7\u65F6\u95F4",prop:"addtime",width:145},{label:"\u64CD\u4F5C",fixed:"right",width:50,slot:"operation"}],k={title:"\u9000\u7968\u7533\u8BF7\u7BA1\u7406",superUserNoAction:!0,columns:T,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:s},{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"}}]},x=F({__name:"index",setup(u){const e="returnTicket",t="/InvoiceSales/returnTicketDetail",{push:r}=_(),c={pageSearchHook:()=>D(void 0,void 0,p)},d={content:{create:()=>r(t),preview:({returnCode:a})=>r(`${t}?id=${a}`)}};return(a,A)=>{const m=i("PageContainer"),f=i("PageAuth");return v(),g(f,{pageName:e},{default:B(()=>[C(m,{hooks:c,events:d,contentConfig:l(k),"search-config":l(p)},null,8,["contentConfig","search-config"])]),_:1})}}});var w=h(x,[["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/InvoiceSales/returnTicket/index.vue"]]);export{w as default};