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
16 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-26f27df9"],{"009c":function(e,t,a){"use strict";var s=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"tab-header webtop"},[t("div",[e._v("预约明细")]),t("div",[t("el-button",{attrs:{type:"info",size:"small"},on:{click:function(t){return e.handleReturn()}}},[e._v("关闭")])],1)]),t("div",{staticClass:"listconadd"},[t("el-form",{ref:"dataForm",staticClass:"formadd",attrs:{model:e.formobj,"label-position":"top","label-width":"190px"}},[t("div",{staticClass:"title",staticStyle:{display:"flex","align-items":"center","justify-content":"space-between",height:"40px"}},[t("div",[e._v("主体信息")])]),t("el-row",[t("el-col",{staticClass:"trightb",attrs:{span:4}},[t("el-form-item",{staticClass:"trightb_item"},[t("span",{attrs:{slot:"label"},slot:"label"},[e._v("提货卡号")])])],1),t("el-col",{attrs:{span:8}},[t("el-form-item",{staticClass:"trightb_item"},[t("span",{attrs:{slot:"label"},slot:"label"},[e._v(e._s(e.formobj.code))])])],1),t("el-col",{staticClass:"trightb",attrs:{span:4}},[t("el-form-item",{staticClass:"trightb_item"},[t("span",{attrs:{slot:"label"},slot:"label"},[e._v("礼包类型")])])],1),t("el-col",{attrs:{span:8}},[t("el-form-item",{staticClass:"trightb_item"},[t("span",{attrs:{slot:"label"},slot:"label"},[e._v(e._s(e.formobj.bagName))])])],1)],1),t("el-row",[t("el-col",{staticClass:"trightb",attrs:{span:4}},[t("el-form-item",{staticClass:"trightb_item"},[t("span",{attrs:{slot:"label"},slot:"label"},[e._v("预约时间")])])],1),t("el-col",{attrs:{span:8}},[t("el-form-item",{staticClass:"trightb_item"},[t("span",{attrs:{slot:"label"},slot:"label"},[e._v(e._s(e.formobj.reserveDate))])])],1),t("el-col",{staticClass:"trightb",attrs:{span:4}},[t("el-form-item",{staticClass:"trightb_item"},[t("span",{attrs:{slot:"label"},slot:"label"},[e._v("提货门店")])])],1),t("el-col",{attrs:{span:8}},[t("el-form-item",{staticClass:"trightb_item"},[t("span",{attrs:{slot:"label"},slot:"label"},[e._v(e._s(e.formobj.store))])])],1)],1),t("el-row",[t("el-col",{staticClass:"trightb",attrs:{span:4}},[t("el-form-item",{staticClass:"trightb_item"},[t("span",{attrs:{slot:"label"},slot:"label"},[e._v("用户名称")])])],1),t("el-col",{attrs:{span:8}},[t("el-form-item",{staticClass:"trightb_item"},[t("span",{attrs:{slot:"label"},slot:"label"},[e._v(e._s(e.formobj.userName))])])],1),t("el-col",{staticClass:"trightb",attrs:{span:4}},[t("el-form-item",{staticClass:"trightb_item"},[t("span",{attrs:{slot:"label"},slot:"label"},[e._v("联系电话")])])],1),t("el-col",{attrs:{span:8}},[t("el-form-item",{staticClass:"trightb_item"},[t("span",{attrs:{slot:"label"},slot:"label"},[e._v(e._s(e.formobj.userPhone))])])],1)],1),t("el-collapse",{staticStyle:{"margin-top":"20px"},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[t("el-collapse-item",{attrs:{name:"1",title:"商品列表"}},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:e.formobj.goodsVo,border:"","row-style":{height:"40px"}}},[t("el-table-column",{attrs:{label:"序号",type:"index",width:"80",index:e.indexMethod,align:"center"}}),t("el-table-column",{attrs:{label:"商品名称",prop:"goodName",align:"center"}}),t("el-table-column",{attrs:{label:"商品数量",prop:"num",align:"center"}})],1)],1)],1)],1)],1)])},r=[],l=(a("dea0"),{data:function(){return{listLoading:!1,activeNames:["1"],submitdisabled:!1,formobj:{sid:"",code:"",bagName:"",reserveDate:"",store:"",userName:"",userPhone:"",goodsVo:[]}}},methods:{handleReturn:function(e){"true"===e&&this.$emit("reloadlist"),this.formobj={sid:"",code:"",bagName:"",reserveDate:"",store:"",userName:"",userPhone:"",goodsVo:[]},this.$emit("doback")},indexMethod:function(e){return e+1},showEdit:function(e){console.log("showAdd》》》》",e),this.formobj=e}}}),o=l,i=(a("7125"),a("2877")),n=Object(i["a"])(o,s,r,!1,null,"7bb0ba38",null);t["a"]=n.exports},"1df9":function(e,t,a){},"39f9":function(e,t,a){"use strict";var s=a("b775");t["a"]={listAllBrand:function(e){return Object(s["a"])({url:"/mall/adminapi/mall/listAllBrand",method:"post",data:e})},listAllCategory:function(e){return Object(s["a"])({url:"/mall/adminapi/mall/listAllCategory",method:"post",data:e})},listAllUnit:function(e){return Object(s["a"])({url:"/mall/apiadmin/base/basegoodsunit/listAll",method:"post",data:e})}}},"5e03":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-container"},[t("div",{directives:[{name:"show",rawName:"v-show",value:1==e.viewState,expression:"viewState == 1"}]},[t("button-bar",{ref:"btnbar",attrs:{"view-title":"网点配货统计",btndisabled:e.btndisabled},on:{btnhandle:e.btnHandle}}),t("div",{staticClass:"main-content"},[t("div",{staticClass:"searchcon"},[t("el-button",{staticClass:"searchbtn",attrs:{size:"small"},on:{click:e.clicksearchShow}},[e._v(" "+e._s(e.searchxianshitit)+" ")]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.isSearchShow,expression:"isSearchShow"}],staticClass:"search"},[t("el-form",{staticClass:"tab-header",attrs:{inline:!0}},[t("el-form-item",{attrs:{label:"预约日期"}},[t("el-date-picker",{staticStyle:{width:"200px"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:""},model:{value:e.page.params.startDate,callback:function(t){e.$set(e.page.params,"startDate",t)},expression:"page.params.startDate"}}),e._v(" 至 "),t("el-date-picker",{staticStyle:{width:"200px"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:""},model:{value:e.page.params.endDate,callback:function(t){e.$set(e.page.params,"endDate",t)},expression:"page.params.endDate"}})],1),t("el-form-item",{attrs:{label:"提货地点"}},[t("el-select",{staticClass:"item_input",staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",placeholder:"请选择"},model:{value:e.page.params.address,callback:function(t){e.$set(e.page.params,"address",t)},expression:"page.params.address"}},e._l(e.storeList,(function(e){return t("el-option",{key:e.value,attrs:{label:e.text,value:e.text}})})),1)],1),t("el-form-item",{attrs:{label:"品牌"}},[t("el-select",{staticClass:"item_input",staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",placeholder:"请选择"},model:{value:e.page.params.brand,callback:function(t){e.$set(e.page.params,"brand",t)},expression:"page.params.brand"}},e._l(e.brandList,(function(e){return t("el-option",{key:e.sid,attrs:{label:e.name,value:e.sid}})})),1)],1),t("el-form-item",{attrs:{label:"客户名称"}},[t("el-input",{attrs:{placeholder:"",clearable:""},model:{value:e.page.params.userName,callback:function(t){e.$set(e.page.params,"userName",t)},expression:"page.params.userName"}})],1),t("el-form-item",{attrs:{label:"联系电话"}},[t("el-input",{attrs:{placeholder:"",clearable:""},model:{value:e.page.params.userPhone,callback:function(t){e.$set(e.page.params,"userPhone",t)},expression:"page.params.userPhone"}})],1),t("el-form-item",{attrs:{label:"商品名称"}},[t("el-input",{attrs:{placeholder:"",clearable:""},model:{value:e.page.params.goodsName,callback:function(t){e.$set(e.page.params,"goodsName",t)},expression:"page.params.goodsName"}})],1)],1),t("div",{staticClass:"btn",staticStyle:{"text-align":"center"}},[t("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-search"},on:{click:e.dosearch}},[e._v("查询")]),t("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-refresh"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1)],1),e._m(0),t("div",{},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableLoading,expression:"tableLoading"}],staticStyle:{width:"100%"},attrs:{data:e.dataList,border:""}},[t("el-table-column",{attrs:{fixed:"",width:"60",label:"序号",type:"index",index:e.indexMethod,align:"center"}}),t("el-table-column",{attrs:{prop:"reserveDate",label:"预约日期",align:"center"}}),t("el-table-column",{attrs:{prop:"storeName",label:"提货地点",align:"center"}}),t("el-table-column",{attrs:{prop:"brandName",label:"品牌",align:"center"}}),t("el-table-column",{attrs:{prop:"goodsName",label:"商品名称",align:"center"}}),t("el-table-column",{attrs:{prop:"goodsNumber",label:"数量(份)",align:"center"}}),t("el-table-column",{attrs:{prop:"storeAddress",label:"提货点地址",align:"center"}}),t("el-table-column",{attrs:{prop:"storeLinker",label:"提货点联系人",align:"center"}}),t("el-table-column",{attrs:{prop:"storePhone",label:"提货点电话",align:"center"}})],1)],1),t("div",{staticClass:"pages"},[t("div",{staticClass:"tit"}),t("pagination",{directives:[{name:"show",rawName:"v-show",value:e.dataList.length>0,expression:"dataList.length > 0"}],staticClass:"pagination",attrs:{total:e.page.total,page:e.page.current,limit:e.page.size},on:{"update:page":function(t){return e.$set(e.page,"current",t)},"update:limit":function(t){return e.$set(e.page,"size",t)},pagination:e.loadList}})],1)])],1),t("divAdd",{directives:[{name:"show",rawName:"v-show",value:2==e.viewState||3==e.viewState,expression:"viewState == 2 || viewState == 3"}],ref:"divadd",on:{doback:e.resetState,reloadlist:e.loadList}})],1)},r=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"listtop"},[t("div",{staticClass:"tit"},[e._v("网点配货列表")])])}],l=a("c123"),o=a("d50f"),i=a("39f9"),n=a("77b3"),c=a("4d86"),d=a("009c"),p={name:"OrderreserveDistributionCount",components:{ButtonBar:n["a"],Pagination:c["a"],divAdd:d["a"]},data:function(){return{btndisabled:!1,viewState:1,isSearchShow:!1,searchxianshitit:"显示查询条件",tableLoading:!1,dataList:[],btnList:[{type:"success",size:"small",icon:"export",btnKey:"build",btnLabel:"导出"},{type:"info",size:"small",icon:"cross",btnKey:"doClose",btnLabel:"关闭"}],page:{total:0,current:1,size:10,params:{startDate:"",endDate:"",address:"",brand:"",userName:"",userPhone:"",goodsName:""}},brandList:[],bankList:[],storeList:[],selectionList:[],sids:[]}},mounted:function(){this.$refs["btnbar"].setButtonList(this.btnList)},created:function(){this.loadList(),this.getAllStore(),this.initBrand()},methods:{getAllStore:function(){var e=this,t={orgPath:window.sessionStorage.getItem("orgSidPath")};o["a"].getAllStore(t).then((function(t){e.storeList=t.data}))},initBrand:function(){var e=this,t={orgPath:window.sessionStorage.getItem("orgSidPath")};i["a"].listAllBrand(t).then((function(t){e.brandList=t.data}))},clicksearchShow:function(){this.isSearchShow=!this.isSearchShow,this.isSearchShow?this.searchxianshitit="隐藏查询条件":this.searchxianshitit="显示查询条件"},btnHandle:function(e){switch(e){case"build":this.doBuild();break;case"doClose":this.doClose();break;default:break}},bankSelect:function(e){console.log(">>>>>>>>>bankSelect",e),this.page.params.bankSid=e,this.page.params.store="",this.initStore()},loadList:function(){var e=this;this.tableLoading=!0,this.page.params.userSid=window.sessionStorage.getItem("userSid"),this.page.params.orgPath=window.sessionStorage.getItem("orgSidPath"),this.page.params.menuUrl=this.$route.path,l["a"].pageOfStore(this.page).then((function(t){if(e.tableLoading=!1,t.success){var a=t.data;e.page.total=a.total,e.dataList=a.records}else e.dataList=[],e.page.total=0})).catch((function(){e.tableLoading=!1}))},indexMethod:function(e){var t=(this.page.current-1)*this.page.size,a=e+1+t;return a},dosearch:function(){this.page.current=1,this.loadList()},resetQuery:function(){this.page={current:1,size:10,total:0,params:{startDate:"",endDate:"",address:"",brand:"",userName:"",userPhone:"",goodsName:""}},this.loadList()},toRelevancy:function(e){this.viewState=3,this.$refs["divadd"].showEdit(e)},resetState:function(){this.viewState=1},doClose:function(){this.$store.dispatch("tagsView/delView",this.$route),this.$router.go(-1)},doBuild:function(){var e=this,t=this.$loading({lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});l["a"].expExcelOfStore(this.page.params).then((function(a){t.close();var s=new Blob([a],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),r="网点配货明细_"+e.page.params.startDate+".xlsx",l=document.createElement("a");l.download=r,l.style.display="nonde",l.href=URL.createObjectURL(s),document.body.appendChild(l),l.click(),URL.revokeObjectURL(l.href),document.body.removeChild(l)})).catch((function(){t.close()}))}}},u=p,m=a("2877"),b=Object(m["a"])(u,s,r,!1,null,"a86ed05c",null);t["default"]=b.exports},7125:function(e,t,a){"use strict";a("1df9")},c123:function(e,t,a){"use strict";var s=a("b775");t["a"]={pageOfCustomer:function(e){return Object(s["a"])({url:"/mall/adminapi/reserve/pageOfCustomer",method:"post",data:e})},expExcelOfCustomer:function(e){return Object(s["a"])({url:"/mall/adminapi/reserve/expExcelOfCustomer",method:"post",data:e,headers:{"Access-Control-Allow-Headers":"Content-Type, Content-Length, Authorization, Accept, X-Requested-With , yourHeaderFeild"},responseType:"blob"})},pageOfStore:function(e){return Object(s["a"])({url:"/mall/adminapi/reserve/pageOfStore",method:"post",data:e})},expExcelOfStore:function(e){return Object(s["a"])({url:"/mall/adminapi/reserve/expExcelOfStore",method:"post",data:e,headers:{"Access-Control-Allow-Headers":"Content-Type, Content-Length, Authorization, Accept, X-Requested-With , yourHeaderFeild"},responseType:"blob"})},pageOfBank:function(e){return Object(s["a"])({url:"/mall/adminapi/reserve/pageOfBank",method:"post",data:e})},expExcelOfBank:function(e){return Object(s["a"])({url:"/mall/adminapi/reserve/expExcelOfBank",method:"post",data:e,headers:{"Access-Control-Allow-Headers":"Content-Type, Content-Length, Authorization, Accept, X-Requested-With , yourHeaderFeild"},responseType:"blob"})},pageOfAll:function(e){return Object(s["a"])({url:"/mall/adminapi/reserve/pageOfAll",method:"post",data:e})},expExcelOfAll:function(e){return Object(s["a"])({url:"/mall/adminapi/reserve/expExcelOfAll",method:"post",data:e,headers:{"Access-Control-Allow-Headers":"Content-Type, Content-Length, Authorization, Accept, X-Requested-With , yourHeaderFeild"},responseType:"blob"})},pcCancelReservation:function(e){return Object(s["a"])({url:"/mall/lpksreservoorders/pcCancelReservation",method:"post",data:e})}}},d50f:function(e,t,a){"use strict";var s=a("b775");t["a"]={listBankAll:function(){return Object(s["a"])({url:"/adminapi/bank/listBankAll"})},listStoreOfBank:function(e){return Object(s["a"])({url:"/adminapi/bank/listStoreOfBank",method:"get",params:{bankSid:e}})},getAllStore:function(e){return Object(s["a"])({url:"/mall/lpkstore/getAllStore",method:"DELETE",data:e})}}},dea0:function(e,t,a){"use strict";var s=a("b775");t["a"]={orderList:function(e){return Object(s["a"])({url:"/lpksreservoorder/orderList",method:"post",data:e})},getAllStore:function(e){return Object(s["a"])({url:"/lpkstore/getAllStore",method:"delete",data:e})},exportExcel:function(e){return Object(s["a"])({url:"/lpksreservoorder/exportExcel",method:"post",responseType:"blob",data:e,headers:{"Content-Type":"application/json"}})},distributionList:function(e){return Object(s["a"])({url:"/lpksreservoorder/orderListByStore",method:"post",data:e})},distributionExportExcel:function(e){return Object(s["a"])({url:"/lpksreservoorder/exportExcelByStore",method:"post",responseType:"blob",data:e,headers:{"Content-Type":"application/json"}})},bankOrderList:function(e){return Object(s["a"])({url:"/lpksreservoorder/orderListByBank",method:"post",data:e})},bankOrderExportExcel:function(e){return Object(s["a"])({url:"/lpksreservoorder/exportExcelByBank",method:"post",responseType:"blob",data:e,headers:{"Content-Type":"application/json"}})},ZOrderList:function(e){return Object(s["a"])({url:"/lpksreservoorder/orderListByZ",method:"post",data:e})},allOrderExportExcel:function(e){return Object(s["a"])({url:"/lpksreservoorder/exportExcelByZ",method:"post",responseType:"blob",data:e,headers:{"Content-Type":"application/json"}})}}}}]);