From a2cf6bb700520d5d8a3818fdb3959cc64b4ad350 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 22 一月 2026 15:48:27 +0800
Subject: [PATCH] 湟水峡app: 1.部署修改
---
src/pages/index.vue | 292 ++++++++++++++++++++-------------------------------------
1 files changed, 104 insertions(+), 188 deletions(-)
diff --git a/src/pages/index.vue b/src/pages/index.vue
index 2a3ef52..8d80f40 100644
--- a/src/pages/index.vue
+++ b/src/pages/index.vue
@@ -18,137 +18,21 @@
<view class="hero-section">
<view class="bg-img">
<view class="hero-content">
- <text class="hero-title">鍐涙嘲浼熶笟</text>
+ <text class="hero-title">婀熸按宄�</text>
</view>
<view class="hero-wave"></view>
</view>
</view>
- <!-- <view class="notice-section">-->
- <!-- <view class="notice">-->
- <!-- <view class="notice-content">-->
- <!-- <view class="notice-left">-->
- <!-- <text class="notice-status">閫氱煡</text>-->
- <!-- </view>-->
- <!-- <view class="notice-separator"></view>-->
- <!-- <view class="notice-right">-->
- <!-- <text class="notice-label">{{currentStatus}}</text>-->
- <!-- <text class="notice-text">褰撴棩閿�鍞澶囨暟:<text class="notice-number">{{number}}<text class="notice-unit">涓�</text></text></text>-->
- <!-- </view>-->
- <!-- </view>-->
- <!-- </view>-->
- <!-- </view>-->
- <!-- 钀ラ攢绠$悊妯″潡 -->
- <!-- <view class="common-module marketing-module">-->
- <!-- <view class="module-header">-->
- <!-- <view class="module-title-container">-->
- <!-- <text class="module-title">钀ラ攢绠$悊</text>-->
- <!-- </view>-->
- <!-- </view>-->
- <!-- <view class="module-content">-->
- <!-- <up-grid :border="false"-->
- <!-- col="4">-->
- <!-- <up-grid-item v-for="(item, index) in marketingItems"-->
- <!-- :key="index"-->
- <!-- @click="handleCommonItemClick(item)">-->
- <!-- <view class="icon-container"-->
- <!-- :style="{ background: item.bgColor }">-->
- <!-- <up-icon :name="item.icon"-->
- <!-- :size="58"-->
- <!-- color="#ffffff"></up-icon>-->
- <!-- </view>-->
- <!-- <text class="item-label">{{item.label}}</text>-->
- <!-- </up-grid-item>-->
- <!-- </up-grid>-->
- <!-- </view>-->
- <!-- </view>-->
- <!-- <!– 閲囪喘绠$悊妯″潡 –>-->
- <!-- <view class="common-module purchase-module">-->
- <!-- <view class="module-header">-->
- <!-- <view class="module-title-container">-->
- <!-- <text class="module-title">閲囪喘绠$悊</text>-->
- <!-- </view>-->
- <!-- </view>-->
- <!-- <view class="module-content">-->
- <!-- <up-grid :border="false"-->
- <!-- col="4">-->
- <!-- <up-grid-item v-for="(item, index) in purchaseItems"-->
- <!-- :key="index"-->
- <!-- @click="handleCommonItemClick(item)">-->
- <!-- <view class="icon-container"-->
- <!-- :style="{ background: item.bgColor }">-->
- <!-- <up-icon :name="item.icon"-->
- <!-- :size="58"-->
- <!-- color="#ffffff"></up-icon>-->
- <!-- </view>-->
- <!-- <text class="item-label">{{item.label}}</text>-->
- <!-- </up-grid-item>-->
- <!-- </up-grid>-->
- <!-- </view>-->
- <!-- </view>-->
- <!-- <!– 鍗忓悓鍔炲叕妯″潡 –>-->
- <!-- <view class="common-module collaboration-module">-->
- <!-- <view class="module-header">-->
- <!-- <view class="module-title-container">-->
- <!-- <text class="module-title">鍗忓悓鍔炲叕</text>-->
- <!-- </view>-->
- <!-- </view>-->
- <!-- <view class="module-content">-->
- <!-- <up-grid :border="false"-->
- <!-- col="4">-->
- <!-- <up-grid-item v-for="(item, index) in collaborationItems"-->
- <!-- :key="index"-->
- <!-- @click="handleCommonItemClick(item)">-->
- <!-- <view class="icon-container"-->
- <!-- :style="{ background: item.bgColor }">-->
- <!-- <up-icon :name="item.icon"-->
- <!-- :size="58"-->
- <!-- color="#ffffff"></up-icon>-->
- <!-- </view>-->
- <!-- <text class="item-label">{{item.label}}</text>-->
- <!-- </up-grid-item>-->
- <!-- </up-grid>-->
- <!-- </view>-->
- <!-- </view>-->
- <!-- 鐢熶骇绠℃帶妯″潡 -->
- <!-- <view class="common-module production-module">-->
- <!-- <view class="module-header">-->
- <!-- <view class="module-title-container">-->
- <!-- <text class="module-title">鐢熶骇绠℃帶</text>-->
- <!-- </view>-->
- <!-- </view>-->
- <!-- <view class="module-content">-->
- <!-- <up-grid-->
- <!-- :border="false"-->
- <!-- col="4"-->
- <!-- >-->
- <!-- <up-grid-item-->
- <!-- v-for="(item, index) in productionItems"-->
- <!-- :key="index"-->
- <!-- @click="handleCommonItemClick(item)"-->
- <!-- >-->
- <!-- <view class="icon-container" :style="{ background: item.bgColor }">-->
- <!-- <up-icon-->
- <!-- :name="item.icon"-->
- <!-- :size="58"-->
- <!-- color="#ffffff"-->
- <!-- ></up-icon>-->
- <!-- </view>-->
- <!-- <text class="item-label">{{item.label}}</text>-->
- <!-- </up-grid-item>-->
- <!-- </up-grid>-->
- <!-- </view>-->
- <!-- </view>-->
- <!-- 鐢熶骇绠℃帶妯″潡 -->
- <view class="common-module equipment-module">
+ <view class="common-module collaboration-module">
<view class="module-header">
<view class="module-title-container">
- <text class="module-title">鐢熶骇绠℃帶</text>
+ <text class="module-title">鍗忓悓鍔炲叕</text>
</view>
</view>
<view class="module-content">
<up-grid :border="false"
col="4">
- <up-grid-item v-for="(item, index) in productionItems"
+ <up-grid-item v-for="(item, index) in collaborationItems"
:key="index"
@click="handleCommonItemClick(item)">
<view class="icon-container"
@@ -163,29 +47,29 @@
</view>
</view>
<!-- 璁惧绠$悊妯″潡 -->
- <!-- <view class="common-module equipment-module">-->
- <!-- <view class="module-header">-->
- <!-- <view class="module-title-container">-->
- <!-- <text class="module-title">璁惧绠$悊</text>-->
- <!-- </view>-->
- <!-- </view>-->
- <!-- <view class="module-content">-->
- <!-- <up-grid :border="false"-->
- <!-- col="4">-->
- <!-- <up-grid-item v-for="(item, index) in equipmentItems"-->
- <!-- :key="index"-->
- <!-- @click="handleCommonItemClick(item)">-->
- <!-- <view class="icon-container"-->
- <!-- :style="{ background: item.bgColor }">-->
- <!-- <up-icon :name="item.icon"-->
- <!-- :size="58"-->
- <!-- color="#ffffff"></up-icon>-->
- <!-- </view>-->
- <!-- <text class="item-label">{{item.label}}</text>-->
- <!-- </up-grid-item>-->
- <!-- </up-grid>-->
- <!-- </view>-->
- <!-- </view>-->
+ <view class="common-module equipment-module">
+ <view class="module-header">
+ <view class="module-title-container">
+ <text class="module-title">璁惧绠$悊</text>
+ </view>
+ </view>
+ <view class="module-content">
+ <up-grid :border="false"
+ col="4">
+ <up-grid-item v-for="(item, index) in equipmentItems"
+ :key="index"
+ @click="handleCommonItemClick(item)">
+ <view class="icon-container"
+ :style="{ background: item.bgColor }">
+ <up-icon :name="item.icon"
+ :size="58"
+ color="#ffffff"></up-icon>
+ </view>
+ <text class="item-label">{{item.label}}</text>
+ </up-grid-item>
+ </up-grid>
+ </view>
+ </view>
</view>
</template>
@@ -279,10 +163,6 @@
// 鍗忓悓鍔炲叕鍔熻兘鏁版嵁
const collaborationItems = reactive([
{
- icon: "/static/images/icon/xietongshenpi@2x.png",
- label: "鍗忓悓瀹℃壒",
- },
- {
icon: "/static/images/icon/kehubaifang@2x.png",
label: "瀹㈡埛鎷滆",
},
@@ -319,41 +199,9 @@
// 璁惧绠$悊鍔熻兘鏁版嵁
const equipmentItems = reactive([
- // {
- // icon: '/static/images/icon/shebeitaizhang@2x.png',
- // label: '璁惧鍙拌处',
- // },
- {
- icon: "/static/images/icon/shbeibaoxiu@2x.png",
- label: "璁惧鎶ヤ慨",
- },
- {
- icon: "/static/images/icon/shbeibaoyang@2x.png",
- label: "璁惧淇濆吇",
- },
{
icon: "/static/images/icon/xunjianshangchuan@2x.png",
label: "宸℃涓婁紶",
- },
- {
- icon: "/static/images/icon/guzhangfenxi@2x.png",
- label: "鍒嗘瀽杩芥函",
- bgColor: "#ff9800",
- },
- {
- icon: "/static/images/icon/zhinengpaidan@2x.png",
- label: "鏅鸿兘娲惧崟",
- bgColor: "#ff6b35",
- },
- {
- icon: "/static/images/icon/zuoyezhidao@2x.png",
- label: "浣滀笟鎸囧",
- bgColor: "#4caf50",
- },
- {
- icon: "/static/images/icon/jieguoyanzheng@2x.png",
- label: "缁撴灉楠岃瘉",
- bgColor: "#9c27b0",
},
]);
@@ -419,6 +267,71 @@
case "渚涘簲鍟嗗線鏉�":
uni.navigateTo({
url: "/pages/procurementManagement/paymentLedger/index",
+ });
+ break;
+ case "鍏嚭绠$悊":
+ uni.navigateTo({
+ url: "/pages/cooperativeOffice/collaborativeApproval/index1",
+ });
+ break;
+ case "璇峰亣绠$悊":
+ uni.navigateTo({
+ url: "/pages/cooperativeOffice/collaborativeApproval/index2",
+ });
+ break;
+ case "鍑哄樊绠$悊":
+ uni.navigateTo({
+ url: "/pages/cooperativeOffice/collaborativeApproval/index3",
+ });
+ break;
+ case "鎶ラ攢绠$悊":
+ uni.navigateTo({
+ url: "/pages/cooperativeOffice/collaborativeApproval/index4",
+ });
+ break;
+ case "閲囪喘绠$悊":
+ uni.navigateTo({
+ url: "/pages/cooperativeOffice/collaborativeApproval/index5",
+ });
+ break;
+ case "鎶ヤ环绠$悊":
+ uni.navigateTo({
+ url: "/pages/cooperativeOffice/collaborativeApproval/index6",
+ });
+ break;
+ case "鍑哄簱绠$悊":
+ uni.navigateTo({
+ url: "/pages/cooperativeOffice/collaborativeApproval/index7",
+ });
+ break;
+ case "浼氳璁剧疆":
+ uni.navigateTo({
+ url: "/pages/managementMeetings/meetingSettings/index",
+ });
+ break;
+ case "浼氳鍒楄〃":
+ uni.navigateTo({
+ url: "/pages/managementMeetings/meetingList/index",
+ });
+ break;
+ case "浼氳鐢宠":
+ uni.navigateTo({
+ url: "/pages/managementMeetings/meetApplication/index",
+ });
+ break;
+ case "浼氳瀹℃壒":
+ uni.navigateTo({
+ url: "/pages/managementMeetings/meetExamine/index",
+ });
+ break;
+ case "浼氳鍙戝竷":
+ uni.navigateTo({
+ url: "/pages/managementMeetings/meetPublish/index",
+ });
+ break;
+ case "浼氳鎬荤粨":
+ uni.navigateTo({
+ url: "/pages/managementMeetings/meetSummary/index",
});
break;
case "鍗忓悓瀹℃壒":
@@ -535,7 +448,7 @@
// 鍒ゆ柇鎵弿缁撴灉鏄惁涓虹函鏁板瓧锛坕d锛�
const isNumericId = /^\d+$/.test(scanResult.trim());
-
+
if (isNumericId) {
// 濡傛灉鏄函鏁板瓧锛屾牴鎹� id 鑾峰彇宸ュ崟鏁版嵁
const workOrderId = scanResult.trim();
@@ -543,20 +456,23 @@
try {
const workRes = await getProductWorkOrderById({ id: workOrderId });
modal.closeLoading();
-
+
console.log("宸ュ崟鏌ヨ缁撴灉:", workRes);
-
+
if (workRes.code === 200 && workRes.data) {
// 鏂版帴鍙h繑鍥炵殑鏄崟涓璞★紝涓嶆槸鏁扮粍
const workData = workRes.data;
console.log("宸ュ崟鏁版嵁:", workData);
-
+
orderRow = JSON.stringify({
id: workData.id || workOrderId,
- planQuantity: workData.planQuantity-workData.completeQuantity,
- productProcessRouteItemId: workData.productProcessRouteItemId || workData.浜у搧宸ヨ壓璺嚎椤笽D || "",
+ planQuantity: workData.planQuantity - workData.completeQuantity,
+ productProcessRouteItemId:
+ workData.productProcessRouteItemId ||
+ workData.浜у搧宸ヨ壓璺嚎椤笽D ||
+ "",
});
-
+
console.log("鏋勯�犵殑orderRow:", orderRow);
} else {
modal.msgError("鏈壘鍒板搴旂殑宸ュ崟淇℃伅");
@@ -585,7 +501,7 @@
console.error(e, "瑙f瀽澶辫触====????=====");
orderRow = "";
}
-
+
// 楠岃瘉鏄惁涓烘湁鏁堢殑JSON
try {
JSON.parse(orderRow);
@@ -594,7 +510,7 @@
return;
}
}
-
+
console.log(orderRow, "orderRow======@@@@@@@@");
// 鎵爜鎴愬姛鍚庤烦杞埌鐢熶骇鎶ュ伐椤甸潰锛屽苟浼犻�抩rderRow鍙傛暟
uni.navigateTo({
--
Gitblit v1.9.3