修改未符合项的传参

This commit is contained in:
qq787203167
2022-05-12 14:26:38 +08:00
parent 89f5dc7932
commit 9b3f5dcd72
6 changed files with 57 additions and 38 deletions
+10 -10
View File
@@ -480,10 +480,10 @@ module.exports = {
feedback: 'feedback', feedback: 'feedback',
approvalHistory: 'cpproval history', approvalHistory: 'cpproval history',
cannotExceed500characters: 'cannot exceed 500 characters', cannotExceed500characters: 'cannot exceed 500 characters',
accord: 'conformity', accord: 'Compliance',
nonConformity: 'non conformity', nonConformity: 'Non-Compliance',
Tracked: 'to be tracked', Tracked: 'To be tracked',
notInvolved: 'Not involved', notInvolved: 'NA',
Operator: 'operator', Operator: 'operator',
role: 'role', role: 'role',
operationContent: 'operation content', operationContent: 'operation content',
@@ -786,10 +786,10 @@ module.exports = {
adopt: 'adopt', adopt: 'adopt',
reviewedByThePersonInCharge: 'Reviewed by the person in charge', reviewedByThePersonInCharge: 'Reviewed by the person in charge',
onlyDeleted: 'Only data whose list confirmation status is not initiated or rejected can be deleted', onlyDeleted: 'Only data whose list confirmation status is not initiated or rejected can be deleted',
experimentPassed: 'Experiment passed', experimentPassed: 'Test passed',
experimentFailed: 'Experiment failed', experimentFailed: 'Test failed',
toBeStarted: 'To be started', toBeStarted: 'Not start',
inProgress: 'In Progress', inProgress: 'In progress',
green: 'green', green: 'green',
red: 'red', red: 'red',
blue: 'blue', blue: 'blue',
@@ -809,6 +809,6 @@ module.exports = {
virtualListDetails:'Virtual list details', virtualListDetails:'Virtual list details',
maintainVirtualList:'Maintain virtual list', maintainVirtualList:'Maintain virtual list',
reasonsForRejection:'Reasons for rejection', reasonsForRejection:'Reasons for rejection',
inconformity:'inconformity', inconformity:'Non-Compliance',
toTrack:'to track', toTrack:'To be tracked',
} }
@@ -18,16 +18,16 @@
:disabled="$route.query.TaskKey == 'fqrsh'?true:false" :disabled="$route.query.TaskKey == 'fqrsh'?true:false"
class="box-input" class="box-input"
v-model="formInline.reviewResult"> v-model="formInline.reviewResult">
<a-radio value="conformity"> <a-radio value="Compliance">
{{$t('accord')}} {{$t('accord')}}
</a-radio> </a-radio>
<a-radio value="inconformity"> <a-radio value="Non-Compliance">
{{$t('nonConformity')}} {{$t('nonConformity')}}
</a-radio> </a-radio>
<a-radio value="to track"> <a-radio value="To be tracked">
{{$t('Tracked')}} {{$t('Tracked')}}
</a-radio> </a-radio>
<a-radio value="uninvolved"> <a-radio value="NA">
{{$t('notInvolved')}} {{$t('notInvolved')}}
</a-radio> </a-radio>
</a-radio-group> </a-radio-group>
@@ -192,7 +192,7 @@
}, },
isAdopt() { isAdopt() {
if (this.$route.query.TaskKey == 'fqrsh') { if (this.$route.query.TaskKey == 'fqrsh') {
if (this.queryBy.reviewResult == 'conformity' || this.queryBy.reviewResult == 'uninvolved') { if (this.queryBy.reviewResult == 'Compliance' || this.queryBy.reviewResult == 'NA') {
return true return true
} }
} }
@@ -225,7 +225,7 @@
terminationProcess(operatorTime) { terminationProcess(operatorTime) {
this.textLoading = this.$t('terminationProcessing') this.textLoading = this.$t('terminationProcessing')
this.loading = true this.loading = true
this.queryBy.reviewResult = 'termination of task' this.queryBy.reviewResult = 'Termination of task'
this.completeTask({ flag: 2, operatorTime: operatorTime }) this.completeTask({ flag: 2, operatorTime: operatorTime })
}, },
adopt(operatorTime) { adopt(operatorTime) {
@@ -240,10 +240,10 @@
sendBack(operatorTime) { sendBack(operatorTime) {
this.textLoading = this.$t('Returning') this.textLoading = this.$t('Returning')
this.loading = true this.loading = true
if (this.queryBy.reviewResult == 'inconformity' || this.queryBy.reviewResult == 'to track') { if (this.queryBy.reviewResult == 'Non-Compliance' || this.queryBy.reviewResult == 'To be tracked') {
} else { } else {
this.queryBy.reviewResult = 'to be confirmed' this.queryBy.reviewResult = 'No rating'
} }
this.completeTask({ flag: 1, operatorTime: operatorTime }) this.completeTask({ flag: 1, operatorTime: operatorTime })
}, },
@@ -143,30 +143,34 @@
title: this.$t('standardInformation'), title: this.$t('standardInformation'),
align: 'center', align: 'center',
dataIndex: 'standard', dataIndex: 'standard',
width: 200, width: 202,
scopedSlots: { customRender: 'standardInformation' } scopedSlots: { customRender: 'standardInformation' }
}, },
{ {
title: this.$t('areaOfResponsibility'), title: this.$t('areaOfResponsibility'),
align: 'center', align: 'center',
width: 180,
dataIndex: 'areaOfResponsibility', dataIndex: 'areaOfResponsibility',
scopedSlots: { customRender: 'areaOfResponsibility' } scopedSlots: { customRender: 'areaOfResponsibility' }
}, },
{ {
title: this.$t('confirmationOfDesignConformity'), title: this.$t('confirmationOfDesignConformity'),
align: 'center', align: 'center',
width: 240,
dataIndex: 'confirmationOfDesignConformity', dataIndex: 'confirmationOfDesignConformity',
scopedSlots: { customRender: 'confirmationOfDesignConformity' } scopedSlots: { customRender: 'confirmationOfDesignConformity' }
}, },
{ {
title: this.$t('PrehomoConfirmation'), title: this.$t('PrehomoConfirmation'),
align: 'center', align: 'center',
width: 240,
dataIndex: 'PrehomoConfirmation', dataIndex: 'PrehomoConfirmation',
scopedSlots: { customRender: 'PrehomoConfirmation' } scopedSlots: { customRender: 'PrehomoConfirmation' }
}, },
{ {
title: this.$t('verificationAndConformityconfirmation'), title: this.$t('verificationAndConformityconfirmation'),
align: 'center', align: 'center',
width: 240,
dataIndex: 'verificationAndConformityconfirmation', dataIndex: 'verificationAndConformityconfirmation',
scopedSlots: { customRender: 'verificationAndConformityconfirmation' } scopedSlots: { customRender: 'verificationAndConformityconfirmation' }
}, },
@@ -192,18 +196,18 @@
'showData': '展示数据' 'showData': '展示数据'
}, },
color: { color: {
'conformity': 'accordColor', 'Compliance': 'accordColor',
'inconformity': 'nonConformityColor', 'Non-Compliance': 'nonConformityColor',
'to track': 'TrackedColor', 'To be tracked': 'TrackedColor',
'uninvolved': 'notInvolvedColor', 'NA': 'notInvolvedColor',
'to be confirmed': 'submittedColor' 'No rating': 'submittedColor'
}, },
statusText: { statusText: {
'conformity': this.$t('accord'), 'Compliance': this.$t('accord'),
'inconformity': this.$t('nonConformity'), 'Non-Compliance': this.$t('nonConformity'),
'to track': this.$t('Tracked'), 'To be tracked': this.$t('Tracked'),
'uninvolved': this.$t('notInvolved'), 'NA': this.$t('notInvolved'),
'to be confirmed': this.$t('toBeConfirmed') 'No rating': this.$t('toBeConfirmed')
}, },
queryParam: {}, queryParam: {},
@@ -391,6 +395,7 @@
position: relative; position: relative;
display: block; display: block;
height: 100%; height: 100%;
text-align: left;
} }
.content { .content {
@@ -445,7 +450,7 @@
} }
.box-content-color { .box-content-color {
width: 78px; width: 138px;
height: 32px; height: 32px;
display: inline-block; display: inline-block;
border-radius: 4px; border-radius: 4px;
@@ -141,7 +141,7 @@
{{ $t('edit') }} {{ $t('edit') }}
</a> </a>
<a class="text-operation" <a class="text-operation"
v-if="(record.inventoryAffirmStatus == 'Not started' || record.inventoryAffirmStatus == 'rejected') && record.roleCode == 0" v-if="(record.inventoryAffirmStatus == 'Not started' || record.inventoryAffirmStatus == 'Rejected') && record.roleCode == 0"
@click="deleteLib(record)"> @click="deleteLib(record)">
{{ $t('deleteLib') }} {{ $t('deleteLib') }}
</a> </a>
@@ -752,7 +752,7 @@
if (this.dataSource && this.dataSource.length > 0) { if (this.dataSource && this.dataSource.length > 0) {
let isTrue let isTrue
for (let i = 0; i < this.dataSource.length; i++) { for (let i = 0; i < this.dataSource.length; i++) {
if (this.dataSource[i].taskAffirmStatus == 'accepted' && this.dataSource[i].inventoryAffirmStatus == 'accepted') { if (this.dataSource[i].taskAffirmStatus == 'Accepted' && this.dataSource[i].inventoryAffirmStatus == 'Accepted') {
isTrue = true isTrue = true
} else { } else {
isTrue = false isTrue = false
@@ -776,7 +776,7 @@
for (let i = 0; i < this.dataSource.length; i++) { for (let i = 0; i < this.dataSource.length; i++) {
for (let j = 0; j < selectedRowKeys.length; j++) { for (let j = 0; j < selectedRowKeys.length; j++) {
if (this.dataSource[i].id == selectedRowKeys[j]) { if (this.dataSource[i].id == selectedRowKeys[j]) {
if (this.dataSource[i].inventoryAffirmStatus == 'Not started' || this.dataSource[i].inventoryAffirmStatus == 'rejected') { if (this.dataSource[i].inventoryAffirmStatus == 'Not started' || this.dataSource[i].inventoryAffirmStatus == 'Rejected') {
isTrue = true isTrue = true
} else { } else {
isTrue = false isTrue = false
@@ -884,7 +884,7 @@
for (let i = 0; i < this.dataSource.length; i++) { for (let i = 0; i < this.dataSource.length; i++) {
for (let j = 0; j < selectedRowKeys.length; j++) { for (let j = 0; j < selectedRowKeys.length; j++) {
if (this.dataSource[i].id == selectedRowKeys[j]) { if (this.dataSource[i].id == selectedRowKeys[j]) {
if ((this.dataSource[i].inventoryAffirmStatus == 'Not started' || this.dataSource[i].inventoryAffirmStatus == 'rejected') && if ((this.dataSource[i].inventoryAffirmStatus == 'Not started' || this.dataSource[i].inventoryAffirmStatus == 'Rejected') &&
this.dataSource[i].homologationEngineerId && this.dataSource[i].regulationOwnerId) { this.dataSource[i].homologationEngineerId && this.dataSource[i].regulationOwnerId) {
isTrue = true isTrue = true
} else { } else {
@@ -912,8 +912,8 @@
for (let i = 0; i < this.dataSource.length; i++) { for (let i = 0; i < this.dataSource.length; i++) {
for (let j = 0; j < selectedRowKeys.length; j++) { for (let j = 0; j < selectedRowKeys.length; j++) {
if (this.dataSource[i].id == selectedRowKeys[j]) { if (this.dataSource[i].id == selectedRowKeys[j]) {
if ((this.dataSource[i].taskAffirmStatus == 'Not started' || this.dataSource[i].taskAffirmStatus == 'rejected') && if ((this.dataSource[i].taskAffirmStatus == 'Not started' || this.dataSource[i].taskAffirmStatus == 'Rejected') &&
this.dataSource[i].engineeringInterfacePerson && this.dataSource[i].inventoryAffirmStatus == 'accepted') { this.dataSource[i].engineeringInterfacePerson && this.dataSource[i].inventoryAffirmStatus == 'Accepted') {
if ((this.dataSource[i].verifyDueDate && this.dataSource[i].verifyDutyId if ((this.dataSource[i].verifyDueDate && this.dataSource[i].verifyDutyId
&& this.dataSource[i].verifyInitiatorId && this.dataSource[i].verifyDeliverableType) || && this.dataSource[i].verifyInitiatorId && this.dataSource[i].verifyDeliverableType) ||
(!this.dataSource[i].verifyDueDate && !this.dataSource[i].verifyDutyId (!this.dataSource[i].verifyDueDate && !this.dataSource[i].verifyDutyId
@@ -244,7 +244,8 @@
url: { url: {
page: '/project/ncrTrackController/queryPage', page: '/project/ncrTrackController/queryPage',
exportData: '/project/ncrTrackController/exportData' exportData: '/project/ncrTrackController/exportData'
} },
content: []
} }
}, },
mounted() { mounted() {
@@ -269,7 +270,20 @@
this.getList() this.getList()
}, },
onSelectChange(value) { onSelectChange(value) {
this.content = []
this.selectedRowKeys = value this.selectedRowKeys = value
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
this.dataSource.forEach(res => {
this.selectedRowKeys.forEach(val => {
if (res.id == val) {
this.content.push({
id: res.id,
flowType: res.flowType
})
}
})
})
}
}, },
searchReset() { searchReset() {
this.pageNo = 1 this.pageNo = 1
@@ -307,7 +321,7 @@
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys)) let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
let query = { let query = {
...this.queryParam, ...this.queryParam,
ids: selectedRowKeys.join(',') ncrTrackVOList: this.content
} }
downloadFile(this.url.exportData, this.$t('NonConformance') + '.xls', query, this.Deselect) downloadFile(this.url.exportData, this.$t('NonConformance') + '.xls', query, this.Deselect)
}, },