| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4d5ad372"],{"10c7":function(t,e,a){},"141e":function(t,e,a){"use strict";a("10c7")},"4ae1":function(t,e,a){"use strict";var s=a("9ab4"),i=a("1b40"),r=a("0a6d");let l=class extends i.e{constructor(){super(...arguments),this.exportData={},this.formData={page_type:0,page_start:1,page_end:200,file_name:""}}handleOpen(){this.getData()}handleConfirm(){const t=this.$loading({lock:!0,text:"正在导出中...",spinner:"el-icon-loading"});this.method({export:2,...this.param,...this.formData,user_id:this.userId,type:this.type,...this.status,page_size:this.pageSize}).then(()=>{this.$refs.dialog.close()}).finally(()=>{t.close()})}getData(){this.method({...this.param,export:1,user_id:this.userId,type:this.type,page_size:this.pageSize,...this.status}).then(t=>{this.exportData=t,this.formData.file_name=t.file_name,this.formData.page_end=t.page_end,this.formData.page_start=t.page_start})}created(){}};Object(s.a)([Object(i.c)()],l.prototype,"method",void 0),Object(s.a)([Object(i.c)()],l.prototype,"param",void 0),Object(s.a)([Object(i.c)()],l.prototype,"status",void 0),Object(s.a)([Object(i.c)()],l.prototype,"userId",void 0),Object(s.a)([Object(i.c)()],l.prototype,"type",void 0),Object(s.a)([Object(i.c)()],l.prototype,"pageSize",void 0),l=Object(s.a)([Object(i.a)({components:{LsDialog:r.a}})],l);var o=l,n=a("2877"),c=Object(n.a)(o,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"export-data inline"},[a("ls-dialog",{ref:"dialog",attrs:{title:"导出设置",width:"500px",top:"35vh","confirm-button-text":"确认导出",async:!0},on:{confirm:t.handleConfirm,open:t.handleOpen}},[a("div",{attrs:{slot:"trigger"},slot:"trigger"},[a("el-button",{attrs:{size:"small"}},[t._v("导出")])],1),a("div",[a("el-form",{ref:"form",attrs:{model:t.formData,"label-width":"120px",size:"small"}},[a("el-form-item",{attrs:{label:"数据量:"}},[t._v(" 预计导出"+t._s(t.exportData.count)+"条数据,共"+t._s(t.exportData.sum_page)+"页,每页"+t._s(t.exportData.page_size)+"条数据 ")]),a("el-form-item",{attrs:{label:"导出限制:"}},[t._v(" 每次导出最大允许"+t._s(t.exportData.max_page)+"页,共"+t._s(t.exportData.all_max_size)+"条数据 ")]),a("el-form-item",{attrs:{label:"导出范围:",required:""}},[a("el-radio-group",{model:{value:t.formData.page_type,callback:function(e){t.$set(t.formData,"page_type",e)},expression:"formData.page_type"}},[a("el-radio",{attrs:{label:0}},[t._v("全部导出")]),a("el-radio",{attrs:{label:1}},[t._v("分页导出")])],1)],1),1==t.formData.page_type?a("el-form-item",{attrs:{label:"分页范围:",required:""}},[a("div",{staticClass:"flex"},[a("el-input",{staticStyle:{width:"100px"},attrs:{placeholder:""},model:{value:t.formData.page_start,callback:function(e){t.$set(t.formData,"page_start",e)},expression:"formData.page_start"}}),a("span",{staticClass:"flex-none m-l-8 m-r-8"},[t._v("页,至")]),a("el-input",{staticStyle:{width:"100px"},attrs:{placeholder:""},model:{value:t.formData.page_end,callback:function(e){t.$set(t.formData,"page_end",e)},expression:"formData.page_end"}})],1)]):t._e(),a("el-form-item",{attrs:{label:"导出文件名称:",prop:"file_name"}},[a("el-input",{attrs:{placeholder:"请输入导出文件名称"},model:{value:t.formData.file_name,callback:function(e){t.$set(t.formData,"file_name",e)},expression:"formData.file_name"}})],1)],1)],1)])],1)}),[],!1,null,null,null);e.a=c.exports},"82fc":function(t,e,a){"use strict";a.d(e,"f",(function(){return i})),a.d(e,"b",(function(){return r})),a.d(e,"d",(function(){return l})),a.d(e,"e",(function(){return o})),a.d(e,"g",(function(){return n})),a.d(e,"c",(function(){return c})),a.d(e,"a",(function(){return f})),a.d(e,"o",(function(){return p})),a.d(e,"k",(function(){return h})),a.d(e,"m",(function(){return u})),a.d(e,"n",(function(){return d})),a.d(e,"p",(function(){return m})),a.d(e,"l",(function(){return _})),a.d(e,"h",(function(){return g})),a.d(e,"i",(function(){return b})),a.d(e,"j",(function(){return v}));var s=a("f175");const i=t=>s.a.get("/selffetch_shop.selffetch_shop/lists",{params:t}),r=t=>s.a.post("/selffetch_shop.selffetch_shop/add",t),l=t=>s.a.get("/selffetch_shop.selffetch_shop/detail",{params:t}),o=t=>s.a.post("/selffetch_shop.selffetch_shop/edit",t),n=t=>s.a.post("/selffetch_shop.selffetch_shop/status",t),c=t=>s.a.post("/selffetch_shop.selffetch_shop/del",t),f=t=>s.a.get("/selffetch_shop.selffetch_shop/regionSearch",{params:t}),p=t=>s.a.get("/selffetch_shop.selffetch_verifier/lists",{params:t}),h=t=>s.a.post("/selffetch_shop.selffetch_verifier/add",t),u=t=>s.a.get("/selffetch_shop.selffetch_verifier/detail",{params:t}),d=t=>s.a.post("/selffetch_shop.selffetch_verifier/edit",t),m=t=>s.a.post("/selffetch_shop.selffetch_verifier/status",t),_=t=>s.a.post("/selffetch_shop.selffetch_verifier/del",t),g=t=>s.a.post("/selffetch_shop.verification/verification",t),b=t=>s.a.get("selffetch_shop.verification/lists",{params:t}),v=t=>s.a.get("selffetch_shop.verification/verificationQuery",{params:t})},a573:function(t,e,a){"use strict";a("ab43")},ab43:function(t,e,a){"use strict";var s=a("23e7"),i=a("d024");s({target:"Iterator",proto:!0,real:!0,forced:a("c430")},{map:i})},d024:function(t,e,a){"use strict";var s=a("c65b"),i=a("59ed"),r=a("825a"),l=a("46c4"),o=a("c5cc"),n=a("9bdd"),c=o((function(){var t=this.iterator,e=r(s(this.next,t));if(!(this.done=!!e.done))return n(t,this.mapper,[e.value,this.counter++],!0)}));t.exports=function(t){return r(this),i(t),new c(l(this),{mapper:t})}},e535:function(t,e,a){"use strict";a.r(e);a("14d9"),a("a573");var s=a("9ab4"),i=a("1b40"),r=a("82fc"),l=a("4201"),o=a("6ddb"),n=a("0a6d"),c=a("3c50"),f=a("4ae1");let p=class extends i.e{constructor(){super(...arguments),this.apiSelffetchShopList=r.f,this.form={name:"",status:""},this.pager=new o.a}search(){this.pager.page=1,this.getSelffetchShopList()}resetSearch(){Object.keys(this.form).map(t=>{this.$set(this.form,t,"")}),this.getSelffetchShopList()}getSelffetchShopList(){this.pager.request({callback:r.f,params:this.form}).catch(()=>{this.$message.error("数据请求失败,刷新重载!")})}addSelffetchShop(){this.$router.push({path:"/selffetch/selffetch_shop_edit",query:{mode:l.g.ADD}})}onSelffetchShopDelete(t){Object(r.c)({id:t.id}).then(()=>{this.getSelffetchShopList()})}goSelffetchShopEdit(t){this.$router.push({path:"/selffetch/selffetch_shop_edit",query:{mode:l.g.EDIT,id:t.id}})}changeSwitchStatus(t,e){Object(r.g)({id:e.id,status:t}).catch(t=>{this.getSelffetchShopList()})}created(){this.getSelffetchShopList()}};p=Object(s.a)([Object(i.a)({components:{LsDialog:n.a,LsPagination:c.a,ExportData:f.a}})],p);var h=p,u=(a("141e"),a("2877")),d=Object(u.a)(h,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"admin"},[a("div",{staticClass:"ls-card"},[a("div",{staticClass:"m-t-20"},[a("el-form",{attrs:{inline:!0,model:t.form,size:"small"}},[a("el-form-item",{attrs:{label:"门店名称"}},[a("el-input",{attrs:{placeholder:"请输入门店名称"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),a("el-form-item",{staticClass:"m-l-24",attrs:{label:"门店状态"}},[a("el-select",{attrs:{placeholder:"请选择状态"},model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},[a("el-option",{attrs:{label:"全部",value:""}}),a("el-option",{attrs:{label:"启用",value:1}}),a("el-option",{attrs:{label:"停用",value:0}})],1)],1),a("el-form-item",{staticClass:"m-l-24"},[a("el-button",{attrs:{type:"primary"},on:{click:t.search}},[t._v("查询")]),a("el-button",{on:{click:t.resetSearch}},[t._v("重置")]),a("export-data",{staticClass:"m-l-10",attrs:{method:t.apiSelffetchShopList,param:t.form,pageSize:t.pager._size}})],1)],1)],1)]),a("div",{staticClass:"ls-card m-t-16"},[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.addSelffetchShop}},[t._v("新增自提门店")]),a("div",{staticClass:"m-t-24"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.pager.loading,expression:"pager.loading"}],staticStyle:{width:"100%"},attrs:{data:t.pager.lists,size:"mini"}},[a("el-table-column",{attrs:{prop:"name",label:"门店LOGO","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(t){return a("div",{staticClass:"flex"},[a("el-image",{staticStyle:{width:"40px",height:"40px"},attrs:{src:t.row.image,fit:"fill"}})],1)}}])}),a("el-table-column",{attrs:{prop:"name",label:"门店名称","min-width":"120"}}),a("el-table-column",{attrs:{prop:"contact",label:"店长","min-width":"100"}}),a("el-table-column",{attrs:{prop:"mobile",label:"联系电话","min-width":"120"}}),a("el-table-column",{attrs:{prop:"detailed_address",label:"门店地址","min-width":"220"}}),a("el-table-column",{attrs:{prop:"create_time",label:"营业时间",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.business_start_time+"-"+e.row.business_end_time)+" ")]}}])}),a("el-table-column",{attrs:{prop:"status",label:"门店状态","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":t.styleConfig.primary,"inactive-color":"#f4f4f5"},on:{change:function(a){return t.changeSwitchStatus(a,e.row)}},model:{value:e.row.status,callback:function(a){t.$set(e.row,"status",a)},expression:"scope.row.status"}})]}}])}),a("el-table-column",{attrs:{label:"操作","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.goSelffetchShopEdit(e.row)}}},[t._v("编辑")]),a("ls-dialog",{staticClass:"m-l-10 inline",on:{confirm:function(a){return t.onSelffetchShopDelete(e.row)}}},[a("el-button",{attrs:{slot:"trigger",type:"text",size:"small"},slot:"trigger"},[t._v("删除")])],1)]}}])})],1),a("div",{staticClass:"m-t-24 pagination"},[a("ls-pagination",{on:{change:t.getSelffetchShopList},model:{value:t.pager,callback:function(e){t.pager=e},expression:"pager"}})],1)],1)],1)])}),[],!1,null,"e863d696",null);e.default=d.exports}}]);
|