import{al as n,aS as o,ae as p,_ as d,d as F,aL as f,r as B,o as _,c as h,l,C as m,b as v,u,bt as C,bu as b,a as D}from"./index.1d1a5ecb.js";import{u as E}from"./use-page-search.f4c305e2.js";import{h as g}from"./index.3d70d973.js";import{i as w}from"./status.d6b2a53d.js";const A={formItems:[{field:"invRed",type:"input",placeholder:"\u7EA2\u51B2\u7533\u8BF7\u7F16\u7801",span:6},{field:"invNo",type:"input",placeholder:"\u53D1\u7968\u7533\u8BF7\u7F16\u7801",span:6},{field:"apply_name",type:"input",placeholder:"\u7533\u8BF7\u4EBA",span:4}]},P=[{value:"0",label:"\u5F85\u63D0\u4EA4\u7533\u8BF7"},{value:"1",label:"\u7533\u8BF7\u4E2D"},{value:"2",label:"\u5F85\u5F00\u7EA2\u51B2"},{value:"3",label:"\u7EA2\u51B2\u5F00\u7968\u63D0\u4EA4"},{value:"4",label:"\u5F00\u7968\u6210\u529F"},{value:"5",label:"\u63D0\u4EA4\u7533\u8BF7\u5931\u8D25"},{value:"6",label:"\u7533\u8BF7\u6210\u529F\u5F00\u7968\u5931\u8D25"},{value:"7",label:"\u53D6\u6D88\u7533\u8BF7"}],S=[{type:"selection",width:40,align:"center",hide:({checkList:e})=>!e.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:e})=>!e.includes("\u5E8F\u53F7\u5217")},{label:"\u7EA2\u51B2\u7533\u8BF7\u7F16\u7801",width:150,prop:"invRed"},{label:"\u7EA2\u51B2\u7533\u8BF7\u6D41\u6C34\u53F7",width:150,prop:"SQBSCQQLSH"},{label:"\u7EA2\u51B2\u7533\u8BF7\u6279\u6B21\u53F7",width:150,prop:"SQBSCQQPCH"},{label:"\u53D1\u7968\u7C7B\u578B",width:160,prop:"FPLXDM",cellRenderer({row:e}){return n(o,null,{default:()=>w.find(({scanValue:a})=>"0"+a===e.FPLXDM).label||"--"})}},{label:"\u539F\u53D1\u7968\u7533\u8BF7\u7F16\u7801",width:150,prop:"invNo"},{label:"\u539F\u53D1\u7968\u53F7\u7801",width:130,prop:"YFPHM"},{label:"\u72B6\u6001",prop:"status",cellRenderer({row:e}){return n(o,null,{default:()=>{var a;return((a=P.find(t=>t.value===e.status))==null?void 0:a.label)||"--"}})}},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",formatter:({addtime:e})=>p(e).format("YYYY-MM-DD HH:mm:ss")}],k={title:"\u7EA2\u5B57\u4E13\u7968\u4FE1\u606F\u8868",columns:S,inv:!0,superUserNoAction:!0,notPreview:!0,apis:{httpList:g}};const y={class:"main role"},R={"w-full":""},x=F({__name:"index",setup(e){const{pageContentRef:a,handleResetClick:t,handleSearchClick:s}=E(),{hasPermissionWithCode:i,permissions:r}=f("redInk");return(L,N)=>{const c=B("PagePower");return _(),h("div",y,[l(c,{"is-show":u(i)("001")},{default:m(()=>[v("div",R,[l(u(C),{"form-config":u(A),onSearchBtnClick:u(s),onResetBtnClick:u(t)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),l(u(b),{ref_key:"pageContentRef",ref:a,"content-config":u(k),powers:u(r)},null,8,["content-config","powers"])])]),_:1},8,["is-show"]),D(' <OpenDialog ref="openDialogRef" /> ')])}}});var Y=d(x,[["__scopeId","data-v-95da2584"],["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSales/redInk/index.vue"]]);export{Y as default};
