启程易购后端代码
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.
 
 
 
 
 
 
qicheng_shop_backend/public/system/js/chunk-2fe8856a.8b904ee2.js

1 lines
8.7 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2fe8856a"],{"0b65":function(t,e,a){"use strict";e["a"]={shortcuts:[{text:"今天",onClick:function(t){var e=new Date,a=new Date;a.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),t.$emit("pick",[a,e])}},{text:"昨天",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.$emit("pick",[a,e])}},{text:"最近7天",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-6048e5),t.$emit("pick",[a,e])}},{text:"最近30天",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-2592e6),t.$emit("pick",[a,e])}},{text:"本月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),t.$emit("pick",[a,e])}},{text:"本年",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.setTime(new Date((new Date).getFullYear(),0,1))),t.$emit("pick",[a,e])}}]}},"4eff":function(t,e,a){},"54bf":function(t,e,a){"use strict";a("4eff")},"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("div",{staticClass:"selCard"},[a("el-form",{ref:"searchForm",attrs:{model:t.tableFrom,size:"small","label-width":"95px",inline:""}},[a("el-form-item",{attrs:{label:"时间选择:"}},[a("el-date-picker",{staticStyle:{width:"280px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间","picker-options":t.pickerOptions},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"开通状态:",prop:"status"}},[a("el-select",{staticClass:"selWidth",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:"发货点名称:",prop:"station_name"}},[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"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"关键字:",prop:"keyword"}},[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"}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.getList(1)}}},[t._v("搜索")]),t._v(" "),a("el-button",{attrs:{size:"small"},on:{click:function(e){return t.searchReset()}}},[t._v("重置")])],1)],1)],1),t._v(" "),a("el-card",{staticClass:"mt14"},[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"},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:{background:"","page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, 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)},n=[],s=a("a7a4"),l=a("0b65"),r={data:function(){return{dialogVisible:!1,tableData:{data:[],total:0},listLoading:!0,loading:!1,tableFrom:{keyword:"",status:"",date:"",station_name:"",page:1,limit:20},timeVal:[],pickerOptions:l["a"],applyStatus:[{value:1,label:"已开通"},{value:0,label:"未开通"}],storeDetail:{}}},mounted:function(){this.getList(1)},methods:{searchReset:function(){this.timeVal=[],this.tableFrom.date="",this.$refs.searchForm.resetFields(),this.getList(1)},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(s["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(s["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=r,c=(a("54bf"),a("2877")),u=Object(c["a"])(o,i,n,!1,null,"22c86de4",null);e["default"]=u.exports},a7a4:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"j",(function(){return s})),a.d(e,"b",(function(){return l})),a.d(e,"d",(function(){return r})),a.d(e,"c",(function(){return o})),a.d(e,"e",(function(){return c})),a.d(e,"h",(function(){return u})),a.d(e,"f",(function(){return d})),a.d(e,"g",(function(){return m})),a.d(e,"i",(function(){return p}));var i=a("0c6d");function n(t){return i["a"].get("config/".concat(t))}function s(){return i["a"].get("upload/config")}function l(){return i["a"].get("delivery/config/form")}function r(t){return i["a"].get("delivery/station/lst",t)}function o(t){return i["a"].get("delivery/station/detail/".concat(t))}function c(t){return i["a"].post("service/reply/create",t)}function u(t,e){return i["a"].get("service/reply/list",{page:t,limit:e})}function d(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})}}}]);