对接认证清单引用交付物
This commit is contained in:
@@ -1435,4 +1435,5 @@ module.exports = {
|
|||||||
onlyDataListReleasedAndCertificationReturnCanSelected:'Only data with the process status of list to be released and certification return can be selected',
|
onlyDataListReleasedAndCertificationReturnCanSelected:'Only data with the process status of list to be released and certification return can be selected',
|
||||||
type:'type',
|
type:'type',
|
||||||
select:'select',
|
select:'select',
|
||||||
|
onlyDataWithProcessStatusDeleted:'Only data with process status of list to be released and approved can be deleted',
|
||||||
}
|
}
|
||||||
@@ -1537,4 +1537,5 @@ module.exports = {
|
|||||||
onlyDataListReleasedAndCertificationReturnCanSelected:'只能选择流程状态为清单待发布和认证退回的数据',
|
onlyDataListReleasedAndCertificationReturnCanSelected:'只能选择流程状态为清单待发布和认证退回的数据',
|
||||||
type:'类型',
|
type:'类型',
|
||||||
select:'选择',
|
select:'选择',
|
||||||
|
onlyDataWithProcessStatusDeleted:'只能删除流程状态为清单待发布和审查通过的数据',
|
||||||
}
|
}
|
||||||
@@ -316,7 +316,8 @@
|
|||||||
v-if="record.deliveryResult && record.valueType == 'file'">
|
v-if="record.deliveryResult && record.valueType == 'file'">
|
||||||
{{$t('viewFile')}}
|
{{$t('viewFile')}}
|
||||||
</span>
|
</span>
|
||||||
<span :title="record.deliveryResult" v-else-if="record.deliveryResult && record.valueType == 'text'">
|
<span :title="record.deliveryResult"
|
||||||
|
v-else-if="record.deliveryResult && record.valueType == 'text'">
|
||||||
{{record.deliveryResult}}
|
{{record.deliveryResult}}
|
||||||
</span>
|
</span>
|
||||||
<span v-else-if="record.deliveryResult && record.valueType == 'select'">
|
<span v-else-if="record.deliveryResult && record.valueType == 'select'">
|
||||||
@@ -854,6 +855,11 @@
|
|||||||
this.loading = true
|
this.loading = true
|
||||||
getAction(this.url.list, query).then((res) => {
|
getAction(this.url.list, query).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
if (res.result.current > 1 && res.result.records.length == 0) {
|
||||||
|
this.pageNo = 1
|
||||||
|
this.getList()
|
||||||
|
return
|
||||||
|
}
|
||||||
this.dataSource = res.result.records || []
|
this.dataSource = res.result.records || []
|
||||||
this.total = res.result.total
|
this.total = res.result.total
|
||||||
this.loading = false
|
this.loading = false
|
||||||
@@ -896,42 +902,46 @@
|
|||||||
downloadFile(this.url.exportData, this.$route.query.projectName + '.zip', query, this.Deselect)
|
downloadFile(this.url.exportData, this.$route.query.projectName + '.zip', query, this.Deselect)
|
||||||
},
|
},
|
||||||
handleDel() {
|
handleDel() {
|
||||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
|
||||||
let _this = this
|
let _this = this
|
||||||
let selectedRowKeys = JSON.parse(JSON.stringify(_this.selectedRowKeys))
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
let isTrue = true
|
let ids = []
|
||||||
// for (let i = 0; i < this.dataSource.length; i++) {
|
let notConditions = []
|
||||||
// for (let j = 0; j < selectedRowKeys.length; j++) {
|
for (let i = 0; i < this.selectedRowKeysList.length; i++) {
|
||||||
// if (this.dataSource[i].id == selectedRowKeys[j]) {
|
if (this.selectedRowKeysList[i].flowStatus == 'List to be released' ||
|
||||||
// if (this.dataSource[i].inventoryAffirmStatus == 'Not started' || this.dataSource[i].inventoryAffirmStatus == 'Rejected') {
|
this.selectedRowKeysList[i].flowStatus == 'Review and pass') {
|
||||||
// isTrue = true
|
ids.push(this.selectedRowKeysList[i].id)
|
||||||
// } else {
|
} else {
|
||||||
// isTrue = false
|
notConditions.push(this.selectedRowKeysList[i].inspectionItem)
|
||||||
// this.$message.warning(this.$t('onlyDeleted'))
|
}
|
||||||
// return
|
}
|
||||||
// }
|
let data = ''
|
||||||
// }
|
if (notConditions && notConditions.length > 0) {
|
||||||
// }
|
data = this.$t('inspectionItems') + '"' + notConditions.join('、') + '"' + this.$t('conditionsNotMet') + ',' + this.$t('onlyDataWithProcessStatusDeleted')
|
||||||
// }
|
}
|
||||||
if (isTrue) {
|
if (ids && ids.length > 0) {
|
||||||
this.$confirm({
|
this.$confirm({
|
||||||
content: _this.$t('ConfirmBatchDeletion'),
|
content: _this.$t('ConfirmBatchDeletion'),
|
||||||
onOk() {
|
onOk() {
|
||||||
let idList = JSON.parse(JSON.stringify(_this.selectedRowKeys))
|
|
||||||
deleteAction(_this.url.deleteBatch, {
|
deleteAction(_this.url.deleteBatch, {
|
||||||
ids: idList.join(','),
|
ids: ids.join(','),
|
||||||
projectLibraryId: _this.$route.query.id
|
projectLibraryId: _this.$route.query.id
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||||
_this.selectedRowKeys = []
|
_this.selectedRowKeys = []
|
||||||
|
_this.selectedRowKeysList = []
|
||||||
_this.getList()
|
_this.getList()
|
||||||
|
if (notConditions && notConditions.length > 0) {
|
||||||
|
_this.failedMessage(data)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
_this.$message.warning(res.message)
|
_this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
this.failedMessage(data)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('selectLeastOne'))
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
@@ -1225,6 +1235,7 @@
|
|||||||
},
|
},
|
||||||
deleteLib(val) {
|
deleteLib(val) {
|
||||||
let _this = this
|
let _this = this
|
||||||
|
if (val.flowStatus == 'List to be released' || val.flowStatus == 'Review and pass') {
|
||||||
this.$confirm({
|
this.$confirm({
|
||||||
content: _this.$t('ConfirmDelete'),
|
content: _this.$t('ConfirmDelete'),
|
||||||
onOk() {
|
onOk() {
|
||||||
@@ -1238,6 +1249,9 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('onlyDataWithProcessStatusDeleted'))
|
||||||
|
}
|
||||||
},
|
},
|
||||||
modifyHistoryClick(row) {
|
modifyHistoryClick(row) {
|
||||||
this.$refs.modifyHistoryRef.getList(row.id)
|
this.$refs.modifyHistoryRef.getList(row.id)
|
||||||
|
|||||||
Reference in New Issue
Block a user