徐总多门店
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-618d5736.8dc357c8.js

1 line
13 KiB

2 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-618d5736"],{"07ede":function(t,e,a){"use strict";var i=a("8025"),r=a.n(i);r.a},4320:function(t,e,a){"use strict";var i=a("940c"),r=a.n(i);r.a},"50fb":function(t,e,a){},8025:function(t,e,a){},"940c":function(t,e,a){},"9c31":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Card",{staticClass:"ivu-mt box",attrs:{bordered:!1,"dis-hover":""}},[a("Form",{ref:"formValidate",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition}},[a("Row",{attrs:{type:"flex",gutter:24}},[a("Col",[a("FormItem",{attrs:{label:"店员搜索:",labelWidth:80}},[a("Input",{attrs:{placeholder:"请输入ID/手机号",clearable:""},model:{value:t.formValidate.keyword,callback:function(e){t.$set(t.formValidate,"keyword",e)},expression:"formValidate.keyword"}},[a("Select",{staticStyle:{width:"80px"},attrs:{slot:"prepend"},slot:"prepend",model:{value:t.formValidate.field_key,callback:function(e){t.$set(t.formValidate,"field_key",e)},expression:"formValidate.field_key"}},[a("Option",{attrs:{value:"all"}},[t._v("全部")]),a("Option",{attrs:{value:"id"}},[t._v("ID")]),a("Option",{attrs:{value:"phone"}},[t._v("手机号")])],1)],1)],1)],1),a("Col",[a("div",{staticClass:"search",on:{click:t.search}},[t._v("搜索")])]),a("Col",[a("div",{staticClass:"reset",on:{click:t.reset}},[t._v("重置")])])],1)],1)],1),a("Card",{staticClass:"ive-mt tablebox",attrs:{bordered:!1,"dis-hover":""}},[a("div",{staticClass:"btnbox"},[a("Button",{directives:[{name:"auth",rawName:"v-auth",value:["staff-staff-create"],expression:"['staff-staff-create']"}],attrs:{type:"primary"},on:{click:t.add}},[t._v("添加店员")])],1),a("div",{staticClass:"table"},[a("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.columns,data:t.orderList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"avatars",fn:function(t){var e=t.row;t.index;return[a("viewer",[a("div",{staticClass:"tabBox_img"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.avatar,expression:"row.avatar"}]})])])]}},{key:"staff_name",fn:function(e){var i=e.row;e.index;return[a("div",[t._v(t._s(i.staff_name)),null!=i.delete_time?a("span",{staticStyle:{color:"#ed4014"}},[t._v(" (已注销)")]):t._e()])]}},{key:"label",fn:function(e){var i=e.row;e.index;return[a("div",[t._v(t._s(i.workMember.name))])]}},{key:"status",fn:function(e){var i=e.row;e.index;return[a("i-switch",{attrs:{value:i.status,"true-value":1,"false-value":0,size:"large"},on:{"on-change":function(e){return t.changeSwitch(i)}},model:{value:i.status,callback:function(e){t.$set(i,"status",e)},expression:"row.status"}},[a("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),a("span",{attrs:{slot:"close"},slot:"close"},[t._v("关闭")])])]}},{key:"action",fn:function(e){var i=e.row,r=e.index;return[1==i.status&&null==i.delete_time?a("a",{on:{click:function(e){return t.goCashier(i)}}},[t._v("进入收银台")]):t._e(),1==i.status&&null==i.delete_time?a("Divider",{attrs:{type:"vertical"}}):t._e(),null==i.delete_time?a("a",{on:{click:function(e){return t.edit(i.id)}}},[t._v("编辑")]):t._e(),null==i.delete_time?a("Divider",{attrs:{type:"vertical"}}):t._e(),i.level>0?a("a",{on:{click:function(e){return t.del(i.id,"删除该店员",r)}}},[t._v("删除")]):t._e(),i.level>0?a("Divider",{attrs:{type:"vertical"}}):t._e(),a("a",{on:{click:function(e){return t.details(i)}}},[t._v("查看详情")])]}}])}),a("div",{staticClass:"acea-row row-right page"},[a("Page",{attrs:{total:t.total,current:t.formValidate.page,"show-elevator":"","show-total":"","page-size":t.formValidate.limit},on:{"on-change":t.pageChange}})],1)],1)]),a("Details",{ref:"userDetails"})],1)},r=[],s=a("2f62"),n=(a("c276"),a("a78e")),o=a.n(n),l=a("b4ea"),c=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{width:"100%"}},[a("Modal",{attrs:{scrollable:"","footer-hide":"",closable:"",title:"店员详情","mas