import{ch as O,a5 as v,ct as m,cv as E,at as F,a7 as n,_ as C,d as y,r as f,o as x,A as $,y as A,h as b,i as h,cC as g}from"./index.js";const{VITE_PROXY_USER_REAL:B}=v(),P=`${B}/admin/`,q=t=>O.request("post",`${P}company/OcrTotalList`,{data:{...t}}),w=[{label:"\u8D26\u5355\u65E5\u671F",prop:"daydate",width:100},{label:"\u91C7\u8D2D\u5BF9\u8D26\u56DE\u7968\u9A8C\u7968\u6B21\u6570",width:150,cellRenderer({row:t}){const{pay_success:e,pay_fail:a}=t;return m(e,a)}},{label:"\u9500\u552E\u5F00\u7968\u7533\u8BF7\u9A8C\u7968\u6B21\u6570",width:150,cellRenderer({row:t}){const{ocr_success:e,ocr_fail:a}=t;return m(e,a)}},{label:"\u5408\u8BA1\u9A8C\u7968\u6B21\u6570",prop:"total",width:100},{label:"\u4E1A\u52A1\u516C\u53F8\u7F16\u53F7",prop:"companyNo","min-width":150},{label:"\u4E1A\u52A1\u516C\u53F8\u540D\u79F0",prop:"companyName","min-width":150},{label:"\u5E94\u4ED8\u91D1\u989D",prop:"ocr_price",width:80,cellRenderer({row:t}){return Number(E(t.total,t.ocr_price)).toFixed(2)}},{label:"\u8D26\u5355\u751F\u6210\u65E5\u671F",prop:"addtime","min-width":100}],k={title:"\u9A8C\u7968\u8D26\u5355",columns:w,apis:{httpList:q}};var p={exports:{}};(function(t,e){(function(a,r){t.exports=r()})(F,function(){var a="month",r="quarter";return function(s,c){var u=c.prototype;u.quarter=function(o){return this.$utils().u(o)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(o-1))};var D=u.add;u.add=function(o,i){return o=Number(o),this.$utils().p(i)===r?this.add(3*o,a):D.bind(this)(o,i)};var M=u.startOf;u.startOf=function(o,i){var d=this.$utils(),_=!!d.u(i)||i;if(d.p(o)===r){var l=this.quarter()-1;return _?this.month(3*l).startOf(a).startOf("day"):this.month(3*l+2).endOf(a).endOf("day")}return M.bind(this)(o,i)}}})})(p);var N=p.exports;n.extend(N);const R=n().startOf("month").format("YYYY-MM-DD"),S=n().endOf("month").format("YYYY-MM-DD"),Y={formItems:[{field:"timer",type:"date_picker",span:7,label:" \u8D26\u5355\u65E5\u671F",defaultValue:[R,S],otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u7ED3\u675F\u65F6\u95F4",shortcuts:[{text:"\u672C\u6708",value(){const t=n().startOf("month").format("YYYY-MM-DD"),e=n().endOf("month").format("YYYY-MM-DD");return[t,e]}},{text:"\u4E0A\u6708",value(){const t=n().add(-1,"month").startOf("month").format("YYYY-MM-DD"),e=n().add(-1,"month").endOf("month").format("YYYY-MM-DD");return[t,e]}},{text:"\u5F53\u524D\u5B63\u5EA6",value(){const t=n(),e=t.year(),a=t.quarter(),r=a*3-2,s=a*3,c=n(`${e}-${r}`).startOf("month").format("YYYY-MM-DD"),u=n(`${e}-${s}`).endOf("month").format("YYYY-MM-DD");return[c,u]}},{text:"\u4E0A\u4E00\u5B63\u5EA6",value(){const t=n(),e=t.year(),a=t.quarter();let r="",s="";if(a<2)r=n(`${e-1}-${10}`).startOf("month").format("YYYY-MM-DD"),s=n(`${e-1}-${12}`).endOf("month").format("YYYY-MM-DD");else{const c=(a-1)*3-2,u=(a-1)*3;r=n(`${e}-${c}`).startOf("month").format("YYYY-MM-DD"),s=n(`${e}-${u}`).endOf("month").format("YYYY-MM-DD")}return[r,s]}},{text:"\u672C\u5E74",value(){const t=n().startOf("year").format("YYYY-MM-DD"),e=n().endOf("year").format("YYYY-MM-DD");return[t,e]}}]}}]},T="inspectTicketBill",j=y({__name:"index",setup(t){const e={pageSearchHook:()=>g(void 0,void 0,Y)};return(a,r)=>{const s=f("PageContainer"),c=f("PageAuth");return x(),$(c,{pageName:T},{default:A(()=>[b(s,{hooks:e,contentConfig:h(k),"search-config":h(Y)},null,8,["contentConfig","search-config"])]),_:1})}}});var L=C(j,[["__file","D:/work/jiesuan/settle-vue3/src/views/InvoiceSales/inspectTicketBill/index.vue"]]);export{L as default};
