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.
1 line
8.9 KiB
1 line
8.9 KiB
2 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4f218f50"],{"1a85":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("Row",[n("Col",{attrs:{span:"20"}},[n("Form",{ref:"form",attrs:{model:t.formData,"label-width":110}},[n("FormItem",{attrs:{label:"桌码开关:"}},[n("i-switch",{attrs:{"true-value":"1","false-value":"0",size:"large"},model:{value:t.formData.store_code_switch,callback:function(e){t.$set(t.formData,"store_code_switch",e)},expression:"formData.store_code_switch"}},[n("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),n("span",{attrs:{slot:"close"},slot:"close"},[t._v("关闭")])])],1),n("FormItem",{attrs:{label:"结账方式:"}},[n("RadioGroup",{model:{value:t.formData.store_checkout_method,callback:function(e){t.$set(t.formData,"store_checkout_method",e)},expression:"formData.store_checkout_method"}},[n("Radio",{staticClass:"mr20",attrs:{label:"1"}},[t._v("合并结账")]),n("Radio",{attrs:{label:"2"}},[t._v("单独结账")])],1),n("div",{staticStyle:{"font-size":"12px",color:"#999999"}},[t._v("多个人扫同一桌码,合并结账是指多人中的其中一个人结账即可,购物车共用一个,适用于好友聚餐;单独结账是指每个人单独进行结账,购物车都是独立的,适用于快餐店每个人单独点餐")])],1),n("FormItem",{directives:[{name:"show",rawName:"v-show",value:1==t.formData.store_checkout_method,expression:"formData.store_checkout_method == 1"}],attrs:{label:"用餐人数弹窗:"}},[n("i-switch",{attrs:{"true-value":"1","false-value":"0",size:"large"},model:{value:t.formData.store_number_diners_window,callback:function(e){t.$set(t.formData,"store_number_diners_window",e)},expression:"formData.store_number_diners_window"}},[n("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),n("span",{attrs:{slot:"close"},slot:"close"},[t._v("关闭")])])],1),n("FormItem",{attrs:{label:"餐桌座位:"}},[n("Table",{staticClass:"mb15",attrs:{columns:t.columns,data:t.tableSeatsList},scopedSlots:t._u([{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.onDelete(r.id)}}},[t._v("删除")])]}}])}),n("Button",{attrs:{type:"primary"},on:{click:t.modalToggle}},[t._v("添加")])],1)],1)],1)],1),n("div",{staticClass:"footer acea-row row-center-wrapper"},[n("Button",{staticClass:"ml20",attrs:{type:"primary"},on:{click:function(e){return t.handleSubmit("form")}}},[t._v("提交")])],1)],1),n("Modal",{attrs:{"mask-closable":!1,title:"餐桌座位",width:"540","class-name":"add-modal-wrap","footer-hide":""},model:{value:t.modal,callback:function(e){t.modal=e},expression:"modal"}},[n("Form",{attrs:{"label-width":107}},[n("FormItem",{attrs:{label:"餐桌座位数:"}},[n("InputNumber",{attrs:{min:1},model:{value:t.number,callback:function(e){t.number=e},expression:"number"}})],1)],1),n("div",{staticClass:"footer"},[n("Button",{staticClass:"mr10",on:{click:t.modalToggle}},[t._v("取消")]),n("Button",{attrs:{type:"primary"},on:{click:t.addSeats}},[t._v("确认")])],1)],1)],1)},o=[],a=n("90e7"),s={data:function(){return{columns:[{title:"餐桌座位数",key:"number"},{title:"创建时间",key:"add_time"},{title:"操作",slot:"action",align:"center"}],tableSeatsList:[],modal:!1,formData:{store_code_switch:"1",store_checkout_method:"1",store_number_diners_window:"1"},id:0,number:1}},created:function(){this.getConfig(),this.getTableSeatsList()},methods:{getConfig:function(){var t=this;Object(a["m"])("store_table_code").then((function(e){"Array"!==e.data.constructor.name&&(t.formData=e.data)}))},getTableSeatsList:function(){var t=this;Object(a["r"])().then((function(e){t.tableSeatsList=e.data}))},onEdit:function(t){this.modal=!0,this.id=t.id,this.number=t.number},onDelete:function(t){var e=this;this.$modalSure({title:"删除餐桌座位数",url:"/table/del/seats/".concat(t),method:"delete",ids:""}).then((
|