(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-42cca9a8"],{a410:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"app-container"},[i("el-form",{directives:[{name:"show",rawName:"v-show",value:t.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:t.queryParams,inline:!0,"label-width":"75px"}},[i("el-form-item",{attrs:{label:"关键字",prop:"keyword"}},[i("el-input",{staticStyle:{width:"220px"},attrs:{placeholder:"请输入店铺名称或店铺码",clearable:"",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery(e)}},model:{value:t.queryParams.keyword,callback:function(e){t.$set(t.queryParams,"keyword",e)},expression:"queryParams.keyword"}})],1),i("el-form-item",[i("el-button",{attrs:{type:"cyan",icon:"el-icon-search",size:"mini"},on:{click:t.handleQuery}},[t._v("搜索")]),i("el-button",{attrs:{type:"default",icon:"el-icon-refresh",size:"mini"},on:{click:t.resetQuery}},[t._v("重置")])],1)],1),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{data:t.tableData.list,"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"}},on:{"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{type:"expand",fixed:"left",label:"",width:"40"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-row",[i("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left",inline:""}},[i("el-form-item",{attrs:{label:"编号:"}},[i("span",[t._v(t._s(e.row.id))])]),i("el-form-item",{attrs:{label:"店铺名称:"}},[i("span",[t._v(t._s(e.row.businessName))])]),i("el-form-item",{attrs:{label:"店铺简称:"}},[i("span",[t._v(t._s(e.row.businessShortName))])]),i("el-form-item",{attrs:{label:"店铺类型:"}},[i("span",[t._v(t._s(e.row.shopType))])]),i("el-form-item",{attrs:{label:"店主:"}},[i("span",[t._v(t._s(e.row.shopKeeper))])]),i("el-form-item",{attrs:{label:"店铺电话:"}},[i("span",[t._v(t._s(e.row.phone))])]),i("el-form-item",{attrs:{label:"经度:"}},[i("span",[t._v(t._s(e.row.longitude))])]),i("el-form-item",{attrs:{label:"纬度:"}},[i("span",[t._v(t._s(e.row.latitude))])]),i("el-form-item",{attrs:{label:"服务时间:"}},[i("span",[t._v(t._s(e.row.startTime)+" 至 "+t._s(e.row.endTime))])]),i("el-form-item",{attrs:{label:"店铺编码:"}},[i("span",[t._v(t._s(e.row.shopCode))])]),i("el-form-item",{attrs:{label:"派单类型:"}},[1==e.row.orderAllot?i("span",[t._v("人工")]):t._e(),2==e.row.orderAllot?i("span",[t._v("自动")]):t._e()]),i("el-form-item",{attrs:{label:"创建时间"}},[i("span",[t._v(t._s(t.parseTime(e.row.createTime,"{y}-{m}-{d} {h}:{i}")))])])],1),i("el-form",{staticClass:"demo-table-expand2",attrs:{"label-position":"left",inline:""}},[i("el-form-item",{attrs:{label:"地址"}},[i("span",[t._v(t._s(e.row.address))])])],1)],1),null!=e.row.businessLicenceImage&&""!=e.row.businessLicenceImage?i("el-col",{staticStyle:{"margin-right":"10px","margin-left":"50px"},attrs:{span:t.elColSpan}},[i("el-card",{attrs:{"body-style":{padding:"0px"}}},[i("div",{staticClass:"img-title"},[i("span",[t._v("营业执照")])]),i("div",{staticStyle:{display:"flex","justify-content":"center"}},[i("el-image",{staticStyle:{"border-radius":"6px","max-width":"200px","max-height":"200px"},attrs:{src:e.row.businessLicenceImage,"preview-src-list":[e.row.businessLicenceImage],fit:"cover"}})],1)])],1):t._e(),null!=e.row.shopImg&&""!=e.row.shopImg?i("el-col",{staticStyle:{"margin-right":"10px"},attrs:{span:t.elColSpan}},[i("el-card",{attrs:{"body-style":{padding:"0px"}}},[i("div",{staticClass:"img-title"},[i("span",[t._v("店铺封面")])]),i("div",{staticStyle:{display:"flex","justify-content":"center"}},[i("el-image",{staticStyle:{"border-radius":"6px","max-width":"200px","max-height":"200px"},attrs:{src:e.row.shopImg,"preview-src-list":[e.row.shopImg],fit:"cover"}})],1)])],1):t._e(),null!=e.row.detailsImg&&""!=e.row.detailsImg?i("span",[i("el-row",{staticStyle:{"margin-top":"10px"}},t._l(e.row.detailsImg.split(","),(function(e,a){return i("el-col",{key:a,staticStyle:{"margin-right":"10px"},attrs:{span:t.elColSpan}},[i("el-card",{attrs:{"body-style":{padding:"0px"}}},[i("div",{staticClass:"img-title"},[i("span",[t._v("详情图"+t._s(a+1))])]),i("div",{staticStyle:{display:"flex","justify-content":"center"}},[i("el-image",{staticStyle:{"border-radius":"6px","max-width":"200px","max-height":"200px"},attrs:{src:e,"preview-src-list":[e],fit:"cover"}})],1)])],1)})),1)],1):t._e()]}}])}),i("el-table-column",{attrs:{prop:"businessName",label:"店铺名称","min-width":"120","show-overflow-tooltip":""}}),i("el-table-column",{attrs:{prop:"businessShortName",label:"店铺简称","min-width":"80","show-overflow-tooltip":""}}),i("el-table-column",{attrs:{prop:"shopKeeper",label:"店主","min-width":"80"}}),i("el-table-column",{attrs:{prop:"phone",label:"店铺电话",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",{staticStyle:{color:"#4f9dec"}},[t._v(" "+t._s(e.row.phone?e.row.phone:"未绑定")+" ")])]}}])}),i("el-table-column",{attrs:{prop:"shopCode",label:"店铺码","min-width":"120"}}),i("el-table-column",{attrs:{prop:"orderAllot",label:"派单类型","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[1===e.row.orderAllot?i("span",[t._v("人工")]):t._e(),2===e.row.orderAllot?i("span",[t._v("自动")]):t._e()]}}])}),i("el-table-column",{attrs:{prop:"startTime",label:"服务时间","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.startTime)+" 至 "+t._s(e.row.endTime)+" ")]}}])}),i("el-table-column",{attrs:{prop:"createTime",label:"入驻时间","min-width":"140"}}),i("el-table-column",{attrs:{fixed:"right",label:"操作",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(i){return t.showEditDialog(e.row)}}},[t._v("编辑 ")]),i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(i){return t.handleDelete(e.row)}}},[t._v("删除 ")])]}}])})],1),i("el-dialog",{attrs:{title:t.dialogTitle,visible:t.dialogVisible,width:t.dialogWidth,center:""},on:{close:t.onClose,"update:visible":function(e){t.dialogVisible=e}}},[i("el-form",{attrs:{model:t.dialogForm}},[i("el-row",{attrs:{type:"flex",justify:"start"}},[i("el-form-item",{attrs:{label:"店铺封面:","label-width":t.formLabelWidth}},[i("upload-image",{attrs:{mode:"attachment",boxSize:{width:"100px",height:"100px"},multiple:!1},model:{value:t.dialogForm.shopImg,callback:function(e){t.$set(t.dialogForm,"shopImg",e)},expression:"dialogForm.shopImg"}})],1)],1),i("el-row",[i("el-form-item",{attrs:{label:"店铺详情图:","label-width":t.formLabelWidth}},[i("upload-image",{attrs:{mode:"attachment",boxSize:{width:"100px",height:"100px"},multiple:!0},model:{value:t.otherImageList,callback:function(e){t.otherImageList=e},expression:"otherImageList"}})],1)],1),i("el-row",{attrs:{type:"flex",justify:"start"}},[i("el-form-item",{attrs:{label:"店铺名称:","label-width":t.formLabelWidth}},[i("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入店铺名称"},model:{value:t.dialogForm.businessName,callback:function(e){t.$set(t.dialogForm,"businessName",e)},expression:"dialogForm.businessName"}})],1),i("el-form-item",{attrs:{label:"店铺简称:","label-width":t.formLabelWidth}},[i("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入店铺简称"},model:{value:t.dialogForm.businessShortName,callback:function(e){t.$set(t.dialogForm,"businessShortName",e)},expression:"dialogForm.businessShortName"}})],1),i("el-form-item",{attrs:{label:"店铺电话:","label-width":t.formLabelWidth}},[i("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入店铺电话"},model:{value:t.dialogForm.phone,callback:function(e){t.$set(t.dialogForm,"phone",e)},expression:"dialogForm.phone"}})],1)],1),i("el-row",{attrs:{type:"flex",justify:"start"}},[i("el-form-item",{attrs:{label:"店铺类型:","label-width":t.formLabelWidth}},[i("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入店铺类型"},model:{value:t.dialogForm.shopType,callback:function(e){t.$set(t.dialogForm,"shopType",e)},expression:"dialogForm.shopType"}})],1),i("el-form-item",{attrs:{label:"起始时间:","label-width":t.formLabelWidth}},[i("el-time-select",{staticStyle:{width:"190px"},attrs:{placeholder:"选择起始时间","picker-options":{start:"08:30",step:"00:30",end:"13:00"}},model:{value:t.dialogForm.startTime,callback:function(e){t.$set(t.dialogForm,"startTime",e)},expression:"dialogForm.startTime"}})],1),i("el-form-item",{attrs:{label:"结束时间:","label-width":t.formLabelWidth}},[i("el-time-select",{staticStyle:{width:"190px"},attrs:{placeholder:"选择结束时间","picker-options":{start:"14:00",step:"00:30",end:"22:00"}},model:{value:t.dialogForm.endTime,callback:function(e){t.$set(t.dialogForm,"endTime",e)},expression:"dialogForm.endTime"}})],1)],1),i("el-row",{attrs:{type:"flex",justify:"start"}},[i("el-form-item",{attrs:{label:"派单类型:","label-width":t.formLabelWidth}},[i("el-radio-group",{model:{value:t.dialogForm.orderAllot,callback:function(e){t.$set(t.dialogForm,"orderAllot",e)},expression:"dialogForm.orderAllot"}},[i("el-radio",{attrs:{label:1}},[t._v("人工")]),i("el-radio",{attrs:{label:2}},[t._v("自动")])],1)],1)],1)],1),i("el-form",{attrs:{model:t.dialogForm}},[i("el-row",[i("el-form-item",{attrs:{label:"店铺地址:","label-width":t.formLabelWidth}},[i("el-input",{staticStyle:{width:"85%"},attrs:{type:"textarea",rows:2,placeholder:"请输入内容"},model:{value:t.dialogForm.address,callback:function(e){t.$set(t.dialogForm,"address",e)},expression:"dialogForm.address"}})],1)],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:t.hideDialog}},[t._v("取 消")]),t.dialogEditVisible?i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.handleEditSubmit()}}},[t._v("确 定")]):t._e(),t.dialogCreateVisible?i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.handleCreateSubmit()}}},[t._v("确 定")]):t._e()],1)],1),i("pagination",{directives:[{name:"show",rawName:"v-show",value:t.tableData.total,expression:"tableData.total"}],attrs:{total:t.tableData.total,page:t.queryParams.pageNum,limit:t.queryParams.pageSize},on:{"update:page":function(e){return t.$set(t.queryParams,"pageNum",e)},"update:limit":function(e){return t.$set(t.queryParams,"pageSize",e)},pagination:t.getList}})],1)},l=[],o=(i("d81d"),i("a434"),i("d3b7"),i("25f0"),i("0643"),i("a573"),{name:"ShopList",data:function(){return{loading:!1,ids:[],single:!0,multiple:!0,showSearch:!0,queryParams:{pageNum:1,pageSize:10,keyword:""},tableData:{list:[],total:0},dialogVisible:!1,dialogEditVisible:!1,dialogCreateVisible:!1,dialogTitle:"添加分类",formLabelWidth:"100px",dialogWidth:"70%",uploadPath:"http://101.37.21.97:9077/prod-api/common/alioss/upload",dialogForm:{id:"",shopImg:"",detailsImg:"",phone:"",businessName:"",businessShortName:"",startTime:"",endTime:"",address:"",shopType:"",shopId:"",orderAllot:""},elColSpan:3,otherImageList:[]}},mounted:function(){this.getList()},methods:{handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(t){this.ids=t.map((function(t){return t.id})),this.multiple=!t.length,this.single=1!=t.length},getList:function(){var t=this;this.loading=!0,this.request({url:"/api/admin/shop/userShop/list",method:"get",params:this.queryParams}).then((function(e){t.loading=!1,200===e.code&&(console.log(e.rows),t.tableData.list=e.rows,t.tableData.total=e.total)})).catch((function(){t.loading=!1}))},handleDelete:function(t){this.$notify({title:"提示",duration:1800,type:"warning",message:"安全起见,删除接口已屏敝"})},showEditDialog:function(t){for(var e in this.dialogForm)this.dialogForm[e]=t[e];this.dialogForm.shopId=this.dialogForm.id,this.dialogTitle="编缉店铺信息",this.dialogVisible=!0,this.dialogEditVisible=!0,""!=this.dialogForm.detailsImg&&null!=this.dialogForm.detailsImg&&(this.otherImageList=this.dialogForm.detailsImg.split(","))},handleCreateSubmit:function(){this.handleSubmit("/api/admin/xxxx/insert")},handleEditSubmit:function(){this.handleSubmit("/api/admin/shop/userShop/update")},handleSubmit:function(t){var e=this;this.dialogForm.detailsImg=this.otherImageList.toString(),this.validateForm()&&this.request({url:t,method:"post",data:this.dialogForm}).then((function(t){e.msgResponse(t),setTimeout((function(){e.hideDialog()}),500)})).then((function(){e.getList()})).catch((function(){}))},validateForm:function(){return this.isEmpty(this.dialogForm.shopImg)?(this.$notify({title:"提示",duration:1800,type:"warning",message:"请上传店铺封面图片"}),!1):this.isEmpty(this.dialogForm.detailsImg)?(this.$notify({title:"提示",duration:1800,type:"warning",message:"至少上传一张店铺详情图"}),!1):this.isEmpty(this.dialogForm.businessName)?(this.$notify({title:"提示",duration:1800,type:"warning",message:"请输入店铺名称"}),!1):this.isEmpty(this.dialogForm.businessShortName)?(this.$notify({title:"提示",duration:1800,type:"warning",message:"请输入店铺简称"}),!1):this.isEmpty(this.dialogForm.phone)?(this.$notify({title:"提示",duration:1800,type:"warning",message:"请输入店铺电话"}),!1):this.isEmpty(this.dialogForm.shopType)?(this.$notify({title:"提示",duration:1800,type:"warning",message:"请输入店铺类型"}),!1):this.isEmpty(this.dialogForm.startTime)?(this.$notify({title:"提示",duration:1800,type:"warning",message:"请选择服务开始时间"}),!1):!this.isEmpty(this.dialogForm.endTime)||(this.$notify({title:"提示",duration:1800,type:"warning",message:"请选择服务结束时间"}),!1)},hideDialog:function(){this.onClose()},onClose:function(){this.dialogVisible=!1,this.dialogEditVisible=!1,this.dialogCreateVisible=!1},delImage:function(t){this.otherImageList.splice(t,1)}}}),s=o,r=(i("fd86"),i("2877")),n=Object(r["a"])(s,a,l,!1,null,null,null);e["default"]=n.exports},c440:function(t,e,i){},fd86:function(t,e,i){"use strict";i("c440")}}]);