diff --git a/src/views/plan/whiteOrder/index.vue b/src/views/plan/whiteOrder/index.vue index 76af973..a6e8d97 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; },