diff --git a/src/views/inventory/InvPreInProductsDetail.vue b/src/views/inventory/InvPreInProductsDetail.vue index 05b999b..68cbcb8 100644 --- a/src/views/inventory/InvPreInProductsDetail.vue +++ b/src/views/inventory/InvPreInProductsDetail.vue @@ -58,7 +58,8 @@ - + @@ -147,6 +149,7 @@ export default { list: [], total: 0, loading: false, + defaultSort: {prop: 'orderTime', order: 'desc'}, }; }, methods: { @@ -176,6 +179,17 @@ export default { this.invPreProductDetailQuery.page = val; this.getList(); }, + + handleSortChange(column, prop, order) { + if (column.order === 'descending') { + this.invPreProductDetailQuery.sort = 'desc' + } else { + this.invPreProductDetailQuery.sort = 'asc' + } + this.invPreProductDetailQuery.orderBy = column.prop; + this.getList(); + }, + getList() { this.loading = true; this.invPreProductDetailQuery.relId = this.inputQuery.relId; diff --git a/src/views/inventory/InvPreProductsDetail.vue b/src/views/inventory/InvPreProductsDetail.vue index 8b71bf4..ae17320 100644 --- a/src/views/inventory/InvPreProductsDetail.vue +++ b/src/views/inventory/InvPreProductsDetail.vue @@ -58,7 +58,8 @@ - + @@ -147,6 +149,7 @@ export default { list: [], total: 0, loading: false, + defaultSort: {prop: 'orderTime', order: 'desc'}, }; }, methods: { @@ -176,6 +179,17 @@ export default { this.invPreProductDetailQuery.page = val; this.getList(); }, + handleSortChange(column, prop, order) { + if (column.order === 'descending') { + this.invPreProductDetailQuery.sort = 'desc' + } else { + this.invPreProductDetailQuery.sort = 'asc' + } + this.invPreProductDetailQuery.orderBy = column.prop; + this.getList(); + }, + + getList() { this.loading = true; this.invPreProductDetailQuery.relId = this.inputQuery.relId; diff --git a/src/views/inventory/InvProductsDetail.vue b/src/views/inventory/InvProductsDetail.vue index b639c6a..f94d4f0 100644 --- a/src/views/inventory/InvProductsDetail.vue +++ b/src/views/inventory/InvProductsDetail.vue @@ -56,7 +56,8 @@ - + { this.invList = response.data || []; + for(var i=0;i< this.invList.length;i++){ + if(this.invList[i].advanceType == 2){ + this.filterQuery.invCode=this.invList[i].code; + } + } this.getList(); }) .catch(() => { @@ -389,7 +394,7 @@ export default { } this.findMethod(); this.getInvList(); - this.getList(); + // this.getList(); }, }; diff --git a/src/views/inventory/InvSupPreProducts.vue b/src/views/inventory/InvSupPreProducts.vue index e073fb9..6c4e818 100644 --- a/src/views/inventory/InvSupPreProducts.vue +++ b/src/views/inventory/InvSupPreProducts.vue @@ -302,6 +302,12 @@ export default { getInvListByUser(query) .then((response) => { this.invList = response.data || []; + for(var i=0;i< this.invList.length;i++){ + if(this.invList[i].advanceType == 3){ + this.filterQuery.invCode=this.invList[i].code; + } + } + this.getList(); }) .catch(() => { @@ -386,7 +392,7 @@ export default { } this.findMethod(); this.getInvList(); - this.getList(); + //this.getList(); }, }; diff --git a/src/views/purchase/purOrder/purOrderSearch.vue b/src/views/purchase/purOrder/purOrderSearch.vue index 25b285e..ac31f41 100644 --- a/src/views/purchase/purOrder/purOrderSearch.vue +++ b/src/views/purchase/purOrder/purOrderSearch.vue @@ -22,14 +22,14 @@ @@ -41,14 +41,14 @@