diff --git a/src/api/ManufacturingCenter/GroupMatching.js b/src/api/ManufacturingCenter/GroupMatching.js index 35a52f16..acb2787e 100644 --- a/src/api/ManufacturingCenter/GroupMatching.js +++ b/src/api/ManufacturingCenter/GroupMatching.js @@ -103,8 +103,8 @@ export function searchTable01(...params) { ModularID: router.currentRoute.path, type: '1', name: '采购管理_采购部采购_查询物料_分配后_加供应商', - param: `机床流水号_check=${params[0]}&机床流水号=${params[1]}&组件流水号_check=${params[2]}&组件流水号=${params[3]}&零件类型=${params[6]}`, - Pagination: params[4] + '&' + params[5] + param: `机床流水号_check=${params[0]}&机床流水号=${params[1]}&组件流水号_check=${params[2]}&组件流水号=${params[3]}&物料名称_check=${params[4]}&物料名称=${params[5]}&零件类型=${params[8]}&排序=${params[9]}`, + Pagination: params[6] + '&' + params[7] } }) } @@ -118,8 +118,8 @@ export function searchTable02(...params) { ModularID: router.currentRoute.path, type: '1', name: '采购管理_采购部采购_查询物料_基本件_分配后_加供应商_成组配套', - param: `机床流水号_check=${params[0]}&机床流水号=${params[1]}&组件流水号_check=${params[2]}&组件流水号=${params[3]}`, - Pagination: params[4] + '&' + params[5] + param: `机床流水号_check=${params[0]}&机床流水号=${params[1]}&组件流水号_check=${params[2]}&组件流水号=${params[3]}&零件名称_check=${params[4]}&零件名称=${params[5]}&排序=${params[8]}`, + Pagination: params[6] + '&' + params[7] } }) } diff --git a/src/api/PurchasingCenter/PurchaseTaskAllocate.js b/src/api/PurchasingCenter/PurchaseTaskAllocate.js index 4256bcb6..acc06125 100644 --- a/src/api/PurchasingCenter/PurchaseTaskAllocate.js +++ b/src/api/PurchasingCenter/PurchaseTaskAllocate.js @@ -93,8 +93,7 @@ export function searchTable1(...params) { ModularID: router.currentRoute.path, type: '1', name: 'xqs_采购管理_采购部采购_查询物料_分配后_采购任务分配', - param: `物料类别流水号_check=${params[2]}&物料类别流水号=${params[3]}&物料品种流水号_check=${params[4]}&物料品种流水号=${params[5]}&项目流水号_check=${params[6]}&项目流水号=${params[7]}&机床流水号_check=${params[8]}&机床流水号=${params[9]}&组件流水号_check=${params[10]}&组件流水号=${params[11]}&物料名称_check=${params[12]}&物料名称=${params[13]}&物料状态编号=${params[14]}&物料规格_check=${params[15]}&物料规格=${params[16]}&物料型号_check=${params[17]}&物料型号=${params[18]}&零件类型=${params[19]}&时间段_check=${params[20]}&开始时间=${params[21]}&结束时间=${params[22]}`, - Pagination: params[0] + '&' + params[1] + param: `物料类别流水号_check=${params[2]}&物料类别流水号=${params[3]}&物料品种流水号_check=${params[4]}&物料品种流水号=${params[5]}&项目流水号_check=${params[6]}&项目流水号=${params[7]}&机床流水号_check=${params[8]}&机床流水号=${params[9]}&组件流水号_check=${params[10]}&组件流水号=${params[11]}&物料名称_check=${params[12]}&物料名称=${params[13]}&物料状态编号=${params[14]}&物料规格_check=${params[15]}&物料规格=${params[16]}&物料型号_check=${params[17]}&物料型号=${params[18]}&零件类型=${params[19]}&时间段_check=${params[20]}&开始时间=${params[21]}&结束时间=${params[22]}&PageCurrent=${params[0]}&PageSize=${params[1]}&TotalCount=1111=int=output` } }) } @@ -108,8 +107,7 @@ export function searchTable2(...params) { ModularID: router.currentRoute.path, type: '1', name: '采购管理_采购部采购_查询物料_基本件_分配后_采购任务分配', - param: `项目流水号_check=${params[2]}&项目流水号=${params[3]}&机床流水号_check=${params[4]}&机床流水号=${params[5]}&组件流水号_check=${params[6]}&组件流水号=${params[7]}&物料状态编号=${params[8]}&零件图号_check=${params[9]}&零件图号=${params[10]}&零件名称_check=${params[11]}&零件名称=${params[12]}&零件规格_check=${params[13]}&零件规格=${params[14]}&材料_check=${params[15]}&材料=${params[16]}`, - Pagination: params[0] + '&' + params[1] + param: `项目流水号_check=${params[2]}&项目流水号=${params[3]}&机床流水号_check=${params[4]}&机床流水号=${params[5]}&组件流水号_check=${params[6]}&组件流水号=${params[7]}&物料状态编号=${params[8]}&零件图号_check=${params[9]}&零件图号=${params[10]}&零件名称_check=${params[11]}&零件名称=${params[12]}&零件规格_check=${params[13]}&零件规格=${params[14]}&材料_check=${params[15]}&材料=${params[16]}&PageCurrent=${params[0]}&PageSize=${params[1]}&TotalCount=1111=int=output` } }) } diff --git a/src/views/ManufacturingCenter/GroupMatching/index.vue b/src/views/ManufacturingCenter/GroupMatching/index.vue index dba99444..bb36e0c6 100644 --- a/src/views/ManufacturingCenter/GroupMatching/index.vue +++ b/src/views/ManufacturingCenter/GroupMatching/index.vue @@ -105,13 +105,14 @@ - + @@ -178,13 +179,14 @@ - + @@ -256,13 +258,14 @@ - + @@ -438,6 +441,9 @@ import { searchTable, searchmachine, searchgroup, searchTable1, processingStatus export default { data() { return { + searchTable0Loading: false, + searchTable1Loading: false, + searchTable2Loading: false, order: 0, order2: 0, order3: 0, @@ -613,6 +619,16 @@ export default { } else { this.order3 = 0 } + let check1, check2, check + this.Machine ? check1 = 1 : check1 = 0 + this.Group ? check2 = 1 : check2 = 0 + this.materialName ? check = 1 : check = 0 + this.searchTable0Loading = true + searchTable01(check1, this.Machine, check2, this.Group, check, this.materialName, this.pageCurrent00, this.pageSize00, 1, this.order3).then(response => { + this.tableData00 = response.data.rows + this.total00 = response.data.total + this.searchTable0Loading = false + }) }, sortChange4(column, prop, order) { if (column.order === 'ascending') { @@ -622,6 +638,16 @@ export default { } else { this.order4 = 0 } + let check1, check2, check + this.Machine ? check1 = 1 : check1 = 0 + this.Group ? check2 = 1 : check2 = 0 + this.materialName ? check = 1 : check = 0 + this.searchTable1Loading = true + searchTable01(check1, this.Machine, check2, this.Group, check, this.materialName, this.pageCurrent01, this.pageSize01, 2, this.order4).then(response => { + this.tableData01 = response.data.rows + this.total01 = response.data.total + this.searchTable1Loading = false + }) }, sortChange5(column, prop, order) { if (column.order === 'ascending') { @@ -631,6 +657,16 @@ export default { } else { this.order5 = 0 } + let check1, check2, check + this.Machine ? check1 = 1 : check1 = 0 + this.Group ? check2 = 1 : check2 = 0 + this.materialName ? check = 1 : check = 0 + this.searchTable2Loading = true + searchTable02(check1, this.Machine, check2, this.Group, check, this.materialName, this.pageCurrent02, this.pageSize02, this.order5).then(response => { + this.tableData02 = response.data.rows + this.total02 = response.data.total + this.searchTable2Loading = false + }) }, turnTo() { this.$router.push({ @@ -711,6 +747,7 @@ export default { }) }, searchTable() { + console.log(this.PartType) if (this.PartType === '标准件') { this.searchTable0() } else if (this.PartType === '外购件') { @@ -721,32 +758,41 @@ export default { }, // 查询标准件 searchTable0() { - let check1, check2 + let check1, check2, check this.Machine ? check1 = 1 : check1 = 0 this.Group ? check2 = 1 : check2 = 0 - searchTable01(check1, this.Machine, check2, this.Group, this.pageCurrent00, this.pageSize00, 1).then(response => { + this.materialName ? check = 1 : check = 0 + this.searchTable0Loading = true + searchTable01(check1, this.Machine, check2, this.Group, check, this.materialName, this.pageCurrent00, this.pageSize00, 1, this.order3).then(response => { this.tableData00 = response.data.rows this.total00 = response.data.total + this.searchTable0Loading = false }) }, // 查询外购件 searchTable1() { - let check1, check2 + let check1, check2, check this.Machine ? check1 = 1 : check1 = 0 this.Group ? check2 = 1 : check2 = 0 - searchTable01(check1, this.Machine, check2, this.Group, this.pageCurrent01, this.pageSize01, 2).then(response => { + this.materialName ? check = 1 : check = 0 + this.searchTable1Loading = true + searchTable01(check1, this.Machine, check2, this.Group, check, this.materialName, this.pageCurrent01, this.pageSize01, 2, this.order3).then(response => { this.tableData01 = response.data.rows this.total01 = response.data.total + this.searchTable1Loading = false }) }, // 查询基本件 searchTable2() { - let check1, check2 + let check1, check2, check this.Machine ? check1 = 1 : check1 = 0 this.Group ? check2 = 1 : check2 = 0 - searchTable02(check1, this.Machine, check2, this.Group, this.pageCurrent02, this.pageSize02).then(response => { + this.materialName ? check = 1 : check = 0 + this.searchTable2Loading = true + searchTable02(check1, this.Machine, check2, this.Group, check, this.materialName, this.pageCurrent02, this.pageSize02, this.order5).then(response => { this.tableData02 = response.data.rows this.total02 = response.data.total + this.searchTable2Loading = false }) }, handleSizeChange(val) { diff --git a/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue b/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue index 14bb354a..ba041164 100644 --- a/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue +++ b/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue @@ -22,13 +22,6 @@ - - - - - - - {{ item.name }} - - - - - - - - 查询 已分配 - - - - 打回 - @@ -158,11 +138,6 @@ {{ scope.row.零件数量 }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -