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.
1 lines
12 KiB
1 lines
12 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-01b288ee"],{"019a":function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-container"},[e("div",{directives:[{name:"show",rawName:"v-show",value:1==t.viewState,expression:"viewState == 1"}]},[e("button-bar",{ref:"btnbar",attrs:{"view-title":"提货点列表",btndisabled:t.btndisabled},on:{btnhandle:t.btnHandle}}),e("div",{staticClass:"main-content"},[e("div",{staticClass:"searchcon"},[e("el-button",{staticClass:"searchbtn",attrs:{size:"small"},on:{click:t.clicksearchShow}},[t._v(" "+t._s(t.searchxianshitit)+" ")]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isSearchShow,expression:"isSearchShow"}],staticClass:"search"},[e("el-form",{staticClass:"tab-header",attrs:{inline:!0}},[e("el-form-item",{attrs:{label:"提货点名称"}},[e("el-input",{attrs:{placeholder:"",clearable:""},model:{value:t.queryParams.params.name,callback:function(e){t.$set(t.queryParams.params,"name",e)},expression:"queryParams.params.name"}})],1)],1),e("div",{staticClass:"btn",staticStyle:{"text-align":"center"}},[e("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-search"},on:{click:t.dosearch}},[t._v("查询")]),e("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-refresh"},on:{click:t.resetQuery}},[t._v("重置")])],1)],1)],1),t._m(0),e("div",{},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tableLoading,expression:"tableLoading"}],staticStyle:{width:"100%"},attrs:{data:t.dataList,border:"","row-style":{height:"40px"}}},[e("el-table-column",{attrs:{fixed:"",width:"60",label:"序号",type:"index",index:t.indexMethod,align:"center"}}),e("el-table-column",{attrs:{label:"操作",align:"center",width:"100"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.toRelevancy(s.row)}}},[t._v("编辑")])]}}])}),e("el-table-column",{attrs:{label:"是否禁用",align:"center",width:"140"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("el-switch",{attrs:{"active-text":"可用","inactive-text":"禁用","active-value":"1","inactive-value":"0"},on:{change:function(e){return t.enableChange(s.row.sid,s.row.isEnable)}},model:{value:s.row.isEnable,callback:function(e){t.$set(s.row,"isEnable",e)},expression:"scope.row.isEnable"}})]}}])}),e("el-table-column",{attrs:{prop:"name",label:"提货点名称",align:"center",width:"250"}}),e("el-table-column",{attrs:{prop:"phone",label:"联系电话",align:"center",width:"150"}}),e("el-table-column",{attrs:{prop:"address",label:"提货点地址",align:"center"}}),e("el-table-column",{attrs:{prop:"businessHours",label:"营业时间",align:"center",width:"200"}}),e("el-table-column",{attrs:{prop:"sort",label:"排序",align:"center",width:"80"}})],1)],1),e("div",{staticClass:"pages"},[e("div",{staticClass:"tit"}),e("pagination",{directives:[{name:"show",rawName:"v-show",value:t.dataList.length>0,expression:"dataList.length > 0"}],staticClass:"pagination",attrs:{total:t.queryParams.total,page:t.queryParams.current,limit:t.queryParams.size},on:{"update:page":function(e){return t.$set(t.queryParams,"current",e)},"update:limit":function(e){return t.$set(t.queryParams,"size",e)},pagination:t.loadList}})],1)])],1),e("divAdd",{directives:[{name:"show",rawName:"v-show",value:2==t.viewState||3==t.viewState,expression:"viewState == 2|| viewState ==3"}],ref:"divadd",on:{doback:t.resetState,reloadlist:t.loadList}})],1)},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"listtop"},[e("div",{staticClass:"tit"},[t._v("提货点列表")])])}],n=s("31b2"),o=s("77b3"),r=s("4d86"),l=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"tab-header webtop"},[e("div",[t._v("提货点信息")]),e("div",[e("el-button",{attrs:{type:"primary",size:"small",disabled:t.submitdisabled},on:{click:t.saveOrUpdate}},[t._v("保存")]),e("el-button",{attrs:{type:"info",size:"small"},on:{click:function(e){return t.handleReturn()}}},[t._v("关闭")])],1)]),e("div",{staticClass:"listconadd"},[e("el-card",{staticClass:"box-card"},[e("div",{staticClass:"item"},[e("span",{staticClass:"item_text"},[t._v("名称:")]),e("el-input",{staticClass:"item_input",attrs:{placeholder:"",clearable:""},model:{value:t.formobj.name,callback:function(e){t.$set(t.formobj,"name",e)},expression:"formobj.name"}})],1),e("div",{staticClass:"item"},[e("span",{staticClass:"item_text"},[t._v("地址:")]),e("el-input",{staticClass:"item_input",attrs:{placeholder:"",clearable:""},model:{value:t.formobj.address,callback:function(e){t.$set(t.formobj,"address",e)},expression:"formobj.address"}})],1),e("div",{staticClass:"item"},[e("span",{staticClass:"item_text"},[t._v("联系人:")]),e("el-input",{staticClass:"item_input",attrs:{placeholder:"",clearable:""},model:{value:t.formobj.linker,callback:function(e){t.$set(t.formobj,"linker",e)},expression:"formobj.linker"}})],1),e("div",{staticClass:"item"},[e("span",{staticClass:"item_text"},[t._v("电话:")]),e("el-input",{staticClass:"item_input",attrs:{placeholder:"",clearable:""},model:{value:t.formobj.phone,callback:function(e){t.$set(t.formobj,"phone",e)},expression:"formobj.phone"}})],1),e("div",{staticClass:"item"},[e("span",{staticClass:"item_text"},[t._v("营业时间:")]),e("el-input",{staticClass:"item_input",attrs:{placeholder:"",clearable:""},model:{value:t.formobj.businessHours,callback:function(e){t.$set(t.formobj,"businessHours",e)},expression:"formobj.businessHours"}})],1),e("div",{staticClass:"item"},[e("span",{staticClass:"item_text"},[t._v("排序:")]),e("el-input",{staticClass:"item_input",attrs:{placeholder:"",clearable:""},model:{value:t.formobj.sort,callback:function(e){t.$set(t.formobj,"sort",e)},expression:"formobj.sort"}})],1),e("div",{staticClass:"item"},[e("span",{staticClass:"item_text"},[t._v("经纬度:")]),e("el-input",{staticClass:"item_input",attrs:{placeholder:"经纬度,以逗号分隔",clearable:""},model:{value:t.formobj.lonAndLat,callback:function(e){t.$set(t.formobj,"lonAndLat",e)},expression:"formobj.lonAndLat"}})],1)])],1)])},c=[],u={data:function(){return{submitdisabled:!1,formobj:{sid:"",name:"",address:"",phone:"",businessHours:"",sort:0,linker:"",picUrl:"",lonAndLat:"",bankName:"",bankSid:""},bankList:[]}},created:function(){},methods:{saveOrUpdate:function(){var t=this;console.log(">>>>>>>>>saveOrUpdate",this.formobj),n["a"].saveStore(this.formobj).then((function(e){e.success&&(t.$message({showClose:!0,type:"success",message:e.msg}),t.handleReturn("true"))})).catch((function(){}))},handleReturn:function(t){"true"===t&&this.$emit("reloadlist"),this.imgList=[],this.formobj={sid:"",name:"",address:"",phone:"",businessHours:"",sort:0,linker:"",picUrl:"",lonAndLat:"",bankName:"",bankSid:""},this.$emit("doback")},showAdd:function(){},showEdit:function(t){var e=this;n["a"].storeInit(t.sid).then((function(t){t.success&&(e.formobj=t.data)})).catch((function(s){e.formobj=t}))},bankSelect:function(t){this.formobj.bankSid=t}}},d=u,b=(s("5807"),s("2877")),m=Object(b["a"])(d,l,c,!1,null,null,null),h=m.exports,p={name:"SupplierBankInfoIndex",components:{ButtonBar:o["a"],Pagination:r["a"],divAdd:h},data:function(){return{btndisabled:!1,viewState:1,isSearchShow:!1,searchxianshitit:"显示查询条件",tableLoading:!1,dataList:[],btnList:[{type:"primary",size:"small",icon:"plus",btnKey:"toAdd",btnLabel:"新增"},{type:"info",size:"small",icon:"cross",btnKey:"doClose",btnLabel:"关闭"}],queryParams:{current:1,size:10,total:0,params:{name:""}},sids:[]}},mounted:function(){this.$refs["btnbar"].setButtonList(this.btnList)},created:function(){this.loadList()},methods:{clicksearchShow:function(){this.isSearchShow=!this.isSearchShow,this.isSearchShow?this.searchxianshitit="隐藏查询条件":this.searchxianshitit="显示查询条件"},btnHandle:function(t){switch(t){case"toAdd":this.toAdd();break;case"doClose":this.doClose();break;default:break}},loadList:function(){var t=this;this.tableLoading=!0,n["a"].storeListPage(this.queryParams).then((function(e){if(t.tableLoading=!1,e.success){var s=e.data;t.queryParams.total=s.total,t.dataList=s.records}else t.dataList=[],t.queryParams.total=0})).catch((function(){t.tableLoading=!1}))},indexMethod:function(t){var e=(this.queryParams.current-1)*this.queryParams.size,s=t+1+e;return s},dosearch:function(){this.queryParams.current=1,this.loadList()},resetQuery:function(){this.queryParams={current:1,size:10,total:0,params:{name:""}},this.loadList()},toAdd:function(){this.viewState=2,this.$refs["divadd"].showAdd()},doClose:function(){this.$store.dispatch("tagsView/delView",this.$route),this.$router.go(-1)},toRelevancy:function(t){this.viewState=3,this.$refs["divadd"].showEdit(t)},toRelevancyInfo:function(t){var e=this,s="请确认是否删除所选提货点?";this.$confirm(s,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var s=e.$loading({lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});n["a"].deleteStore(t.sid).then((function(t){s.close(),t.success&&(e.$message({type:"success",message:t.msg,showClose:!0}),e.loadList())})).catch((function(t){s.close()}))})).catch((function(){}))},resetState:function(){this.viewState=1},enableChange:function(t,e){var s=this;console.log("sid",t),console.log("state",e),n["a"].updateIsEnable(t,e).then((function(t){t.success&&s.$message({type:"success",message:"状态已更新",showClose:!0})})).catch((function(t){console.log(t)}))}}},f=p,v=Object(b["a"])(f,a,i,!1,null,"270f6458",null);e["default"]=v.exports},"31b2":function(t,e,s){"use strict";var a=s("b775");e["a"]={bankSelect:function(t){return Object(a["a"])({url:"/lpkbank/listAll",method:"get"})},storeListPage:function(t){return Object(a["a"])({url:"/lpkstore/storeListPage",method:"post",data:t})},saveStore:function(t){return Object(a["a"])({url:"/lpkstore/saveStore",method:"post",data:t})},storeInit:function(t){return Object(a["a"])({url:"/lpkstore/storeInit/"+t,method:"get"})},deleteStore:function(t){return Object(a["a"])({url:"/lpkstore/deleteStore/"+t,method:"delete"})},updateIsEnable:function(t,e){return Object(a["a"])({url:"/lpkstore/updateIsEnable/"+t+"/"+e})}}},5807:function(t,e,s){"use strict";s("fed8")},"77b3":function(t,e,s){"use strict";var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"tab-header webtop"},[e("div",[t._v(t._s(t.viewTitle))]),e("div",t._l(t.btnList,(function(s){return e("el-button",{key:s.btnKey,attrs:{type:s.type,size:s.size,disabled:t.btndisabled},on:{click:function(e){return t.btnHandle(s.btnKey)}}},[s.icon?e("svg-icon",{attrs:{iconClass:s.icon}}):t._e(),t._v(t._s(s.btnLabel)+" ")],1)})),1)])},i=[],n={name:"ButtonBar",props:{viewTitle:String,btndisabled:{type:Boolean,default:!1}},data:function(){return{currentPath:this.$route.path,userSid:this.$store.getters.userInfo?this.$store.getters.userInfo.userSid:"",btnList:[{type:"primary",size:"small",icon:"plus",btnKey:"toAdd",btnLabel:"新增"},{type:"primary",size:"small",icon:"edit",btnKey:"toEdit",btnLabel:"编辑"},{type:"primary",size:"small",icon:"submit",btnKey:"doSubmit",btnLabel:"提交"},{type:"danger",size:"small",icon:"del",btnKey:"doDel",btnLabel:"删除"},{type:"success",size:"small",icon:"Import",btnKey:"doImport",btnLabel:"导入"},{type:"success",size:"small",icon:"export",btnKey:"build",btnLabel:"导出"},{type:"info",size:"small",icon:"cross",btnKey:"doClose",btnLabel:"关闭"}]}},created:function(){this.initPermission()},methods:{initPermission:function(){console.log("*******************当前路径 "+this.currentPath),console.log("*******************当前用户 "+this.userSid);this.currentPath,this.userSid},btnHandle:function(t){this.$emit("btnhandle",t)},setButtonList:function(t){this.btnList=t}}},o=n,r=(s("c640"),s("2877")),l=Object(r["a"])(o,a,i,!1,null,"c4aa0380",null);e["a"]=l.exports},a442:function(t,e,s){},c640:function(t,e,s){"use strict";s("a442")},fed8:function(t,e,s){}}]);
|