index.0c550c.js 3.5 KB

1
  1. import{aU as O,ac as v,b4 as m,b6 as E,aA as F,ae as a,_ as C,d as b,r as f,o as x,G as y,D as $,l as A,m as Y,bd 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:n}=t;return m(e,n)}},{label:"\u9500\u552E\u5F00\u7968\u7533\u8BF7\u9A8C\u7968\u6B21\u6570",width:150,cellRenderer({row:t}){const{ocr_success:e,ocr_fail:n}=t;return m(e,n)}},{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(n,r){t.exports=r()})(F,function(){var n="month",r="quarter";return function(s,c){var o=c.prototype;o.quarter=function(u){return this.$utils().u(u)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(u-1))};var D=o.add;o.add=function(u,i){return u=Number(u),this.$utils().p(i)===r?this.add(3*u,n):D.bind(this)(u,i)};var M=o.startOf;o.startOf=function(u,i){var d=this.$utils(),_=!!d.u(i)||i;if(d.p(u)===r){var l=this.quarter()-1;return _?this.month(3*l).startOf(n).startOf("day"):this.month(3*l+2).endOf(n).endOf("day")}return M.bind(this)(u,i)}}})})(p);var N=p.exports;a.extend(N);const R=a().startOf("month").format("YYYY-MM-DD"),S=a().endOf("month").format("YYYY-MM-DD"),h={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=a().startOf("month").format("YYYY-MM-DD"),e=a().endOf("month").format("YYYY-MM-DD");return[t,e]}},{text:"\u4E0A\u6708",value(){const t=a().add(-1,"month").startOf("month").format("YYYY-MM-DD"),e=a().add(-1,"month").endOf("month").format("YYYY-MM-DD");return[t,e]}},{text:"\u5F53\u524D\u5B63\u5EA6",value(){const t=a(),e=t.year(),n=t.quarter(),r=n*3-2,s=n*3,c=a(`${e}-${r}`).startOf("month").format("YYYY-MM-DD"),o=a(`${e}-${s}`).endOf("month").format("YYYY-MM-DD");return[c,o]}},{text:"\u4E0A\u4E00\u5B63\u5EA6",value(){const t=a(),e=t.year(),n=t.quarter();let r="",s="";if(n<2)r=a(`${e-1}-${10}`).startOf("month").format("YYYY-MM-DD"),s=a(`${e-1}-${12}`).endOf("month").format("YYYY-MM-DD");else{const c=(n-1)*3-2,o=(n-1)*3;r=a(`${e}-${c}`).startOf("month").format("YYYY-MM-DD"),s=a(`${e}-${o}`).endOf("month").format("YYYY-MM-DD")}return[r,s]}},{text:"\u672C\u5E74",value(){const t=a().startOf("year").format("YYYY-MM-DD"),e=a().endOf("year").format("YYYY-MM-DD");return[t,e]}}]}}]},T=b({__name:"index",setup(t){const e="inspectTicketBill",n={pageSearchHook:()=>g(void 0,void 0,h)};return(r,s)=>{const c=f("PageContainer"),o=f("PageAuth");return x(),y(o,{pageName:e},{default:$(()=>[A(c,{hooks:n,contentConfig:Y(k),"search-config":Y(h)},null,8,["contentConfig","search-config"])]),_:1})}}});var j=C(T,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/InvoiceSales/inspectTicketBill/index.vue"]]);export{j as default};