| | |
| | | // 表单提交 |
| | | 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") |
| | | item.files.groups.forEach(groups => { |
| | | groups.fields.forEach(files => { |
| | | if (files.files.length === 0) { |
| | | this.$alert("当前存在未上传附件的技术资料,请重新上传") |
| | | isFiles = false |
| | | return isFiles |
| | | } |
| | | 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) { |
| | | this.$alert("当前存在未上传附件的技术资料,请重新上传") |
| | | isFiles = false |
| | | return isFiles |
| | | } |
| | | }) |
| | | }) |
| | | }) |
| | | }) |
| | | console.log(this.dataForm, "this.dataForm11111") |
| | | if (submitType == 'tj' || submitType == 'bl') { |
| | | if (!isFiles){ |
| | | return |
| | | } |
| | |
| | | } |
| | | 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, |