import{B as s,t as i,r as a,aW as o}from"./index.f00b3728.js";import{s as p,i as n}from"./status.a0228b6d.js";function f(){return{columns:s([{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:"\u53D1\u7968\u7533\u8BF7\u7F16\u53F7",prop:"invNo",width:160},{label:"\u4F01\u4E1A\u5BA2\u6237",prop:"customerName",width:160},{label:"\u4F01\u4E1A\u5BA2\u6237\u7F16\u7801",prop:"inv_in",width:160},{label:"\u4E1A\u52A1\u4F01\u4E1A\u7F16\u53F7",prop:"inv_out"},{label:"\u53D1\u7968\u989D\u5EA6",prop:"inv_value",width:110},{label:"\u72B6\u6001",prop:"status",minWidth:80,cellRenderer:({row:e,props:l})=>i(a("el-tag"),{size:l.size,type:(p.find(t=>t.value==e.status+"")||{}).type||"info",effect:"plain"},{default:()=>[(p.find(t=>t.value==e.status+"")||{}).label||"--"]})},{label:"\u53D1\u7968\u7C7B\u578B",prop:"inv_type",minWidth:80,cellRenderer:({row:e,props:l})=>i(a("el-tag"),{size:l.size,type:(n.find(t=>t.value==e.inv_type+"")||{}).type||"info",effect:"plain"},{default:()=>[(n.find(t=>t.value==e.inv_type+"")||{}).label||"--"]})},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",width:80},{label:"\u521B\u5EFA\u65F6\u95F4",width:145,prop:"addtime",formatter:({addtime:e})=>e?o(e).format("YYYY-MM-DD HH:mm:ss"):""},{label:"\u64CD\u4F5C",fixed:"right",width:55,slot:"operation"}])}}export{f as useColumns};