|
@@ -134,6 +134,7 @@ import {
|
|
|
getCarrierInfo
|
|
|
} from "@/api/business/outsourcedOrder";
|
|
|
import orderForm from "./form";
|
|
|
+import innerOutsourceStore from "@/store/modules/innerOutsourceOrder";
|
|
|
import printJS from "print-js";
|
|
|
import { nextTick } from "vue";
|
|
|
const { proxy } = getCurrentInstance();
|
|
@@ -172,7 +173,12 @@ const queryParams = ref({
|
|
|
/** 查询外协单主
|
|
|
带箱方式,是整单的。如果换新箱子,明细中,都需要更换箱子列表 */
|
|
|
function getList() {
|
|
|
+ console.log(innerOutsourceStore().innerOutsourceQueryParams)
|
|
|
loading.value = true;
|
|
|
+ if (innerOutsourceStore().innerOutsourceQueryParams != null) {
|
|
|
+ console.log(innerOutsourceStore().innerOutsourceQueryParams)
|
|
|
+ queryParams.value = innerOutsourceStore().innerOutsourceQueryParams;
|
|
|
+ }
|
|
|
innerOrderList(queryParams.value).then((response) => {
|
|
|
orderList.value = response.rows;
|
|
|
total.value = response.total;
|
|
@@ -183,6 +189,8 @@ function getList() {
|
|
|
/** 搜索按钮操作 */
|
|
|
function handleQuery() {
|
|
|
queryParams.value.pageNum = 1;
|
|
|
+ const innerOutsourceQueryParams = JSON.parse(JSON.stringify(queryParams.value));
|
|
|
+ innerOutsourceStore().setInnerOutsourceQueryParams(innerOutsourceQueryParams);
|
|
|
getList();
|
|
|
}
|
|
|
|