From 9f8cc82b9d59c9fe44cff4a68fe418680f9b733a Mon Sep 17 00:00:00 2001 From: wws <18630710203@163.com> Date: Thu, 14 Sep 2023 10:56:36 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BD=E5=9D=AF=E8=AE=A2=E5=8D=95=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/plan/whiteOrder/index.vue | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/views/plan/whiteOrder/index.vue b/src/views/plan/whiteOrder/index.vue index 76af973f..a6e8d97e 100644 --- a/src/views/plan/whiteOrder/index.vue +++ b/src/views/plan/whiteOrder/index.vue @@ -800,6 +800,8 @@ export default { this.$modal.msgError(response.msg) return } + this.getList() + this.splitOpen = false this.$modal.msgSuccess('提交成功') }) @@ -817,9 +819,6 @@ export default { batchCode: '', batchQuantity: '' }] - - this.getList() - this.splitOpen = false }, // 判空、空串 checkNull(entity) { @@ -879,6 +878,10 @@ export default { handleUpdate(row) { console.log("点击了拆分按钮") // 清除缓存 + + //重置表单 + this.resetBatch() + this.productData = []; this.splitForm = { id: null, @@ -1023,6 +1026,10 @@ export default { // TODO 清楚缓存 // 设置白坯 this.form.prodType = 'white' + // 初始化设置计划生产日期 + this.form.planProDate = moment(new Date()).format('YYYY-MM-DD') + // 初始化设置计划完成日期 + this.form.planComplete = moment(new Date()).format('YYYY-MM-DD') // 打开新增弹窗 this.dialogVisible = true; },