From 71c0a1dba85e9067793e3142acf2868901f6c363 Mon Sep 17 00:00:00 2001
From: Vergil <974548713@qq.com>
Date: Sat, 25 Apr 2020 13:24:56 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E8=AE=A1=E5=88=92=E7=AE=A1?=
=?UTF-8?q?=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../ProjectPlanningManagementNew/index.vue | 32 +++++++++++--------
1 file changed, 18 insertions(+), 14 deletions(-)
diff --git a/src/views/ManufacturingCenter/ProjectPlanningManagementNew/index.vue b/src/views/ManufacturingCenter/ProjectPlanningManagementNew/index.vue
index f607b0d5..7c9ba3ed 100644
--- a/src/views/ManufacturingCenter/ProjectPlanningManagementNew/index.vue
+++ b/src/views/ManufacturingCenter/ProjectPlanningManagementNew/index.vue
@@ -21,7 +21,6 @@
查询
- 保存
签订日期:
@@ -240,6 +239,7 @@
子计划:{{ machineNum }} 制造
子计划:{{ machineNum }} 装配
计划
+ 保存
@@ -766,19 +766,23 @@ export default {
} else if (row.计划完成时间 < row.任务开始时间) {
this.$message.error('计划完成时间应大于任务开始时间')
} else {
- editTable2(row.组件计划流水号, row.组件流水号, row.任务名称, row.负责人, row.接收任务时间, row.任务开始时间, row.计划完成时间, row.货期, row.实际完成时间, row.备注).then(response => {
- if (response.data[0].result === '1') {
- row.edit = false
- this.$notify({
- title: '成功',
- message: '信息修改成功',
- type: 'success'
- })
- this.searchTable2()
- } else {
- this.$message.error('信息修改失败')
- }
- })
+ if (row.组件流水号 && row.任务名称 && row.负责人 && row.接收任务时间 && row.任务开始时间 && row.计划完成时间 && row.货期) {
+ editTable2(row.组件计划流水号, row.组件流水号, row.任务名称, row.负责人, row.接收任务时间, row.任务开始时间, row.计划完成时间, row.货期, row.实际完成时间, row.备注).then(response => {
+ if (response.data[0].result === '1') {
+ row.edit = false
+ this.$notify({
+ title: '成功',
+ message: '信息修改成功',
+ type: 'success'
+ })
+ this.searchTable2()
+ } else {
+ this.$message.error('信息修改失败')
+ }
+ })
+ } else {
+ this.$message.error('请未输入项')
+ }
}
},
// 表格2取消