From c5b382502c511702c6003a60323d155df1850508 Mon Sep 17 00:00:00 2001 From: qiezi <15576055375@163.com> Date: Fri, 11 Oct 2024 14:23:15 +0800 Subject: [PATCH] 2024-10-11 --- src/views/modules/test/requestForTest.vue | 171 +++++------------- .../modules/test/testSoBom/testTable.vue | 2 +- .../test/testSoRouting/testRoutingTable.vue | 2 +- 3 files changed, 45 insertions(+), 130 deletions(-) diff --git a/src/views/modules/test/requestForTest.vue b/src/views/modules/test/requestForTest.vue index 17519b4..201f591 100644 --- a/src/views/modules/test/requestForTest.vue +++ b/src/views/modules/test/requestForTest.vue @@ -40,6 +40,9 @@ + + + @@ -523,130 +526,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 录入测试结果 - 录入送样信息 - 客户回复 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -682,7 +561,7 @@ - + @@ -1076,6 +955,7 @@ import {queryCustomer} from "../../../api/customer/customerInformation"; import {queryProjectByCustomer, queryProjectPart} from "../../../api/project/project"; import OssComponents from "../oss/ossComponents.vue"; + import BuSelect from "../base/BuSelect.vue"; export default { computed: { testInformationFlag () { @@ -1093,6 +973,7 @@ }, name:"test", components: { + BuSelect, OssComponents, TestFile, TestProperties, @@ -1199,7 +1080,8 @@ page: 1, limit: 10, menuId: this.$route.meta.menuId, - testNo: '' + testNo: '', + buNo: '', }, // 其它 dataListLoading: false, @@ -1361,6 +1243,23 @@ // ======== 列表表头 ======== columnList: [ { + userId: this.$store.state.user.name, + functionId: 103001, + serialNumber: '103001Table1BuDesc', + tableId: '103001Table1', + tableName: '测试信息表', + columnProp: 'buDesc', + headerAlign: 'center', + align: 'center', + columnLabel: 'BU', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 80 + },{ userId: this.$store.state.user.name, functionId: 103001, serialNumber: '103001Table1TestNo', @@ -2261,7 +2160,11 @@ } this.searchData.limit = this.pageSize this.searchData.page = this.pageIndex - testInformationSearch(this.searchData).then(({data}) => { + let params = { + ...this.searchData, + createBy:this.$store.state.user.name, + } + testInformationSearch(params).then(({data}) => { if (data.code === 0) { this.dataList = data.page.list this.pageIndex = data.page.currPage @@ -2439,7 +2342,11 @@ getDataList () { this.searchData.limit = this.pageSize this.searchData.page = this.pageIndex - testInformationSearch(this.searchData).then(({data}) => { + let params = { + ...this.searchData, + createBy:this.$store.state.user.name, + } + testInformationSearch(params).then(({data}) => { if (data.code === 0) { this.dataList = data.page.list this.pageIndex = data.page.currPage @@ -3351,6 +3258,10 @@ } }, selectTestSoBom(){ + if (!this.modalData.testNo && !this.testCurrentRow.testNo){ + this.testSoBomList = [] + return + } let params = { testNo:this.modalData.testNo?this.modalData.testNo:this.testCurrentRow.testNo, site:this.$store.state.user.site @@ -3362,6 +3273,10 @@ }) }, selectTestSoRoutingList(){ + if (!this.modalData.testNo && !this.testCurrentRow.testNo){ + this.testSoRoutingList = [] + return + } let params = { site:this.$store.state.user.site, testNo:this.modalData.testNo?this.modalData.testNo:this.testCurrentRow.testNo, diff --git a/src/views/modules/test/testSoBom/testTable.vue b/src/views/modules/test/testSoBom/testTable.vue index 942e2f7..13f9b10 100644 --- a/src/views/modules/test/testSoBom/testTable.vue +++ b/src/views/modules/test/testSoBom/testTable.vue @@ -639,7 +639,7 @@ export default { - + diff --git a/src/views/modules/test/testSoRouting/testRoutingTable.vue b/src/views/modules/test/testSoRouting/testRoutingTable.vue index 11eb455..6994034 100644 --- a/src/views/modules/test/testSoRouting/testRoutingTable.vue +++ b/src/views/modules/test/testSoRouting/testRoutingTable.vue @@ -659,7 +659,7 @@ export default { - +