From c13c2bb15b501c74fe4270b0ae763e5c9422ee39 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期三, 19 十一月 2025 10:02:52 +0800
Subject: [PATCH] fix: 重构绞线报工功能
---
src/pages/production/list/index.vue | 17 ++++++++++++++---
1 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/src/pages/production/list/index.vue b/src/pages/production/list/index.vue
index 92862f8..79b8d0e 100644
--- a/src/pages/production/list/index.vue
+++ b/src/pages/production/list/index.vue
@@ -36,6 +36,7 @@
const map = reactive({
deviceModel: "deviceModel",
model: "model",
+ systemNo: "systemNo",
totalAmount: "totalAmount",
amount: "amount",
unAmount: "unAmount",
@@ -50,13 +51,17 @@
type: String,
default: "",
},
+ model: {
+ type: String,
+ default: "",
+ },
});
const emits = defineEmits(["ok"]);
const list = ref<any[]>([]);
const toDetail = (id: number, type: string) => {
- toast.show("鐐瑰嚮鍗$墖");
+ // toast.show("鐐瑰嚮鍗$墖");
if (type == "鎷変笣") {
uni.navigateTo({
url: `/pages/production/detail/wireDetail?id=${id}`,
@@ -69,22 +74,28 @@
};
const getList = async (pageNo: number, pageSize: number) => {
- const { code, data } = await props.api({
+ const params: any = {
userName: userInfo.value.userName,
state: props.state,
current: pageNo,
size: pageSize,
- });
+ };
+ if (props.model) {
+ params.model = props.model;
+ }
+ const { code, data } = await props.api(params);
if (code == 200) {
if (data.type == "缁炵嚎") {
map.deviceModel = "deviceModel";
map.model = "model";
+ map.systemNo = "systemNo";
map.totalAmount = "totalLength";
map.amount = "length";
map.unAmount = "unLength";
} else if (data.type == "鎷変笣") {
map.deviceModel = "deviceModel";
map.model = "model";
+ map.systemNo = "systemNo";
map.totalAmount = "totalAmount";
map.amount = "amount";
map.unAmount = "unAmount";
--
Gitblit v1.9.3