jinlin
2024-01-31 9025b9cf7ec8610003d445a31d93e35e7bd73c2e
web/src/views/modules/itemCirculatOrder/ItemCirculatOrder-AddOrUpdate.vue
@@ -409,8 +409,19 @@
      // 表单提交
      async formSubmit(submitType) {
        let isFiles = true;
        let flag = true;
        console.log(this.dataForm, "this.dataForm11111")
        this.dataForm.technicalList.forEach(item => {
          console.log(item, "his.dataForm.technicalList.forEach")
          if (parseInt(item.secretClass) > localStorage.getItem('userSecretClass')) {
            this.$alert("当前项目设置的密级高于当前用户的密级,请重新设置")
            flag =false
          }
        })
        if (!flag){
          return
        }
        if (submitType === 'tj' || submitType === 'bl') {
          this.dataForm.technicalList.forEach(item => {
          item.files.groups.forEach(groups => {
            groups.fields.forEach(files => {
              if (files.files.length === 0) {
@@ -421,8 +432,6 @@
            })
          })
        })
        console.log(this.dataForm, "this.dataForm11111")
        if (submitType == 'tj' || submitType == 'bl') {
          if (!isFiles){
            return
          }
@@ -435,7 +444,7 @@
        }
        let res = await this.$http[!this.dataForm.id ? 'post' : 'put']('/itemCirculatOrder/ItemCirculatOrder/', this.dataForm)
        if (res.success) {
          if (this.stepMarker === 'wplz_wprk' && submitType == 'bl') {
          if (this.stepMarker === 'wplz_wprk' && submitType === 'bl') {
            this.$nextTick(() => {
              this.$refs.addOrUpdate.$refs.dialog.init(null, {
                id: res.data,