import{am as n,aR as s,_ as F,d as f,r as p,o as _,G as g,D as E,l as C,m as c,bd as b,ae as d}from"./index.js";import{c as A}from"./index.142d2268.js";const h=[{value:"0",label:"\u89E3\u9664"},{value:"1",label:"\u6DFB\u52A0"}],m=[{value:"1",label:"\u4ED8\u6B3E\u6807\u7B7E"},{value:"2",label:"\u56DE\u7968\u6807\u7B7E"},{value:"3",label:"\u56DE\u6B3E\u6807\u7B7E"},{value:"4",label:"\u5F00\u7968\u6807\u7B7E"}],D=[{label:"\u8BB0\u5F55ID",prop:"id",width:"60px"},{label:"\u8BA2\u5355\u7F16\u53F7",prop:"code",width:"160px"},{label:"\u5F00\u7968\u7F16\u7801",prop:"tag_code",width:"160px"},{label:"\u4E1A\u52A1\u516C\u53F8",prop:"companyName",width:"200px"},{label:"\u4F01\u4E1A\u5BA2\u6237",prop:"customerName",width:"200px"},{label:"\u4E1A\u52A1\u7C7B\u578B",prop:"type",width:"100px",cellRenderer({row:u}){return n(s,null,{default:()=>{var e;return((e=m.find(({value:t})=>String(t)===String(u.type)))==null?void 0:e.label)||"--"}})}},{label:"\u529F\u80FD\u7C7B\u578B",prop:"status",width:"70px",cellRenderer({row:u}){return n(s,null,{default:()=>{var e;return((e=h.find(({value:t})=>String(t)===String(u.status)))==null?void 0:e.label)||"--"}})}},{label:"\u6807\u7B7E\u540D\u79F0",prop:"tag_name"},{label:"\u6807\u7B7E\u91D1\u989D",width:"80px",prop:"tag_fee"},{label:"\u521B\u5EFA\u4EBA",prop:"creater"},{label:"\u64CD\u4F5C\u65F6\u95F4",prop:"addtime"}],x={title:"\u9500\u552E\u8BA2\u5355\u516C\u6D77\u6C60",columns:D,superUserNoAction:!0,apis:{httpList:(u={})=>A({...u,order_type:"2"})}},i={formItems:[{field:"order_timer",type:"date_picker",label:"\u64CD\u4F5C\u65F6\u95F4",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u8D77\u59CB\u65F6\u95F4",endPlaceholder:"\u7ED3\u675F\u65F6\u95F4"}},{field:"customerNo",type:"customer-query-second",placeholder:"\u4F01\u4E1A\u5BA2\u6237"},{field:"type",type:"select",placeholder:"\u4E1A\u52A1\u7C7B\u578B",options:m.slice(2,4)},{field:"status",type:"select",placeholder:"\u529F\u80FD\u7C7B\u578B",options:h},{field:"orderCode",type:"input",placeholder:"\u8BA2\u5355\u7F16\u53F7"},{field:"creater",type:"input",placeholder:"\u521B\u5EFA\u4EBA"}]},y=f({__name:"index",setup(u){const e="sheetOrderRecord",t={pageSearchHook:()=>b((l={})=>{const{order_timer:a,...o}=l;if(a&&a.length===2){const[r,B]=a;o.betweenTime=[d(r).format("YYYY-MM-DD"),d(B).format("YYYY-MM-DD")]}return{result:o,deleteProps:["start","end"]}},void 0,i)};return(l,a)=>{const o=p("PageContainer"),r=p("PageAuth");return _(),g(r,{pageName:e},{default:E(()=>[C(o,{hooks:t,contentConfig:c(x),"search-config":c(i)},null,8,["contentConfig","search-config"])]),_:1})}}});var P=F(y,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/InvoiceSales/sheetOrderRecord/index.vue"]]);export{P as default};