(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-97917aea"],{"05e4":function(t,e,n){},2725:function(t,e,n){t.exports=n.p+"static/img/tishi1.543c73f7.png"},4778:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"codeedit"},[n("el-dialog",{attrs:{title:t.title,visible:t.dialogFormVisible,width:"600px","close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogFormVisible=e},close:t.close}},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{"element-loading-text":t.elementLoadingText}},[n("el-form",{ref:"form",attrs:{model:t.form,"label-width":"120px"}},[n("el-form-item",{attrs:{label:"活码数量",prop:"num",required:!0}},[n("el-input",{attrs:{autocomplete:"off",placeholder:"请输入活码数量"},model:{value:t.form.num,callback:function(e){t.$set(t.form,"num","string"===typeof e?e.trim():e)},expression:"form.num"}}),n("div",{staticClass:"yb_margin lh16"},[t._v("请输入需要创建的二维码数量,活码生成后请尽量不要删除。")])],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{size:"medium"},on:{click:t.close}},[t._v("取 消")]),n("el-button",{attrs:{size:"medium",type:"primary"},on:{click:t.save}},[t._v("确 定")])],1)],1)])],1)},a=[],i=(n("96cf"),n("1da1")),s=n("9cde"),o={name:"meteriaSave",created:function(){},data:function(){return{form:{id:"",num:""},title:"",dialogFormVisible:!1,listLoading:!1,elementLoadingText:"正在新增数据,请稍等..."}},components:{},methods:{showEdit:function(t){t?(this.title="编辑",this.getSaveTable(t.id)):this.title="新增活码",this.dialogFormVisible=!0},setStoreId:function(t){this.form.storeId=t},close:function(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1},save:function(){var t=this;this.$refs["form"].validate(function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(n){var r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!n){e.next=12;break}return t.listLoading=!0,e.next=4,Object(s["i"])(t.form);case 4:r=e.sent,a=r.msg,t.$baseMessage(a,"success"),t.$emit("fetchData"),t.listLoading=!1,t.close(),e.next=13;break;case 12:return e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}}},c=o,l=(n("950f"),n("2877")),u=Object(l["a"])(c,r,a,!1,null,null,null);e["a"]=u.exports},"494c":function(t,e,n){"use strict";var r=n("e38a"),a=n.n(r);a.a},"4bab":function(t,e,n){"use strict";var r=n("4e06"),a=n.n(r);a.a},"4e06":function(t,e,n){},"517d":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{},[n("el-dialog",{attrs:{title:t.title,visible:t.dialogFormVisible,width:"600px","close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogFormVisible=e},close:t.close}},[n("el-form",{ref:"form",attrs:{model:t.form,"label-width":"120px"}},[n("el-form-item",{attrs:{label:"桌位类型",prop:"tableId",required:!0}},[n("el-select",{attrs:{placeholder:"请选择"},model:{value:t.form.tableId,callback:function(e){t.$set(t.form,"tableId",e)},expression:"form.tableId"}},t._l(t.typeOptions,(function(t){return n("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{size:"medium"},on:{click:t.close}},[t._v("取 消")]),n("el-button",{attrs:{size:"medium",type:"primary"},on:{click:t.save}},[t._v("确 定")])],1)],1)],1)},a=[],i=(n("96cf"),n("1da1")),s=n("9cde"),o={name:"meteriaSave",created:function(){},data:function(){return{form:{id:"",tableId:""},typeOptions:[],title:"",dialogFormVisible:!1}},components:{},methods:{showEdit:function(t){t?(this.title="编辑",this.getTable(),this.form.id=t.id,this.form.type=1,this.getSaveCode(t.id)):this.title="编辑",this.dialogFormVisible=!0},setStoreId:function(t){this.form.storeId=t},getTable:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(s["t"])({storeId:t.form.storeId});case 2:n=e.sent,r=n.data,t.typeOptions=r||[];case 5:case"end":return e.stop()}}),e)})))()},getSaveCode:function(t){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function n(){var r,a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(s["o"])({id:t});case 2:r=n.sent,a=r.data,e.form.tableId=a.data.tableId?a.data.tableId:"";case 5:case"end":return n.stop()}}),n)})))()},close:function(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1},save:function(){var t=this;this.$refs["form"].validate(function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(n){var r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!n){e.next=10;break}return e.next=3,Object(s["G"])(t.form);case 3:r=e.sent,a=r.msg,t.$baseMessage(a,"success"),t.$emit("fetchData"),t.close(),e.next=11;break;case 10:return e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}}},c=o,l=n("2877"),u=Object(l["a"])(c,r,a,!1,null,null,null);e["a"]=u.exports},"7b42":function(t,e,n){t.exports=n.p+"static/img/tishi4.901e4850.png"},"950f":function(t,e,n){"use strict";var r=n("05e4"),a=n.n(r);a.a},"9cde":function(t,e,n){"use strict";n.d(e,"F",(function(){return a})),n.d(e,"n",(function(){return i})),n.d(e,"z",(function(){return s})),n.d(e,"a",(function(){return o})),n.d(e,"x",(function(){return c})),n.d(e,"J",(function(){return l})),n.d(e,"l",(function(){return u})),n.d(e,"H",(function(){return d})),n.d(e,"p",(function(){return f})),n.d(e,"C",(function(){return m})),n.d(e,"K",(function(){return h})),n.d(e,"I",(function(){return p})),n.d(e,"q",(function(){return b})),n.d(e,"v",(function(){return g})),n.d(e,"D",(function(){return v})),n.d(e,"b",(function(){return w})),n.d(e,"e",(function(){return _})),n.d(e,"c",(function(){return j})),n.d(e,"d",(function(){return y})),n.d(e,"G",(function(){return x})),n.d(e,"o",(function(){return O})),n.d(e,"t",(function(){return C})),n.d(e,"i",(function(){return k})),n.d(e,"g",(function(){return I})),n.d(e,"h",(function(){return $})),n.d(e,"j",(function(){return T})),n.d(e,"A",(function(){return R})),n.d(e,"k",(function(){return E})),n.d(e,"s",(function(){return D})),n.d(e,"u",(function(){return S})),n.d(e,"y",(function(){return V})),n.d(e,"B",(function(){return F})),n.d(e,"f",(function(){return L})),n.d(e,"r",(function(){return z})),n.d(e,"m",(function(){return N})),n.d(e,"w",(function(){return P})),n.d(e,"E",(function(){return q}));var r=n("b775");function a(t){return Object(r["a"])({url:"channel/in-store/save-area",method:"post",data:t})}function i(t){return Object(r["a"])({url:"channel/in-store/save-area",method:"get",params:t})}function s(t){return Object(r["a"])({url:"channel/in-store/modify-area",method:"post",data:t})}function o(t){return Object(r["a"])({url:"channel/in-store/area-list",method:"get",params:t})}function c(t){return Object(r["a"])({url:"channel/in-store/goods-type",method:"get",params:t})}function l(t){return Object(r["a"])({url:"channel/in-store/table-list",method:"get",params:t})}function u(t){return Object(r["a"])({url:"channel/in-store/get-area",method:"get",params:t})}function d(t){return Object(r["a"])({url:"channel/in-store/save-table",method:"post",data:t})}function f(t){return Object(r["a"])({url:"channel/in-store/save-table",method:"get",params:t})}function m(t){return Object(r["a"])({url:"channel/in-store/modify-table",method:"post",data:t})}function h(t){return Object(r["a"])({url:"channel/in-store/type-list",method:"get",params:t})}function p(t){return Object(r["a"])({url:"channel/in-store/save-type",method:"post",data:t})}function b(t){return Object(r["a"])({url:"channel/in-store/save-type",method:"get",params:t})}function g(t){return Object(r["a"])({url:"channel/in-store/get-type",method:"get",params:t})}function v(t){return Object(r["a"])({url:"channel/in-store/modify-type",method:"post",data:t})}function w(t){return Object(r["a"])({url:"channel/in-store/batch-table",method:"post",data:t})}function _(t){return Object(r["a"])({url:"channel/in-store/cashier-statistics",method:"get",params:t})}function j(t){return Object(r["a"])({url:"channel/in-store/cashier-order-list",method:"get",params:t})}function y(t){return Object(r["a"])({url:"channel/in-store/cashier-print",method:"post",data:t})}function x(t){return Object(r["a"])({url:"channel/in-store/save-code",method:"post",data:t})}function O(t){return Object(r["a"])({url:"channel/in-store/save-code",method:"get",params:t})}function C(t){return Object(r["a"])({url:"channel/in-store/get-table",method:"get",params:t})}function k(t){return Object(r["a"])({url:"channel/in-store/establish-code",method:"post",data:t})}function I(t){return Object(r["a"])({url:"channel/in-store/code-list",method:"get",params:t})}function $(t){return Object(r["a"])({url:"channel/in-store/del-code",method:"post",data:t})}function T(t){return Object(r["a"])({url:"channel/in-store/fast-order-list",method:"get",params:t})}function R(t){return Object(r["a"])({url:"channel/in-store/modify-fast-order",method:"post",data:t})}function E(t){return Object(r["a"])({url:"channel/screen/fast-screen",method:"post",data:t})}function D(t){return Object(r["a"])({url:"channel/in-store/get-store-code",method:"get",params:t})}function S(t){return Object(r["a"])({url:"channel/in-store/table-order",method:"get",params:t})}function V(t){return Object(r["a"])({url:"channel/in-store/in-store-order-list",method:"get",params:t})}function F(t){return Object(r["a"])({url:"channel/in-store/modify-in-store-order",method:"post",data:t})}function L(t){return Object(r["a"])({url:"channel/in-store/clean-table",method:"post",data:t})}function z(t){return Object(r["a"])({url:"channel/in-store/statistics",method:"get",params:t})}function N(t){return Object(r["a"])({url:"channel/pay-vip/order-statistics",method:"get",params:t})}function P(t){return Object(r["a"])({url:"channel/pay-vip/order-list",method:"get",params:t})}function q(t){return Object(r["a"])({url:"channel/in-store/out-order-list",method:"get",params:t})}},c84e:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"outmain ba_f"},[t._m(0),r("div",{staticClass:"ba_f8 pad_20"},[r("div",{staticClass:"lh25 msgtext fon_12"},[t._v(" 温馨提示:请保证到当前小程序主体已认证并且已完善资料;"),r("br"),t._v(" 1、什么是活码?意思是指生成的二维码所记录的内容是动态的(可改变的),即二维码生成后,扫码所转化还原出现的信息是可以更改的;"),r("br"),t._v(" 2、登录"),r("a",{attrs:{href:"https://mp.weixin.qq.com/",target:"_blank"}},[t._v("微信小程序后台")]),t._v(",依次找到菜单 开发管理-开发设置,启用并添加“扫普通链接二维码打开小程序” 路径 "),r("span",{staticClass:"subjectcolor2 curs mar_l5",on:{click:function(e){return t.tishiImg(1)}}},[t._v("提示")]),t._v(";"),r("br"),t._v(" 3、下载校验文件,上传至网站根目录"),r("span",{staticClass:"subjectcolor2 curs mar_l5",on:{click:function(e){return t.tishiImg(2)}}},[t._v("提示")]),t._v(";"),r("br"),t._v(" 4、设置规则,页面路径:yb_wm/order/other/smjh,具体配置如图"),r("span",{staticClass:"subjectcolor2 curs mar_l5",on:{click:function(e){return t.tishiImg(3)}}},[t._v("提示")]),t._v(";"),r("br"),t._v(" 5、保存后并发布,稍等几分钟之后刷新本页面,即可生成二维码。"),r("span",{staticClass:"subjectcolor2 curs mar_l5",on:{click:function(e){return t.tishiImg(4)}}},[t._v("提示")])])]),r("div",{staticClass:"flex flex-y-top mar_t20"},[r("div",{staticClass:"mar_r40"},[r("el-button",{attrs:{type:"primary",size:"medium"},on:{click:t.handleEdit}},[t._v("新增活码")]),r("el-button",{attrs:{size:"medium",type:"danger",plain:""},on:{click:t.handleDelete}},[t._v("批量删除")])],1)]),r("div",{staticClass:"tabledata mar_t20"},[r("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:""},on:{"selection-change":t.setSelectRows}},[r("el-table-column",{attrs:{type:"selection",width:"55"}}),r("el-table-column",{attrs:{prop:"id",label:"ID",width:"100"}}),r("el-table-column",{attrs:{prop:"typeName",label:"二维码图片",width:"200"},scopedSlots:t._u([{key:"default",fn:function(t){return[r("div",{staticClass:"flex flex-y-top"},[r("el-popover",{attrs:{trigger:"hover",placement:"top"}},[r("p",[r("img",{staticClass:"listImgWidth",attrs:{src:t.row.mediaUrl}})]),r("div",{staticClass:"name-wrapper",attrs:{slot:"reference"},slot:"reference"},[r("div",{staticClass:"imgbox"},[r("img",{staticClass:"goodlogo",attrs:{src:t.row.mediaUrl}})])])])],1)]}}])}),r("el-table-column",{attrs:{prop:"url",label:"链接"}}),r("el-table-column",{attrs:{prop:"tableName",label:"绑定关系",width:"200"}}),r("el-table-column",{attrs:{prop:"createdAt",label:"创建时间",width:"260"}}),r("el-table-column",{attrs:{label:"操作",width:"280"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",{staticClass:"flex"},[r("a",{attrs:{href:t.downloadCode(e.row)}},[r("el-button",{attrs:{type:"text"}},[t._v("下载二维码")])],1),r("el-button",{staticClass:"mar_l10",attrs:{type:"text"},on:{click:function(n){return t.handleEditCode(e.row)}}},[t._v("编辑")]),r("el-button",{attrs:{type:"text"},on:{click:function(n){return t.handleDelete(e.row)}}},[t._v("删除")]),r("el-button",{attrs:{type:"text"},on:{click:function(n){return t.copyText(e.row.url)}}},[t._v("复制链接")])],1)]}}])})],1),r("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}})],1),r("edit",{ref:"edit",on:{fetchData:t.fetchData}}),r("editTable",{ref:"editTable",on:{fetchData:t.fetchData}}),r("el-dialog",{staticClass:"tishidialog",attrs:{title:"操作提示",visible:t.dialogTableVisible4,"close-on-click-modal":!1,width:"1300px"},on:{"update:visible":function(e){t.dialogTableVisible4=e}}},[r("div",{staticClass:"t_c"},[r("div",{directives:[{name:"show",rawName:"v-show",value:"1"==t.tishiType,expression:"tishiType=='1'"}],staticClass:"t_l"},[r("img",{staticClass:"mar_l20",attrs:{src:n("2725")}})]),r("div",{directives:[{name:"show",rawName:"v-show",value:"2"==t.tishiType,expression:"tishiType=='2'"}],staticClass:"t_c"},[r("img",{staticClass:"mar_l20",attrs:{src:n("d425")}})]),r("div",{directives:[{name:"show",rawName:"v-show",value:"3"==t.tishiType,expression:"tishiType=='3'"}],staticClass:"t_c"},[r("img",{staticClass:"mar_l20",attrs:{src:n("ecca")}})]),r("div",{directives:[{name:"show",rawName:"v-show",value:"4"==t.tishiType,expression:"tishiType=='4'"}],staticClass:"t_l"},[r("img",{staticClass:"mar_l20",attrs:{src:n("7b42")}})])])])],1)},a=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"shuju_title mar_b20"},[n("div",{staticClass:"shuju_title_text"},[n("span",[t._v("活码管理")])])])}],i=(n("d81d"),n("96cf"),n("1da1")),s=n("5530"),o=n("9cde"),c=n("4778"),l=n("517d"),u=n("365c"),d=n("2f62"),f={components:{Edit:c["a"],EditTable:l["a"]},computed:Object(s["a"])({},Object(d["d"])(["storeId"])),created:function(){this.fetchData()},data:function(){return{formInline:{keyword:"",typeId:"",type:"",areaId:"",label:""},tishiType:"",list:[],listLoading:!1,selectRows:"",elementLoadingText:"正在加载...",page:{total:0,size:10,currentPage:1},dialogTableVisible4:!1}},methods:{fetchData:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var n,r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["g"])({page:t.page.currentPage,type:1,storeId:t.storeId});case 2:n=e.sent,r=n.data,a=n.count,t.list=r,t.page.total=a,t.listLoading=!1;case 8:case"end":return e.stop()}}),e)})))()},setSelectRows:function(t){this.selectRows=t},handleEdit:function(t){this.$refs["edit"].setStoreId(this.storeId),t.id?this.$refs["edit"].showEdit(t):this.$refs["edit"].showEdit()},handleEditCode:function(t){this.$refs["editTable"].setStoreId(this.storeId),t.id?this.$refs["editTable"].showEdit(t):this.$refs["editTable"].showEdit()},copyText:function(t){var e=t,n=document.createElement("input");n.value=e,document.body.appendChild(n),n.select(),document.execCommand("Copy"),n.className="oInput",n.style.display="none",this.$message({message:"复制成功",type:"success"})},handleDelete:function(t){var e=this;if(t.id)this.$baseConfirm("你确定要删除当前项吗",null,Object(i["a"])(regeneratorRuntime.mark((function n(){var r,a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(o["h"])({id:t.id});case 2:r=n.sent,a=r.msg,e.$baseMessage(a,"success"),e.fetchData();case 6:case"end":return n.stop()}}),n)}))));else{if(!(this.selectRows.length>0))return this.$baseMessage("未选中任何行","error"),!1;var n=this.selectRows.map((function(t){return t.id}));this.$baseConfirm("你确定要删除选中项吗",null,Object(i["a"])(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["h"])({id:n});case 2:r=t.sent,a=r.msg,e.$baseMessage(a,"success"),e.fetchData();case 6:case"end":return t.stop()}}),t)}))))}},downloadCode:function(t){var e=u["a"].backendPath;return e+"channel/in-store/download-code?url="+t.mediaUrl},handleCurrentChange:function(t){this.page.currentPage=t,this.fetchData()},tishiImg:function(t){this.tishiType=t,this.dialogTableVisible4=!0}}},m=f,h=(n("494c"),n("4bab"),n("2877")),p=Object(h["a"])(m,r,a,!1,null,"20bd5f31",null);e["default"]=p.exports},d425:function(t,e,n){t.exports=n.p+"static/img/tishi2.6e6d698b.png"},e38a:function(t,e,n){},ecca:function(t,e,n){t.exports=n.p+"static/img/tishi3.19edf52a.jpg"}}]);