| | |
| | | data: query |
| | | }); |
| | | } |
| | | // metalOrderManageSubList |
| | | export function metalOrderManageUpAndDownList(data) { |
| | | return request({ |
| | | url: `/aps/ApsPlatOrderPlanManager/upAndDownList`, |
| | | method: "post", |
| | | data |
| | | }); |
| | | } |
| | |
| | | tipsBugSheetMetal2:"将自定义的日期赋值给工单的计划完工日", |
| | | metalWeldWork:"焊缝工单数据", |
| | | parseUpload:"已成功上传和解析", |
| | | weld:"焊缝" |
| | | weld: "焊缝", |
| | | viewUpperLowerLevels: "查看上下阶" |
| | | }, |
| | | options: { |
| | | monthlyStatic: "按月统计", |
| | | dailyStatic: "按日统计", |
| | | hasRisk:"有风险", |
| | | noRisk:"无风险" |
| | | noRisk: "无风险", |
| | | }, |
| | | message: { |
| | | update: "数据更新成功", |
| | |
| | | generatePlanOrder:"生成钣金计划工单", |
| | | confirm: "确定", |
| | | cancel: "取消", |
| | | viewRequirement:"查看需求" |
| | | viewRequirement: "查看需求", |
| | | viewUpperLowerLevels: "查看上下阶", |
| | | }, |
| | | query: { |
| | | daterangePlanStartDay: "计划开工日", |
| | |
| | | uploadParsePartWorkOrderData: "零件工单数据已成功上传和解析", |
| | | uploadParseGasPipelineData: "气体管路计划数据已成功上传和解析", |
| | | uploadParseWeldSeamData:"焊缝工单数据已成功解析", |
| | | uploadErrorParseWeldSeamData:"焊缝工单数据已解析失败" |
| | | uploadErrorParseWeldSeamData: "焊缝工单数据已解析失败", |
| | | }, |
| | | table: { |
| | | mainPartNumber: "主件料号", |
| | | businessType: "业务类型", |
| | | documentNumber: "单据号", |
| | | level: "层级", |
| | | requirementType: "需求分类", |
| | | documentStatus: "单据状态", |
| | | updateBy: "审核时间", |
| | |
| | | workOrderNo: "工单号", |
| | | processName: "工序名称", |
| | | startDateOfProcessPlan: "工序计划开始日期", |
| | | planStartDay: "计划开始日", |
| | | planEndDay: "计划完工日", |
| | | endDateOfProcessPlan: "工序计划结束日期", |
| | | standardTime: "标准工时", |
| | | processOrder: "工序排序", |
| | |
| | | //钣金料号工单异常 |
| | | abnormalCause:"异常原因", |
| | | creationTime:"工单创建时间", |
| | | suggestedCompletionDate:"建议完成日期" |
| | | suggestedCompletionDate: "建议完成日期", |
| | | }, |
| | | }; |
| | | export const en = { |
| | |
| | | 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", |
| | |
| | | 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", |
| | |
| | | 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", |
| | |
| | | "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", |
| | |
| | | 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", |
| | |
| | | //钣金料号工单异常 |
| | | abnormalCause:"Abnormal cause", |
| | | creationTime:"Creation time", |
| | | suggestedCompletionDate:"Suggested Completion Date建议完成日期" |
| | | suggestedCompletionDate: "Suggested Completion Date建议完成日期", |
| | | }, |
| | | }; |
| | |
| | | <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 |
| | |
| | | </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> |
| | | |
| | |
| | | import { |
| | | metalOrderManageList, |
| | | metalOrderManageSubList, |
| | | metalOrderManageUpAndDownList, |
| | | generatorPlanList, |
| | | planDateList, |
| | | } from "@/api/mainPlan/metalOrderManage.js"; |
| | |
| | | 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(); |
| | |
| | | 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([]); |
| | |
| | | }, |
| | | { |
| | | title: t("common.common.require"), |
| | | width: 150, |
| | | width: "auto", |
| | | fixed: "right", |
| | | slots: { default: "buttons" }, |
| | | align: "center", |
| | |
| | | }, |
| | | }, |
| | | ]; |
| | | 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"), |
| | |
| | | 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) => { |