diff --git a/src/api/PurchasingCenter/PurchaseTaskAllocate.js b/src/api/PurchasingCenter/PurchaseTaskAllocate.js index a5d20d02..a49e7f5c 100644 --- a/src/api/PurchasingCenter/PurchaseTaskAllocate.js +++ b/src/api/PurchasingCenter/PurchaseTaskAllocate.js @@ -53,7 +53,7 @@ export function searchTable1(...params) { data: { type: '1', name: '采购管理_采购部采购_查询物料', - param: `物料类别流水号_check=${params[2]}&物料类别流水号=${params[3]}&物料品种流水号_check=${params[4]}&物料品种流水号=${params[5]}&项目流水号_check=${params[6]}&项目流水号=${params[7]}&物料名称_check=${params[8]}&物料名称=${params[9]}&物料状态=${params[10]}`, + param: `物料类别流水号_check=${params[2]}&物料类别流水号=${params[3]}&物料品种流水号_check=${params[4]}&物料品种流水号=${params[5]}&项目流水号_check=${params[6]}&项目流水号=${params[7]}&物料名称_check=${params[8]}&物料名称=${params[9]}&物料状态=${params[10]}&物料规格_check=${params[11]}&物料规格=${params[12]}&物料型号_check=${params[13]}&物料型号=${params[14]}`, Pagination: params[0] + '&' + params[1] } }) @@ -66,7 +66,7 @@ export function searchTable2(...params) { data: { type: '1', name: '采购管理_采购部采购_查询物料_基本件', - param: `项目流水号_check=${params[2]}&项目流水号=${params[3]}&物料状态=${params[4]}`, + param: `项目流水号_check=${params[2]}&项目流水号=${params[3]}&物料状态=${params[4]}&零件图号_check=${params[5]}&零件图号=${params[6]}&零件名称_check=${params[7]}&零件名称=${params[8]}&规格_check=${params[9]}&规格=${params[10]}&材料_check=${params[11]}&材料=${params[12]}`, Pagination: params[0] + '&' + params[1] } }) diff --git a/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue b/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue index 8fe0c684..a5d74353 100644 --- a/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue +++ b/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue @@ -2,16 +2,16 @@
- + 项目名称: - + - 物料状态: + 物料状态: 查询 -
+
采购员: +
+ + + 物料类别: + + + + 物料品种: + + + +
退回
- - 物料类别: - - - - 物料品种: - - - - 物料名称: - + + 物料名称: + + 物料规格: + + 物料型号: + @@ -109,7 +115,7 @@ {{ scope.row.物料品种 }} - + @@ -169,16 +175,16 @@
- + 项目名称: - + - 物料状态: + 物料状态: 查询 -
+
采购员: +
+ + + 零件图号: + + 零件名称: + +
退回
+ + 零件规格: + + 零件材料: + + @@ -311,6 +331,12 @@ export default { name: '', // 采购任务分配 data() { return { + partNum: '', + partName: '', + partSpec: '', + partMaterial: '', + materialSpec: '', + materialModel: '', MaterialCategoryValue: '', // 物料类别 MaterialCategory: [], // 物料类别数组 MaterialVarietyValue: '', // 物料品种 @@ -408,16 +434,24 @@ export default { this.MaterialVarietyValue ? this.check2 = 1 : this.check2 = 0 this.projectValue ? this.check3 = 1 : this.check3 = 0 this.materialName ? this.check4 = 1 : this.check4 = 0 - searchTable1(this.pageCurrent1, this.pageSize1, this.check1, this.MaterialCategoryValue, this.check2, this.MaterialVarietyValue, this.check3, this.projectValue, this.check4, this.materialName, this.materialStatusValue[this.materialStatusValue.length - 1]).then(response => { + let check2, check3 + this.materialSpec ? check2 = 1 : check2 = 0 + this.materialModel ? check3 = 1 : check3 = 0 + searchTable1(this.pageCurrent1, this.pageSize1, this.check1, this.MaterialCategoryValue, this.check2, this.MaterialVarietyValue, this.check3, this.projectValue, this.check4, this.materialName, this.materialStatusValue[this.materialStatusValue.length - 1], check2, this.materialSpec, check3, this.materialModel).then(response => { this.tableData1 = response.data.rows - console.log(response.data.rows) this.total1 = response.data.total }) }, searchTable2() { // 查询基本件 this.projectValue ? this.check3 = 1 : this.check3 = 0 - searchTable2(this.pageCurrent2, this.pageSize2, this.check3, this.projectValue, this.materialStatusValue[this.materialStatusValue.length - 1]).then(response => { + let check1, check2, check3, check4 + this.partNum ? check1 = 1 : check1 = 0 + this.partName ? check2 = 1 : check2 = 0 + this.partSpec ? check3 = 1 : check3 = 0 + this.partMaterial ? check4 = 1 : check4 = 0 + searchTable2(this.pageCurrent2, this.pageSize2, this.check3, this.projectValue, this.materialStatusValue[this.materialStatusValue.length - 1], check1, this.partNum, check2, this.partName, check3, this.partSpec, check4, this.partMaterial).then(response => { this.tableData2 = response.data.rows + console.log(response.data.rows) this.total2 = response.data.total }) },