gaoluyang
2025-09-26 8e153de91f55b07847225e23c3a9a8ab5d67e83e
生产管控模块
已添加9个文件
已修改2个文件
188 ■■■■■ 文件已修改
src/api/productionManagement/operationScheduling.js 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/productionManagement/productionCosting.js 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/productionManagement/productionOrder.js 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/productionManagement/productionReporting.js 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/config.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/index.vue 92 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/static/images/icon/shengchanbaogong@2x.png 补丁 | 查看 | 原始文档 | blame | 历史
src/static/images/icon/shengchandingdan@2x.png 补丁 | 查看 | 原始文档 | blame | 历史
src/static/images/icon/shengchanhesuan@2x.png 补丁 | 查看 | 原始文档 | blame | 历史
src/static/images/icon/shengchanpaichan@2x.png 补丁 | 查看 | 原始文档 | blame | 历史
src/static/images/icon/shengchanpaigong@2x.png 补丁 | 查看 | 原始文档 | blame | 历史
src/api/productionManagement/operationScheduling.js
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,27 @@
// å·¥åºæŽ’产页面接口
import request from "@/utils/request";
// åˆ†é¡µæŸ¥è¯¢
export function listPageProcess(query) {
  return request({
    url: "/salesLedger/scheduling/listPageProcess",
    method: "get",
    params: query,
  });
}
// å–消排产
export function productionDispatchDelete(query) {
  return request({
    url: "/salesLedger/scheduling/productionDispatchDelete",
    method: "delete",
    data: query,
  });
}
// å–消排产
export function processScheduling(query) {
  return request({
    url: "/salesLedger/scheduling/processScheduling",
    method: "post",
    data: query,
  });
}
src/api/productionManagement/productionCosting.js
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,11 @@
// ç”Ÿäº§æ ¸ç®—页面接口
import request from "@/utils/request";
// åˆ†é¡µæŸ¥è¯¢
export function productionAccountingListPage(query) {
  return request({
    url: "/salesLedger/productionAccounting/listPage",
    method: "get",
    params: query,
  });
}
src/api/productionManagement/productionOrder.js
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,19 @@
// ç”Ÿäº§è®¢å•页面接口
import request from "@/utils/request";
// åˆ†é¡µæŸ¥è¯¢
export function schedulingListPage(query) {
  return request({
    url: "/salesLedger/scheduling/listPage",
    method: "get",
    params: query,
  });
}
// ç”Ÿäº§æ´¾å·¥
export function productionDispatch(query) {
  return request({
    url: "/salesLedger/scheduling/productionDispatch",
    method: "post",
    data: query,
  });
}
src/api/productionManagement/productionReporting.js
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,35 @@
// ç”Ÿäº§æŠ¥å·¥é¡µé¢æŽ¥å£
import request from "@/utils/request";
// åˆ†é¡µæŸ¥è¯¢
export function workListPage(query) {
  return request({
    url: "/salesLedger/work/listPage",
    method: "get",
    params: query,
  });
}
// å­è¡¨æ ¼æŸ¥è¯¢
export function workListPageById(query) {
  return request({
    url: "/salesLedger/work/list",
    method: "get",
    params: query,
  });
}
// ç”Ÿäº§æŠ¥å·¥
export function productionReport(query) {
  return request({
    url: "/salesLedger/work/productionReport",
    method: "post",
    data: query,
  });
}
// ç”Ÿäº§æŠ¥å·¥-编辑
export function productionReportUpdate(query) {
  return request({
    url: "/salesLedger/work/productionReportUpdate",
    method: "post",
    data: query,
  });
}
src/config.js
@@ -2,8 +2,8 @@
const config = {
  //  baseUrl: 'https://vue.ruoyi.vip/prod-api',
  // baseUrl: 'http://localhost/prod-api',
  // baseUrl: 'http://114.132.189.42:9036',
  baseUrl: 'http://192.168.1.147:9036',
  baseUrl: 'http://114.132.189.42:9036',
  // baseUrl: 'http://192.168.1.147:9036',
   //cloud后台网关地址
  //  baseUrl: 'http://192.168.10.3:8080',
   // åº”用信息
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([
    // {
@@ -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/productionDispatch/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;
}
src/static/images/icon/shengchanbaogong@2x.png
src/static/images/icon/shengchandingdan@2x.png
src/static/images/icon/shengchanhesuan@2x.png
src/static/images/icon/shengchanpaichan@2x.png
src/static/images/icon/shengchanpaigong@2x.png