import{af as l,ce as p,_ as f,d as h,r as n,o as m,A as C,y as _,h as g,i as s,cC as D,a7 as c}from"./index.js";import{c as E}from"./index.904472d8.js";const d=[{value:"0",label:"\u89E3\u9664"},{value:"1",label:"\u6DFB\u52A0"}],F=[{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"}],b=[{label:"\u8BB0\u5F55ID",prop:"id",width:"60px"},{label:"\u5BF9\u8D26\u7F16\u53F7",prop:"code",width:"160px"},{label:"\u5356\u51FA\u65B9\u516C\u53F8",prop:"supplierName",width:"200px"},{label:"\u4E70\u5165\u65B9\u516C\u53F8",prop:"companyName",width:"200px"},{label:"\u4E1A\u52A1\u7C7B\u578B",prop:"type",width:"100px",cellRenderer({row:u}){return l(p,null,{default:()=>{var e;return((e=F.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 l(p,null,{default:()=>{var e;return((e=d.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"}],y={title:"\u9500\u552E\u8BA2\u5355\u516C\u6D77\u6C60",columns:b,superUserNoAction:!0,apis:{httpList:(u={})=>E({...u,order_type:"1"})}},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:"supplierNo",type:"supplier-query",placeholder:"\u5356\u51FA\u65B9\u516C\u53F8"},{field:"type",type:"select",placeholder:"\u4E1A\u52A1\u7C7B\u578B",options:F.slice(0,2)},{field:"status",type:"select",placeholder:"\u529F\u80FD\u7C7B\u578B",options:d},{field:"orderCode",type:"input",placeholder:"\u5BF9\u8D26\u7F16\u53F7"},{field:"creater",type:"input",placeholder:"\u521B\u5EFA\u4EBA"}]},A="orderRecordRecord",x=h({__name:"index",setup(u){const e={pageSearchHook:()=>D((t={})=>{const{order_timer:r,...a}=t;if(r&&r.length===2){const[o,B]=r;a.betweenTime=[c(o).format("YYYY-MM-DD"),c(B).format("YYYY-MM-DD")]}return{result:a,deleteProps:["start","end"]}},void 0,i)};return(t,r)=>{const a=n("PageContainer"),o=n("PageAuth");return m(),C(o,{pageName:A},{default:_(()=>[g(a,{hooks:e,contentConfig:s(y),"search-config":s(i)},null,8,["contentConfig","search-config"])]),_:1})}}});var P=f(x,[["__file","D:/work/jiesuan/settle-vue3/src/views/purchase/orderRecordRecord/index.vue"]]);export{P as default};
