徐总多门店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jiuhaoshenghuo/public/view_store/js/chunk-ebae74ea.cfc5caf8.js

1 line
15 KiB

3 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ebae74ea"],{"1ccf8":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Card",{attrs:{bordered:!1,"dis-hover":""}},[n("div",{staticClass:"mb15"},[n("Button",{staticClass:"mr10",attrs:{type:"primary"},on:{click:t.modalToggle}},[t._v("添加桌码")]),n("Button",{attrs:{disabled:!t.QRCodeSelected.length,type:"primary"},on:{click:t.onBatchDownload}},[t._v("批量下载")])],1),n("Table",{attrs:{columns:t.columns,data:t.tableQRCodeList,loading:t.loading},on:{"on-selection-change":t.onSelectionChange},scopedSlots:t._u([{key:"qrcode",fn:function(t){var e=t.row;return[n("viewer",[n("div",{staticClass:"tabBox_img"},[n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.qrcode,expression:"row.qrcode"}]})])])]}},{key:"is_using",fn:function(e){var r=e.row;return[n("i-switch",{attrs:{"true-value":1,"false-value":0,size:"large"},on:{"on-change":function(e){return t.isUsingChange(r.id,e)}},model:{value:r.is_using,callback:function(e){t.$set(r,"is_using",e)},expression:"row.is_using"}},[n("span",{attrs:{slot:"open"},slot:"open"},[t._v("启用")]),n("span",{attrs:{slot:"close"},slot:"close"},[t._v("停用")])])]}},{key:"category",fn:function(e){var r=e.row;return[n("div",[t._v(t._s(r.category.name))])]}},{key:"action",fn:function(e){var r=e.row;return[n("a",{on:{click:function(e){return t.onEdit(r)}}},[t._v("编辑")]),n("Divider",{attrs:{type:"vertical"}}),n("a",{on:{click:function(e){return t.onDownload(r)}}},[t._v("下载")]),n("Divider",{attrs:{type:"vertical"}}),n("a",{on:{click:function(e){return t.onDelete(r.id)}}},[t._v("删除")])]}}])}),n("div",{staticClass:"acea-row row-right page"},[n("Page",{attrs:{total:t.total,current:t.page,"page-size":t.limit,"show-total":""},on:{"on-change":t.onChange}})],1)],1),n("Modal",{attrs:{"mask-closable":!1,title:(t.id?"编辑":"新增")+"桌号",width:"540","class-name":"add-modal-wrap","footer-hide":""},model:{value:t.modal,callback:function(e){t.modal=e},expression:"modal"}},[n("Form",{attrs:{model:t.formValidate,"label-width":96}},[n("FormItem",{attrs:{label:"桌台类型:"}},[n("Select",{model:{value:t.formValidate.cate_id,callback:function(e){t.$set(t.formValidate,"cate_id",e)},expression:"formValidate.cate_id"}},t._l(t.tableCateList,(function(e){return n("Option",{key:e.id,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1),n("FormItem",{attrs:{label:"餐桌座位:"}},[n("Select",{model:{value:t.formValidate.seat_num,callback:function(e){t.$set(t.formValidate,"seat_num",e)},expression:"formValidate.seat_num"}},t._l(t.tableSeatsList,(function(e){return n("Option",{key:e.id,attrs:{value:e.number}},[t._v(t._s(e.number))])})),1)],1),n("FormItem",{attrs:{label:"桌号:"}},[n("div",[t._l(t.formValidate.number,(function(e,r){return n("Tag",{key:r,staticClass:"tag",attrs:{size:"large"}},[t._v(t._s(e))])})),n("InputNumber",{staticClass:"input",attrs:{min:1,precision:0},model:{value:t.number,callback:function(e){t.number=e},expression:"number"}}),n("Button",{staticClass:"btn",on:{click:t.addNumber}},[t._v("添加桌号")])],2),n("div",{staticStyle:{"font-size":"12px",color:"#999999"}},[t._v("输入桌号后,请点击“添加桌号”按钮")])]),n("FormItem",{attrs:{label:"备注:"}},[n("Input",{attrs:{type:"textarea",autosize:{minRows:5,maxRows:5},maxlength:"120","show-word-limit":""},model:{value:t.formValidate.remarks,callback:function(e){t.$set(t.formValidate,"remarks",e)},expression:"formValidate.remarks"}})],1)],1),n("div",{staticClass:"footer"},[n("Button",{staticClass:"mr10",on:{click:t.modalToggle}},[t._v("取消")]),n("Button",{staticClass:"mr10",on:{click:function(e){return t.addTableQRCode(1)}}},[t._v("保存并启用")]),n("Button",{attrs:{type:"primary"},on:{click:function(e){return t.addTableQRCode(0)}}},[t._v("仅保存")])],1)],1)],1)},o=[],a=(n("21a6"),n("90e7"));function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescripto