canyin-project/ybcy/views/channel/index/static/js/chunk-5ae6cfca.26d6e8ac.js
2024-11-01 16:07:54 +08:00

1 line
18 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5ae6cfca"],{"3bbe":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3e7d":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"outmain ba_f"},[e._m(0),n("el-tabs",{staticClass:"mar_b20",on:{"tab-click":e.handleTabClick},model:{value:e.orderType,callback:function(t){e.orderType=t},expression:"orderType"}},[n("el-tab-pane",{attrs:{label:"订单管理",name:"1"}}),n("el-tab-pane",{attrs:{label:"待完成订单",name:"2"}}),n("el-tab-pane",{attrs:{label:"已完成订单",name:"3"}})],1),n("div",{staticClass:"pad_b_30 orderSeatch"},[n("el-form",{staticClass:"demo-form-inline",attrs:{inline:!1,model:e.formInline,"label-width":"100px"}},[void 0,n("el-form-item",{staticClass:"mar_t20",attrs:{label:"订单来源:"}},[n("el-radio-group",{on:{change:e.selectType},model:{value:e.formInline.origin,callback:function(t){e.$set(e.formInline,"origin",t)},expression:"formInline.origin"}},[n("el-radio-button",{attrs:{label:"0"}},[e._v("不限")]),n("el-radio-button",{attrs:{label:"1"}},[e._v("微信小程序")]),n("el-radio-button",{attrs:{label:"2"}},[e._v("支付宝小程序")]),n("el-radio-button",{attrs:{label:"3"}},[e._v("收银台")])],1)],1),n("el-form-item",{staticClass:"mar_t20",attrs:{label:"支付方式:"}},[n("el-radio-group",{on:{change:e.selectType},model:{value:e.formInline.payMode,callback:function(t){e.$set(e.formInline,"payMode",t)},expression:"formInline.payMode"}},[n("el-radio-button",{attrs:{label:"0"}},[e._v("不限")]),n("el-radio-button",{attrs:{label:"1"}},[e._v("微信支付")]),n("el-radio-button",{attrs:{label:"2"}},[e._v("支付宝支付")]),n("el-radio-button",{attrs:{label:"5"}},[e._v("余额支付")]),n("el-radio-button",{attrs:{label:"6"}},[e._v("现金支付")]),n("el-radio-button",{attrs:{label:"7"}},[e._v("线下支付")])],1)],1),n("el-form-item",{staticClass:"mar_t20",attrs:{label:"下单日期:"}},[n("div",{staticClass:"flex-bet"},[n("div",[n("el-radio-group",{on:{change:e.selectType},model:{value:e.formInline.timeType,callback:function(t){e.$set(e.formInline,"timeType",t)},expression:"formInline.timeType"}},[n("el-radio-button",{attrs:{label:"0"}},[e._v("全部")]),n("el-radio-button",{attrs:{label:"1"}},[e._v("今天")]),n("el-radio-button",{attrs:{label:"2"}},[e._v("近七天")]),n("el-radio-button",{attrs:{label:"3"}},[e._v("近十五天")]),n("el-radio-button",{attrs:{label:"4"}},[e._v("具体日期")])],1),"4"==e.formInline.timeType?n("span",{staticClass:"mar_l20"},[n("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",format:"yyyy年MM月dd日"},on:{change:e.selectType},model:{value:e.formInline.time,callback:function(t){e.$set(e.formInline,"time",t)},expression:"formInline.time"}})],1):e._e()],1)])]),n("el-form-item",{staticClass:"mar_t20",attrs:{label:"模糊搜索:","label-position":"top"}},[n("div",{staticClass:"flex"},[n("div",[n("el-input",{staticStyle:{width:"500px"},attrs:{type:"text",placeholder:"请输入订单相关的订单号/手机号/订单姓名/昵称"},on:{input:e.selectType},model:{value:e.formInline.keyword,callback:function(t){e.$set(e.formInline,"keyword",t)},expression:"formInline.keyword"}})],1),n("div",{staticClass:"pad_r_20 mar_l20"},[n("a",{staticClass:"mar_l10",attrs:{href:e.handelExport()}},[n("el-button",{attrs:{size:"medium",type:"primary"}},[e._v("导出订单")])],1)])])])],2)],1),n("div",{staticClass:"tabledata mar_t20"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:e.list,"element-loading-text":e.elementLoadingText,stripe:"","row-key":"id"},on:{"selection-change":e.setSelectRows}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),n("el-table-column",{attrs:{prop:"takeNo",label:"序号"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"flex"},[e._v("#"+e._s(t.row.takeNo))])]}}])}),n("el-table-column",{attrs:{prop:"outTradeNo",label:"订单号"}}),n("el-table-column",{attrs:{prop:"regionName",label:"桌台区域"}}),n("el-table-column",{attrs:{prop:"eatType",label:"就餐模式"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"flex"},["1"==t.row.eatType?n("div",[e._v("先结账后用餐")]):e._e(),"2"==t.row.eatType?n("div",[e._v("先用餐后结账")]):e._e()])]}}])}),n("el-table-column",{attrs:{label:"用餐人数/桌位费"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{},[n("div",[e._v(e._s(t.row.people))]),n("div",[e._v(e._s(t.row.tablewareMoney))])])]}}])}),n("el-table-column",{attrs:{label:"开台时间/就餐时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{},[n("div",[e._v(e._s(t.row.createdAt))]),t.row.completeAt&&t.row.payAt?n("div",[e._v(" "+e._s(e.timeStamp(t.row.completeAt-t.row.receiptAt))+" ")]):e._e()])]}}])}),n("el-table-column",{attrs:{label:"订单来源"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"flex"},["1"==t.row.origin?n("span",[e._v("微信小程序")]):e._e(),"2"==t.row.origin?n("span",[e._v("微信公众号")]):e._e(),"3"==t.row.origin?n("span",[e._v("支付宝小程序")]):e._e(),"4"==t.row.origin?n("span",[e._v("百度小程序")]):e._e(),"5"==t.row.origin?n("span",[e._v("收银台下单")]):e._e()])]}}])}),n("el-table-column",{attrs:{label:"实付金额/支付方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{},[n("div",[e._v(e._s(t.row.money))]),n("div",["1"==t.row.payMode?n("span",[e._v("微信支付")]):e._e(),"2"==t.row.payMode?n("span",[e._v("支付宝支付")]):e._e(),"3"==t.row.payMode?n("span",[e._v("百度支付")]):e._e(),"4"==t.row.payMode?n("span",[e._v("公众号支付")]):e._e(),"5"==t.row.payMode?n("span",[e._v("余额支付")]):e._e(),"6"==t.row.payMode?n("span",[e._v("线下支付(现金支付)")]):e._e(),"7"==t.row.payMode?n("span",[e._v("线下支付(pos机支付)")]):e._e(),"8"==t.row.payMode?n("span",[e._v("线下支付(自有微信支付)")]):e._e(),"9"==t.row.payMode?n("span",[e._v("线下支付(自有支付宝支付)")]):e._e()])])]}}])}),n("el-table-column",{attrs:{label:"预计收入",prop:"storeActualMoney"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"color-green wei"},[e._v(e._s(t.row.storeActualMoney))])]}}])}),n("el-table-column",{attrs:{label:"订单状态"},scopedSlots:e._u([{key:"default",fn:function(t){return["3"==t.row.state&&"1"==t.row.eatType||"3"==t.row.state&&"2"==t.row.eatType?n("div",{staticClass:"color-green"},[n("el-tag",{attrs:{type:"success",size:"mini"}},[e._v("已完成")])],1):e._e(),"2"==t.row.state&&"1"==t.row.eatType||"2"==t.row.state&&"2"==t.row.eatType?n("div",{staticClass:"color-orange"},[n("el-tag",{attrs:{type:"warning",size:"mini"}},[e._v("就餐中")])],1):e._e(),"1"==t.row.state&&"1"==t.row.eatType?n("div",{staticClass:"color-red"},[n("el-tag",{attrs:{type:"dager",size:"mini"}},[e._v("待付款")])],1):e._e(),"1"==t.row.state&&"2"==t.row.eatType?n("div",{staticClass:"color-red"},[n("el-tag",{attrs:{type:"dager",size:"mini"}},[e._v("待接单")])],1):e._e(),"4"==t.row.state?n("div",{staticClass:"color_9"},[n("el-tag",{attrs:{type:"info",size:"mini"}},[e._v("已取消")])],1):e._e(),"5"==t.row.state?n("div",{staticClass:"color_9"},[n("el-tag",{attrs:{type:"info",size:"mini"}},[e._v("已退款")])],1):e._e()]}}])})],1),n("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:e.page.total,"page-size":e.page.pagesize,"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)],1)},a=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"shuju_title mar_b20"},[n("div",{staticClass:"shuju_title_text"},[n("span",[e._v("堂食订单")])])])}],o=(n("96cf"),n("1da1")),i=n("5530"),s=n("9cde"),l=n("ed08"),c=n("365c"),u=n("2f62"),d={computed:Object(i["a"])({},Object(u["d"])(["storeId"])),created:function(){this.init()},data:function(){return{orderType:"3",formInline:{time:[new Date,new Date],timeType:"1",state:"0",origin:"0",keyword:"",payMode:"0",orderType:"1"},list:[],listLoading:!1,selectRows:"",elementLoadingText:"正在加载...",page:{total:0,size:10,currentPage:1}}},watch:{keyword:function(){console.log(1),this.init()}},methods:{init:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var n,r,a,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n={page:e.page.currentPage,timeType:e.formInline.timeType,startTime:"4"==e.formInline.timeType&&e.formInline.time?Object(l["a"])(e.formInline.time[0]):"",endTime:"4"==e.formInline.timeType&&e.formInline.time?Object(l["a"])(e.formInline.time[1]):"",state:2,origin:e.formInline.origin,keyword:e.formInline.keyword,orderType:e.formInline.orderType,payMode:e.formInline.payMode,storeId:e.storeId},t.next=3,Object(s["E"])(n);case 3:r=t.sent,a=r.data,o=r.count,e.list=a,e.page.total=o,e.bus.$emit("loading",!1);case 9:case"end":return t.stop()}}),t)})))()},handleTabClick:function(){"1"==this.orderType?this.$router.push("/storeinstoreorder?orderType=1"):"2"==this.orderType?this.$router.push("/storeinstoredwcorderquery?orderType=2"):"3"==this.orderType&&this.$router.push("/storeinstoreorderquery?orderType=3")},setSelectRows:function(e){this.selectRows=e},handleCurrentChange:function(e){this.page.currentPage=e,this.init()},selectType:function(){this.init()},handelExport:function(){var e=this.formInline.time?Object(l["a"])(this.formInline.time[0]).substring(0,10):"",t=this.formInline.time?Object(l["a"])(this.formInline.time[1]).substring(0,10):"",n=c["a"].backendPath;return n+"channel/in-store/out-order-list?export=1&page="+this.page.currentPage+"&storeId="+this.storeId+"&state=2&orderType="+this.formInline.orderType+"&timeType="+this.formInline.timeType+"&keyword="+this.formInline.keyword+"&origin="+this.formInline.origin+"&payMode="+this.formInline.payMode+"&startTime="+e+"&endTime="+t},timeStamp:function(e){var t=parseInt(e)+"秒";if(parseInt(e)>60){var n=parseInt(e)%60,r=parseInt(e/60);if(t=r+"分"+n+"秒",r>60){r=parseInt(e/60)%60;var a=parseInt(parseInt(e/60)/60);if(t=a+"小时"+r+"分"+n+"秒",a>24){a=parseInt(parseInt(e/60)/60)%24;var o=parseInt(parseInt(parseInt(e/60)/60)/24);t=o+"天"+a+"小时"+r+"分"+n+"秒"}}}return t}}},p=d,f=(n("db3d"),n("2877")),m=Object(f["a"])(p,r,a,!1,null,"694f0a3c",null);t["default"]=m.exports},7156:function(e,t,n){var r=n("861d"),a=n("d2bb");e.exports=function(e,t,n){var o,i;return a&&"function"==typeof(o=t.constructor)&&o!==n&&r(i=o.prototype)&&i!==n.prototype&&a(e,i),e}},"9cde":function(e,t,n){"use strict";n.d(t,"F",(function(){return a})),n.d(t,"n",(function(){return o})),n.d(t,"z",(function(){return i})),n.d(t,"a",(function(){return s})),n.d(t,"x",(function(){return l})),n.d(t,"J",(function(){return c})),n.d(t,"l",(function(){return u})),n.d(t,"H",(function(){return d})),n.d(t,"p",(function(){return p})),n.d(t,"C",(function(){return f})),n.d(t,"K",(function(){return m})),n.d(t,"I",(function(){return b})),n.d(t,"q",(function(){return h})),n.d(t,"v",(function(){return g})),n.d(t,"D",(function(){return _})),n.d(t,"b",(function(){return y})),n.d(t,"e",(function(){return v})),n.d(t,"c",(function(){return w})),n.d(t,"d",(function(){return I})),n.d(t,"G",(function(){return T})),n.d(t,"o",(function(){return O})),n.d(t,"t",(function(){return j})),n.d(t,"i",(function(){return k})),n.d(t,"g",(function(){return C})),n.d(t,"h",(function(){return M})),n.d(t,"j",(function(){return S})),n.d(t,"A",(function(){return x})),n.d(t,"k",(function(){return N})),n.d(t,"s",(function(){return A})),n.d(t,"u",(function(){return E})),n.d(t,"y",(function(){return D})),n.d(t,"B",(function(){return P})),n.d(t,"f",(function(){return $})),n.d(t,"r",(function(){return z})),n.d(t,"m",(function(){return L})),n.d(t,"w",(function(){return R})),n.d(t,"E",(function(){return F}));var r=n("b775");function a(e){return Object(r["a"])({url:"channel/in-store/save-area",method:"post",data:e})}function o(e){return Object(r["a"])({url:"channel/in-store/save-area",method:"get",params:e})}function i(e){return Object(r["a"])({url:"channel/in-store/modify-area",method:"post",data:e})}function s(e){return Object(r["a"])({url:"channel/in-store/area-list",method:"get",params:e})}function l(e){return Object(r["a"])({url:"channel/in-store/goods-type",method:"get",params:e})}function c(e){return Object(r["a"])({url:"channel/in-store/table-list",method:"get",params:e})}function u(e){return Object(r["a"])({url:"channel/in-store/get-area",method:"get",params:e})}function d(e){return Object(r["a"])({url:"channel/in-store/save-table",method:"post",data:e})}function p(e){return Object(r["a"])({url:"channel/in-store/save-table",method:"get",params:e})}function f(e){return Object(r["a"])({url:"channel/in-store/modify-table",method:"post",data:e})}function m(e){return Object(r["a"])({url:"channel/in-store/type-list",method:"get",params:e})}function b(e){return Object(r["a"])({url:"channel/in-store/save-type",method:"post",data:e})}function h(e){return Object(r["a"])({url:"channel/in-store/save-type",method:"get",params:e})}function g(e){return Object(r["a"])({url:"channel/in-store/get-type",method:"get",params:e})}function _(e){return Object(r["a"])({url:"channel/in-store/modify-type",method:"post",data:e})}function y(e){return Object(r["a"])({url:"channel/in-store/batch-table",method:"post",data:e})}function v(e){return Object(r["a"])({url:"channel/in-store/cashier-statistics",method:"get",params:e})}function w(e){return Object(r["a"])({url:"channel/in-store/cashier-order-list",method:"get",params:e})}function I(e){return Object(r["a"])({url:"channel/in-store/cashier-print",method:"post",data:e})}function T(e){return Object(r["a"])({url:"channel/in-store/save-code",method:"post",data:e})}function O(e){return Object(r["a"])({url:"channel/in-store/save-code",method:"get",params:e})}function j(e){return Object(r["a"])({url:"channel/in-store/get-table",method:"get",params:e})}function k(e){return Object(r["a"])({url:"channel/in-store/establish-code",method:"post",data:e})}function C(e){return Object(r["a"])({url:"channel/in-store/code-list",method:"get",params:e})}function M(e){return Object(r["a"])({url:"channel/in-store/del-code",method:"post",data:e})}function S(e){return Object(r["a"])({url:"channel/in-store/fast-order-list",method:"get",params:e})}function x(e){return Object(r["a"])({url:"channel/in-store/modify-fast-order",method:"post",data:e})}function N(e){return Object(r["a"])({url:"channel/screen/fast-screen",method:"post",data:e})}function A(e){return Object(r["a"])({url:"channel/in-store/get-store-code",method:"get",params:e})}function E(e){return Object(r["a"])({url:"channel/in-store/table-order",method:"get",params:e})}function D(e){return Object(r["a"])({url:"channel/in-store/in-store-order-list",method:"get",params:e})}function P(e){return Object(r["a"])({url:"channel/in-store/modify-in-store-order",method:"post",data:e})}function $(e){return Object(r["a"])({url:"channel/in-store/clean-table",method:"post",data:e})}function z(e){return Object(r["a"])({url:"channel/in-store/statistics",method:"get",params:e})}function L(e){return Object(r["a"])({url:"channel/pay-vip/order-statistics",method:"get",params:e})}function R(e){return Object(r["a"])({url:"channel/pay-vip/order-list",method:"get",params:e})}function F(e){return Object(r["a"])({url:"channel/in-store/out-order-list",method:"get",params:e})}},a85b:function(e,t,n){},a9e3:function(e,t,n){"use strict";var r=n("83ab"),a=n("da84"),o=n("94ca"),i=n("6eeb"),s=n("5135"),l=n("c6b6"),c=n("7156"),u=n("c04e"),d=n("d039"),p=n("7c73"),f=n("241c").f,m=n("06cf").f,b=n("9bf2").f,h=n("58a8").trim,g="Number",_=a[g],y=_.prototype,v=l(p(y))==g,w=function(e){var t,n,r,a,o,i,s,l,c=u(e,!1);if("string"==typeof c&&c.length>2)if(c=h(c),t=c.charCodeAt(0),43===t||45===t){if(n=c.charCodeAt(2),88===n||120===n)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:r=2,a=49;break;case 79:case 111:r=8,a=55;break;default:return+c}for(o=c.slice(2),i=o.length,s=0;s<i;s++)if(l=o.charCodeAt(s),l<48||l>a)return NaN;return parseInt(o,r)}return+c};if(o(g,!_(" 0o1")||!_("0b1")||_("+0x1"))){for(var I,T=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof T&&(v?d((function(){y.valueOf.call(n)})):l(n)!=g)?c(new _(w(t)),n,T):w(t)},O=r?f(_):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),j=0;O.length>j;j++)s(_,I=O[j])&&!s(T,I)&&b(T,I,m(_,I));T.prototype=y,y.constructor=T,i(a,g,T)}},bf19:function(e,t,n){"use strict";var r=n("23e7");r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},d2bb:function(e,t,n){var r=n("825a"),a=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(o){}return function(n,o){return r(n),a(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},db3d:function(e,t,n){"use strict";var r=n("a85b"),a=n.n(r);a.a},ed08:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o}));n("a9e3"),n("ac1f"),n("5319"),n("bf19");function r(e){var t=new Date(e).toJSON(),n=new Date(+new Date(t)+288e5).toISOString().replace(/T/g," ").replace(/\.[\d]{3}Z/,"");return n}function a(e){var t=new Date(e),n=t.getFullYear(),r=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,a=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 n+"-"+r+"-"+a+" "+o+":"+i+":"+s}function o(e){var t=new Date(1e3*Number(e)),n=t.getFullYear()+"-",r=(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-",a=(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(),l=n+r+a+o+i+s;return l}}}]);