diff --git a/src/views/wms/instockOrderCopy/index.vue b/src/views/wms/instockOrderCopy/index.vue
index c575926..ad04fc7 100644
--- a/src/views/wms/instockOrderCopy/index.vue
+++ b/src/views/wms/instockOrderCopy/index.vue
@@ -10,11 +10,11 @@
-
-
-
-
-
+
+
+
+
+
@@ -626,15 +626,31 @@ const parentTableInfoForm = ref({})
const parentTableApproveForm = ref({})
const childrenTableInfoForm = ref({})
+
const queryForm = ref({
instockCode: '',
materialCategoryId: '',
materialCategoryName: '',
warehouseId: '',
instockType: '',
+ instockMethond: '',
pageNum: 1,
pageSize: 10
})
+
+// 获取路由实例
+const route = useRoute();// 获取路由实例
+// 初始化时获取路由参数并设置到查询表单
+let routeInstockMethondValue = '';
+if (route.query.instockMethond) {
+ // 确保值是字符串类型,如果是数组则取第一个元素
+ const instockMethondValue = Array.isArray(route.query.instockMethond)
+ ? route.query.instockMethond[0]
+ : route.query.instockMethond;
+ queryForm.value.instockMethond = instockMethondValue;
+ routeInstockMethondValue = instockMethondValue; // 保存路由参数值
+}
+
const parentTableRef = ref()
const parentTableData = ref([])
const ids = ref([])
@@ -764,7 +780,8 @@ const query = async () => {
}
const reset = () => {
queryForm.value = {
- instockId: ''
+ instockId: '',
+ instockMethond: routeInstockMethondValue, // 使用保存的路由参数值
}
getParentTable()
}