wenwj
2025-04-11 820cb1b5244d536d9ae64f4ab053defe598ef1b4
结构调整
已重命名2个文件
已修改1个文件
255 ■■■■ 文件已修改
src/api/basicData/processRoute.js 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basicData/ApsResourceGroup/index.vue 164 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basicData/processRoute/index.vue 91 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/basicData/processRoute.js
src/views/basicData/ApsResourceGroup/index.vue
@@ -1,6 +1,9 @@
<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="68px">
    <el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="90px">
      <el-row :gutter="20">
        <el-col
        :span="6">
      <el-form-item label="资源组" prop="resourceGroupName">
        <el-input
          v-model="queryParams.resourceGroupName"
@@ -9,6 +12,9 @@
          @keyup.enter="handleQuery"
        />
      </el-form-item>
        </el-col>
        <el-col
        :span="6">
      <el-form-item label="截止机加需求日期" style="width: 400px" label-width="150px">
        <el-date-picker
          v-model="daterangeRequestDate"
@@ -19,10 +25,16 @@
          end-placeholder="结束日期"
        ></el-date-picker>
      </el-form-item>
        </el-col>
        <el-col
          :span="12"
          style="text-align: right;">
      <el-form-item>
        <el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
        <el-button icon="Refresh" @click="resetQuery">重置</el-button>
      </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <el-row :gutter="10" class="mb8">
@@ -85,6 +97,14 @@
        </el-col>
      </el-row>
      <el-row style="margin-top: 20px;">
        <el-form-item label="截止机加需求日期" prop="requestDate" >
          <el-date-picker clearable
            v-model="requestDate"
            type="datetime"
            value-format="YYYY-MM-DD HH:mm:ss"
            placeholder="请选择机加需求日期">
          </el-date-picker>
        </el-form-item>
        <el-col>
          <div>
            <el-button
