@@ -644,6 +644,8 @@
toggleSearchStatus: false,
visibleQuestion: false,
confirmLoadingQuestion: false,
+ isDesignCompliance: false,
+ isVerifyingCompliance: false,
pageNo: 1,
pageSize: 50,
total: 0,
@@ -908,13 +910,13 @@
trigger: 'change'
}
],
- deadlineDueDate:[
+ deadlineDueDate: [
{
required: true,
message: this.$t('deadlineForVerifyingComplianceResponsibilityConfirmation') + this.$t('cannotEmpty'),
trigger: 'change'
}
- ],
+ ]
},
queryParam: {},
fileTitle: '',
@@ -1398,7 +1400,8 @@
JTextLoading: false,
questionIdList: [],
questionWarning: [],
- startProcessList: []
+ startProcessList: [],
+ updateFlowStatusList: []
}
},
@@ -2459,8 +2462,11 @@
this.detailedSuccessList = []
this.detailedWarningList = []
})
- }else{
+ } else {
this.confirmLoading = true
+ if (this.updateFlowStatusList && this.updateFlowStatusList.length > 0) {
+ this.updateFlowStatusBatch()
+ }
for (let i = 0; i < this.startProcessList.length; i++) {
this.startProcess(this.startProcessList[i].dataList, this.startProcessList[i].type, this.startProcessList[i].requestsNum)
}
@@ -2488,7 +2494,7 @@
this.confirmLoading = false
this.JTextLoading = false
this.getList()
- if(this.detailedWarningList && this.detailedWarningList.length > 0){
+ if (this.detailedWarningList && this.detailedWarningList.length > 0) {
this.promptInformation(this.detailedWarningList)
}
}
@@ -2555,6 +2561,7 @@
if (idList && idList.length > 0) {
if (num == 0) {
this.startProcessList = []
+ this.updateFlowStatusList = []
this.submitClick(this.rowKeysSuccessList)
} else {
this.visibleComment = true
@@ -2576,9 +2583,13 @@
this.requestsNum = 0
// this.JTextLoading = true
for (let i = 0; i < dataList.length; i++) {
- if(dataList[i].designDeliverableType == '1645667531513237506'){
-
- }else if (dataList[i].designDeliverableType) {
+ if ((dataList[i].designFlowStatus == 'List to be checked' || dataList[i].designFlowStatus == 'Duty Person Rejected') &&
+ dataList[i].designDeliverableType == '1645667531513237506') {
+ this.updateFlowStatusList.push({
+ id: dataList[i].id,
+ operateType: 'lawsInventoryDesignUpdateFlowStatus'
+ })
+ } else if (dataList[i].designDeliverableType) {
if (!dataList[i].designDutyId) {
_this.detailedWarningList.push(
< div > { dataList[i].serialNumber + _this.$t('thePersonResponsibleForDesignCannotBeBlank') } < /div>)
@@ -2591,8 +2602,12 @@
_this.detailedWarningList.push(
< div > { dataList[i].serialNumber + _this.$t('theDeliveryProcessCannotBeEmpty') } < /div>)
}
- if (dataList[i].verifyDeliverableType == '1645667531513237506'){
-
+ if ((dataList[i].verifyFlowStatus == 'List to be checked' || dataList[i].verifyFlowStatus == 'Duty Person Rejected') &&
+ dataList[i].verifyDeliverableType == '1645667531513237506') {
+ this.updateFlowStatusList.push({
+ id: dataList[i].id,
+ operateType: ' lawsInventoryVerifyUpdateFlowStatus'
+ })
} else if (dataList[i].verifyDeliverableType) {
if (!dataList[i].verifyDueDate) {
_this.detailedWarningList.push(
@@ -2636,16 +2651,55 @@
}
}
if (this.requestsNum == 0) {
- if (_this.detailedWarningList && _this.detailedWarningList.length > 0) {
- _this.promptInformation(_this.detailedWarningList)
+ if (this.updateFlowStatusList.length > 0) {
+ this.updateFlowStatusBatch()
+ } else {
+ if (_this.detailedWarningList && _this.detailedWarningList.length > 0) {
+ _this.promptInformation(_this.detailedWarningList)
+ }
}
// this.JTextLoading = false
} else {
this.listTitle = this.$t('initiateTask')
this.timeName = '任务'
this.visible = true
+ this.isDesignCompliance = false
+ this.isVerifyingCompliance = false
+ for (let i = 0; i < this.startProcessList.length; i++) {
+ if (this.startProcessList[i].type == 2) {
+ this.isDesignCompliance = true
+ } else if (this.startProcessList[i].type == 4) {
+ this.isVerifyingCompliance = true
+ }
+ }
}
},
+ updateFlowStatusBatch() {
+ let query = {
+ flowStatus: 'NA',
+ lawsInventoryArray: this.updateFlowStatusList
+ }
+ postAction('/project/projectLawsInventoryEO/updateFlowStatusBatch', query).then((res) => {
+ if (res.success) {
+ if (this.requestsNum == 0) {
+ this.visible = false
+ this.selectedRowKeys = []
+ this.$message.success(this.$t('OperationSuccessful'))
+ this.confirmLoading = false
+ this.JTextLoading = false
+ this.getList()
+ if (this.detailedWarningList && this.detailedWarningList.length > 0) {
+ this.promptInformation(this.detailedWarningList)
+ }
+ }
+ } else {
+ if (this.requestsNum == 0) {
+ this.confirmLoading = false
+ this.$message.warning(this.$t('operationFailed'))
+ }
+ }
+ })
+ },
handleOkComment() {
this.$refs.ruleFormComment.validate(valid => {
if (valid) {
@@ -2825,7 +2879,7 @@
download(item) {
downloadFile('/sys/common/downLoadFile', item.fileName, { id: item.id, userName: this.userInfo().username })
},
- profileClick(){
+ profileClick() {
let _this = this
this.$confirm({
width: 760,
@@ -2846,7 +2900,7 @@
})
}
})
- },
+ }
}
}