(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1314d079"],{"76f1":function(t,e,n){"use strict";n("dd54")},b43f:function(t,e,n){"use strict";n.r(e);var r=n("2f62"),i=n("f8b7");function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c={name:"index",computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},Object(r.e)("admin/layout",["isMobile"])),data:function(){return{columns1:[{title:"ID",key:"id",width:80},{title:"微信名称",key:"nickname",minWidth:120},{title:"头像",slot:"avatar",minWidth:60},{title:"名称",key:"wx_name",minWidth:120},{title:"手机号码",key:"phone",minWidth:120},{title:"是否显示",slot:"status",minWidth:120},{title:"添加时间",key:"add_time",minWidth:120},{title:"操作",slot:"action",fixed:"right",minWidth:150}],data1:[],total:0,tableOptions:{page:1,limit:15},loading:!1}},created:function(){this.getOrderDeliveryList()},methods:{getOrderDeliveryList:function(){var t=this;this.loading=!0,Object(i.b)(this.tableOptions).then((function(e){t.data1=e.data.list,t.total=e.data.count,t.loading=!1})).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},add:function(){var t=this;this.$modalForm(Object(i.v)()).then((function(){return t.getOrderDeliveryList()}))},edit:function(t){var e=this;this.$modalForm(Object(i.w)(t.id)).then((function(){return e.getOrderDeliveryList()}))},del:function(t,e,n){var r=this,i={title:e,num:n,url:"/order/delivery/del/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(i).then((function(t){r.$Message.success(t.msg),r.data1.splice(n,1),r.data1.length||(r.tableOptions.page=1==r.tableOptions.page?1:r.tableOptions.page-1),r.getOrderDeliveryList()})).catch((function(t){r.$Message.error(t.msg)}))},onchangeIsShow:function(t){var e=this;Object(i.y)(t).then((function(t){e.$Message.success(t.msg)})).catch((function(t){e.$Message.error(t.msg)}))},pageChange:function(t){this.tableOptions.page=t,this.getOrderDeliveryList()}}},l=(n("76f1"),n("2877")),u=Object(l.a)(c,(function(){var t=this,e=t._self._c;return e("div",[e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("Row",{staticClass:"mb20",attrs:{type:"flex"}},[e("Col",{attrs:{span:"24"}},[e("Button",{directives:[{name:"auth",rawName:"v-auth",value:["setting-delivery_service-add"],expression:"['setting-delivery_service-add']"}],staticClass:"mr10",attrs:{type:"primary"},on:{click:t.add}},[t._v("添加配送员")])],1)],1),e("Table",{attrs:{columns:t.columns1,data:t.data1,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"avatar",fn:function(t){var n=t.row;return[e("viewer",[e("div",{staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:n.avatar,expression:"row.avatar"}]})])])]}},{key:"status",fn:function(n){var r=n.row;return[e("i-switch",{attrs:{value:r.status,"true-value":1,"false-value":0,size:"large"},on:{"on-change":function(e){return t.onchangeIsShow(r)}},model:{value:r.status,callback:function(e){t.$set(r,"status",e)},expression:"row.status"}},[e("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),e("span",{attrs:{slot:"close"},slot:"close"},[t._v("关闭")])])]}},{key:"add_time",fn:function(n){var r=n.row;return[e("span",[t._v(" "+t._s(t._f("formatDate")(r.add_time)))])]}},{key:"action",fn:function(n){var r=n.row,i=n.index;return[e("a",{on:{click:function(e){return t.edit(r)}}},[t._v("编辑")]),e("Divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.del(r,"删除配送员",i)}}},[t._v("删除")])]}}])}),e("div",{staticClass:"acea-row row-right page"},[e("Page",{attrs:{total:t.total,"show-elevator":"","show-total":"","page-size":t.tableOptions.limit},on:{"on-change":t.pageChange}})],1)],1)],1)}),[],!1,null,"5cb25924",null);e.default=u.exports},dd54:function(t,e,n){}}]);