diff --git a/src/api/Assembly/QualityInspectionInformationInquiry.js b/src/api/Assembly/QualityInspectionInformationInquiry.js index f01bf070..9f04373e 100644 --- a/src/api/Assembly/QualityInspectionInformationInquiry.js +++ b/src/api/Assembly/QualityInspectionInformationInquiry.js @@ -59,3 +59,15 @@ export function searchPic(num) { } }) } +// 查询外协到货单明细 +export function searchTableDetail(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '质检管理_质检数据_查询数据', + param: `检测类型=${params[0]}&质检流水号=${params[1]}` + } + }) +} diff --git a/src/views/Assembly/AssemblyExecution/index.vue b/src/views/Assembly/AssemblyExecution/index.vue index 35689774..71e459ff 100644 --- a/src/views/Assembly/AssemblyExecution/index.vue +++ b/src/views/Assembly/AssemblyExecution/index.vue @@ -201,9 +201,15 @@ export default { searchTable1() { this.tableData1 = [] if (this.machineNumberValue !== '' && this.machineNumberValue !== null) { this.check2 = 1 } else { this.check2 = 0 } - searchTable1(this.machineNumberValue, this.check2).then(response => { - this.tableData1 = response.data - }) + if (this.check2 === 0) { + this.tableData1 = [] + this.tableData2 = [] + } else { + searchTable1(this.machineNumberValue, this.check2).then(response => { + this.tableData1 = response.data + console.log(response.data, 1111) + }) + } }, searchTable2() { this.tableData2 = [] diff --git a/src/views/Assembly/QualityInspectionInformationInquiry/index.vue b/src/views/Assembly/QualityInspectionInformationInquiry/index.vue index abe7b529..56b577c8 100644 --- a/src/views/Assembly/QualityInspectionInformationInquiry/index.vue +++ b/src/views/Assembly/QualityInspectionInformationInquiry/index.vue @@ -52,11 +52,6 @@ - - - - + @@ -122,6 +117,81 @@ {{ scope.row.备注 }} + + + + + + + + +