canyin-project/ybcy/views/channel/index/static/js/chunk-213605ac.491d48ef.js
2024-11-01 16:07:54 +08:00

1 line
8.4 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-213605ac"],{"3bbe":function(e,t,r){var a=r("861d");e.exports=function(e){if(!a(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"520c":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("div",{staticClass:"outmain ba_f"},[r("el-form",{staticClass:"demo-form-inline",attrs:{inline:!1,model:e.form,"label-width":"100px"}},[r("div",{staticClass:"flex ba_f"},[r("el-form-item",{staticClass:"mar_t20",attrs:{label:"查询日期:"}},[r("div",{staticClass:"flex-bet"},[r("div",[r("el-radio-group",{on:{change:e.selectType},model:{value:e.form.timeType,callback:function(t){e.$set(e.form,"timeType",t)},expression:"form.timeType"}},[r("el-radio-button",{attrs:{label:"1"}},[e._v("今天")]),r("el-radio-button",{attrs:{label:"2"}},[e._v("近七天")]),r("el-radio-button",{attrs:{label:"3"}},[e._v("近十五天")]),r("el-radio-button",{attrs:{label:"4"}},[e._v("自定义时间")])],1),"4"==e.form.timeType?r("span",{staticClass:"mar_l20"},[r("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",format:"yyyy年MM月dd日"},on:{change:e.selectType},model:{value:e.form.time,callback:function(t){e.$set(e.form,"time",t)},expression:"form.time"}})],1):e._e()],1)])])],1),r("div",{staticClass:"flex ba_f"},[r("el-form-item",{attrs:{label:"选择店铺:"}},[r("div",{},[r("el-select",{attrs:{placeholder:"请选择"},on:{change:e.changeStore},model:{value:e.form.shopValue,callback:function(t){e.$set(e.form,"shopValue",t)},expression:"form.shopValue"}},e._l(e.options,(function(e){return r("el-option",{key:e.id,attrs:{label:e.name+"(ID:"+e.id+")",value:e.id}})})),1)],1)])],1)])],1),r("div",{staticClass:"outmain ba_f mar_t20"},[e._m(0),r("el-table",{staticClass:"tablecenter",staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:""}},[r("el-table-column",{attrs:{prop:"day",label:"日期"}}),r("el-table-column",{attrs:{prop:"count",label:"有效订单数"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticClass:"wei"},[e._v(e._s(t.row.count))])]}}])}),r("el-table-column",{attrs:{prop:"money",label:"营业总额"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticClass:"color-green wei"},[e._v("+¥"+e._s(t.row.money))])]}}])}),r("el-table-column",{attrs:{prop:"serviceMoney",label:"平台服务费"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticClass:"color-red wei"},[e._v("-¥"+e._s(t.row.serviceMoney))])]}}])}),r("el-table-column",{attrs:{prop:"storeActualMoney",label:"预计收入"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticClass:"color-green wei"},[e._v("+¥"+e._s(t.row.storeActualMoney))])]}}])}),r("el-table-column",{attrs:{prop:"cc",label:"操作",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticClass:"flex-center"},[r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.handleDetail(t.row)}}},[e._v("详情")])],1)]}}])})],1),r("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:e.page.total,"page-size":e.page.size,"current-page":e.page.currentPage},on:{"update:currentPage":function(t){return e.$set(e.page,"currentPage",t)},"update:current-page":function(t){return e.$set(e.page,"currentPage",t)},"current-change":e.handleCurrentChange}})],1)])},n=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"shuju_title mar_b20"},[r("div",{staticClass:"shuju_title_text"},[r("span",[e._v("财务对账")])])])}],o=(r("99af"),r("96cf"),r("1da1")),i=r("5530"),s=r("2f62"),c=r("48fb"),l=r("ed08"),u=r("365c"),f={data:function(){return{formInline:{value1:"",value2:"",region:"",time:[],mouth:""},form:{shopValue:"",timeType:"1",time:[new Date,new Date],Mtime:""},options:[],activeName:"1",tableData:[],tableData2:[],page:{total:0,size:20,currentPage:1}}},created:function(){this.form.shopValue=this.market[0].id,this.options=this.market,this.billList()},computed:Object(i["a"])({},Object(s["d"])(["market"])),methods:{handleClick:function(){},handleDetail:function(e){this.$router.push("/financerecordDetail?time=".concat(e.day,"&storeId=").concat(this.form.shopValue))},handelPrinting:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,Object(c["i"])({time:e.day});case 2:a=r.sent,n=a.msg,t.$baseMessage(n,"success");case 5:case"end":return r.stop()}}),r)})))()},handelExport:function(e){var t=u["a"].backendPath;return t+"channel/store-bill/order-export?time="+e.day},handelExport2:function(e){var t=u["a"].backendPath;return t+"channel/store-bill/other-order-export?time="+e.day},billList:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var r,a,n,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r={page:e.page.currentPage,timeType:e.form.timeType,startTime:"4"==e.form.timeType&&e.form.time?Object(l["a"])(e.form.time[0]).substr(0,10):"",endTime:"4"==e.form.timeType&&e.form.time?Object(l["a"])(e.form.time[1]).substr(0,10):"",storeId:e.form.shopValue},t.next=3,Object(c["f"])(r);case 3:a=t.sent,n=a.data,o=a.count,e.tableData=n,e.page.total=o;case 8:case"end":return t.stop()}}),t)})))()},handleCurrentChange:function(e){this.page.currentPage=e,this.billList()},selectType:function(){this.billList()},changeStore:function(){this.billList()},onSubmit2:function(){this.billList()}}},p=f,d=r("2877"),m=Object(d["a"])(p,a,n,!1,null,null,null);t["default"]=m.exports},7156:function(e,t,r){var a=r("861d"),n=r("d2bb");e.exports=function(e,t,r){var o,i;return n&&"function"==typeof(o=t.constructor)&&o!==r&&a(i=o.prototype)&&i!==r.prototype&&n(e,i),e}},a9e3:function(e,t,r){"use strict";var a=r("83ab"),n=r("da84"),o=r("94ca"),i=r("6eeb"),s=r("5135"),c=r("c6b6"),l=r("7156"),u=r("c04e"),f=r("d039"),p=r("7c73"),d=r("241c").f,m=r("06cf").f,b=r("9bf2").f,g=r("58a8").trim,h="Number",v=n[h],_=v.prototype,y=c(p(_))==h,w=function(e){var t,r,a,n,o,i,s,c,l=u(e,!1);if("string"==typeof l&&l.length>2)if(l=g(l),t=l.charCodeAt(0),43===t||45===t){if(r=l.charCodeAt(2),88===r||120===r)return NaN}else if(48===t){switch(l.charCodeAt(1)){case 66:case 98:a=2,n=49;break;case 79:case 111:a=8,n=55;break;default:return+l}for(o=l.slice(2),i=o.length,s=0;s<i;s++)if(c=o.charCodeAt(s),c<48||c>n)return NaN;return parseInt(o,a)}return+l};if(o(h,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var C,S=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof S&&(y?f((function(){_.valueOf.call(r)})):c(r)!=h)?l(new v(w(t)),r,S):w(t)},k=a?d(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;k.length>x;x++)s(v,C=k[x])&&!s(S,C)&&b(S,C,m(v,C));S.prototype=_,_.constructor=S,i(n,h,S)}},bf19:function(e,t,r){"use strict";var a=r("23e7");a({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},d2bb:function(e,t,r){var a=r("825a"),n=r("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(r,[]),t=r instanceof Array}catch(o){}return function(r,o){return a(r),n(o),t?e.call(r,o):r.__proto__=o,r}}():void 0)},ed08:function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return o}));r("a9e3"),r("ac1f"),r("5319"),r("bf19");function a(e){var t=new Date(e).toJSON(),r=new Date(+new Date(t)+288e5).toISOString().replace(/T/g," ").replace(/\.[\d]{3}Z/,"");return r}function n(e){var t=new Date(e),r=t.getFullYear(),a=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,n=t.getDate()<10?"0"+t.getDate():t.getDate(),o=t.getHours()<10?"0"+t.getHours():t.getHours(),i=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),s=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return r+"-"+a+"-"+n+" "+o+":"+i+":"+s}function o(e){var t=new Date(1e3*Number(e)),r=t.getFullYear()+"-",a=(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-",n=(t.getDate()<10?"0"+t.getDate():t.getDate())+" ",o=(t.getHours()<10?"0"+t.getHours():t.getHours())+":",i=(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":",s=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds(),c=r+a+n+o+i+s;return c}}}]);