ysy 2 лет назад
Родитель
Сommit
8e54a93f70

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

@@ -433,10 +433,15 @@ export default {
   methods: {
     async open(type, row) {
       this.type = type;
+      this.visible = true;
       if (row) {
         this.getDetail(row.id)
+      } else {
+        this.$nextTick(() => {
+          this.$refs.table.setData([]);
+        })
       }
-      this.visible = true;
+      
     },
 
 
@@ -543,6 +548,7 @@ export default {
 
           this.$nextTick(() => {
           this.$refs.table.toggleRowExpansionAll()
+          this.$forceUpdate()
         })
 
         })

+ 2 - 2
src/views/materialPlan/index.vue

@@ -37,8 +37,8 @@
             删除
           </el-link>
 
-          <el-link type="primary" :underline="false" @click="todo(row)">
-            提交
+          <el-link type="primary" :underline="false" @click="todo(row)" v-if="row.approvalStatus == 0 || row.approvalStatus == 3">
+            提交 
           </el-link>
         </template>
       </ele-pro-table>