diff --git a/src/views/warehouse/stockOrderEdit.vue b/src/views/warehouse/stockOrderEdit.vue index d00e975..019dd7a 100644 --- a/src/views/warehouse/stockOrderEdit.vue +++ b/src/views/warehouse/stockOrderEdit.vue @@ -86,7 +86,9 @@ @@ -151,6 +153,10 @@ export default { type: Object, required: true, }, + orderIdFk: { + type: String, + required: true, + } }, data() { return { @@ -266,9 +272,8 @@ export default { } } }, - - detailHandleCurrentChange(val) { - this.query.page = val; + handleCurrentChange(val) { + this.detailQuery.page = val; this.getStockOrderDetailList(); }, getStockOrderDetailList(row) { @@ -288,6 +293,10 @@ export default { }); }, }, + created() { + this.detailQuery.orderIdFk = this.orderIdFk; + this.getStockOrderDetailList(); + } } diff --git a/src/views/warehouse/stockOrderSearch.vue b/src/views/warehouse/stockOrderSearch.vue index 37f62d6..5c1526e 100644 --- a/src/views/warehouse/stockOrderSearch.vue +++ b/src/views/warehouse/stockOrderSearch.vue @@ -284,7 +284,7 @@ @@ -946,6 +946,7 @@ export default { // 显示表单 handleDetailForm(index, row) { this.stockOrderEditVisible = true; + this.detailQuery.orderIdFk = row.id; }, hideDetailForm() { // 更改值