1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0f2ea08e"],{"9a95":function(t,e,n){"use strict";n.d(e,"m",(function(){return r})),n.d(e,"h",(function(){return i})),n.d(e,"n",(function(){return o})),n.d(e,"i",(function(){return l})),n.d(e,"p",(function(){return c})),n.d(e,"c",(function(){return s})),n.d(e,"j",(function(){return u})),n.d(e,"k",(function(){return d})),n.d(e,"e",(function(){return p})),n.d(e,"d",(function(){return g})),n.d(e,"o",(function(){return m})),n.d(e,"f",(function(){return f})),n.d(e,"a",(function(){return b})),n.d(e,"l",(function(){return h})),n.d(e,"g",(function(){return v})),n.d(e,"b",(function(){return _}));var a=n("b775");function r(t){return Object(a["a"])({url:"/exp/getStorageTotal",method:"get",params:t})}function i(t){return Object(a["a"])({url:"/exp/getExpStore",method:"get",params:t})}function o(t){return Object(a["a"])({url:"/activity/getactivityinfo",method:"get",params:t})}function l(t){return Object(a["a"])({url:"/exp/getGoodsInfo",method:"get",params:t})}function c(t){return Object(a["a"])({url:"/exp/storageSend",method:"post",data:t})}function s(t){return Object(a["a"])({url:"exp/editStorageSend",method:"post",data:t})}function u(t){return Object(a["a"])({url:"/exp/getSend",method:"get",params:t})}function d(t){return Object(a["a"])({url:"/exp/getSendDetail",method:"get",params:t})}function p(t){return Object(a["a"])({url:"/exp/getAccept",method:"get",params:t})}function g(t){return Object(a["a"])({url:"/exp/expCounting",method:"post",data:t})}function m(t){return Object(a["a"])({url:"/exp/outbound",method:"post",data:t})}function f(t){return Object(a["a"])({url:"exp/getActivityAgentInfo",method:"get",params:t})}function b(t){return Object(a["a"])({url:"/exp/checkInventory",method:"post",data:t})}function h(t){return Object(a["a"])({url:"/exp/getStorageLog",method:"get",params:t})}function v(t){return Object(a["a"])({url:"/exp/getActivityData",method:"get",params:t})}function _(t){return Object(a["a"])({url:"/exp/deleteStorage",method:"post",data:t})}},c115:function(t,e,n){"use strict";n("edfd")},e864:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"content"},[n("div",{staticClass:"search_box"},[n("el-select",{attrs:{placeholder:"请选择活动"},on:{change:function(e){t.params.page_index=1,t.getList(),t.sendList=[]}},model:{value:t.params.activity_id,callback:function(e){t.$set(t.params,"activity_id",e)},expression:"params.activity_id"}},t._l(t.activityOptions,(function(t){return n("el-option",{key:t.id,attrs:{label:t.title,value:t.id}})})),1)],1),t._v(" "),n("div",{staticClass:"table_box"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"listTable",staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#f8fbfc"},border:"",data:t.sendList,height:t.tableHeight+"px","cell-style":{padding:"10px 0"},"span-method":t.objectSpanMethod}},[n("el-table-column",{attrs:{label:"客户",prop:"nickname",align:"center",width:"240px"}}),t._v(" "),n("el-table-column",{attrs:{label:"手机号",prop:"mobile",align:"center",width:"120px"}}),t._v(" "),n("el-table-column",{attrs:{label:"商品",prop:"main_attr",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{label:"款式",prop:"sec_attr",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{label:"尺码",prop:"size",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{label:"购买数量",prop:"all_num",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{label:"可提货数量",prop:"num",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{label:"已提货数量",prop:"already_num",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{label:"剩余提货数量",prop:"cel_num",align:"center"}})],1)],1),t._v(" "),n("div",{staticClass:"pagination"},[n("pagination",{attrs:{total:t.totalPage,limit:t.params.page_size,page:t.params.page_index},on:{pagination:t.changePagination,"update:limit":t.changePagination}})],1)])},r=[],i=(n("ac6a"),n("9a95")),o={name:"ExperienceStock",data:function(){return{loading:!1,dialogVisible:!1,experienceOptions:[],activityOptions:[],tableHeight:0,params:{page_index:1,page_size:10,activity_id:""},labelWidth:"100px",goodList:[],selelcted:{goodId:"",num:""},goodsArr:[],sendList:[],detail:"",detailShow:!1,totalPage:0,spanData:[]}},created:function(){this.getActivity()},mounted:function(){var t=this;this.$nextTick((function(){t.tableHeight=document.getElementsByClassName("table_box")[0].offsetHeight}))},methods:{objectSpanMethod:function(t){var e=t.row,n=t.column,a=(t.rowIndex,t.columnIndex,n["property"]+"-span");if(e[a])return e[a]},mergeTableRow:function(t){var e=t.data,n=t.mergeColNames,a=t.firstMergeColNames,r=t.firstMerge;return n&&0!==n.length?(n.forEach((function(t){var i={};e=e.map((function(o,l){var c=o[t];if(i[c]&&i[c].newIndex===l){var s=0!==a.filter((function(e){return e===t})).length,u=0===n.filter((function(t){return t===r})).length;u&&s||s&&e[l][r+"-span"]&&1===e[l][r+"-span"].rowspan?o[t+"-span"]={rowspan:1,colspan:1}:(e[i[c]["index"]][t+"-span"].rowspan++,o[t+"-span"]={rowspan:0,colspan:0},i[c]["num"]++,i[c]["newIndex"]++)}else i[c]={num:1,index:l,newIndex:l+1},o[t+"-span"]={rowspan:1,colspan:1};return o}))})),e):e},getActivity:function(){var t=this;Object(i["n"])().then((function(e){200===e.code?(t.activityOptions=e.data,t.params.activity_id=e.data[0].id,t.getList()):t.$message.error(e.message||"获取活动列表失败")}))},getList:function(){var t=this;this.loading=!0,Object(i["g"])(this.params).then((function(e){if(200===e.code){var n=e.data.list,a=[],r=function(t){n[t].rate.map((function(e){a.push({nickname:n[t].user.nickname,mobile:n[t].user.mobile,num:e.num,all_num:e.all_num,cel_num:e.cel_num,already_num:e.already_num,main_attr:e.get_goods.main_attr,size:e.get_goods.size,sec_attr:e.get_goods.sec_attr})}))};for(var i in n)r(i);t.sendList=a,t.sendList=t.mergeTableRow({data:a,mergeColNames:["nickname","mobile","main_attr","sec_attr"],firstMergeColNames:[],firstMerge:"nickname"}),t.totalPage=e.data.total}else t.$message.error(e.message||"获取列表失败");t.loading=!1})).catch((function(){t.loading=!1}))},changePagination:function(t){var e=t.page,n=t.limit;this.params.page_size=n,this.params.page_index=e,this.getList()}}},l=o,c=(n("c115"),n("2877")),s=Object(c["a"])(l,a,r,!1,null,"38179105",null);e["default"]=s.exports},edfd:function(t,e,n){}}]);
|