소스 검색

检验工序问题处理

lph 1 년 전
부모
커밋
7aab031c74
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      zkqy-ui/src/views/bussiness/dialogCompments/Mec/PersonalDistribution.vue

+ 5 - 2
zkqy-ui/src/views/bussiness/dialogCompments/Mec/PersonalDistribution.vue

@@ -557,10 +557,13 @@ export default {
     initData(nval) {
       // this.form = JSON.parse(JSON.stringify(nval?.resultMap));
       Object.assign(this.form, nval?.resultMap);
-      this.form.personnelList.forEach((element) => {
+      console.log(this.form);
+      this.form.personnelList?.forEach((element) => {
         element.isEdit = false;
       });
-      this.oldTableData = JSON.parse(JSON.stringify(this.form.personnelList));
+      this.oldTableData = JSON.parse(
+        JSON.stringify(this.form.personnelList || [])
+      );
       this.checked = this.form.task1 == "true" ? true : false;
       // this.$set(this.form, 'card', nval?.resultMap.qualityControlCard);
       this.$set(this.form, "state", nval?.resultMap.taskNnodeOtherState);