From 27bb35590bea9f7221110e15e2891dafe3ac03c9 Mon Sep 17 00:00:00 2001
From: admin <>
Date: Mon, 25 Mar 2024 14:19:03 +0800
Subject: [PATCH] =?UTF-8?q?update:=20=E5=87=BA=E8=B4=A7=E5=AF=B9=E6=8E=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pagesHome/index.vue | 6 +-
src/pagesReceive/form/pricingForm.vue | 7 +-
src/pagesReceive/payReview.vue | 12 +-
src/pagesShipment/form/shipmentForm.vue | 280 +++++++++++++++++------
src/pagesShipment/review/index.vue | 7 +-
src/pagesShipment/shipmentSettlement.vue | 222 ++++++++++++------
src/pagesShipment/shipmenting.vue | 149 ++++++++----
src/services/shipment.ts | 1 +
src/types/order.d.ts | 1 +
9 files changed, 484 insertions(+), 201 deletions(-)
diff --git a/src/pagesHome/index.vue b/src/pagesHome/index.vue
index 05d070c..8b6f493 100644
--- a/src/pagesHome/index.vue
+++ b/src/pagesHome/index.vue
@@ -54,7 +54,7 @@
- 出货入库
+ 出货销售
@@ -250,7 +250,7 @@ const shipmentList = reactive([
num: 0,
fn: () => {
uni.navigateTo({
- url: "/pagesShipment/shipmenting", // 要跳转到的页面路径
+ url: "/pagesShipment/shipmenting?scaleStatus=0", // 要跳转到的页面路径
});
},
},
@@ -259,7 +259,7 @@ const shipmentList = reactive([
num: 0,
fn: () => {
uni.navigateTo({
- url: "/pagesShipment/grossWeight", // 要跳转到的页面路径
+ url: "/pagesShipment/shipmenting?scaleStatus=1", // 要跳转到的页面路径
});
},
},
diff --git a/src/pagesReceive/form/pricingForm.vue b/src/pagesReceive/form/pricingForm.vue
index af3ea26..ed3e40b 100644
--- a/src/pagesReceive/form/pricingForm.vue
+++ b/src/pagesReceive/form/pricingForm.vue
@@ -46,8 +46,8 @@
@delete="deletePic" -->
import type { ComType } from "@/types/global";
import {
- ProfileApi,
ReceiveProductApi,
ReceiveApi,
PictureApi,
@@ -123,7 +122,7 @@ const rules = reactive({
"order.userName": {
type: "string",
required: true,
- message: "请输入选择供应商",
+ message: "请选择供应商",
trigger: ["blur", "change"],
},
"order.productName": {
diff --git a/src/pagesReceive/payReview.vue b/src/pagesReceive/payReview.vue
index ef77d21..a281734 100644
--- a/src/pagesReceive/payReview.vue
+++ b/src/pagesReceive/payReview.vue
@@ -13,6 +13,7 @@
:clearabled="true"
:showAction="false"
placeholderColor="#C1C1C1"
+ @search="handleSearch()"
>
@@ -136,7 +137,7 @@ const pageList: PageResult = reactive({
pageNum: 1,
pageSize: 10,
});
-const keyword = ref();
+const keyword = ref('');
const isShowSearch = ref(false);
const state = reactive<{
[attrName: string]: any;
@@ -171,6 +172,11 @@ const handleTab = (item: any) => {
resetPageList();
getList();
};
+
+const handleSearch = () => {
+ resetPageList();
+ getList();
+}
const handleReview = (id: number, scaleStatus: number, title: string) => {
uni.navigateTo({
url:
@@ -210,6 +216,7 @@ const handleSelect = () => {
return { ...item, isChecked: state.isAll };
});
};
+
const getList = (v?: boolean) => {
if (v) {
if (Math.ceil(pageList.total / pageList.pageSize) > pageList.pageNum) {
@@ -219,16 +226,19 @@ const getList = (v?: boolean) => {
return;
}
}
+ pageList.isLoading = true;
ReceiveApi.getOrderPage({
pageSize: pageList.pageSize,
pageNumber: pageList.pageNum,
scaleStatus: currentTab.value,
+ userName: keyword.value
}).then((res) => {
if (res.code === 200) {
(pageList as any).list = (res.data.list as any).map((item: any) => {
return { ...item, isChecked: false };
});
pageList.total = (res.data as any).total;
+ pageList.isLoading = false;
}
});
};
diff --git a/src/pagesShipment/form/shipmentForm.vue b/src/pagesShipment/form/shipmentForm.vue
index 88f6129..b4563f0 100644
--- a/src/pagesShipment/form/shipmentForm.vue
+++ b/src/pagesShipment/form/shipmentForm.vue
@@ -7,14 +7,16 @@
ref="form"
:labelWidth="80"
:labelStyle="{ padding: '0rpx 10rpx' }"
+ :errorType="'border-bottom'"
>
-->
+
-
+
+ handleSelect(item.childKey, v)"
+ @close="contrlModalParams[item.childKey].isShow = false"
+ :closeOnClickAction="true"
+ :safeAreaInsetBottom="true"
+ >
+