Files
oms/back/public/static/js/chunk-5f0b.b824afaf.js
2026-03-10 18:45:36 +08:00

1 line
7.3 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-5f0b"],{"3+gS":function(t,e,a){"use strict";var o=a("E64S");a.n(o).a},E64S:function(t,e,a){},KMrf:function(t,e,a){"use strict";a.r(e);var o=a("c/X4"),r={data:function(){return{modid:"",selBatchNumber:"",batchNumber:"",batchList:[],packageNumber:"",cInvName:"",StartDate:"",mocode:"",qty:"",RowNumber:""}},created:function(){},mounted:function(){this.getBatchList(),this.getCurrentInfo()},methods:{rounding:function(t,e){return parseFloat(t[e.property]).toFixed(2)},SetBatchInfo:function(t){this.modid=t.MoDId,this.selBatchNumber=t.MoLotCode,this.cInvName=t.cInvName,this.StartDate=t.StartDate,this.mocode=t.mocode,this.qty=t.qty,this.RowNumber=t.ROW_NUMBER},getBatchList:function(){var t=this;o.a.getProductionBatchList().then(function(e){t.batchList=e.data.data,console.log(t.batchNumber)})},getCurrentInfo:function(){var t=this;o.a.GetCurrentBatchAndPackage().then(function(e){var a=e.data.data;console.log(a),t.modid=a.modid,t.selBatchNumber=a.batch,t.packageNumber=a.package})},setCurrentBatchAndPackage:function(){var t=this,e={modid:this.modid,batch:this.selBatchNumber,package:this.packageNumber};console.log(e),o.a.SetCurrentBatchAndPackage(e).then(function(e){var a={batch:t.selBatchNumber,name:t.cInvName,count:t.qty,date:t.StartDate,row:t.RowNumber,modid:t.modid,mocode:t.mocode};o.a.addBatchNumber(a).then(function(e){t.$message("设置成功")})})},addBatchNumber:function(){var t=this,e={batch:this.selBatchNumber};console.log(e),o.a.addBatchNumber(e).then(function(e){t.$message("设置成功")})},manualAddBatchNumber:function(){var t=this;this.$prompt("请输入手动批号","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(e){var a=e.value;o.a.addBatchNumber({batch:a}).then(function(e){t.$message("设置成功")})}).catch(function(){t.$message({type:"info",message:"取消输入"})})}}},n=(a("3+gS"),a("KHd+")),c=Object(n.a)(r,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"box",staticStyle:{"margin-left":"20px",height:"200px"}},[a("el-card",{staticClass:"box-card",staticStyle:{"margin-top":"20px",width:"1000px"}},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",{staticStyle:{"margin-bottom":"20dp"}},[t._v("生产批次")])]),t._v(" "),a("el-form",[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("div",{staticClass:"grid-content bg-purple"},[a("el-form-item",{attrs:{label:"生产订单ID"}},[a("el-input",{staticStyle:{width:"200px"},model:{value:t.modid,callback:function(e){t.modid=e},expression:"modid"}})],1)],1)]),t._v(" "),a("el-col",{attrs:{span:8}},[a("div",{staticClass:"grid-content bg-purple"},[a("el-form-item",{attrs:{label:"当前批次"}},[a("el-input",{staticStyle:{width:"200px"},model:{value:t.selBatchNumber,callback:function(e){t.selBatchNumber=e},expression:"selBatchNumber"}})],1)],1)]),t._v(" "),a("el-col",{attrs:{span:8}},[a("div",{staticClass:"grid-content bg-purple"},[a("el-form-item",{attrs:{label:"当前包号"}},[a("el-input",{staticStyle:{width:"200px"},model:{value:t.packageNumber,callback:function(e){t.packageNumber=e},expression:"packageNumber"}})],1)],1)])],1),t._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:4}},[a("div",{staticClass:"grid-content bg-purple"},[a("el-form-item",{attrs:{label:""}},[a("div",{staticClass:"button-group"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:function(e){t.setCurrentBatchAndPackage()}}},[t._v("同步入库信息")])],1)])],1)]),t._v(" "),a("el-col",{attrs:{span:4}},[a("div",{staticClass:"grid-content bg-purple"},[a("el-form-item",{attrs:{label:""}},[a("div",{staticClass:"button-group"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:function(e){t.manualAddBatchNumber()}}},[t._v("手动插入批次")])],1)])],1)])],1)],1)],1)],1),t._v(" "),a("div",{staticClass:"box"},[a("el-card",{staticClass:"box-card",staticStyle:{"margin-top":"20px","margin-left":"20px",height:"500px"}},[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":"10px","margin-bottom":"30px"},attrs:{data:t.batchList,height:"350",border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{prop:"MoDId",label:"生产订单子表ID",width:"200"}}),t._v(" "),a("el-table-column",{attrs:{prop:"cInvName",label:"物料名称",width:"200"}}),t._v(" "),a("el-table-column",{attrs:{prop:"MoLotCode",label:"批次编号",width:"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"mocode",label:"生产订单",width:"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"modid",label:"生产订单子表",width:"120"}}),t._v(" "),a("el-table-column",{attrs:{prop:"qty",label:"生产数量",width:"100",formatter:t.rounding}}),t._v(" "),a("el-table-column",{attrs:{prop:"StartDate",label:"生产日期",width:"200"}}),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.SetBatchInfo(e.row)}}},[t._v("选择")])]}}])})],1)],1)],1)])},[],!1,null,null,null);c.options.__file="index.vue";e.default=c.exports},"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})}}}}]);