From 3fa1df3286670f5480fc1eca31ef81d30b6865f5 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期四, 30 四月 2026 16:31:36 +0800
Subject: [PATCH] 已结束订单的报工扫码限制,以及一些废弃接口处理
---
src/pages/works.vue | 49 ++++++++++++++++++++++++++++++++++---------------
1 files changed, 34 insertions(+), 15 deletions(-)
diff --git a/src/pages/works.vue b/src/pages/works.vue
index ab089c5..59e6637 100644
--- a/src/pages/works.vue
+++ b/src/pages/works.vue
@@ -569,26 +569,30 @@
// 鐢熶骇绠℃帶鍔熻兘鏁版嵁
const productionItems = reactive([
- // {
- // icon: "/static/images/icon/shengchandingdan@2x.svg",
- // label: "鐢熶骇璁㈠崟",
- // },
+ {
+ icon: "/static/images/icon/shengchanbaogong.svg",
+ label: "鐢熶骇璁㈠崟",
+ },
// {
// icon: "/static/images/icon/shengchanpaigong@2x.svg",
// label: "鐢熶骇娲惧伐",
// },
- // {
- // icon: "/static/images/icon/shengchanpaichan@2x.svg",
- // label: "宸ュ簭鎺掍骇",
- // },
+ {
+ icon: "/static/images/icon/shengchanpaichan@2x.svg",
+ label: "鐢熶骇鎺掍骇",
+ },
+ {
+ icon: "/static/images/icon/shengchanbaogong.svg",
+ label: "涓荤敓浜ц鍒�",
+ },
{
icon: "/static/images/icon/shengchanbaogong.svg",
label: "鐢熶骇鎶ュ伐",
},
- {
- icon: "/static/images/icon/shengchanbaogong.svg",
- label: "鐢熶骇宸ュ崟",
- },
+ // {
+ // icon: "/static/images/icon/shengchanbaogong.svg",
+ // label: "鐢熶骇宸ュ崟",
+ // },
// {
// icon: "/static/images/icon/shengchanhesuan@2x.svg",
// label: "鐢熶骇鏍哥畻",
@@ -833,14 +837,24 @@
url: "/pages/productionManagement/productionDispatching/index",
});
break;
- case "宸ュ簭鎺掍骇":
+ case "宸ヨ壓璺嚎":
uni.navigateTo({
- url: "/pages/productionManagement/processScheduling/index",
+ url: "/pages/productionManagement/processRoute/index",
});
break;
case "鐢熶骇宸ュ崟":
uni.navigateTo({
url: "/pages/productionManagement/workOrder/index",
+ });
+ break;
+ case "涓荤敓浜ц鍒�":
+ uni.navigateTo({
+ url: "/pages/productionManagement/mainProductionPlan/index",
+ });
+ break;
+ case "鐢熶骇鎺掍骇":
+ uni.navigateTo({
+ url: "/pages/productionManagement/productionScheduling/index",
});
break;
case "鐢熶骇鎶ュ伐":
@@ -1037,7 +1051,7 @@
factoryList.value = [];
});
}
- const getcode = () => {
+ const getcode = async () => {
uni.scanCode({
success: async res => {
// 瑙f瀽浜岀淮鐮佸唴瀹�
@@ -1062,6 +1076,11 @@
const workData = workRes.data;
console.log("宸ュ崟鏁版嵁:", workData);
+ if (workData.endOrder === true) {
+ modal.msgError("璇ヨ鍗曞凡缁撴潫锛屾棤娉曟姤宸�");
+ return;
+ }
+
orderRow = JSON.stringify(workData);
console.log("鏋勯�犵殑orderRow:", orderRow);
--
Gitblit v1.9.3