chunk-cca25aaa.6dacda84.js 8.4 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-cca25aaa"],{"0bd0":function(t,e,n){},"20f4":function(t,e,n){"use strict";n("0bd0")},"9a95":function(t,e,n){"use strict";n.d(e,"m",(function(){return i})),n.d(e,"h",(function(){return o})),n.d(e,"n",(function(){return r})),n.d(e,"i",(function(){return l})),n.d(e,"p",(function(){return s})),n.d(e,"c",(function(){return d})),n.d(e,"j",(function(){return c})),n.d(e,"k",(function(){return u})),n.d(e,"e",(function(){return f})),n.d(e,"d",(function(){return p})),n.d(e,"o",(function(){return g})),n.d(e,"f",(function(){return h})),n.d(e,"a",(function(){return m})),n.d(e,"l",(function(){return _})),n.d(e,"g",(function(){return b})),n.d(e,"b",(function(){return v}));var a=n("b775");function i(t){return Object(a["a"])({url:"/exp/getStorageTotal",method:"get",params:t})}function o(t){return Object(a["a"])({url:"/exp/getExpStore",method:"get",params:t})}function r(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 s(t){return Object(a["a"])({url:"/exp/storageSend",method:"post",data:t})}function d(t){return Object(a["a"])({url:"exp/editStorageSend",method:"post",data:t})}function c(t){return Object(a["a"])({url:"/exp/getSend",method:"get",params:t})}function u(t){return Object(a["a"])({url:"/exp/getSendDetail",method:"get",params:t})}function f(t){return Object(a["a"])({url:"/exp/getAccept",method:"get",params:t})}function p(t){return Object(a["a"])({url:"/exp/expCounting",method:"post",data:t})}function g(t){return Object(a["a"])({url:"/exp/outbound",method:"post",data:t})}function h(t){return Object(a["a"])({url:"exp/getActivityAgentInfo",method:"get",params:t})}function m(t){return Object(a["a"])({url:"/exp/checkInventory",method:"post",data:t})}function _(t){return Object(a["a"])({url:"/exp/getStorageLog",method:"get",params:t})}function b(t){return Object(a["a"])({url:"/exp/getActivityData",method:"get",params:t})}function v(t){return Object(a["a"])({url:"/exp/deleteStorage",method:"post",data:t})}},df16: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"}),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:"",stripe:"",data:t.sendList,height:t.tableHeight+"px","cell-style":{padding:"10px 0"}}},[n("el-table-column",{attrs:{label:"序号",type:"index",width:"80",align:"center",index:function(e){return t.params.page_size*(t.params.page_index-1)+e+1}}}),t._v(" "),n("el-table-column",{attrs:{label:"体验店",prop:"store",align:"center","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[t._v("\n "+t._s(n.store&&n.store.name)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"活动",prop:"activity",align:"center","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[t._v("\n "+t._s(n.activity&&n.activity.title)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"car",label:"车辆",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{prop:"send_at",label:"发货时间",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{label:"是否入库",prop:"user",align:"center","show-overflow-tooltip":!0,width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("el-tag",{attrs:{type:0===a.state?"danger":"success"}},[t._v("\n "+t._s(0===a.state?"未入库":"已入库")+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"操作",prop:"status",width:"320",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("el-button",{attrs:{type:"text"},on:{click:function(e){return t.handleDetail(a.id)}}},[t._v("详情")])]}}])})],1)],1),t._v(" "),n("div",{staticClass:"dialog"},[n("el-dialog",{attrs:{title:"待入库详情",visible:t.detailShow,width:"45%"},on:{"update:visible":function(e){t.detailShow=e}}},[n("el-form",{attrs:{"label-position":"right","label-width":"80px"}},[n("el-form-item",{attrs:{label:"活动:","label-width":t.labelWidth}},[t._v(t._s(t.detail&&t.detail.activity.title))]),t._v(" "),n("el-form-item",{attrs:{label:"体验店:","label-width":t.labelWidth}},[t._v(t._s(t.detail&&t.detail.store.name))]),t._v(" "),n("el-form-item",{attrs:{label:"车辆信息:","label-width":t.labelWidth}},[t._v(t._s(t.detail.car))]),t._v(" "),n("el-form-item",{attrs:{label:"发货时间:","label-width":t.labelWidth}},[t._v(t._s(t.detail.send_at))]),t._v(" "),n("el-form-item",{attrs:{label:"商品信息:","label-width":t.labelWidth}},[t.detail&&t.detail.send_info.length>0?n("div",{staticClass:"good_info"},t._l(t.detail.send_info,(function(e,a){return n("div",{key:a},[n("div",{staticClass:"flex thumb_title"},[n("p",{staticStyle:{width:"40%"}},[t._v(t._s(e.main_attr))]),t._v(" "),n("p",{staticStyle:{width:"40%"}},[t._v(t._s(e.size))]),t._v(" "),n("p",{staticStyle:{width:"20%"}},[t._v(t._s(e.num))])])])})),0):t._e()])],1),t._v(" "),0===t.detail.state?n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.detailShow=!1}}},[t._v("取 消")]),t._v(" "),n("el-button",{directives:[{name:"throttle",rawName:"v-throttle",value:2e3,expression:"2000"}],attrs:{type:"primary"},on:{click:t.handleIn}},[t._v("入 库")])],1):t._e()],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)])},i=[],o=(n("c5f6"),n("20d6"),n("9a95")),r={name:"ExperienceStock",data:function(){return{loading:!1,dialogVisible:!1,experienceOptions:[],activityOptions:[],tableHeight:0,params:{page_index:1,page_size:10},labelWidth:"100px",goodList:[],selelcted:{goodId:"",num:""},goodsArr:[],sendList:[],detail:"",detailShow:!1,totalPage:0}},created:function(){this.getList()},mounted:function(){var t=this;this.$nextTick((function(){t.tableHeight=document.getElementsByClassName("table_box")[0].offsetHeight}))},methods:{handleIn:function(){var t=this;this.$confirm("确定已收到此次货物","入库确认",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var e=t.detail,n=e.id,a=e.send_info,i=e.activity_id;t.experienceIn(n,a,i),t.detailShow=!1})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},experienceIn:function(t,e,n){var a=this;Object(o["d"])({send_id:t,accept_info:e,activity_id:n}).then((function(t){200===t.code?(a.$message.success("入库成功"),a.getList()):a.$message.error(t.message||"入库失败")}))},handleDetail:function(t){var e=this;Object(o["k"])({send_id:t}).then((function(t){if(200===t.code){var n=t.data.send_info;n&&(t.data.send_info=JSON.parse(t.data.send_info)),e.detail=t.data,e.detailShow=!0}else e.$message.error(t.message||"获取发货详情失败")}))},handleSureGood:function(t){this.selelcted.num="",this.selectGood=this.goodList.filter((function(e){return e.id===t}))[0]},handleAddCar:function(){var t=this;if(!this.selelcted.goodId||!this.selelcted.num||"0"===this.selelcted.num)return this.$message.warning("请选择并正确填写商品数量"),!1;var e=this.detail.send_info.findIndex((function(e){return e.goods_id===t.selelcted.goodId}));-1===e?this.goodList.map((function(e){e.id===t.selelcted.goodId&&t.detail.send_info.push({goods_id:t.selelcted.goodId,sex:e.sec_attr,size:e.size,num:t.selelcted.num,main_attr:e.main_attr})})):this.detail.send_info.map((function(e){e.goods_id===t.selelcted.goodId&&(e.num=Number(e.num),e.num+=Number(t.selelcted.num))})),this.selelcted.goodId="",this.selelcted.num=""},handleCarDelete:function(t){this.goodsArr.splice(t,1)},getList:function(){var t=this;Object(o["e"])(this.params).then((function(e){if(200===e.code){var n=e.data.list;n.map((function(t){t.send_at?t.send_at=/\d{4}-\d{1,2}-\d{1,2}/g.exec(t.send_at):t.send_at=""})),t.sendList=n,t.totalPage=e.data.total}else t.$message.error(e.message||"获取列表失败")}))},changePagination:function(t){var e=t.page,n=t.limit;this.params.page_size=n,this.params.page_index=e,this.getList()}}},l=r,s=(n("20f4"),n("2877")),d=Object(s["a"])(l,a,i,!1,null,"63b9d318",null);e["default"]=d.exports}}]);