From ec75a7a7a9650a6317cbc1d40dbc302b218576cd Mon Sep 17 00:00:00 2001 From: wws <18630710203@163.com> Date: Fri, 28 Jul 2023 13:34:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B9=BF=E6=96=99=E8=AE=A1=E5=88=92=E7=AE=A1?= =?UTF-8?q?=E7=90=86(=E8=AE=A1=E5=88=92=E6=96=B0=E5=A2=9E=E5=AE=8C?= =?UTF-8?q?=E6=88=90)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mes/plan/index.vue | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/views/mes/plan/index.vue b/src/views/mes/plan/index.vue index 5687b6d..fb2ae43 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(); },