(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-59c90d30"],{"1d67":function(t,e,a){},"369d":function(t,e,a){"use strict";var s=a("1d67"),r=a.n(s);r.a},"3bbe":function(t,e,a){var s=a("861d");t.exports=function(t){if(!s(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"5fbc":function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{},[a("el-dialog",{attrs:{title:t.title,visible:t.dialogFormVisible,width:"55%","close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogFormVisible=e},close:t.close}},[a("div",{},[a("el-form",{ref:"form",attrs:{model:t.form,"label-width":"120px"}},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",{staticClass:"bflex-4"},[a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("订单信息")])])]),a("div",{staticClass:"formBox"},[a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[t._v("订单类型:")]),a("div",[a("span",[a("el-tag",{attrs:{size:"mini",type:"success"}},[t._v("酒水寄存")])],1)])]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[t._v("订单号:"+t._s(t.orderDetail.outTradeNo))]),a("div")]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[t._v("订单渠道:")]),a("div",["1"==t.orderDetail.origin?a("span",[a("el-tag",{attrs:{size:"mini",type:"success"}},[t._v("微信小程序")])],1):t._e(),"2"==t.orderDetail.origin?a("span",[a("el-tag",{attrs:{size:"mini",type:"success"}},[t._v("微信公众号")])],1):t._e(),"3"==t.orderDetail.origin?a("span",[a("el-tag",{attrs:{size:"mini",type:"success"}},[t._v("支付宝小程序")])],1):t._e(),"4"==t.orderDetail.origin?a("span",[a("el-tag",{attrs:{size:"mini",type:"success"}},[t._v("百度小程序")])],1):t._e(),"5"==t.orderDetail.origin?a("span",[a("el-tag",{attrs:{size:"mini",type:"success"}},[t._v("H5")])],1):t._e(),"6"==t.orderDetail.origin?a("span",[a("el-tag",{attrs:{size:"mini",type:"success"}},[t._v("PC")])],1):t._e(),"7"==t.orderDetail.origin?a("span",[a("el-tag",{attrs:{size:"mini",type:"success"}},[t._v("头条小程序")])],1):t._e()])]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[t._v("用户信息:")]),a("div",[t._v(t._s(t.orderDetail.nickName)+"(UID:"+t._s(t.orderDetail.userId)+")")])]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[t._v("寄存人信息:"+t._s(t.orderDetail.userName)+"/"+t._s(t.orderDetail.userTel))]),a("div")]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[t._v("订单状态:")]),a("div",{staticClass:"flex flex-center"},[a("div",["1"==t.orderDetail.state?a("div",[a("el-tag",{attrs:{size:"mini"}},[t._v("待确认")])],1):t._e(),"2"==t.orderDetail.state?a("div",[a("el-tag",{attrs:{size:"mini",type:"success"}},[t._v("已存取")])],1):t._e(),"3"==t.orderDetail.state?a("div",[a("el-tag",{attrs:{size:"mini",type:"info"}},[t._v("已拒绝")])],1):t._e(),"4"==t.orderDetail.state?a("div",[a("el-tag",{attrs:{size:"mini",type:"danger"}},[t._v("已失效")])],1):t._e()])])])])]),a("div",{staticClass:"bflex-6 mar_l20"},[a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("寄存详情")])])]),a("div",{staticClass:"formBox"},[a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[t._v("酒品名称:")]),a("div",{},[t._v(t._s(t.orderDetail.name))])]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[t._v("寄存数量:")]),a("div",{},[t._v(t._s(t.orderDetail.totalNum))])]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[t._v(" 剩余数量:")]),1==t.type?a("div",{},[t._v(t._s(+t.orderDetail.totalNum-+t.orderDetail.takeNum)+"(取酒数量:"+t._s(t.orderDetail.takeNum)+")")]):a("div",{},[t._v(t._s(t.orderDetail.surplusNum)+"(取酒数量:"+t._s(t.orderDetail.takeNum)+")")])]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[t._v("存酒时间:")]),a("div",[t._v(t._s(t.orderDetail.createdAt))])]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[t._v("到期时间:")]),a("div",{staticClass:"color-red"},[t._v(t._s(t.orderDetail.endAt))])]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[t._v("订单备注:"+t._s(t.orderDetail.note||"无"))]),a("div")])])])])]),a("div",{staticClass:"mar_t20"},[a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("取酒记录")])])]),a("el-scrollbar",[a("div",{staticClass:"zdh"},[1==t.type?a("el-timeline",{staticClass:"mar_t20"},[t._l(t.qjjl,(function(e){return[a("el-timeline-item",{attrs:{timestamp:e.createdAt,placement:"top"}},[a("el-card",{class:{classDisabld:"3"==e.state}},[a("h4",[t._v("酒品名称:"+t._s(e.name))]),a("h4",[t._v("取酒数量: "),a("span",{staticClass:"wei color-red"},[t._v(" "+t._s(e.takeNum)+" "),a("span",{staticClass:"color_9 fnormal mar_l10"},["1"==e.state?a("span",[a("el-tag",{attrs:{size:"mini"}},[t._v("待确认")])],1):t._e(),"2"==e.state?a("span",[a("el-tag",{attrs:{size:"mini",type:"success"}},[t._v("已取出")])],1):t._e(),"3"==e.state?a("span",[a("el-tag",{attrs:{size:"mini",type:"info"}},[t._v("已拒绝")])],1):t._e(),"4"==e.state?a("span",[a("el-tag",{attrs:{size:"mini",type:"danger"}},[t._v("已失效")])],1):t._e()])])]),a("p",[t._v(t._s(e.userName)+" 于 "+t._s(e.createdAt)+" 取酒")])])],1)]}))],2):a("el-timeline",{staticClass:"mar_t20"},[t._l(t.qjjl2,(function(e){return[a("el-timeline-item",{attrs:{timestamp:e.createdAt,placement:"top"}},[a("el-card",{class:{classDisabld:"3"==e.state}},[a("h4",[t._v("酒品名称:"+t._s(e.name))]),a("h4",[t._v("取酒数量: "),a("span",{staticClass:"wei color-red"},[t._v(t._s(e.takeNum)+" "),a("span",{staticClass:"color_9 fnormal mar_l10"},["1"==e.state?a("span",[a("el-tag",{attrs:{size:"mini"}},[t._v("待确认")])],1):t._e(),"2"==e.state?a("span",[a("el-tag",{attrs:{size:"mini",type:"success"}},[t._v("已取出")])],1):t._e(),"3"==e.state?a("span",[a("el-tag",{attrs:{size:"mini",type:"info"}},[t._v("已拒绝")])],1):t._e(),"4"==e.state?a("span",[a("el-tag",{attrs:{size:"mini",type:"danger"}},[t._v("已失效")])],1):t._e()])])]),a("p",[t._v(t._s(e.userName)+" 于 "+t._s(e.createdAt)+" 取酒")])])],1)]}))],2)],1)])],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"medium"},on:{click:t.close}},[t._v("取 消")]),a("el-button",{attrs:{size:"medium",type:"primary"},on:{click:t.save}},[t._v("确 定")])],1)])],1)},r=[],i=(a("96cf"),a("1da1")),n=a("7cb7"),o={name:"goodlistedit",created:function(){},data:function(){return{form:{id:"",sort:"1",name:"",min:"",max:"",minute:""},orderDetail:{},title:"",type:1,dialogFormVisible:!1,qjjl:[],qjjl2:[]}},components:{},methods:{showEdit:function(t,e){var a=this;return Object(i["a"])(regeneratorRuntime.mark((function s(){var r,i;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(t){s.next=4;break}a.title="添加",s.next=13;break;case 4:return a.title="取酒记录",a.orderDetail=Object.assign({},t),a.qjjl2.push(t),a.type=e,s.next=10,Object(n["h"])({storageId:t.id,type:2});case 10:r=s.sent,i=r.data,a.qjjl=i||[];case 13:a.dialogFormVisible=!0;case 14:case"end":return s.stop()}}),s)})))()},close:function(){this.dialogFormVisible=!1,this.qjjl2=[]},setStoreId:function(t){this.form.storeId=t},save:function(){this.dialogFormVisible=!1,this.qjjl2=[]}}},l=o,c=(a("369d"),a("2877")),d=Object(c["a"])(l,s,r,!1,null,null,null);e["a"]=d.exports},"6aa8":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"outmain ba_f"},[a("div",{staticClass:"ba_f"},[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"存酒记录",name:"storestorage"}}),a("el-tab-pane",{attrs:{label:"取酒记录",name:"storestoragerecord"}}),a("el-tab-pane",{attrs:{label:"酒品名称",name:"storestoragebrand"}}),a("el-tab-pane",{attrs:{label:"存酒设置",name:"storestorageset"}})],1)],1),t._m(0),a("div",{},[a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!1,model:t.form,"label-width":"130px"}},[a("div",[a("el-form-item",{attrs:{label:"手机号/姓名/昵称"}},[a("el-input",{attrs:{size:"medium",placeholder:"请输入联系人/电话"},on:{input:t.selectType},model:{value:t.form.keyword,callback:function(e){t.$set(t.form,"keyword",e)},expression:"form.keyword"}})],1)],1),a("div",{staticClass:"flex ba_f"},[a("el-form-item",{attrs:{label:"查询日期:"}},[a("div",{staticClass:"flex-bet"},[a("div",[a("el-radio-group",{on:{change:t.selectType},model:{value:t.form.timeType,callback:function(e){t.$set(t.form,"timeType",e)},expression:"form.timeType"}},[a("el-radio-button",{attrs:{label:"1"}},[t._v("今天")]),a("el-radio-button",{attrs:{label:"2"}},[t._v("近七天")]),a("el-radio-button",{attrs:{label:"3"}},[t._v("近十五天")]),a("el-radio-button",{attrs:{label:"4"}},[t._v("自定义时间")])],1),"4"==t.form.timeType?a("span",{staticClass:"mar_l20"},[a("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",format:"yyyy年MM月dd日"},on:{change:t.selectType},model:{value:t.form.time,callback:function(e){t.$set(t.form,"time",e)},expression:"form.time"}})],1):t._e()],1)])])],1)])],1),a("div",{staticClass:"tabledata mar_t20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.list,"element-loading-text":t.elementLoadingText,stripe:""}},[a("el-table-column",{attrs:{type:"selection"}}),a("el-table-column",{attrs:{label:"存酒ID"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex-col t_l"},[a("div",[t._v(t._s(e.row.storageId))])])]}}])}),a("el-table-column",{attrs:{label:"订单信息",width:"400"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex-col t_l"},[a("div",[t._v("取酒时间:"),a("span",{},[t._v(t._s(e.row.createdAt))])]),a("div",[t._v("订单号:"+t._s(e.row.outTradeNo))])])]}}])}),a("el-table-column",{attrs:{label:"取酒数量",width:"400"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"flex-col t_l"},[a("div",[t._v("酒品名称:"+t._s(e.row.name))]),a("div",[t._v("取酒数量:"),a("span",{staticClass:"color-red"},[t._v(t._s(e.row.takeNum))])])])])]}}])}),a("el-table-column",{attrs:{label:"寄存剩余",width:"300"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"flex-col t_l"},[a("div",[t._v("寄存剩余:"+t._s(e.row.surplusNum))]),a("div",[t._v("到期时间:"),a("span",{staticClass:"color-red"},[t._v(t._s(e.row.endAt))])])])])]}}])}),a("el-table-column",{attrs:{prop:"state",label:"状态",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.row.state,expression:"scope.row.state==1"}],attrs:{type:"text"},on:{click:function(a){return t.handleEdit(e.row.id,"adopt")}}},[t._v("确认订单")]),a("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.row.state,expression:"scope.row.state==1"}],attrs:{type:"text"},on:{click:function(a){return t.handleEdit(e.row.id,"reject")}}},[t._v("拒绝订单")])],1),a("div",["1"==e.row.state?a("div",[a("el-tag",{attrs:{size:"mini"}},[t._v("待审核")])],1):t._e(),"2"==e.row.state?a("div",[a("el-tag",{attrs:{size:"mini",type:"success"}},[t._v("已取出")])],1):t._e(),"3"==e.row.state?a("div",[a("el-tag",{attrs:{size:"mini",type:"info"}},[t._v("已拒绝")])],1):t._e(),"4"==e.row.state?a("div",[a("el-tag",{attrs:{size:"mini",type:"danger"}},[t._v("已失效")])],1):t._e()])]}}])}),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.state>1?a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.handleEdit2(e.row)}}},[t._v("取酒记录")]):t._e()]}}])})],1),a("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:t.page.total,"page-size":t.page.pagesize,"current-page":t.page.currentPage},on:{"update:currentPage":function(e){return t.$set(t.page,"currentPage",e)},"update:current-page":function(e){return t.$set(t.page,"currentPage",e)},"current-change":t.handleCurrentChange}}),a("edit",{ref:"edit",on:{fetchData:t.fetchData}})],1)])},r=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"shuju_title mar_b20 mar_t20"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("取酒记录")])])])}],i=(a("96cf"),a("1da1")),n=a("5530"),o=a("7cb7"),l=a("5fbc"),c=a("2f62"),d=a("ed08"),u={components:{Edit:l["a"]},created:function(){this.fetchData(),this.$route.query.id&&(this.id=this.$route.query.id,this.fetchData())},computed:Object(n["a"])({},Object(c["d"])(["storeId"])),data:function(){return{activeName:"storestoragerecord",form:{keyword:"",timeType:"1",time:[new Date,new Date]},list:[],listLoading:!1,selectRows:"",elementLoadingText:"正在加载...",page:{total:0,size:10,currentPage:1}}},methods:{handleClick:function(){"storestorage"==this.activeName?this.$router.push({path:"storestorage"}):"storestoragerecord"==this.activeName?this.$router.push({path:"storestoragerecord"}):"storestoragebrand"==this.activeName?this.$router.push({path:"storestoragebrand"}):"storestorageset"==this.activeName&&this.$router.push({path:"storestorageset"})},fetchData:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a,s,r,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.listLoading=!0,a={page:t.page.currentPage,keyword:t.form.keyword,timeType:t.form.timeType,type:2,startTime:"4"==t.form.timeType&&t.form.time?Object(d["a"])(t.form.time[0]).substr(0,10):"",endTime:"4"==t.form.timeType&&t.form.time?Object(d["a"])(t.form.time[1]).substr(0,10):"",storeId:t.storeId,storageId:t.id},e.next=4,Object(o["h"])(a);case 4:s=e.sent,r=s.data,i=s.count,t.list=r,t.page.total=i,t.listLoading=!1;case 10:case"end":return e.stop()}}),e)})))()},handleCurrentChange:function(t){this.page.currentPage=t,this.fetchData()},handleEdit2:function(t){t.id?this.$refs["edit"].showEdit(t,2):this.$refs["edit"].showEdit()},handleEdit:function(t,e){var a=this;return Object(i["a"])(regeneratorRuntime.mark((function s(){var r,n;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if("adopt"!=e){s.next=9;break}return s.next=3,Object(o["Ob"])({id:t,type:e,storeId:a.storeId});case 3:r=s.sent,n=r.msg,a.$baseMessage(n,"success"),a.fetchData(),s.next=10;break;case 9:"reject"==e?a.$baseConfirm("您确定取消吗",null,Object(i["a"])(regeneratorRuntime.mark((function s(){var r,i;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.next=2,Object(o["Ob"])({id:t,type:e,storeId:a.storeId});case 2:r=s.sent,i=r.msg,a.$baseMessage(i,"success"),a.fetchData();case 6:case"end":return s.stop()}}),s)})))):(a.$baseMessage("敬请期待","success"),a.fetchData());case 10:case"end":return s.stop()}}),s)})))()},selectType:function(){this.fetchData()},handletj:function(){this.$router.push({path:"deliverytongji"})}}},_=u,f=a("2877"),p=Object(f["a"])(_,s,r,!1,null,null,null);e["default"]=p.exports},7156:function(t,e,a){var s=a("861d"),r=a("d2bb");t.exports=function(t,e,a){var i,n;return r&&"function"==typeof(i=e.constructor)&&i!==a&&s(n=i.prototype)&&n!==a.prototype&&r(t,n),t}},a9e3:function(t,e,a){"use strict";var s=a("83ab"),r=a("da84"),i=a("94ca"),n=a("6eeb"),o=a("5135"),l=a("c6b6"),c=a("7156"),d=a("c04e"),u=a("d039"),_=a("7c73"),f=a("241c").f,p=a("06cf").f,v=a("9bf2").f,m=a("58a8").trim,g="Number",b=r[g],h=b.prototype,y=l(_(h))==g,C=function(t){var e,a,s,r,i,n,o,l,c=d(t,!1);if("string"==typeof c&&c.length>2)if(c=m(c),e=c.charCodeAt(0),43===e||45===e){if(a=c.charCodeAt(2),88===a||120===a)return NaN}else if(48===e){switch(c.charCodeAt(1)){case 66:case 98:s=2,r=49;break;case 79:case 111:s=8,r=55;break;default:return+c}for(i=c.slice(2),n=i.length,o=0;or)return NaN;return parseInt(i,s)}return+c};if(i(g,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var w,x=function(t){var e=arguments.length<1?0:t,a=this;return a instanceof x&&(y?u((function(){h.valueOf.call(a)})):l(a)!=g)?c(new b(C(e)),a,x):C(e)},D=s?f(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),N=0;D.length>N;N++)o(b,w=D[N])&&!o(x,w)&&v(x,w,p(b,w));x.prototype=h,h.constructor=x,n(r,g,x)}},bf19:function(t,e,a){"use strict";var s=a("23e7");s({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},d2bb:function(t,e,a){var s=a("825a"),r=a("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,a={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(a,[]),e=a instanceof Array}catch(i){}return function(a,i){return s(a),r(i),e?t.call(a,i):a.__proto__=i,a}}():void 0)},ed08:function(t,e,a){"use strict";a.d(e,"a",(function(){return s})),a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return i}));a("a9e3"),a("ac1f"),a("5319"),a("bf19");function s(t){var e=new Date(t).toJSON(),a=new Date(+new Date(e)+288e5).toISOString().replace(/T/g," ").replace(/\.[\d]{3}Z/,"");return a}function r(t){var e=new Date(t),a=e.getFullYear(),s=e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,r=e.getDate()<10?"0"+e.getDate():e.getDate(),i=e.getHours()<10?"0"+e.getHours():e.getHours(),n=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes(),o=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return a+"-"+s+"-"+r+" "+i+":"+n+":"+o}function i(t){var e=new Date(1e3*Number(t)),a=e.getFullYear()+"-",s=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-",r=(e.getDate()<10?"0"+e.getDate():e.getDate())+" ",i=(e.getHours()<10?"0"+e.getHours():e.getHours())+":",n=(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes())+":",o=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds(),l=a+s+r+i+n+o;return l}}}]);