diff --git a/src/views/mes/plan/index.vue b/src/views/mes/plan/index.vue index 5687b6d6..fb2ae43e 100644 --- a/src/views/mes/plan/index.vue +++ b/src/views/mes/plan/index.vue @@ -118,7 +118,7 @@ @pagination="getList" /> - + @@ -143,6 +143,7 @@ :data="workOrderList" tooltip-effect="dark" style="width: 100%" + max-height="240" @selection-change="handleSelectionChange"> @@ -159,7 +160,7 @@ - + @@ -196,6 +197,7 @@ :data="newWorkOrderList" tooltip-effect="dark" style="width: 100%" + max-height="240" @selection-change="handleSelectionChange"> @@ -287,16 +289,8 @@ export default { this.getList(); }, methods: { - /** 新增-料罐选择校验 */ - bucketSelectChange(e) { - // 如果当天 - console.log("这里是改变日期") - console.log(e) - }, /** 新增-确定按钮 */ batchBtn() { - console.log("这里是bms") - console.log(this.bmsList) // 数据判空 if (this.selectList == null || this.selectList === undefined){ this.$message({ @@ -371,8 +365,6 @@ export default { const selectedCodes = this.selectList.map(item => item.workorderCode); this.workOrderList = this.workOrderList.filter(item => !selectedCodes.includes(item.workorderCode)); - this.$message('点击了提交按钮!'); - // 重置数据 this.form.bucketId = null; this.form.productId = null; @@ -547,6 +539,7 @@ export default { const month = String(this.workOrderTime.getMonth() + 1).padStart(2, '0'); // 获取月份 const day = String(this.workOrderTime.getDate()).padStart(2, '0'); // 获取日期 const productDate = `${year}-${month}-${day}`; + getWorkOrderList(productDate).then(response => { this.workOrderList = response.data; // 刷新表格 @@ -603,10 +596,13 @@ export default { console.log("这里是工单list") console.log(this.newWorkOrderList) addWetPlan(this.newWorkOrderList).then(response => { - console.log("这里是返回的数据") - console.log(response) + if (response.code === 200){ + this.$message({ + message:'提交成功', + type:'success' + }) + } }) - this.$modal.msgSuccess("新增成功"); this.open = false; this.getList(); },