(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-35be823a"],{"67ad":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",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{size:"small","label-width":"100px",inline:""}},[a("el-form-item",{attrs:{label:"时间选择:"}},[a("el-radio-group",{staticClass:"mr20",attrs:{type:"button",size:"small",clearable:""},on:{change:function(e){return t.selectChange(t.tableFrom.date)}},model:{value:t.tableFrom.date,callback:function(e){t.$set(t.tableFrom,"date",e)},expression:"tableFrom.date"}},t._l(t.fromList.fromTxt,(function(e,i){return a("el-radio-button",{key:i,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),t._v(" "),a("el-date-picker",{staticStyle:{width:"250px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间",clearable:""},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),a("div",[a("el-form-item",{attrs:{label:"状态:"}},[a("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.status,callback:function(e){t.$set(t.tableFrom,"status",e)},expression:"tableFrom.status"}},t._l(t.applyStatus,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"发货点名称:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入发货点名称",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.station_name,callback:function(e){t.$set(t.tableFrom,"station_name",e)},expression:"tableFrom.station_name"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"关键字:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入联系人姓名或电话",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1)],1)],1)],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini"}},[a("el-table-column",{attrs:{label:"序号","min-width":"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.tableFrom.page-1)*t.tableFrom.limit+1))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"merchant.mer_name",label:"商户名称","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"station_name",label:"发货点名称","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"contact_name",label:"联系人姓名","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"phone",label:"联系人电话","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"80",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onDetails(e.row.station_id)}}},[t._v("详情")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),t.dialogVisible?a("el-dialog",{attrs:{title:"发货点详情",visible:t.dialogVisible,width:"500px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[a("div",{staticClass:"description"},[a("div",{staticClass:"acea-row"},[a("div",{staticClass:"description-term"},[t._v("商户名称:"+t._s(t.storeDetail.merchant&&t.storeDetail.merchant.mer_name))]),t._v(" "),a("div",{staticClass:"description-term"},[t._v("发货点名称:"+t._s(t.storeDetail.station_name))]),t._v(" "),a("div",{staticClass:"description-term"},[t._v("联系电话:"+t._s(t.storeDetail.phone))]),t._v(" "),a("div",{staticClass:"description-term"},[t._v("配送品类:"+t._s(t.storeDetail.business&&t.storeDetail.business.label))]),t._v(" "),a("div",{staticClass:"description-term"},[t._v("发货点联系人:"+t._s(t.storeDetail.contact_name))]),t._v(" "),a("div",{staticClass:"description-term"},[t._v("发货点联系电话:"+t._s(t.storeDetail.phone))]),t._v(" "),a("div",{staticClass:"description-term"},[t._v("经纬度:"+t._s(t.storeDetail.lat)+","+t._s(t.storeDetail.lng))]),t._v(" "),a("div",{staticClass:"description-term"},[t._v("详细地址:"+t._s(t.storeDetail.station_address))]),t._v(" "),a("div",{staticClass:"description-term"},[t._v("是否显示:"+t._s(1==t.storeDetail.status?"显示":"不显示"))]),t._v(" "),a("div",{staticClass:"description-term"},[t._v("备注:"+t._s(t.storeDetail.mark||"无"))])])])])]):t._e()],1)},l=[],n=a("a7a4"),s={data:function(){return{dialogVisible:!1,tableData:{data:[],total:0},listLoading:!0,loading:!1,tableFrom:{keyword:"",status:"",date:"",station_name:"",page:1,limit:20},timeVal:[],fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},applyStatus:[{value:1,label:"已开通"},{value:0,label:"未开通"}],storeDetail:{}}},mounted:function(){this.getList(1)},methods:{selectChange:function(t){this.tableFrom.date=t,this.timeVal=[],this.getList(1)},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.getList(1)},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(n["d"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.$message.error(t.message),e.listLoading=!1}))},onDetails:function(t){var e=this;this.dialogVisible=!0,Object(n["c"])(t).then((function(t){e.storeDetail=t.data})).catch((function(t){e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")}}},o=s,r=(a("9f9d"),a("2877")),c=Object(r["a"])(o,i,l,!1,null,"567e0a26",null);e["default"]=c.exports},"8e41":function(t,e,a){},"9f9d":function(t,e,a){"use strict";a("8e41")},a7a4:function(t,e,a){"use strict";a.d(e,"a",(function(){return l})),a.d(e,"j",(function(){return n})),a.d(e,"b",(function(){return s})),a.d(e,"d",(function(){return o})),a.d(e,"c",(function(){return r})),a.d(e,"e",(function(){return c})),a.d(e,"h",(function(){return d})),a.d(e,"f",(function(){return u})),a.d(e,"g",(function(){return m})),a.d(e,"i",(function(){return p}));var i=a("0c6d");function l(t){return i["a"].get("config/".concat(t))}function n(){return i["a"].get("upload/config")}function s(){return i["a"].get("delivery/config/form")}function o(t){return i["a"].get("delivery/station/lst",t)}function r(t){return i["a"].get("delivery/station/detail/".concat(t))}function c(t){return i["a"].post("service/reply/create",t)}function d(t,e){return i["a"].get("service/reply/list",{page:t,limit:e})}function u(t){return i["a"].delete("service/reply/delete/".concat(t))}function m(t,e){return i["a"].post("service/reply/update/".concat(t),e)}function p(t,e){return i["a"].post("service/reply/status/".concat(t),{status:e})}}}]);