diff --git a/jero-web/src/views/projectManagement/components/listEditModel.vue b/jero-web/src/views/projectManagement/components/listEditModel.vue index 8b410da1c..29b533712 100644 --- a/jero-web/src/views/projectManagement/components/listEditModel.vue +++ b/jero-web/src/views/projectManagement/components/listEditModel.vue @@ -31,7 +31,6 @@ @@ -46,7 +45,6 @@ @@ -60,7 +58,6 @@ @@ -158,8 +155,6 @@ @@ -169,14 +164,12 @@
- * + * {{$t('certificationLevel')}}
@@ -202,7 +195,7 @@
- +
* @@ -211,9 +204,9 @@ - + @@ -255,7 +248,7 @@
- * + * {{$t('engineeringInterfacePerson')}}
@@ -263,7 +256,6 @@ class="box-input" allowClear :getPopupContainer="triggerNode=> triggerNode.parentNode" - :disabled="formInline.roleCodeIndex == 0 ? false : true" v-model="formInline.engineeringInterfacePerson"> -
+
 {{$t('confirmationOfDesignConformity')}}
- +
@@ -424,11 +408,7 @@ - +
@@ -472,11 +452,7 @@
- +
@@ -657,18 +633,10 @@ -
+
 {{$t('verificationAndConformityconfirmation')}}
- +
@@ -753,11 +721,7 @@ - +
@@ -802,11 +766,7 @@
- +
diff --git a/jero-web/src/views/projectManagement/components/listOfRegulations.vue b/jero-web/src/views/projectManagement/components/listOfRegulations.vue index cc980b94b..759991c7c 100644 --- a/jero-web/src/views/projectManagement/components/listOfRegulations.vue +++ b/jero-web/src/views/projectManagement/components/listOfRegulations.vue @@ -264,11 +264,7 @@ > {{ $t('edit') }} @@ -459,6 +455,7 @@ {{ $t('dataLoading') }} + {{ $t('Submitting') }} @@ -1179,7 +1176,10 @@ selectedRowKeysList: [], rowKeysWarningList: [], rolecode: false, - dataWarningList: [] + dataWarningList: [], + completeTaskList: [], + requestsNum: 0, + JTextLoading: false } }, @@ -2082,7 +2082,7 @@ }) }, - startProcess(value,type) { + startProcess(value, type,index) { let query = { type: type, projectLawsInvnetoryList: value, @@ -2092,11 +2092,20 @@ } postAction('/workFlow/startProcess', query).then((res) => { if (res.success) { - // this.visible = false - // this.selectedRowKeys = [] - // this.$message.success(this.$t('OperationSuccessful')) - // this.confirmLoading = false - this.completeTask(value, res.result) + this.completeTaskList.push(this.completeTask(value, res.result,index)) + Promise.all(this.completeTaskList).then((res) => { + if (this.requestsNum == res.length) { + this.visible = false + this.selectedRowKeys = [] + this.$message.success(this.$t('OperationSuccessful')) + this.confirmLoading = false + this.JTextLoading = false + this.getList() + } + }).catch((error) => { + this.JTextLoading = false + this.$message.warning(error.message) + }) } else { this.$message.warning(this.$t('operationFailed')) } @@ -2119,14 +2128,9 @@ } postAction('/workFlow/completeTask', query).then((res) => { if (res.success) { - // this.visible = false - // this.selectedRowKeys = [] - // this.$message.success(this.$t('OperationSuccessful')) - // this.confirmLoading = false - // this.getList() resolve(res) } else { - this.$message.warning(this.$t('operationFailed')) + reject(res) } }) }) @@ -2180,6 +2184,7 @@ let designList = [] let verifyList = [] let detailedWarningList = [] + this.completeTaskList = [] this.detailedWarningList = this.dataWarningList || [] let _this = this _this.$destroyAll() @@ -2225,15 +2230,21 @@ }) return } - this.$confirm({ - content: _this.$t('confirmLaunchTask'), - onOk() { - _this.submitAdmin(dataList) - } - }) + if (num == 1) { + this.$confirm({ + content: _this.$t('confirmLaunchTask'), + onOk() { + _this.submitAdmin(dataList) + } + }) + } else { + _this.submitAdmin(dataList) + } }, submitAdmin(dataList) { let _this = this + this.requestsNum = 0 + this.JTextLoading = true for (let i = 0; i < dataList.length; i++) { if (dataList[i].designDeliverableType) { if (!dataList[i].designDutyId) { @@ -2255,18 +2266,29 @@ < div > { dataList[i].serialNumber + _this.$t('thePersonResponsibleForVerifyingEmpty') } < /div>) } } - if (dataList[i].designDeliverableType && dataList[i].designDutyId && dataList[i].designDueDate) { - _this.startProcess(dataList[i], 2) - Promise.all(_this.completeTask()).then((res) => { - console.log(res) - }).catch(error => { - console.log('error', error) - }) + if (dataList[i].designFlowStatus == 'List to be checked') { + if (dataList[i].designDeliverableType && dataList[i].designDutyId && dataList[i].designDueDate) { + this.requestsNum++ + _this.startProcess(dataList[i], 2,this.requestsNum) + } + } else { + _this.detailedWarningList.push( + < div > { dataList[i].serialNumber + _this.$t('pleaseSelectTheDataverificationVerified') } < /div>) } - if (dataList[i].verifyDeliverableType && dataList[i].verifyDutyId && dataList[i].verifyDueDate) { - _this.startProcess(dataList[i], 2) + if (dataList[i].verifyFlowStatus == 'List to be checked') { + if (dataList[i].verifyDeliverableType && dataList[i].verifyDutyId && dataList[i].verifyDueDate) { + this.requestsNum++ + _this.startProcess(dataList[i], 2,this.requestsNum) + } + } else { + _this.detailedWarningList.push( + < div > { dataList[i].serialNumber + _this.$t('pleaseSelectTheDataverificationVerified') } < /div>) } } + if (this.requestsNum == 0) { + _this.promptInformation(_this.detailedWarningList) + this.JTextLoading = false + } }, handleOkComment() { this.$refs.ruleFormComment.validate(valid => {