MrShi
2024-02-23 e4be5ba9eea9fe8408f3a7048a315b3767b33f49
company/src/components/enterprise/OperaDispatchUnitWindow.vue
@@ -184,8 +184,12 @@
      // 编辑
      this.$nextTick(() => {
        for (const key in this.form) {
            console.log(key)
            // if (key !== 'saveDuSolutionDTOList') {
          this.form[key] = target[key]
            // }
        }
        console.log(this.form)
      })
    },
      // 确认新建
@@ -227,18 +231,6 @@
          this.$refs.form.validate((valid) => {
              if (!valid) {
                  return
              }
              for (let i = 0; i < this.form.saveDuSolutionDTOList.length; i++) {
                if (!this.form.saveDuSolutionDTOList[i].solutionId) {
                    this.$message.warning(`第${i + 1}项保险方案为空!`)
                    return
                }
                for (let a = 0; a < this.form.saveDuSolutionDTOList[i].saveDuWorkTypeDTOList.length; a++) {
                    if (!this.form.saveDuSolutionDTOList[i].saveDuWorkTypeDTOList[a].workTypeId) {
                        this.$message.warning(`第${i + 1}项保险方案第${a + 1}项工种为空!`)
                        return
                    }
                }
              }
              // 调用新建接口
              this.isWorking = true