diff --git a/src/views/PurchasingCenter/CreateInquirySheet/index.vue b/src/views/PurchasingCenter/CreateInquirySheet/index.vue index 72698729..a4b62dbf 100644 --- a/src/views/PurchasingCenter/CreateInquirySheet/index.vue +++ b/src/views/PurchasingCenter/CreateInquirySheet/index.vue @@ -162,6 +162,11 @@ {{ scope.row.供货商 }} + + +
@@ -794,6 +799,16 @@ export default { name: '', // 创建询价单 data() { return { + source: [ + { + text: 'BZ', + value: 1 + }, + { + text: 'WG', + value: 2 + } + ], tabName: '标准件和外购件', baseInfoLoading: false, dialogVisible5: false, @@ -948,6 +963,9 @@ export default { this.searchTable2() // 查表2 }, methods: { + filterSource(value, row) { + return Number(row['零件类型']) === Number(value) + }, tabClick(tab) { tab.name === '基本件' ? this.searchTable12() : this.searchTable11() }, diff --git a/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue b/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue index 2b141cc8..64086b12 100644 --- a/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue +++ b/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue @@ -166,6 +166,11 @@ {{ scope.row.供货商 }} + + + - + @@ -404,6 +409,16 @@ export default { name: '', // 采购任务分配 data() { return { + source: [ + { + text: 'BZ', + value: 1 + }, + { + text: 'WG', + value: 2 + } + ], tabName: '标准件和外购件', partNum: '', partName: '', @@ -482,6 +497,9 @@ export default { this.fetchData() // 初始化数据 }, methods: { + filterSource(value, row) { + return Number(row['零件类型']) === Number(value) + }, // 撤回 retract(row) { this.$confirm('是否撤回重新分配?', '提示', { @@ -578,6 +596,7 @@ export default { 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, check0, this.machineValue, check1, this.groupValue, this.check4, this.materialName, this.materialStatusValue[this.materialStatusValue.length - 1], check2, this.materialSpec, check3, this.materialModel).then(response => { + console.log(response.data.rows) this.tableData1 = response.data.rows this.total1 = response.data.total })