diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js
index 4731695af..73cd82371 100644
--- a/jero-web/src/common/lang/en-us.js
+++ b/jero-web/src/common/lang/en-us.js
@@ -1720,4 +1720,5 @@ module.exports = {
format:'It supports doc/docx/pdf format and is less than 50M in size',
cantTransferToYourself:"Can't transfer to yourself",
theDataYouInitiate:'The data you selected does not meet the process initiation criteria. Please recheck and initiate',
+ dataWithProcessReleasedCannotBeReset:'Data with a process status of list to be released cannot be reset',
}
\ No newline at end of file
diff --git a/jero-web/src/common/lang/zh-cn.js b/jero-web/src/common/lang/zh-cn.js
index a6a83d627..9369a1133 100644
--- a/jero-web/src/common/lang/zh-cn.js
+++ b/jero-web/src/common/lang/zh-cn.js
@@ -1822,4 +1822,5 @@ module.exports = {
format:'支持doc/docx/pdf格式,大小50M以内',
cantTransferToYourself:"不能转办给自己",
theDataYouInitiate:'您所选的数据,均不符合流程发起条件,请重新检查后发起',
+ dataWithProcessReleasedCannotBeReset:'流程状态为清单待发布的数据不能被重置',
}
\ No newline at end of file
diff --git a/jero-web/src/views/projectManagement/components/certificationList/index.vue b/jero-web/src/views/projectManagement/components/certificationList/index.vue
index 21166c48f..cf788bfe9 100644
--- a/jero-web/src/views/projectManagement/components/certificationList/index.vue
+++ b/jero-web/src/views/projectManagement/components/certificationList/index.vue
@@ -402,6 +402,7 @@
+ {{ $t('Submitting') }}
@@ -514,6 +515,7 @@
pageNo: 1,
pageSize: 50,
total: 0,
+ JTextLoading: false,
CertificationColor: {
'Test passed': 'accordColor',
'Test failed': 'nonConformityColor',
@@ -973,25 +975,49 @@
processResetClick() {
let _this = this
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
- this.$confirm({
- content: _this.$t('confirmResetProcess'),
- onOk() {
- let idList = JSON.parse(JSON.stringify(_this.selectedRowKeys))
- postAction('/project/projectCertificationInventoryEO/resetFlow', {
- ids: idList.join(','),
- projectLibraryId: _this.$route.query.id,
- operatorType: 'certificationInventoryStudioReset'
- }).then((res) => {
- if (res.success) {
- _this.$message.success(_this.$t('OperationSuccessful'))
- _this.selectedRowKeys = []
- _this.getList()
- } else {
- _this.$message.warning(res.message)
- }
- })
+ let ids = []
+ let notConditions = []
+ for (let i = 0; i < this.selectedRowKeysList.length; i++) {
+ if (this.selectedRowKeysList[i].flowStatus == 'List to be released') {
+ notConditions.push(this.selectedRowKeysList[i].inspectionItem)
+ } else {
+ ids.push(this.selectedRowKeysList[i].id)
}
- })
+ }
+ let data = ''
+ if (notConditions && notConditions.length > 0) {
+ data = this.$t('inspectionItems') + '"' + notConditions.join('、') + '"' + this.$t('conditionsNotMet') + ',' + this.$t('dataWithProcessReleasedCannotBeReset')
+ }
+ if (ids && ids.length > 0) {
+ this.$confirm({
+ content: _this.$t('confirmResetProcess'),
+ onOk() {
+ _this.JTextLoading = true
+ let idList = JSON.parse(JSON.stringify(_this.selectedRowKeys))
+ postAction('/project/projectCertificationInventoryEO/resetFlow', {
+ ids: idList.join(','),
+ projectLibraryId: _this.$route.query.id,
+ operatorType: 'certificationInventoryStudioReset'
+ }).then((res) => {
+ if (res.success) {
+ _this.$message.success(_this.$t('OperationSuccessful'))
+ _this.selectedRowKeys = []
+ _this.getList()
+ if (notConditions && notConditions.length > 0) {
+ _this.failedMessage(data)
+ }
+ _this.JTextLoading = false
+ } else {
+ _this.$message.warning(res.message)
+ _this.JTextLoading = false
+ }
+ })
+ }
+ })
+ } else {
+ this.failedMessage(data)
+ this.JTextLoading = false
+ }
} else {
this.$message.warning(this.$t('selectLeastOne'))
}
diff --git a/jero-web/src/views/projectManagement/components/listOfRegulations.vue b/jero-web/src/views/projectManagement/components/listOfRegulations.vue
index ac361119e..7ab49a743 100644
--- a/jero-web/src/views/projectManagement/components/listOfRegulations.vue
+++ b/jero-web/src/views/projectManagement/components/listOfRegulations.vue
@@ -1689,19 +1689,20 @@
for (let i = 0; i < this.dataSource.length; i++) {
for (let j = 0; j < selectedRowKeys.length; j++) {
if (this.dataSource[i].id == selectedRowKeys[j]) {
- content.push(this.dataSource[i])
+ // content.push(this.dataSource[i])
+ isTrue = true
}
}
}
- for (let i = 0; i < content.length; i++) {
- if (content[i].designFlowStatus == 'List to be released' &&
- content[i].verifyFlowStatus == 'List to be released') {
- isTrue = false
-
- } else {
- isTrue = true
- }
- }
+ // for (let i = 0; i < content.length; i++) {
+ // if (content[i].designFlowStatus == 'List to be released' &&
+ // content[i].verifyFlowStatus == 'List to be released') {
+ // isTrue = false
+ //
+ // } else {
+ // isTrue = true
+ // }
+ // }
if (isTrue) {
this.changeInterface(selectedRowKeys)
}