1 line
4.9 KiB
JavaScript
1 line
4.9 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-d967"],{"/oQj":function(t,e,a){"use strict";a.r(e);var o=a("c/X4"),n={data:function(){return{batchList:[],batchInfo:[],selectBatch:""}},mounted:function(){this.GetBatchList()},created:function(){},methods:{GetBatchList:function(){var t=this;o.a.getBatchList().then(function(e){t.batchList=e.data.data,console.log(t.batchList)})},GetBatchInfo:function(t){var e=this,a={batch:t};this.selectBatch=t,o.a.getBatchInfo(a).then(function(t){e.batchInfo=t.data.data,console.log(e.batchInfo)})}}},r=(a("xPuj"),a("KHd+")),c=Object(r.a)(n,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"display-flex"},[a("div",{staticClass:"box"},[a("el-card",{staticClass:"box-card",staticStyle:{"margin-top":"20px","margin-left":"20px"}},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",{staticStyle:{"margin-bottom":"20dp"}},[t._v("库存批次列表")])]),t._v(" "),a("el-table",{staticStyle:{width:"100%","margin-left":"30px"},attrs:{data:t.batchList,border:"",fit:"","highlight-current-row":"",height:"450px"}},[a("el-table-column",{attrs:{prop:"batch",label:"批次编号",width:"180"}}),t._v(" "),a("el-table-column",{attrs:{prop:"count",label:"库存数量",width:"100"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"primary"},on:{click:function(a){t.GetBatchInfo(e.row.batch)}}},[t._v("详情")])]}}])})],1)],1)],1),t._v(" "),a("div",{staticClass:"box",staticStyle:{"margin-left":"20px"}},[a("el-card",{staticClass:"box-card",staticStyle:{"margin-top":"20px"}},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",{staticStyle:{"margin-bottom":"20dp"}},[t._v("批次"+t._s(t.selectBatch)+"库存详情")])]),t._v(" "),a("el-table",{staticStyle:{width:"800px"},attrs:{data:t.batchInfo}},[a("el-table-column",{attrs:{prop:"name",label:"存储区域编号",align:"center",width:"150"}}),t._v(" "),a("el-table-column",{attrs:{label:"储位"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticStyle:{display:"flex"}},t._l(e.row.bins,function(e){return a("div",{staticStyle:{"margin-right":"20px"}},[1==e.enable&&e.state>0?a("el-button",{attrs:{type:"danger"}},[t._v("\n "+t._s(e.state)+"\n ")]):t._e(),t._v(" "),2==e.enable?a("el-button",{attrs:{type:"success"}},[t._v("\n "+t._s(e.state)+"\n ")]):t._e(),t._v(" "),1==e.enable&&0==e.state?a("el-button",[t._v("\n "+t._s(e.state)+"\n ")]):t._e()],1)}))]}}])})],1)],1)],1)])},[],!1,null,null,null);c.options.__file="batch.vue";e.default=c.exports},VOWE:function(t,e,a){},"c/X4":function(t,e,a){"use strict";var o=a("t3Un");e.a={GetBinsInfo:function(t){return Object(o.a)({url:"/storage/GetBinsInfo",method:"post",data:t})},GetStoreModel:function(){return Object(o.a)({url:"/store/GetStoreModel",method:"post"})},GetStoreModel2:function(){return Object(o.a)({url:"/store/GetStoreModel2",method:"post"})},ImportBinModelData:function(t){return Object(o.a)({url:"/store/ImportBinModel",method:"post",data:t})},SetStoreModel:function(t){return Object(o.a)({url:"/store/SetStoreModel",method:"post",data:t})},SaveStockInfo:function(t){return Object(o.a)({url:"/store/SaveStockInfo",method:"post",data:t})},saveBasicInfo:function(t){return Object(o.a)({url:"/store/SaveBasicInfo",method:"post",data:t})},getBasicInfo:function(){return Object(o.a)({url:"/store/GetBasicInfo",method:"post"})},getStoreStatData:function(){return Object(o.a)({url:"/store/GetStoreStatData",method:"post"})},getCheckRecord:function(){return Object(o.a)({url:"/store/GetCheckRecord",method:"post"})},getBatchList:function(){return Object(o.a)({url:"/storage/GetBatchList",method:"post"})},getAllBatchList:function(){return Object(o.a)({url:"/storage/GetAllBatchList",method:"post"})},getProductionBatchList:function(){return Object(o.a)({url:"/erp/GetProductionBatchList",method:"post"})},addBatchNumber:function(t){return Object(o.a)({url:"/storage/AddBatchNumber",method:"post",data:t})},GetCurrentBatchAndPackage:function(){return Object(o.a)({url:"/storage/GetCurrentBatchAndPackage",method:"post"})},SetCurrentBatchAndPackage:function(t){return Object(o.a)({url:"/storage/SetCurrentBatchAndPackage",method:"post",data:t})},getBatchInfo:function(t){return Object(o.a)({url:"/storage/GetBatchInfo",method:"post",data:t})},SetBinStoreInfo:function(t){return Object(o.a)({url:"/storage/SetBinStoreInfo",method:"post",data:t})},GetBinStoreInfo:function(t){return Object(o.a)({url:"/storage/GetBinStoreInfo",method:"post",data:t})},getInOutInfo:function(t){return Object(o.a)({url:"/storage/getInOutInfo",method:"post",data:t})},getProductByBatch:function(t){return Object(o.a)({url:"/storage/getProductByBatch",method:"post",data:t})}}},xPuj:function(t,e,a){"use strict";var o=a("VOWE");a.n(o).a}}]); |