认证清单退回原因

This commit is contained in:
范强强
2023-04-12 13:50:06 +08:00
parent ce6ddf4497
commit 36efee60cb
5 changed files with 84 additions and 34 deletions
+1
View File
@@ -1770,6 +1770,7 @@ module.exports = {
theCurrentlySelectedDataContainsReviewed:'The currently selected data contains reviewed data. Are you sure to return it?', theCurrentlySelectedDataContainsReviewed:'The currently selected data contains reviewed data. Are you sure to return it?',
reviewTheReasonForReturn:'Review the reason for return', reviewTheReasonForReturn:'Review the reason for return',
reasonForTaskRejection:'Reason for task rejection', reasonForTaskRejection:'Reason for task rejection',
reasonForReturningToStudio:'Reason for returning to Studio',
theDeliveryProcessCannotBeEmpty:'The delivery type of the design compliance process cannot be empty', theDeliveryProcessCannotBeEmpty:'The delivery type of the design compliance process cannot be empty',
theVerificationComplianceProcessCannotBeEmpty:'The delivery type of the verification compliance process cannot be empty', theVerificationComplianceProcessCannotBeEmpty:'The delivery type of the verification compliance process cannot be empty',
deadlineForConfirmationDesignComplianceResponsibility:'Deadline for Confirmation of Design Compliance Responsibility', deadlineForConfirmationDesignComplianceResponsibility:'Deadline for Confirmation of Design Compliance Responsibility',
+1
View File
@@ -1872,6 +1872,7 @@ module.exports = {
theCurrentlySelectedDataContainsReviewed:'当前选择的数据中包含审查通过的数据确认退回吗', theCurrentlySelectedDataContainsReviewed:'当前选择的数据中包含审查通过的数据确认退回吗',
reviewTheReasonForReturn:'审查退回原因', reviewTheReasonForReturn:'审查退回原因',
reasonForTaskRejection:'任务拒绝原因', reasonForTaskRejection:'任务拒绝原因',
reasonForReturningToStudio:'退回至Studio原因',
theDeliveryProcessCannotBeEmpty:'设计符合性流程的交付物类型不能为空', theDeliveryProcessCannotBeEmpty:'设计符合性流程的交付物类型不能为空',
theVerificationComplianceProcessCannotBeEmpty:'验证符合性流程的交付物类型不能为空', theVerificationComplianceProcessCannotBeEmpty:'验证符合性流程的交付物类型不能为空',
deadlineForConfirmationDesignComplianceResponsibility:'设计符合性责任确认截止日期', deadlineForConfirmationDesignComplianceResponsibility:'设计符合性责任确认截止日期',
@@ -18,9 +18,9 @@
<span class="Required">*</span> <span class="Required">*</span>
<span class="title-text-text" :title="title">{{ title }}</span> <span class="title-text-text" :title="title">{{ title }}</span>
</div> </div>
<a-form-model-item class="itemModel" :prop="'explanation'"> <a-form-model-item class="itemModel" :prop="'reasonForReturn'">
<a-textarea :placeholder="$t('pleaseEnter')+title" <a-textarea :placeholder="$t('pleaseEnter')+title"
v-model.trim="formInline.explanation" v-model.trim="formInline.reasonForReturn"
:rows="4"/> :rows="4"/>
</a-form-model-item> </a-form-model-item>
</div> </div>
@@ -39,15 +39,7 @@
visible: false, visible: false,
confirmLoading: false, confirmLoading: false,
formInline: {}, formInline: {},
rules: { rules: {},
explanation: [
{
max: 100,
message: this.$t('certifiedEngineer') + this.$t('cannotExceed') + 100 + this.$t('Characters'),
trigger: 'change'
}
]
},
value: '', value: '',
text: '', text: '',
ids: [], ids: [],
@@ -72,7 +64,7 @@
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.ruleForm.clearValidate() this.$refs.ruleForm.clearValidate()
this.rules = { this.rules = {
explanation: [ reasonForReturn: [
{ {
required: true, required: true,
message: title + this.$t('cannotEmpty'), message: title + this.$t('cannotEmpty'),
@@ -90,7 +82,7 @@
handleOk() { handleOk() {
this.$refs.ruleForm.validate(valid => { this.$refs.ruleForm.validate(valid => {
if (valid) { if (valid) {
this.$emit('reasonForReturnForm', this.value, this.text, this.ids, this.notConditions, this.data) this.$emit('reasonForReturnForm', this.value, this.text, this.ids, this.notConditions, this.data,this.formInline.reasonForReturn)
this.confirmLoading = true this.confirmLoading = true
} }
}) })
@@ -110,7 +102,7 @@
} }
.title-text { .title-text {
width: 114px; width: 124px;
text-align: right; text-align: right;
display: inline-block; display: inline-block;
font-weight: 500; font-weight: 500;
@@ -130,7 +122,7 @@
} }
.itemModel { .itemModel {
width: calc(100% - 130px); width: calc(100% - 140px);
display: inline-block; display: inline-block;
margin-top: 2px; margin-top: 2px;
margin-bottom: 14px; margin-bottom: 14px;
@@ -1698,7 +1698,8 @@
data = this.$t('inspectionItems') + '"' + notConditions.join('、') + '"' + this.$t('conditionsNotMet') + ',' + this.$t('onlyProcessStatusReturned') data = this.$t('inspectionItems') + '"' + notConditions.join('、') + '"' + this.$t('conditionsNotMet') + ',' + this.$t('onlyProcessStatusReturned')
} }
if (ids && ids.length > 0) { if (ids && ids.length > 0) {
this.submitTask(value, prompt, ids, notConditions, data) this.$refs.reasonForReturnRef.getData(value, prompt, ids, notConditions, data, this.$t('reasonForReturningToStudio'))
// this.submitTask(value, prompt, ids, notConditions, data)
} else { } else {
this.failedMessage(data) this.failedMessage(data)
} }
@@ -1877,12 +1878,13 @@
this.$message.warning(this.$t('selectLeastOne')) this.$message.warning(this.$t('selectLeastOne'))
} }
}, },
reasonForReturnForm(value, text, ids, notConditions, data) { reasonForReturnForm(value, text, ids, notConditions, data,reasonForReturn) {
let _this = this let _this = this
let query = { let query = {
'nodeKey': value, 'nodeKey': value,
'projectLibraryId': _this.$route.query.id, 'projectLibraryId': _this.$route.query.id,
'ids': ids.join(',') 'ids': ids.join(','),
reasonForReturn:reasonForReturn
} }
postAction('/project/projectCertificationInventoryEO/submitTask', query).then((res) => { postAction('/project/projectCertificationInventoryEO/submitTask', query).then((res) => {
if (res.success) { if (res.success) {
@@ -408,7 +408,7 @@
</div> </div>
</a-col> </a-col>
</a-row> </a-row>
<a-row :gutter="24" v-if="this.timeName == '任务'"> <a-row :gutter="24" v-if="this.timeName == '任务' && isDesignCompliance">
<a-col :span="24"> <a-col :span="24">
<div class="box-title-text-index"> <div class="box-title-text-index">
<div class="title-text-index" style="width: 200px"> <div class="title-text-index" style="width: 200px">
@@ -431,7 +431,7 @@
</div> </div>
</a-col> </a-col>
</a-row> </a-row>
<a-row :gutter="24" v-if="this.timeName == '任务'"> <a-row :gutter="24" v-if="this.timeName == '任务' && isVerifyingCompliance">
<a-col :span="24"> <a-col :span="24">
<div class="box-title-text-index"> <div class="box-title-text-index">
<div class="title-text-index" style="width: 200px"> <div class="title-text-index" style="width: 200px">
@@ -644,6 +644,8 @@
toggleSearchStatus: false, toggleSearchStatus: false,
visibleQuestion: false, visibleQuestion: false,
confirmLoadingQuestion: false, confirmLoadingQuestion: false,
isDesignCompliance: false,
isVerifyingCompliance: false,
pageNo: 1, pageNo: 1,
pageSize: 50, pageSize: 50,
total: 0, total: 0,
@@ -908,13 +910,13 @@
trigger: 'change' trigger: 'change'
} }
], ],
deadlineDueDate:[ deadlineDueDate: [
{ {
required: true, required: true,
message: this.$t('deadlineForVerifyingComplianceResponsibilityConfirmation') + this.$t('cannotEmpty'), message: this.$t('deadlineForVerifyingComplianceResponsibilityConfirmation') + this.$t('cannotEmpty'),
trigger: 'change' trigger: 'change'
} }
], ]
}, },
queryParam: {}, queryParam: {},
fileTitle: '', fileTitle: '',
@@ -1398,7 +1400,8 @@
JTextLoading: false, JTextLoading: false,
questionIdList: [], questionIdList: [],
questionWarning: [], questionWarning: [],
startProcessList: [] startProcessList: [],
updateFlowStatusList: []
} }
}, },
@@ -2459,8 +2462,11 @@
this.detailedSuccessList = [] this.detailedSuccessList = []
this.detailedWarningList = [] this.detailedWarningList = []
}) })
}else{ } else {
this.confirmLoading = true this.confirmLoading = true
if (this.updateFlowStatusList && this.updateFlowStatusList.length > 0) {
this.updateFlowStatusBatch()
}
for (let i = 0; i < this.startProcessList.length; i++) { for (let i = 0; i < this.startProcessList.length; i++) {
this.startProcess(this.startProcessList[i].dataList, this.startProcessList[i].type, this.startProcessList[i].requestsNum) this.startProcess(this.startProcessList[i].dataList, this.startProcessList[i].type, this.startProcessList[i].requestsNum)
} }
@@ -2488,7 +2494,7 @@
this.confirmLoading = false this.confirmLoading = false
this.JTextLoading = false this.JTextLoading = false
this.getList() this.getList()
if(this.detailedWarningList && this.detailedWarningList.length > 0){ if (this.detailedWarningList && this.detailedWarningList.length > 0) {
this.promptInformation(this.detailedWarningList) this.promptInformation(this.detailedWarningList)
} }
} }
@@ -2555,6 +2561,7 @@
if (idList && idList.length > 0) { if (idList && idList.length > 0) {
if (num == 0) { if (num == 0) {
this.startProcessList = [] this.startProcessList = []
this.updateFlowStatusList = []
this.submitClick(this.rowKeysSuccessList) this.submitClick(this.rowKeysSuccessList)
} else { } else {
this.visibleComment = true this.visibleComment = true
@@ -2576,9 +2583,13 @@
this.requestsNum = 0 this.requestsNum = 0
// this.JTextLoading = true // this.JTextLoading = true
for (let i = 0; i < dataList.length; i++) { for (let i = 0; i < dataList.length; i++) {
if(dataList[i].designDeliverableType == '1645667531513237506'){ if ((dataList[i].designFlowStatus == 'List to be checked' || dataList[i].designFlowStatus == 'Duty Person Rejected') &&
dataList[i].designDeliverableType == '1645667531513237506') {
}else if (dataList[i].designDeliverableType) { this.updateFlowStatusList.push({
id: dataList[i].id,
operateType: 'lawsInventoryDesignUpdateFlowStatus'
})
} else if (dataList[i].designDeliverableType) {
if (!dataList[i].designDutyId) { if (!dataList[i].designDutyId) {
_this.detailedWarningList.push( _this.detailedWarningList.push(
< div > { dataList[i].serialNumber + _this.$t('thePersonResponsibleForDesignCannotBeBlank') } < /div>) < div > { dataList[i].serialNumber + _this.$t('thePersonResponsibleForDesignCannotBeBlank') } < /div>)
@@ -2591,8 +2602,12 @@
_this.detailedWarningList.push( _this.detailedWarningList.push(
< div > { dataList[i].serialNumber + _this.$t('theDeliveryProcessCannotBeEmpty') } < /div>) < 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) { } else if (dataList[i].verifyDeliverableType) {
if (!dataList[i].verifyDueDate) { if (!dataList[i].verifyDueDate) {
_this.detailedWarningList.push( _this.detailedWarningList.push(
@@ -2636,16 +2651,55 @@
} }
} }
if (this.requestsNum == 0) { if (this.requestsNum == 0) {
if (_this.detailedWarningList && _this.detailedWarningList.length > 0) { if (this.updateFlowStatusList.length > 0) {
_this.promptInformation(_this.detailedWarningList) this.updateFlowStatusBatch()
} else {
if (_this.detailedWarningList && _this.detailedWarningList.length > 0) {
_this.promptInformation(_this.detailedWarningList)
}
} }
// this.JTextLoading = false // this.JTextLoading = false
} else { } else {
this.listTitle = this.$t('initiateTask') this.listTitle = this.$t('initiateTask')
this.timeName = '任务' this.timeName = '任务'
this.visible = true 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() { handleOkComment() {
this.$refs.ruleFormComment.validate(valid => { this.$refs.ruleFormComment.validate(valid => {
if (valid) { if (valid) {
@@ -2825,7 +2879,7 @@
download(item) { download(item) {
downloadFile('/sys/common/downLoadFile', item.fileName, { id: item.id, userName: this.userInfo().username }) downloadFile('/sys/common/downLoadFile', item.fileName, { id: item.id, userName: this.userInfo().username })
}, },
profileClick(){ profileClick() {
let _this = this let _this = this
this.$confirm({ this.$confirm({
width: 760, width: 760,
@@ -2846,7 +2900,7 @@
}) })
} }
}) })
}, }
} }
} }
</script> </script>