1 |
- import{u as C,_ as k}from"./use-page-search.65ce9740.js";import{P as y}from"./page-content.46df3069.js";import{R as d,a as b}from"./inv-return.e818cbe1.js";import{c as g,b as v}from"./index.f8e47bbb.js";import{ah as l,aE as s,aW as p,_ as R,q as D,x as Y,o as E,n as x,t as i,H as T,p as w,v as r,bx as P}from"./index.f00b3728.js";import{b as N}from"./inv-open.a8aaaf95.js";import{u as S}from"./use-permission.aef4c1eb.js";import"./basic-form.11f5b8be.js";import"./global.9ad647c8.js";import"./hooks.704e488b.js";import"./index.892782bc.js";import"./responseHandle.dd0170ee.js";import"./use-response-handle.10a5ad96.js";const M={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:d},{field:"timer",type:"date_picker",otherOptions:{type:"daterange",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})=>l(s,null,{default:()=>{var t;return(t=d.find(u=>u.value===e.status))==null?void 0:t.label}})},{label:"\u53D1\u7968\u7C7B\u578B",prop:"status",cellRenderer:({row:e})=>l(s,null,{default:()=>{var t;return((t=N.find(u=>u.value===e.status))==null?void 0:t.label)||"--"}})},{label:"\u9000\u7968\u65B9\u5F0F",prop:"return_type",cellRenderer:({row:e})=>l(s,null,{default:()=>{var t;return((t=b.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})=>p(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:80,slot:"operation"}],c={title:"\u9000\u7968\u7533\u8BF7\u7BA1\u7406",powers:["001","002","003","004","005","006","007","008"],columns:A,apis:{httpList:g,httpAdd:v}};const I={class:"main role"},H={"w-full":""},U={name:"returnTicket"},V=D({...U,setup(e){const t=({timer:o})=>{const[a,n]=o;return{result:{start:p(a).format("YYYY-MM-DD hh:mm:ss"),end:p(n).format("YYYY-MM-DD hh:mm:ss")},deleteProps:["timer"]}},{push:u}=Y(),{pageContentRef:m,handleResetClick:f,handleSearchClick:_}=C(t);function h(o){u({path:"/InvoiceSales/returnTicketDetail",query:{id:o}})}const{permission:F,contentConfigRef:B}=S({pageName:"returnTicket",contentConfig:c,callback:o=>c.powers=o});return(o,a)=>(E(),x("div",I,[i(P,{"is-show":r(F).list},{default:T(()=>[w("div",H,[i(r(k),{"form-config":r(M),onSearchBtnClick:r(_),onResetBtnClick:r(f)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),i(r(y),{ref_key:"pageContentRef",ref:m,"content-config":r(B),onPreviewBtnClick:a[0]||(a[0]=({returnCode:n})=>h(n)),onCreateBtnClick:a[1]||(a[1]=()=>r(u)("/InvoiceSales/returnTicketDetail"))},null,8,["content-config"])])]),_:1},8,["is-show"])]))}});var ee=R(V,[["__scopeId","data-v-cc2fc3d2"]]);export{ee as default};
|