From cafa0a9a6c48d21582faa3b1abacdd0da372194f Mon Sep 17 00:00:00 2001 From: 86156 <823267011@qq.com> Date: Fri, 20 Mar 2026 14:36:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E7=BA=A7=E6=9B=B4=E6=96=B0=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E6=96=B0=E5=A2=9E=E8=BD=AF=E6=8E=A8=E8=8D=90=EF=BC=8C?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E5=BD=95=E5=85=A5=E5=92=8C=E5=AE=9E=E7=BB=A9?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E6=B7=BB=E5=8A=A0=E5=85=A5=E5=9C=BA=E9=92=A2?= =?UTF-8?q?=E5=8D=B7=E5=8F=B7=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/l2/src/api/l2/plan.js | 8 ++ .../l2/pdo/components/DataCorrection.vue | 6 + apps/l2/src/views/l2/pdo/index.vue | 2 + .../components/L3PickupRecommendPanel.vue | 113 ++++++++++++++++++ apps/l2/src/views/l2/plan/index.vue | 21 +++- 5 files changed, 149 insertions(+), 1 deletion(-) create mode 100644 apps/l2/src/views/l2/plan/components/L3PickupRecommendPanel.vue diff --git a/apps/l2/src/api/l2/plan.js b/apps/l2/src/api/l2/plan.js index 8cd39a0..6ef6353 100644 --- a/apps/l2/src/api/l2/plan.js +++ b/apps/l2/src/api/l2/plan.js @@ -29,6 +29,14 @@ export function listPlan(query) { }) } +export function getL3PickupRecommend(limit = 10) { + return l2Request({ + url: '/api/pdi/l3PickupRecommend', + method: 'get', + params: { limit } + }) +} + // 查询计划详细 export function getPlan(coilId) { return l2Request({ diff --git a/apps/l2/src/views/l2/pdo/components/DataCorrection.vue b/apps/l2/src/views/l2/pdo/components/DataCorrection.vue index 91d459f..59fcf86 100644 --- a/apps/l2/src/views/l2/pdo/components/DataCorrection.vue +++ b/apps/l2/src/views/l2/pdo/components/DataCorrection.vue @@ -18,6 +18,12 @@ + + + + + + diff --git a/apps/l2/src/views/l2/pdo/index.vue b/apps/l2/src/views/l2/pdo/index.vue index 55ff40e..66d0cdb 100644 --- a/apps/l2/src/views/l2/pdo/index.vue +++ b/apps/l2/src/views/l2/pdo/index.vue @@ -40,6 +40,7 @@ + @@ -252,6 +253,7 @@ export default { this.dialogTitle = '新增实绩'; // 初始化空表单数据(传递给子组件) this.formData = { + enterCoilNo: '', subId: 0, startPosition: 0, endPosition: 0, diff --git a/apps/l2/src/views/l2/plan/components/L3PickupRecommendPanel.vue b/apps/l2/src/views/l2/plan/components/L3PickupRecommendPanel.vue new file mode 100644 index 0000000..72dd0e4 --- /dev/null +++ b/apps/l2/src/views/l2/plan/components/L3PickupRecommendPanel.vue @@ -0,0 +1,113 @@ + + + + + diff --git a/apps/l2/src/views/l2/plan/index.vue b/apps/l2/src/views/l2/plan/index.vue index 570be90..6d2b674 100644 --- a/apps/l2/src/views/l2/plan/index.vue +++ b/apps/l2/src/views/l2/plan/index.vue @@ -234,6 +234,7 @@ append-to-body>
+ @@ -246,6 +247,11 @@ + + + + + @@ -366,6 +372,7 @@ import SetupForm from './components/setupForm.vue' import SetupPane from './components/setupPane.vue' import PlanRecommendPanel from './components/PlanRecommendPanel.vue' import ProcessRecommendPanel from './components/ProcessRecommendPanel.vue' +import L3PickupRecommendPanel from './components/L3PickupRecommendPanel.vue' // 标准日期格式化方法(优化时间处理逻辑,适配接口日期格式) function parseTime(time, format = "{yyyy}-{mm}-{dd} {hh}:{ii}:{ss}") { @@ -409,7 +416,8 @@ export default { SetupForm, SetupPane, PlanRecommendPanel, - ProcessRecommendPanel + ProcessRecommendPanel, + L3PickupRecommendPanel }, data() { return { @@ -442,6 +450,7 @@ export default { id: null, // 主键ID(组件内部用,提交时后端自动处理) seqid: null, // 顺序号(number,接口要求) coilid: "", // 钢卷号(string,必填) + enterCoilNo: "", // 入场钢卷号(string) unitCode: "", // 机组号(string,接口要求) dummyCoilFlag: 0, // 虚卷标识(number,默认0:非虚卷) planid: "", // 计划ID(string,接口要求) @@ -635,6 +644,15 @@ export default { this.form.yieldPoint = payload.yieldPoint } }, + handleApplyL3PickupRecommendation(payload) { + if (!payload) return + if (payload.coilid !== undefined) { + this.form.coilid = payload.coilid || '' + } + if (payload.enterCoilNo !== undefined) { + this.form.enterCoilNo = payload.enterCoilNo || '' + } + }, handleProcessRecommendation(payload) { this.processRecommendation = payload }, @@ -806,6 +824,7 @@ export default { status: "NEW", // 新增计划默认状态为 新建 planid: "", planType: "", + enterCoilNo: "", originCoilid: "", yieldPoint: null, zincCoatingThickness: null,