@@ -165,6 +185,7 @@
const exampleHeight = ref("500px");
const uploadRef = ref();
const exampleList = ref([]);
const requestDate = ref();
/*** ç”¨æˆ·å¯¼å…¥å‚æ•° */
const upload = reactive({
  // æ˜¯å¦æ˜¾ç¤ºå¼¹å‡ºå±‚(用户导入)
@@ -185,63 +206,39 @@
  { type: 'checkbox', width: 60, align:"center"},
  { type: 'seq', title: '序号', width: 60 },
  {
    title: '料号',
    field: 'itemNo',
    title: '资源组名称',
    field: 'resourceGroupName',
    width: 300,
    align:"center",
  },
  {
    title: '设备数量',
    field: 'devicesQuantity',
    width: 150,
    align:"center",
  },
  {
    title: '工单号',
    field: 'workOrderNo',
    width: 150,
    title: '每日理论时间',
    field: 'theoryHours',
    width: 300,
    align:"center",
  },
  {
    title: '工序序号',
    field: 'processNumber',
    width: 100,
    title: '截止需求日剩余天数',
    field: 'restDays',
    width: 210,
    align:"center",
  },
  {
    title: '工序名称',
    field: 'processName',
    width: 150,
    title: '理论产能',
    field: 'theoryCapacity',
    width: 300,
    align:"center",
  },
  {
    title: '工序计划开始日期',
    field: 'processPlanStartDay',
    width: 200,
    align:"center",
  },
  {
    title: '工序计划结束日期',
    field: 'processPlanEndDay',
    width: 200,
    align:"center",
  },
  {
    title: '未开工数量',
    field: 'notStartWorkCount',
    width: 150,
    align:"center",
  },
  {
    title: '已完成数量',
    field: 'completedCount',
    width: 150,
    align:"center",
  },
  {
    title: '废弃数量',
    field: 'discardCount',
    width: 150,
    align:"center",
  },
  {
    title: '集成日期',
    field: 'integrationDay',
    width: 160,
    title: '截止机加需求日期',
    field: 'requestDate',
    width: 300,
    align:"center",
  }
]);
@@ -249,63 +246,39 @@
const exampleColumns = ref([
  { type: 'seq', title: '序号', width: 60 },
  {
    title: '料号',
    field: 'itemNo',
    title: '资源组名称',
    field: 'resourceGroupName',
    width: 300,
    align:"center",
  },
  {
    title: '设备数量',
    field: 'devicesQuantity',
    width: 150,
    align:"center",
  },
  {
    title: '工单号',
    field: 'workOrderNo',
    width: 150,
    title: '每日理论时间',
    field: 'theoryHours',
    width: 300,
    align:"center",
  },
  {
    title: '工序序号',
    field: 'processNumber',
    width: 100,
    title: '截止需求日剩余天数',
    field: 'restDays',
    width: 210,
    align:"center",
  },
  {
    title: '工序名称',
    field: 'processName',
    width: 150,
    title: '理论产能',
    field: 'theoryCapacity',
    width: 300,
    align:"center",
  },
  {
    title: '工序计划开始日期',
    field: 'processPlanStartDay',
    width: 200,
    align:"center",
  },
  {
    title: '工序计划结束日期',
    field: 'processPlanEndDay',
    width: 200,
    align:"center",
  },
  {
    title: '未开工数量',
    field: 'notStartWorkCount',
    width: 150,
    align:"center",
  },
  {
    title: '已完成数量',
    field: 'completedCount',
    width: 150,
    align:"center",
  },
  {
    title: '废弃数量',
    field: 'discardCount',
    width: 150,
    align:"center",
  },
  {
    title: '集成日期',
    field: 'integrationDay',
    width: 160,
    title: '截止机加需求日期',
    field: 'requestDate',
    width: 370,
    align:"center",
  }
]);
@@ -323,6 +296,7 @@
    plant: null
  },
  rules: {
  }
});
@@ -485,8 +459,15 @@
}
/** ä¸Šä¼ å¹¶è§£æžæŒ‰é’®æ“ä½œ */
function uploadParse() {
  if (requestDate.value === null || typeof requestDate.value === 'undefined' || requestDate.value === '') {
    ElMessage({
      message: '请选择截止机加需求日期',
      type: 'warning',
    })
    return
  }
  queryParams.value.params = {};
  queryParams.value.params["batchNumber"] = batchNumber.value;
  queryParams.value.params["requestDate"] = requestDate.value;
  confirmApsResourceGroup(queryParams.value).then(response => {
    exampleList.value = response.rows;
    loading.value = false;
@@ -494,6 +475,7 @@
    isError.value = false;
    planned.value = true;
    upload.open = false;
    requestDate.value = null;
    ElMessage({
      message: '资源池数据已成功上传和解析',
      type: 'success',
@@ -507,10 +489,12 @@
  if (uploadRef.value) {
    uploadRef.value.clearFiles();
  }
  requestDate.value = null;
  isVisible.value = false;
  isError.value = false;
  planned.value = true;
  upload.open = false;
}
getList();
src/views/basicData/processRoute/index.vue
ÎļþÃû´Ó src/views/aps/processRoute/index.vue ÐÞ¸Ä
@@ -1,6 +1,9 @@
<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="68px">
    <el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="90px">
      <el-row :gutter="20">
        <el-col
        :span="6">
      <el-form-item label="集成日期" style="width: 308px">
        <el-date-picker
          v-model="daterangeIntegrationDay"
@@ -11,6 +14,9 @@
          end-placeholder="结束日期"
        ></el-date-picker>
      </el-form-item>
        </el-col>
        <el-col
        :span="6">
      <el-form-item label="料号" prop="itemNo">
            <el-input
              v-model="queryParams.itemNo"
@@ -19,42 +25,19 @@
              @keyup.enter="handleQuery"
            />
          </el-form-item>
        </el-col>
        <el-col
          :span="12"
          style="text-align: right;">
      <el-form-item>
        <el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
        <el-button icon="Refresh" @click="resetQuery">重置</el-button>
      </el-form-item>
        </el-col>
    </el-row>
    </el-form>
    <el-row :gutter="10" class="mb8">
      <!-- <el-col :span="1.5">
        <el-button
          type="primary"
          plain
          icon="Plus"
          @click="handleAdd"
          v-hasPermi="['aps:processRoute:add']"
        >新增</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="success"
          plain
          icon="Edit"
          :disabled="single"
          @click="handleUpdate"
          v-hasPermi="['aps:processRoute:edit']"
        >修改</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="danger"
          plain
          icon="Delete"
          :disabled="multiple"
          @click="handleDelete"
          v-hasPermi="['aps:processRoute:remove']"
        >删除</el-button>
      </el-col> -->
      <el-col :span="1.5">
        <el-button 
          type="info" 
@@ -167,7 +150,7 @@
</template>
<script setup name="ProcessRoute">
import { listProcessRoute, getProcessRoute, delProcessRoute, addProcessRoute, updateProcessRoute,processRouteTempList,confirmProcessRoute } from "@/api/aps/processRoute";
import { listProcessRoute, getProcessRoute, delProcessRoute, addProcessRoute, updateProcessRoute,processRouteTempList,confirmProcessRoute } from "@/api/basicData/processRoute";
import HxlhTable from '@/components/HxlhTable'
import { getToken } from "@/utils/auth";
import { ref } from "vue";
@@ -251,19 +234,31 @@
  {
    title: '未开工数量',
    field: 'notStartWorkCount',
    width: 150,
    width: 90,
    align:"center",
  },
  {
    title: '已完成数量',
    field: 'completedCount',
    width: 150,
    width: 90,
    align:"center",
  },
  {
    title: '废弃数量',
    field: 'discardCount',
    width: 150,
    width: 90,
    align:"center",
  },
  {
    title: '标准工时',
    field: 'standardTime',
    width: 90,
    align:"center",
  },
  {
    title: '工序排序',
    field: 'processOrder',
    width: 90,
    align:"center",
  },
  {
@@ -291,7 +286,7 @@
  {
    title: '工序序号',
    field: 'processNumber',
    width: 100,
    width: 85,
    align:"center",
  },
  {
@@ -315,27 +310,39 @@
  {
    title: '未开工数量',
    field: 'notStartWorkCount',
    width: 150,
    width: 140,
    align:"center",
  },
  {
    title: '已完成数量',
    field: 'completedCount',
    width: 150,
    width: 140,
    align:"center",
  },
  {
    title: '废弃数量',
    field: 'discardCount',
    width: 150,
    width: 140,
    align:"center",
  },
  {
    title: '集成日期',
    field: 'integrationDay',
    width: 160,
    title: '标准工时',
    field: 'standardTime',
    width: 140,
    align:"center",
  }
  },
  {
    title: '工序排序',
    field: 'processOrder',
    width: 140,
    align:"center",
  },
  // {
  //   title: '集成日期',
  //   field: 'integrationDay',
  //   width: 160,
  //   align:"center",
  // }
]);
const data = reactive({
  form: {},