chengxiangling
2025-05-14 4842a9a9a3394099188819499f8b68aafcff6e21
提交查看上下阶
已修改3个文件
132 ■■■■ 文件已修改
src/api/mainPlan/metalOrderManage.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/i18n/locales/plan/index.js 43 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mainPlan/sheetMetalOrderManage/index.vue 81 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/mainPlan/metalOrderManage.js
@@ -29,3 +29,11 @@
    data: query
  });
}
// metalOrderManageSubList
export function metalOrderManageUpAndDownList(data) {
  return request({
    url: `/aps/ApsPlatOrderPlanManager/upAndDownList`,
    method: "post",
    data
  });
}
src/utils/i18n/locales/plan/index.js
@@ -9,13 +9,14 @@
    tipsBugSheetMetal2:"将自定义的日期赋值给工单的计划完工日",
    metalWeldWork:"焊缝工单数据",
    parseUpload:"已成功上传和解析",
    weld:"焊缝"
    weld: "焊缝",
    viewUpperLowerLevels: "查看上下阶"
  },
  options: {
    monthlyStatic: "按月统计",
    dailyStatic: "按日统计",
    hasRisk:"有风险",
    noRisk:"无风险"
    noRisk: "无风险",
  },
  message: {
    update: "数据更新成功",
@@ -45,7 +46,8 @@
    generatePlanOrder:"生成钣金计划工单",
    confirm: "确定",
    cancel: "取消",
    viewRequirement:"查看需求"
    viewRequirement: "查看需求",
    viewUpperLowerLevels: "查看上下阶",
  },
  query: {
    daterangePlanStartDay: "计划开工日",
@@ -84,12 +86,13 @@
    uploadParsePartWorkOrderData: "零件工单数据已成功上传和解析",
    uploadParseGasPipelineData: "气体管路计划数据已成功上传和解析",
    uploadParseWeldSeamData:"焊缝工单数据已成功解析",
    uploadErrorParseWeldSeamData:"焊缝工单数据已解析失败"
    uploadErrorParseWeldSeamData: "焊缝工单数据已解析失败",
  },
  table: {
    mainPartNumber: "主件料号",
    businessType: "业务类型",
    documentNumber: "单据号",
    level: "层级",
    requirementType: "需求分类",
    documentStatus: "单据状态",
    updateBy: "审核时间",
@@ -153,6 +156,8 @@
    workOrderNo: "工单号",
    processName: "工序名称",
    startDateOfProcessPlan: "工序计划开始日期",
    planStartDay: "计划开始日",
    planEndDay: "计划完工日",
    endDateOfProcessPlan: "工序计划结束日期",
    standardTime: "标准工时",
    processOrder: "工序排序",
@@ -208,7 +213,7 @@
    //钣金料号工单异常
    abnormalCause:"异常原因",
    creationTime:"工单创建时间",
    suggestedCompletionDate:"建议完成日期"
    suggestedCompletionDate: "建议完成日期",
  },
};
export const en = {
@@ -218,15 +223,20 @@
    viewAssociatedRequirements:"View associated requirements",
    setMode:"Set Mode",
    CustomizePlannedCompletionDate:"Customize the planned completion date",
    tipsBugSheetMetal:"Assign the planned start date and planned completion date of the generated sheet metal requirements to the work order",
    tipsBugSheetMetal2:"Assign custom dates to the planned completion date of the work order",
    weld:"weld seam",
    tipsBugSheetMetal:
      "Assign the planned start date and planned completion date of the generated sheet metal requirements to the work order",
    tipsBugSheetMetal2:
      "Assign custom dates to the planned completion date of the work order",
    metalWeldWork: "Weld work order data",
    parseUpload: "successfully uploaded and parsed",
    weld: "Weld seam",
    viewUpperLowerLevels: "View the upper and lower levels"
  },
  options: {
    monthlyStatic: "Monthly statistics",
    dailyStatic: "Daily statistics",
    hasRisk:"At Risk",
    noRisk:"No Risk"
    noRisk: "No Risk",
  },
  message: {
    update: "Data update successful",
@@ -257,7 +267,8 @@
    generatePlanOrder:"Generate sheet metal plan work order",
    confirm: "Confirm",
    cancel: "Cancel",
    viewRequirement:"View requirements"
    viewRequirement: "View requirements",
    viewUpperLowerLevels: "Upper Lower Levels",
  },
  query: {
    daterangePlanStartDay: "Planned start date",
@@ -273,7 +284,7 @@
    pipelineOrderRequire:"Pipeline order requirements",
    gasHolderOrderRequire:"Gas cabinet order demand",
    pipelinePredictionDemand:"Pipeline prediction demand",
    gasHolderForecastDemand:"Gas holder forecast demand"
    gasHolderForecastDemand: "Gas holder forecast demand",
  },
  upload: {
    prevText: "Drag the file here, or",
@@ -298,13 +309,15 @@
      "The part work order data has been successfully uploaded and parsed",
    uploadParseGasPipelineData:
      "The gas pipeline plan data has been successfully uploaded and parsed",
    uploadParseWeldSeamData:"The weld work order data has been successfully parsed",
    uploadErrorParseWeldSeamData:"Failed to parse weld work order data"
    uploadParseWeldSeamData:
      "The weld work order data has been successfully parsed",
    uploadErrorParseWeldSeamData: "Failed to parse weld work order data",
  },
  table: {
    mainPartNumber: "Main part number",
    businessType: "Business type",
    documentNumber: "Document number",
    level: "Level",
    requirementType: "Requirements classification",
    documentStatus: "Document Status",
    updateBy: "Audit time",
@@ -367,6 +380,8 @@
    workOrderNo: "Work order number",
    processName: "Process name",
    startDateOfProcessPlan: "Start date of process plan",
    planStartDay: "Start date of plan",
    planEndDay: "End date of plan",
    endDateOfProcessPlan: "End date of process plan",
    standardTime: "Standard working hours",
    processOrder: "Process sorting",
@@ -423,6 +438,6 @@
    //钣金料号工单异常
    abnormalCause:"Abnormal cause",
    creationTime:"Creation time",
    suggestedCompletionDate:"Suggested Completion Date建议完成日期"
    suggestedCompletionDate: "Suggested Completion Date建议完成日期",
  },
};
src/views/mainPlan/sheetMetalOrderManage/index.vue
@@ -158,6 +158,13 @@
        <el-button
          type="primary"
          link
          @click="handleCheckLevels(row)"
          v-hasPermi="['ApsPlatOrderPlanManager:requirement:list']"
          >{{ $t("plan.btns.viewUpperLowerLevels") }}</el-button
        >
        <el-button
          type="primary"
          link
          @click="handleCheckView(row)"
          v-hasPermi="['ApsPlatOrderPlanManager:requirement:list']"
          >{{ $t("plan.btns.viewRequirement") }}({{row.requireNum}})</el-button
