From 0deee4db0c8293f96b6e2927bb7eef7a06608485 Mon Sep 17 00:00:00 2001
From: admin <>
Date: Tue, 23 Apr 2024 10:47:52 +0800
Subject: [PATCH] =?UTF-8?q?update:=20=E7=BB=86=E8=8A=82=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/PagesStatistics/billDetail.vue | 3 +-
src/PagesStatistics/businessOverview.vue | 47 +++--
.../components/FilterDialog.vue | 7 +-
.../components/ProductDialog.vue | 65 +++++--
src/PagesStatistics/customerChecking.vue | 3 +-
src/PagesStatistics/customerRanking.vue | 19 +-
src/PagesStatistics/receivePanel.vue | 25 +--
src/PagesStatistics/shipmentPanel.vue | 21 +-
src/PagesStatistics/supplierRanking.vue | 20 +-
src/components/NavBar/NavBar.vue | 21 +-
src/components/StatisticCard/index.vue | 5 +-
src/pagesApp/components/addIncomeDetail.vue | 47 +++--
src/pagesApp/components/addPayment.vue | 7 +-
src/pagesApp/incomeDetail.vue | 10 +-
src/pagesApp/paymentDetail.vue | 4 +-
src/pagesApp/shipmentCl.vue | 70 +++----
src/pagesHome/index.vue | 114 ++++++-----
src/pagesLogin/profile/modifyPwd.vue | 111 +++++++++--
src/pagesReceive/form/pricingForm.vue | 184 ++++++++++++++++--
src/pagesShipment/form/shipmentForm.vue | 7 +-
src/pagesShipment/shipmenting.vue | 13 +-
src/types/order.d.ts | 6 +-
src/utils/index.ts | 91 +++++----
23 files changed, 650 insertions(+), 250 deletions(-)
diff --git a/src/PagesStatistics/billDetail.vue b/src/PagesStatistics/billDetail.vue
index 22a493a..6ee3a5d 100644
--- a/src/PagesStatistics/billDetail.vue
+++ b/src/PagesStatistics/billDetail.vue
@@ -26,7 +26,7 @@
{{ state.type === "1" ? "应付" : "应收" }}金额:¥{{
- state.type === "1" ? item.balanceTotalPrice : item.totalPrice
+ state.type === "1" ? formatMoney(item.balanceTotalPrice) : formatMoney(item.totalPrice)
}}
@@ -39,6 +39,7 @@
@@ -415,11 +424,21 @@ onMounted(() => {
font-weight: 400;
font-size: 24rpx;
color: #000000;
+ .time {
+ margin-top: 30rpx;
+ margin-right: 30rpx;
+ text-align: right;
+ font-size: 26rpx;
+ font-weight: bold;
+ }
.box {
padding: 30rpx;
display: grid;
grid-template-columns: repeat(2, 1fr);
flex: 1;
+ .highLight {
+ color: rgba(236, 15, 62, 1);
+ }
> view {
line-height: 50rpx;
}
diff --git a/src/PagesStatistics/components/FilterDialog.vue b/src/PagesStatistics/components/FilterDialog.vue
index 942206c..701fd6a 100644
--- a/src/PagesStatistics/components/FilterDialog.vue
+++ b/src/PagesStatistics/components/FilterDialog.vue
@@ -95,7 +95,12 @@ const changeUser = (obj:any) => {
state.user = obj
}
const changeProduct = (obj:any) => {
- state.project = {...obj, name: obj.reProductsName}
+ if (props.isShipment) {
+ state.project = {...obj, name: obj.shmProductsName}
+ } else {
+ state.project = {...obj, name: obj.reProductsName}
+ }
+
}
const resetState = () => {
state.project = {
diff --git a/src/PagesStatistics/components/ProductDialog.vue b/src/PagesStatistics/components/ProductDialog.vue
index 011cf8f..b0fa90a 100644
--- a/src/PagesStatistics/components/ProductDialog.vue
+++ b/src/PagesStatistics/components/ProductDialog.vue
@@ -2,20 +2,43 @@
{{ isShipment ? "出货" : "收货" }}产品
-
+
+
+ {{ item.shmCategoryName }}
+
+ {{ cItem.shmCategoryName }}
+
+
+
+ {{ child.shmProductsName }}
+
+
+
+
+
+
+
+
+
+
+
{{isShipment ? item.shmProductsName : item.reProductsName }}{{ isShipment ? item.shmProductsName : item.reProductsName }}
-
@@ -42,9 +65,17 @@ const handleSelect = (item: any) => {
};
const getList = () => {
if (props.isShipment) {
- GoodsApi.getShipmentProductList().then((res) => {
+ // GoodsApi.getShipmentProductList().then((res) => {
+ // if (res.code === 200) {
+ // state.list = res.data;
+ // }
+ // });
+
+ GoodsApi.getChildrenList().then((res) => {
if (res.code === 200) {
- state.list = res.data;
+ if (res.code === 200) {
+ state.list = res.data;
+ }
}
});
} else {
@@ -63,6 +94,8 @@ onMounted(() => {
.c-dialog-filter {
width: 95vw;
padding: 25rpx;
+ height: 90vh;
+ overflow-y: scroll;
.title {
font-weight: 500;
font-size: 32rpx;
@@ -70,12 +103,22 @@ onMounted(() => {
text-align: center;
}
}
+.first-title {
+ font-size: 28rpx;
+ font-weight: 500;
+}
+.second-title {
+ font-size: 26rpx;
+ font-weight: 500;
+ color: rgba(0, 0, 0, 0.7);
+ margin: 20rpx;
+}
// 产品dialog
.dialog-product-layout {
box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(5, 68, 37, 0.12);
border-radius: 13rpx;
- margin: 42rpx 25rpx;
- padding: 19rpx;
+ margin: 30rpx 24rpx;
+ padding: 20rpx;
display: flex;
justify-content: flex-start;
align-items: center;
diff --git a/src/PagesStatistics/customerChecking.vue b/src/PagesStatistics/customerChecking.vue
index 186efd9..8727d09 100644
--- a/src/PagesStatistics/customerChecking.vue
+++ b/src/PagesStatistics/customerChecking.vue
@@ -5,7 +5,7 @@
{{ item.supplierName }}
- ¥{{ item.unPayTotalPrice }} 欠
+ ¥{{ formatMoney(item.unPayTotalPrice) }} 欠
@@ -16,6 +16,7 @@
import Search from "@/components/Search/index.vue";
import StatisticCard from "@/components/StatisticCard/index.vue";
import { ShipmentApi } from "@/services";
+import { formatMoney } from "@/utils";
const list = reactive([
{
num: 0,
diff --git a/src/PagesStatistics/customerRanking.vue b/src/PagesStatistics/customerRanking.vue
index eb76509..f63bee0 100644
--- a/src/PagesStatistics/customerRanking.vue
+++ b/src/PagesStatistics/customerRanking.vue
@@ -4,14 +4,14 @@
-
- {handleDialog('showFilter', v)}"
@changeProduct="changeProduct"
- />
+ /> -->
+ {handleDialog('showFilter', v)}"
+ @changeProduct="changeProduct"
+ ref="productRef"
+ :isShipment="true"
+ >
import TimeDialog from "./components/TimeDialog.vue";
import CEcharts from "./Echarts/echarts.vue";
-import ProductTypeDialog from "./components/ProductTypeDialog.vue";
+import ProductDialog from "./components/ProductDialog.vue";
import { formatDate, getCurrentMonthStartAndEnd } from "@/utils";
import { ShipmentApi } from "@/services";
import _ from "underscore";
@@ -140,7 +147,7 @@ const changeTime = (obj: any) => {
getList();
};
const changeProduct = (obj: any) => {
- state.productId = obj.productId;
+ state.productId = obj.id;
getList();
};
const handleDialog = (key: string, v: boolean) => {
diff --git a/src/PagesStatistics/receivePanel.vue b/src/PagesStatistics/receivePanel.vue
index 4ea8941..7ca70b8 100644
--- a/src/PagesStatistics/receivePanel.vue
+++ b/src/PagesStatistics/receivePanel.vue
@@ -4,14 +4,14 @@
-
- {{ state.summary.totalAmount }}
+ {{ formatMoney(state.summary.totalAmount) }}
收货总量/kg
- {{ state.summary.totalPaid }}
+ {{ formatMoney(state.summary.totalPaid) }}
已付/kg
- {{ state.summary.totalUnpaid }}
+ {{ formatMoney(state.summary.totalUnpaid) }}
未付/kg
@@ -52,19 +52,19 @@
- {{ state.summary.totalPayment }}
+ {{ formatMoney(state.summary.totalPayment) }}
结算金额/元
- {{ state.summary.totalPaidPrice }}
+ {{ formatMoney(state.summary.totalPaidPrice) }}
实收金额
- {{ state.summary.totalUnpaidPrice }}
+ {{ formatMoney(state.summary.totalUnpaidPrice) }}
应付金额
@@ -74,13 +74,13 @@
- {{ state.summary.totalReceipt }}
+ {{ formatMoney(state.summary.totalReceipt) }}
收货单
- {{ state.summary.averagePrice }}
+ {{ formatMoney(state.summary.averagePrice) }}
均价(元/kg)
@@ -136,7 +136,7 @@ import TimeDialog from "./components/TimeDialog.vue";
import StatusDialog from "./components/StatusDialog.vue";
import FilterDialog from "./components/FilterDialog.vue";
import { ReceiveApi } from "@/services";
-import { formatDate, getCurrentMonthStartAndEnd } from "@/utils";
+import { formatDate, formatMoney, getCurrentMonthStartAndEnd } from "@/utils";
const tableTitleList = reactive([
{
name: "收货产品",
@@ -292,6 +292,9 @@ onMounted(() => {
font-weight: bold;
font-size: 28rpx;
}
+ .highlight {
+ color: rgba(236, 15, 62, 1);
+ }
}
::v-deep .uni-table {
min-width: 500px !important;
diff --git a/src/PagesStatistics/shipmentPanel.vue b/src/PagesStatistics/shipmentPanel.vue
index 22a60cd..d5d1f96 100644
--- a/src/PagesStatistics/shipmentPanel.vue
+++ b/src/PagesStatistics/shipmentPanel.vue
@@ -4,14 +4,14 @@
-
- {{ state.summary.totalAmount }}
+ {{ formatMoney(state.summary.totalAmount) }}
出货总量/kg
- {{ state.summary.totalPayShipment }}
+ {{ formatMoney(state.summary.totalPayShipment) }}
已收/kg
- {{ state.summary.totalUnPayShipment }}
+ {{ formatMoney(state.summary.totalUnPayShipment) }}
未收/kg
@@ -52,19 +52,19 @@
- {{ state.summary.totalCollection }}
+ {{ formatMoney(state.summary.totalCollection) }}
结算金额/元
- {{ state.summary.totalPayCollection }}
+ {{ formatMoney(state.summary.totalPayCollection) }}
实收金额
- {{ state.summary.totalUnPayCollection }}
+ {{ formatMoney(state.summary.totalUnPayCollection) }}
应收金额
@@ -137,7 +137,7 @@ import TimeDialog from "./components/TimeDialog.vue";
import StatusDialog from "./components/StatusDialog.vue";
import FilterDialog from "./components/FilterDialog.vue";
import { ShipmentApi } from "@/services";
-import { formatDate, getCurrentMonthStartAndEnd } from "@/utils";
+import { formatDate, formatMoney, getCurrentMonthStartAndEnd } from "@/utils";
const tableTitleList = reactive([
{
name: "客户",
@@ -293,6 +293,9 @@ onMounted(() => {
font-weight: bold;
font-size: 27rpx;
}
+ .highlight {
+ color: rgba(236, 15, 62, 1);
+ }
}
::v-deep .uni-table {
min-width: 500px !important;
diff --git a/src/PagesStatistics/supplierRanking.vue b/src/PagesStatistics/supplierRanking.vue
index c543b7f..ec21222 100644
--- a/src/PagesStatistics/supplierRanking.vue
+++ b/src/PagesStatistics/supplierRanking.vue
@@ -4,14 +4,14 @@
-
- {handleDialog('showFilter', v)}"
:isShipment="false"
@changeProduct="changeProduct"
- />
+ /> -->
+
+ {handleDialog('showFilter', v)}"
+ @changeProduct="changeProduct"
+ ref="productRef"
+ :isShipment="false"
+ >
diff --git a/src/pagesApp/paymentDetail.vue b/src/pagesApp/paymentDetail.vue
index df2fc66..5a5e7af 100644
--- a/src/pagesApp/paymentDetail.vue
+++ b/src/pagesApp/paymentDetail.vue
@@ -108,6 +108,7 @@ import PageView from "@/components/PageView/index.vue";
import { formatDate, getCurrentMonthStartAndEnd } from "@/utils";
import TimeDialog from "./components/TimeDialog.vue";
import FilterDialog from "./components/CustomFilterDialog.vue";
+import { onShow } from "@dcloudio/uni-app";
const options1 = ref([
{
@@ -263,7 +264,8 @@ const getList = (v?: boolean) => {
}
});
};
-onMounted(() => {
+onShow(() => {
+ resetPageList();
getList();
});
diff --git a/src/pagesApp/shipmentCl.vue b/src/pagesApp/shipmentCl.vue
index 86fbf2d..778fc82 100644
--- a/src/pagesApp/shipmentCl.vue
+++ b/src/pagesApp/shipmentCl.vue
@@ -22,39 +22,45 @@
:height="100"
:isLoading="pageList.isLoading"
>
-
-
-
- 出货单号:{{ item.orderNumber }}
- {{ item.deviceName }}
+
+
+
+ 出货单号:{{ item.orderNumber }}
+ {{ item.deviceName }}
+
+
+ 现场照片
+
-
- 现场照片
+
+ {{ item.userName }}
+ {{ getScaleStatus((item as any).scaleStatus) }}
+ 补单
+
+ {{ item.productName }}
+
+
+
+ {{ cItem.name }}:{{ cItem.isBefore ? cItem.unit : "" }}
+ {{ cItem.num }}
+ {{ cItem.isBefore ? "" : cItem.unit }}
+
+
-
- {{ item.userName }} {{ getScaleStatus((item as any).scaleStatus) }}
- {{ item.productName }}
-
-
-
- {{ cItem.name }}:{{ cItem.isBefore ? cItem.unit : "" }}
- {{ cItem.num }}
- {{ cItem.isBefore ? "" : cItem.unit }}
-
-
-
-
@@ -206,9 +212,7 @@ const getList = (v?: boolean) => {
}).then((res: any) => {
if (res.code === 200) {
pageList.isLoading = false;
- (pageList as any).list = pageList.list.concat(
- res.data.list
- );
+ (pageList as any).list = pageList.list.concat(res.data.list);
pageList.total = (res.data as any).total;
}
});
diff --git a/src/pagesHome/index.vue b/src/pagesHome/index.vue
index 7dc75e8..b4d85c4 100644
--- a/src/pagesHome/index.vue
+++ b/src/pagesHome/index.vue
@@ -1,6 +1,6 @@
-
+
- {{ formatMoney(item.num) }}
+ {{ formatMoney(item.num, 2) }}
{{ item.title }}
@@ -156,9 +156,15 @@
diff --git a/src/pagesLogin/profile/modifyPwd.vue b/src/pagesLogin/profile/modifyPwd.vue
index 013f5ca..af10379 100644
--- a/src/pagesLogin/profile/modifyPwd.vue
+++ b/src/pagesLogin/profile/modifyPwd.vue
@@ -5,21 +5,41 @@
labelPosition="left"
:model="model1"
:rules="rules"
- ref="loginForm"
+ ref="form"
:labelWidth="0"
+ :errorType="'border-bottom'"
>
-
+ :customStyle="{}"
+ :border="index === 2 ? 'none' : 'bottom'"
+ :value="(model1.userInfo as any)[item.key]"
+ :type="item.isShowPwd ? 'text' : 'password'"
+ >
+
+
+
+
+
@@ -37,27 +57,35 @@