(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-39a0a4b0"],{"2d61":function(t,e,i){},"6c13":function(t,e,i){"use strict";i("2d61")},"9a6e":function(t,e,i){"use strict";i.r(e);var o=i("2f62"),n=i("c452"),r=i("73f5");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 s(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function l(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?s(Object(i),!0).forEach((function(e){c(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function c(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!=a(o))return o;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:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var u={name:"storeList",components:{systemStore:n.a},data:function(){return{loading:!1,columns:[{title:"ID",key:"id",width:80},{title:"自提点图片",slot:"image",minWidth:80},{title:"自提点名称",key:"name",minWidth:150},{title:"联系电话",key:"phone",minWidth:90},{title:"自提点地址",key:"address",ellipsis:!0,minWidth:150},{title:"营业时间",key:"day_time",minWidth:120},{title:"状态",slot:"is_show",minWidth:80},{title:"操作",slot:"action",minWidth:120}],dataList:[],total:0,formValidate:{page:1,limit:15},modals:!0,addForm:{name:"",phone:"",status:1,image:"",is_show:1,city:0,day_time:[],detailed_address:"",latitude:"",longitude:""},addressData:[],ruleValidate:{},storeAddress:"",addresData:[],isEdit:!1,mapKey:""}},mounted:function(){this.getList()},computed:l(l({},Object(o.e)("admin/layout",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:96},labelPosition:function(){return this.isMobile?"top":"right"}}),methods:{getList:function(){var t=this;this.loading=!0,Object(r.f)(this.formValidate).then((function(e){t.dataList=e.data.list,t.total=e.data.count,t.loading=!1})).catch((function(e){t.loading=!1}))},getEdit:function(t){this.$refs.storeModal.isTemplate=!0,this.$refs.storeModal.getInfo(t.id)},addStore:function(){this.$refs.storeModal.isTemplate=!0},pageChange:function(t){this.formValidate.page=t,this.getList()},onchangeIsShow:function(t){var e=this;Object(r.d)(t.id,t.is_show).then((function(t){e.$Message.success(t.msg),e.formValidate.page=1,e.getList()})).catch((function(t){e.$Message.error(t.msg)}))},deleteStore:function(t,e,i){var o=this,n={title:e,method:"DELETE",uid:t.uid,url:"store/store/del/".concat(t.id)};this.$modalSure(n).then((function(t){o.$Message.success(t.msg),o.formValidate.page=1,o.getList()})).catch((function(t){o.$Message.error(t.msg)}))}}},d=(i("6c13"),i("2877")),f=Object(d.a)(u,(function(){var t=this,e=t._self._c;return e("div",[e("Card",{staticClass:"ivu-mt tablebox",attrs:{bordered:!1,"dis-hover":"",padding:16}},[e("div",{staticClass:"new_tab"},[e("div",{staticClass:"table"},[e("Button",{attrs:{type:"primary"},on:{click:t.addStore}},[t._v("添加自提点")]),e("Table",{ref:"table",staticClass:"ivu-mt",attrs:{columns:t.columns,data:t.dataList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"image",fn:function(t){var i=t.row;return[e("img",{staticClass:"w-40",attrs:{src:i.image}})]}},{key:"is_show",fn:function(i){var o=i.row;return[e("i-switch",{attrs:{"true-value":1,"false-value":0,size:"large"},on:{"on-change":function(e){return t.onchangeIsShow(o)}},model:{value:o.is_show,callback:function(e){t.$set(o,"is_show",e)},expression:"row.is_show"}},[e("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),e("span",{attrs:{slot:"close"},slot:"close"},[t._v("关闭")])])]}},{key:"action",fn:function(i){var o=i.row,n=i.index;return[e("a",{on:{click:function(e){return t.getEdit(o)}}},[t._v("编辑")]),e("Divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.deleteStore(o,"删除自提点",n)}}},[t._v("删除")])]}}])}),e("div",{staticClass:"acea-row row-right page"},[e("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)])]),e("system-store",{ref:"storeModal"})],1)}),[],!1,null,null,null);e.default=f.exports}}]);