1 |
- import{aU as E,ac as F,am as n,aR as s,_ as f,d as B,r as p,o as m,G as D,D as C,l as b,m as i,bd as g,ae as c}from"./index.js";const{VITE_PROXY_DOMAIN_REAL:N,VITE_PROXY_USER_REAL:S,VITE_WORKORDER_REAL:A}=F(),y=A,x=e=>E.request("post",`${y}cxinv/label/list`,{data:e}),_=[{value:"0",label:"\u89E3\u9664"},{value:"1",label:"\u6DFB\u52A0"}],v=[{value:"5",label:"\u4ED8\u6B3E\u6807\u7B7E"},{value:"6",label:"\u56DE\u7968\u6807\u7B7E"}],R=[{label:"\u8BB0\u5F55ID",prop:"id",width:"60px"},{label:"\u91C7\u8D2D\u5355\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:e}){return n(s,null,{default:()=>{var u;return((u=v.find(({value:t})=>String(t)===String(e.type)))==null?void 0:u.label)||"--"}})}},{label:"\u529F\u80FD\u7C7B\u578B",prop:"status",width:"70px",cellRenderer({row:e}){return n(s,null,{default:()=>{var u;return((u=_.find(({value:t})=>String(t)===String(e.status)))==null?void 0:u.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"}],P={columns:R,superUserNoAction:!0,apis:{httpList:(e={})=>x({...e,order_type:"3"})}},w=[{value:"5",label:"\u4ED8\u6B3E\u6807\u7B7E"},{value:"6",label:"\u56DE\u7968\u6807\u7B7E"}],d={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:w},{field:"status",type:"select",placeholder:"\u529F\u80FD\u7C7B\u578B",options:_},{field:"orderCode",type:"input",placeholder:"\u91C7\u8D2D\u5355\u7F16\u53F7"},{field:"creater",type:"input",placeholder:"\u521B\u5EFA\u4EBA"}]},Y=B({__name:"index",setup(e){const u="paymentRecord",t={pageSearchHook:()=>g((l={})=>{const{order_timer:a,...o}=l;if(a&&a.length===2){const[r,h]=a;o.betweenTime=[c(r).format("YYYY-MM-DD"),c(h).format("YYYY-MM-DD")]}return{result:o,deleteProps:["start","end"]}},void 0,d)};return(l,a)=>{const o=p("PageContainer"),r=p("PageAuth");return m(),D(r,{pageName:u},{default:C(()=>[b(o,{hooks:t,contentConfig:i(P),"search-config":i(d)},null,8,["contentConfig","search-config"])]),_:1})}}});var k=f(Y,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/purchase/paymentRecord/index.vue"]]);export{k as default};
|