index.b0a743c3.js 3.1 KB

1
  1. import{u as B,_ as C}from"./use-page-search.de6c0538.js";import{P as v}from"./page-content.7539282d.js";import{R as c,a as y}from"./inv-return.6938efb9.js";import{c as k,b}from"./index.a99ab407.js";import{ah as r,aE as l,aW as g,_ as R,q as E,x as P,o as T,n as w,t as i,H as x,p as D,v as u,by as N}from"./index.ec6726c2.js";import{b as S}from"./inv-open.800367c5.js";import{u as Y}from"./use-permission.ee4ce87b.js";import"./basic-form.8028f82a.js";import"./global.9ad647c8.js";import"./hooks.5edcbc74.js";import"./index.266f2572.js";import"./responseHandle.ff956498.js";import"./use-response-handle.d6a4eb89.js";const s={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:c},{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"}}]},A=[{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})=>r(l,null,{default:()=>{var t;return(t=c.find(o=>o.value===e.status))==null?void 0:t.label}})},{label:"\u53D1\u7968\u7C7B\u578B",prop:"status",cellRenderer:({row:e})=>r(l,null,{default:()=>{var t;return((t=S.find(o=>o.value===e.status))==null?void 0:t.label)||"--"}})},{label:"\u9000\u7968\u65B9\u5F0F",prop:"return_type",cellRenderer:({row:e})=>r(l,null,{default:()=>{var t;return((t=y.find(o=>o.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})=>g(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:80,slot:"operation"}],p={title:"\u9000\u7968\u7533\u8BF7\u7BA1\u7406",powers:["001","002","003","004","005","006","007","008"],columns:A,apis:{httpList:k,httpAdd:b}};const I={class:"main role"},H={"w-full":""},U={name:"returnTicket"},V=E({...U,setup(e){const{push:t}=P(),{pageContentRef:o,handleResetClick:d,handleSearchClick:f}=B(void 0,void 0,s);function m(a){t({path:"/InvoiceSales/returnTicketDetail",query:{id:a}})}const{permission:_,contentConfigRef:F}=Y({pageName:"returnTicket",contentConfig:p,callback:a=>p.powers=a});return(a,n)=>(T(),w("div",I,[i(N,{"is-show":u(_).list},{default:x(()=>[D("div",H,[i(u(C),{"form-config":u(s),onSearchBtnClick:u(f),onResetBtnClick:u(d)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),i(u(v),{ref_key:"pageContentRef",ref:o,"content-config":u(F),onPreviewBtnClick:n[0]||(n[0]=({returnCode:h})=>m(h)),onCreateBtnClick:n[1]||(n[1]=()=>u(t)("/InvoiceSales/returnTicketDetail"))},null,8,["content-config"])])]),_:1},8,["is-show"])]))}});var Z=R(V,[["__scopeId","data-v-7616f92c"]]);export{Z as default};