diff --git a/src/views/modules/test/requestForTest.vue b/src/views/modules/test/requestForTest.vue index 811f44b..e13305b 100644 --- a/src/views/modules/test/requestForTest.vue +++ b/src/views/modules/test/requestForTest.vue @@ -1105,13 +1105,13 @@ export default { modalFlag(newVal, oldVal) { if (newVal === false) { this.detailFlag = false - this.modalData.customerNoFlag = false - this.modalData.projectIdFlag = true - this.modalData.testPartNoFlag = false - this.projectPartData.projectId = '' - this.searchProjectData.customerId = '' - this.searchProjectData.testPartNo = '' } + this.modalData.customerNoFlag = false + this.modalData.projectIdFlag = true + this.modalData.testPartNoFlag = false + this.projectPartData.projectId = '' + this.searchProjectData.customerId = '' + this.searchProjectData.testPartNo = '' }, rejectVisible(newVal, oldVal) { if (newVal === false) { @@ -1124,6 +1124,8 @@ export default { this.projectPartData.customerPartNo = '' this.partPageNo = 1 this.partPageSize = 20 + } else { + this.getProjectPartList() } } }, @@ -2679,6 +2681,12 @@ export default { */ addModal() { this.searchTestPropertiesItem(); + this.modalData.customerNoFlag = false + this.modalData.projectIdFlag = true + this.modalData.testPartNoFlag = false + this.projectPartData.projectId = '' + this.searchProjectData.customerId = '' + this.searchProjectData.testPartNo = '' this.modalDisableFlag = false this.modalFlag = true },