@@ -255,6 +262,30 @@
        </span>
      </template>
    </el-dialog>
    <!-- 查看上下阶 -->
    <el-dialog
      :title="$t('plan.title.viewUpperLowerLevels')"
      v-model="openUpperLowerDialog"
      width="85%"
      style="height:90vh; overflow: hidden"
      append-to-body
    >
      <HxlhTable
        style="width: 100%"
        :columns="subUpAndDownGridOptions"
        :data="subUpAndDownList"
        :loading="loadingSubUpAndDown"
        :height="heightSub"
      >
      </HxlhTable>
      <template #footer>
        <span class="dialog-footer">
          <el-button @click="openUpperLowerDialog = false">{{
            $t("common.common.close")
          }}</el-button>
        </span>
      </template>
    </el-dialog>
  </div>
</template>
@@ -266,6 +297,7 @@
import {
  metalOrderManageList,
  metalOrderManageSubList,
  metalOrderManageUpAndDownList,
  generatorPlanList,
  planDateList,
} from "@/api/mainPlan/metalOrderManage.js";
@@ -281,10 +313,13 @@
const radio = ref(1);
const customicDate = ref("");
const openDialog = ref(false);
const openUpperLowerDialog = ref(false);
const openBatchDialog = ref(false);
const subGridOptions = ref([]);
const subUpAndDownGridOptions = ref([]);
const subUpdateGridOptions = ref([]);
const subUpdateCustomGridOptions = ref([]);
const subUpAndDownList = ref([]);
const subList = ref([]);
const subUpdateList = ref([]);
// const tableRef = ref();
@@ -292,6 +327,7 @@
const loading = ref(false);
const loadingUpdateDate = ref(false);
const loadingGenerateList = ref(false);
const loadingSubUpAndDown = ref(false);
const loadingSub = ref(false);
const showSearch = ref(true);
const ids = ref([]);
@@ -468,7 +504,7 @@
      },
      {
        title: t("common.common.require"),
        width: 150,
        width: "auto",
        fixed: "right",
        slots: { default: "buttons" },
        align: "center",
@@ -608,6 +644,38 @@
        },
      },
    ];
    subUpAndDownGridOptions.value = [
      {
        title: t("plan.table.documentNumber"),
        field: "documentNumber",
        align: "center",
      },
      {
        title: t("plan.table.level"),
        field: "requiremenType",
        align: "center",
      },
      {
        title: t("plan.table.itemNumber"),
        field: "itemNumber",
        align: "center",
      },
      {
        title: t("plan.table.planStartDay"),
        field: "planStartDay",
        align: "center",
      },
      {
        title: t("plan.table.planEndDay"),
        field: "planEndDay",
        align: "center",
      },
      {
        title: t("plan.table.productionQuantity"),
        field: "productionQuantity",
        align: "center",
      },
    ]
    subUpdateGridOptions.value = [
      // {
      //   title: t("basic.table.requirementID"),
@@ -779,6 +847,17 @@
      loadingSub.value = false;
    });
}
function handleCheckLevels(row) {
  openUpperLowerDialog.value = true;
  loadingSubUpAndDown.value = true;
  metalOrderManageUpAndDownList({requireId: row.requireId}).then((res) => {
    console.log(res,"metalOrderManageUpAndDownList");
    subUpAndDownList.value = res;
    loadingSubUpAndDown.value = false;
  }).catch(() => {
    loadingSubUpAndDown.value = false;
  });
}
async function hanleBatchUpdateDate() {
  loadingUpdateDate.value = true;
  let planIds = subUpdateList.value.map((item) => {