gaoluyang
2025-09-26 39bd5a37487895a3cfd25871dde7bf3eb44e7842
src/pages/index.vue
@@ -123,6 +123,36 @@
         </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="module-header">
@@ -253,6 +283,35 @@
   }
]);
// 生产管控功能数据
const productionItems = reactive([
   {
      icon: '/static/images/icon/shengchandingdan@2x.png',
      label: '生产订单',
      bgColor: '#FF9800'
   },
   {
      icon: '/static/images/icon/shengchanpaigong@2x.png',
      label: '生产派工',
      bgColor: '#FF6B35'
   },
   {
      icon: '/static/images/icon/shengchanpaichan@2x.png',
      label: '工序排产',
      bgColor: '#E91E63'
   },
   {
      icon: '/static/images/icon/shengchanbaogong@2x.png',
      label: '生产报工',
      bgColor: '#673AB7'
   },
   {
      icon: '/static/images/icon/shengchanhesuan@2x.png',
      label: '生产核算',
      bgColor: '#3F51B5'
   }
]);
// 设备管理功能数据
const equipmentItems = reactive([
   // {
@@ -271,26 +330,26 @@
      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'
   // }
   {
      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'
   }
]);
// 处理常用功能点击
@@ -365,6 +424,31 @@
      case '客户拜访':
         uni.navigateTo({
            url: '/pages/cooperativeOffice/clientVisit/index'
         });
         break;
      case '生产订单':
         uni.navigateTo({
            url: '/pages/productionManagement/productionOrder/index'
         });
         break;
      case '生产派工':
         uni.navigateTo({
            url: '/pages/productionManagement/productionDispatching/index'
         });
         break;
      case '工序排产':
         uni.navigateTo({
            url: '/pages/productionManagement/processScheduling/index'
         });
         break;
      case '生产报工':
         uni.navigateTo({
            url: '/pages/productionManagement/productionReport/index'
         });
         break;
      case '生产核算':
         uni.navigateTo({
            url: '/pages/productionManagement/productionAccounting/index'
         });
         break;
      case '设备台账':
@@ -803,6 +887,10 @@
   --module-color: #4caf50;
}
.production-module {
   --module-color: #FF9800;
}
.equipment-module {
   --module-color: #9c27b0;
}
@@ -1009,6 +1097,10 @@
   --module-color: #4caf50;
}
.production-module {
   --module-color: #FF9800;
}
.equipment-module {
   --module-color: #9c27b0;
}