英文-认证清单,上传附件后,按钮展示问题

认证清单-引用交付物,允许勾选本项目
认证清单-引用交付物,可以对非本人待提交的数据进行引用
This commit is contained in:
范强强
2023-03-28 11:00:48 +08:00
parent 84656c3f03
commit 07cc484331
4 changed files with 66 additions and 15 deletions
+1
View File
@@ -1727,6 +1727,7 @@ module.exports = {
notetwo:'\n1. Provide the modified or expanded batch of "Announcement" and supporting materials;\n2. Verification materials shall be submitted to ensure that products meet the relevant requirements of national laws and regulations, technologies, standards and technical specifications;\n', notetwo:'\n1. Provide the modified or expanded batch of "Announcement" and supporting materials;\n2. Verification materials shall be submitted to ensure that products meet the relevant requirements of national laws and regulations, technologies, standards and technical specifications;\n',
notethree:'Provide supporting materials', notethree:'Provide supporting materials',
verifyComplianceConfirmReturnReason:'Verify compliance Confirm return reason', verifyComplianceConfirmReturnReason:'Verify compliance Confirm return reason',
theDeliverablesCannotReferencedPleaseReselect:'The deliverables of this project cannot be referenced, please reselect',
regulationListModuleMaintenance:'Regulation list module maintenance', regulationListModuleMaintenance:'Regulation list module maintenance',
regulationListModule:'Regulation list module', regulationListModule:'Regulation list module',
} }
+1
View File
@@ -1829,6 +1829,7 @@ module.exports = {
notetwo:'\n1、提供变更或扩展后的《公告》批次及证明材料;\n2、应提交验证材料,保障产品符合国家法律法规、技术、标准及技术规范等相关要求;\n', notetwo:'\n1、提供变更或扩展后的《公告》批次及证明材料;\n2、应提交验证材料,保障产品符合国家法律法规、技术、标准及技术规范等相关要求;\n',
notethree:'\n提供证明材料\n', notethree:'\n提供证明材料\n',
verifyComplianceConfirmReturnReason:'验证符合性确认退回原因', verifyComplianceConfirmReturnReason:'验证符合性确认退回原因',
theDeliverablesCannotReferencedPleaseReselect:'不能引用本项目的交付物,请重新选择',
regulationListModuleMaintenance:'法规清单模块维护', regulationListModuleMaintenance:'法规清单模块维护',
regulationListModule:'法规清单模块', regulationListModule:'法规清单模块',
} }
@@ -96,16 +96,18 @@
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
total: 0, total: 0,
ids: '' ids: '',
detailedWarningList: []
} }
}, },
mounted() { mounted() {
}, },
methods: { methods: {
transferModel(ids) { transferModel(ids, detailedWarningList) {
this.visible = true this.visible = true
this.queryParam = {} this.queryParam = {}
this.detailedWarningList = detailedWarningList
this.selectedRowKeys = [] this.selectedRowKeys = []
this.ids = ids.join(',') this.ids = ids.join(',')
this.replacePage() this.replacePage()
@@ -154,10 +156,20 @@
handleCancel() { handleCancel() {
this.visible = false this.visible = false
}, },
failedMessageOne(data) {
let detailedWarningList = data
this.$warning({
content: ( < div > { detailedWarningList } < /div>)
})
},
handleSubmit() { handleSubmit() {
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) { if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
this.confirmLoading = true
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys)) let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
if (selectedRowKeys.join(',') == this.$route.query.id) {
this.$message.warning(this.$t('theDeliverablesCannotReferencedPleaseReselect'))
return
}
this.confirmLoading = true
postAction('/project/projectCertificationInventoryEO/citeDeliverable', { postAction('/project/projectCertificationInventoryEO/citeDeliverable', {
projectCertificationInventoryIds: this.ids, projectCertificationInventoryIds: this.ids,
projectLibraryId: this.$route.query.id, projectLibraryId: this.$route.query.id,
@@ -173,6 +185,9 @@
this.visible = false this.visible = false
this.selectedRowKeys = [] this.selectedRowKeys = []
this.$emit('referenceDeliverablesListForm') this.$emit('referenceDeliverablesListForm')
if (this.detailedWarningList && this.detailedWarningList.length > 0) {
this.failedMessageOne(this.detailedWarningList)
}
} else { } else {
if (res.result) { if (res.result) {
this.$message.warning(res.result) this.$message.warning(res.result)
@@ -78,7 +78,8 @@
</div> </div>
<!-- 保存--> <!-- 保存-->
<div @click="preservationClick(1)" v-if="roleSwitchingCode == 2 || roleSwitchingCode == 0" class="operator-text"> <div @click="preservationClick(1)" v-if="roleSwitchingCode == 2 || roleSwitchingCode == 0"
class="operator-text">
<a-icon type="check-circle"/> <a-icon type="check-circle"/>
{{ $t('preservation') }} {{ $t('preservation') }}
</div> </div>
@@ -687,7 +688,7 @@
title: this.$t('DeliverablesResult'), title: this.$t('DeliverablesResult'),
align: 'left', align: 'left',
dataIndex: 'deliveryResult', dataIndex: 'deliveryResult',
width: 180, width: 210,
ellipsis: true, ellipsis: true,
scopedSlots: { customRender: 'DeliverablesResult' } scopedSlots: { customRender: 'DeliverablesResult' }
}, },
@@ -1406,17 +1407,45 @@
referenceDeliverablesClick() { referenceDeliverablesClick() {
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) { if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
let isTrue let isTrue
for (let i = 0; i < this.selectedRowKeysList.length; i++) { let ids = []
if (this.selectedRowKeysList[i].flowStatus == 'Results to be submitted') { let notConditions = []
isTrue = true let notConditionsOne = []
} else { let data = ''
isTrue = false let dataOne = ''
this.$message.warning(this.$t('youCanOnlySelectStatusClearSubmit')) let detailedWarningList= []
return if (this.roleSwitchingCode == 20) {
for (let i = 0; i < this.selectedRowKeysList.length; i++) {
if (this.selectedRowKeysList[i].dutyPersonName == this.userInfo().username) {
if (this.selectedRowKeysList[i].flowStatus == 'Results to be submitted') {
ids.push(this.selectedRowKeysList[i].id)
} else {
notConditions.push(this.selectedRowKeysList[i].inspectionItem)
}
} else {
notConditionsOne.push(this.selectedRowKeysList[i].inspectionItem)
}
}
} else {
for (let i = 0; i < this.selectedRowKeysList.length; i++) {
if (this.selectedRowKeysList[i].flowStatus == 'Results to be submitted') {
ids.push(this.selectedRowKeysList[i].id)
} else {
notConditions.push(this.selectedRowKeysList[i].inspectionItem)
}
} }
} }
if (isTrue) { if (notConditions && notConditions.length > 0) {
this.$refs.referenceDeliverablesListRef.transferModel(JSON.parse(JSON.stringify(this.selectedRowKeys))) data = this.$t('inspectionItems') + '"' + notConditions.join('、') + '"' + this.$t('conditionsNotMet') + ',' + this.$t('onlyDataStatusSubmittedCanBeSelected')
detailedWarningList.push(<div>{data}</div>)
}
if (notConditionsOne && notConditionsOne.length > 0){
dataOne = this.$t('inspectionItems') + '"' + notConditionsOne.join('、')+'"'+this.$t('operationWithoutPermission')
detailedWarningList.push(<div>{dataOne}</div>)
}
if (ids && ids.length > 0) {
this.$refs.referenceDeliverablesListRef.transferModel(ids,detailedWarningList)
} else {
this.failedMessageOne(detailedWarningList)
} }
} else { } else {
this.$message.warning(this.$t('selectLeastOne')) this.$message.warning(this.$t('selectLeastOne'))
@@ -1738,7 +1767,12 @@
content: ( < div > { detailedWarningList } < /div>) content: ( < div > { detailedWarningList } < /div>)
}) })
}, },
failedMessageOne(data) {
let detailedWarningList = data
this.$warning({
content: ( < div > { detailedWarningList } < /div>)
})
},
submitTask(value, prompt, ids, notConditions, data) { submitTask(value, prompt, ids, notConditions, data) {
let _this = this let _this = this
this.$confirm({ this.$confirm({