ysy 2 anni fa
parent
commit
a276706783

+ 3 - 3
src/views/materialPlan/components/plan-edit-dialog.vue

@@ -631,7 +631,7 @@ export default {
     handleMethod(row) {
       this.$refs.timeDialogRef.open(row)
     },
-    chooseTime(current , timeList) {
+    chooseTime(current, timeList) {
 
       let tableList = []
       tableList = this.$refs.table.getData()
@@ -640,11 +640,11 @@ export default {
         if (e.id == current.detailId) {
           console.log(e)
           e.materialList.forEach(m => {
-            if(m.id == current.id) {
+            if (m.id == current.id) {
               m.timeList = timeList
             }
           })
-    
+
 
 
         }

+ 1 - 1
src/views/materialPlan/components/timeDialog.vue

@@ -102,7 +102,7 @@ export default {
 
         open(row) {
 
-            this.form.timeList = row.timeList
+            this.form.timeList = row.timeList || []
             this.current = row;
             this.visible = true